ModelRouterAttemptResult Class
- java.
lang. Object - com.
azure. ai. agents. models. ModelRouterAttemptResult
- com.
Implements
public final class ModelRouterAttemptResult
implements JsonSerializable<ModelRouterAttemptResult>
The HTTP-style result returned by a model routing attempt.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Model |
fromJson(JsonReader jsonReader)
Reads an instance of Model |
|
Model |
getError()
Get the error property: Error details returned when the attempt did not succeed. |
|
Map<String,Binary |
getHeaders()
Get the headers property: Response headers returned by the model. |
| int |
getStatus()
Get the status property: The HTTP status code returned by the model. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ModelRouterAttemptResult fromJson(JsonReader jsonReader)
Reads an instance of ModelRouterAttemptResult from the JsonReader.
Parameters:
Returns:
Throws:
getError
public ModelRouterAttemptError getError()
Get the error property: Error details returned when the attempt did not succeed.
Returns:
getHeaders
public Map<String,BinaryData> getHeaders()
Get the headers property: Response headers returned by the model.
Returns:
getStatus
public int getStatus()
Get the status property: The HTTP status code returned by the model.
Returns: