ModelRouterAttempt Class
- java.
lang. Object - com.
azure. ai. agents. models. ModelRouterAttempt
- com.
Implements
public final class ModelRouterAttempt
implements JsonSerializable<ModelRouterAttempt>
A single routing attempt targeting a specific model.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Model |
fromJson(JsonReader jsonReader)
Reads an instance of Model |
| String |
getModel()
Get the model property: The model targeted in this attempt. |
|
Model |
getResult()
Get the result property: How this attempt concluded — whether the model served the request successfully or encountered an error. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ModelRouterAttempt fromJson(JsonReader jsonReader)
Reads an instance of ModelRouterAttempt from the JsonReader.
Parameters:
Returns:
Throws:
getModel
public String getModel()
Get the model property: The model targeted in this attempt.
Returns:
getResult
public ModelRouterAttemptResult getResult()
Get the result property: How this attempt concluded — whether the model served the request successfully or encountered an error.
Returns: