RoutingTraceEntry Class
- java.
lang. Object - com.
azure. ai. agents. models. RoutingTraceEntry
- com.
Implements
public final class RoutingTraceEntry
implements JsonSerializable<RoutingTraceEntry>
A single entry in the routing trace representing one inference turn. Each entry contains the latency and the ordered list of attempts for that turn.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Routing |
fromJson(JsonReader jsonReader)
Reads an instance of Routing |
|
List<Model |
getAttempts()
Get the attempts property: Ordered list of routing attempts. |
| Duration |
getLatencyMs()
Get the latency |
| String |
getOutputId()
Get the output |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static RoutingTraceEntry fromJson(JsonReader jsonReader)
Reads an instance of RoutingTraceEntry from the JsonReader.
Parameters:
Returns:
Throws:
getAttempts
public List<ModelRouterAttempt> getAttempts()
Get the attempts property: Ordered list of routing attempts. First element is the initial selection; subsequent elements are fallback attempts. There is always at least one attempt.
Returns:
getLatencyMs
public Duration getLatencyMs()
Get the latencyMs property: Time in milliseconds spent in the routing decision for this turn.
Returns:
getOutputId
public String getOutputId()
Get the outputId property: Identifier of the output item/turn this routing decision is associated with. This is omitted for Chat Completions.
Returns: