Create Session
Changed onRequest
- The document declares no server URL.
- Authnone declared
Path parameters
Request body
The ID of the session to create. If not provided, a random session ID will be generated.
The initial state of the session.
A list of events to initialize the session with.
Optional configuration options forwarded to the session service.
Response
Successful Response
Represents a series of interactions between a user and agents.
Unique identifier of the session.
Application name that owns the session.
User ID that owns the session.
Current persisted session state.
Ordered event history for the session, including user, model, and tool events (e.g. user input, model response, function call/response).
Unix timestamp in seconds for the most recent session update.
Example response
{
"id": "session-abc123",
"appName": "hello_world",
"userId": "user-123",
"state": {
"locale": "en-US"
},
"lastUpdateTime": 1742000000
}Changes
- warning
added the new
ESCALATIONenum value to theevents/items/finishReason/anyOf[subschema #1: FinishReason]response property for the response status - warning
added the new
MALFORMED_RESPONSEenum value to theevents/items/finishReason/anyOf[subschema #1: FinishReason]response property for the response status - warning
added the new
MISSING_THOUGHT_SIGNATUREenum value to theevents/items/finishReason/anyOf[subschema #1: FinishReason]response property for the response status
47 more changes in this revision
- warning