ModelRouterDetails Class
- java.
lang. Object - com.
azure. ai. agents. models. ModelRouterDetails
- com.
Implements
public final class ModelRouterDetails
implements JsonSerializable<ModelRouterDetails>
Routing decision metadata from Model Router.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Model |
fromJson(JsonReader jsonReader)
Reads an instance of Model |
|
Model |
getMode()
Get the mode property: The routing mode for the request. |
|
List<Routing |
getRoutingTrace()
Get the routing |
|
Session |
getSessionAffinity()
Get the session |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ModelRouterDetails fromJson(JsonReader jsonReader)
Reads an instance of ModelRouterDetails from the JsonReader.
Parameters:
Returns:
Throws:
getMode
public ModelRouterMode getMode()
Get the mode property: The routing mode for the request.
Returns:
getRoutingTrace
public List<RoutingTraceEntry> getRoutingTrace()
Get the routingTrace property: Ordered trace of routing decisions. Contains one entry for Chat Completions, and may contain multiple entries for Responses API or agent scenarios where multiple inference turns occur.
Returns:
getSessionAffinity
public SessionAffinityDetails getSessionAffinity()
Get the sessionAffinity property: Session affinity metadata for the routing decision. Omitted when affinity metadata is unavailable or the preview feature is not enabled.
Returns: