SessionAffinityDetails Class
- java.
lang. Object - com.
azure. ai. agents. models. SessionAffinityDetails
- com.
Implements
public final class SessionAffinityDetails
implements JsonSerializable<SessionAffinityDetails>
Effective Model Router session affinity metadata for a request.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Session |
fromJson(JsonReader jsonReader)
Reads an instance of Session |
|
Session |
getDecision()
Get the decision property: The final affinity outcome for the model that served the response. |
|
Session |
getMode()
Get the mode property: The effective session affinity mode. |
|
Session |
getSource()
Get the source property: The identity source selected after applying precedence. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static SessionAffinityDetails fromJson(JsonReader jsonReader)
Reads an instance of SessionAffinityDetails from the JsonReader.
Parameters:
Returns:
Throws:
getDecision
public SessionAffinityDecision getDecision()
Get the decision property: The final affinity outcome for the model that served the response. Omitted when affinity is disabled or no usable identity was available.
Returns:
getMode
public SessionAffinityMode getMode()
Get the mode property: The effective session affinity mode.
Returns:
getSource
public SessionAffinitySource getSource()
Get the source property: The identity source selected after applying precedence. `conversation` and `previous_response_id` apply only to the Responses API. Omitted when affinity is disabled.
Returns: