SessionAffinitySource Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. agents. models. SessionAffinitySource
- com.
- com.
public final class SessionAffinitySource
extends ExpandableStringEnum<SessionAffinitySource>
Conversation identifier sources supported by Model Router session affinity.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Session |
CONVERSATION
The Responses conversation identifier. |
|
static final
Session |
NOT_AVAILABLE
No usable conversation identifier was available. |
|
static final
Session |
PREVIOUS_RESPONSE_ID
The Responses previous response identifier. |
|
static final
Session |
SESSION_ID_HEADER
An explicit session identifier supplied in the `x-ms-session-id` request header. |
|
static final
Session |
SESSION_ID_PAYLOAD
An explicit session identifier supplied in the request body. |
Constructor Summary
| Constructor | Description |
|---|---|
| SessionAffinitySource() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Session |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Session |
fromString(String name)
Creates or finds a Session |
|
static
Collection<Session |
values()
Gets known Session |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CONVERSATION
public static final SessionAffinitySource CONVERSATION
The Responses conversation identifier.
NOT_AVAILABLE
public static final SessionAffinitySource NOT_AVAILABLE
No usable conversation identifier was available.
PREVIOUS_RESPONSE_ID
public static final SessionAffinitySource PREVIOUS_RESPONSE_ID
The Responses previous response identifier.
SESSION_ID_HEADER
public static final SessionAffinitySource SESSION_ID_HEADER
An explicit session identifier supplied in the `x-ms-session-id` request header.
SESSION_ID_PAYLOAD
public static final SessionAffinitySource SESSION_ID_PAYLOAD
An explicit session identifier supplied in the request body.
Constructor Details
SessionAffinitySource
@Deprecated
public SessionAffinitySource()
Deprecated
Creates a new instance of SessionAffinitySource value.
Method Details
fromString
public static SessionAffinitySource fromString(String name)
Creates or finds a SessionAffinitySource from its string representation.
Parameters:
Returns:
values
public static Collection<SessionAffinitySource> values()
Gets known SessionAffinitySource values.
Returns: