SessionConfiguration Class
- java.
lang. Object - com.
azure. ai. agents. models. SessionConfiguration
- com.
Implements
public final class SessionConfiguration
implements JsonSerializable<SessionConfiguration>
Session defaults applied to sessions created for a hosted agent version.
Constructor Summary
| Constructor | Description |
|---|---|
| SessionConfiguration() |
Creates an instance of Session |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Session |
fromJson(JsonReader jsonReader)
Reads an instance of Session |
| Duration |
getIdleTimeoutSeconds()
Get the idle |
|
Session |
setIdleTimeoutSeconds(Duration idleTimeoutSeconds)
Set the idle |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SessionConfiguration
public SessionConfiguration()
Creates an instance of SessionConfiguration class.
Method Details
fromJson
public static SessionConfiguration fromJson(JsonReader jsonReader)
Reads an instance of SessionConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getIdleTimeoutSeconds
public Duration getIdleTimeoutSeconds()
Get the idleTimeoutSeconds property: The idle duration, in seconds, before a session's sandbox is suspended. When omitted, the server defaults to 900 seconds. Must be between 120 and 14400 seconds (4 hours).
Returns:
setIdleTimeoutSeconds
public SessionConfiguration setIdleTimeoutSeconds(Duration idleTimeoutSeconds)
Set the idleTimeoutSeconds property: The idle duration, in seconds, before a session's sandbox is suspended. When omitted, the server defaults to 900 seconds. Must be between 120 and 14400 seconds (4 hours).
Parameters:
Returns: