Update Session
Changed onUpdates session state without running the agent.
Args: app_name: The name of the application. user_id: The ID of the user. session_id: The ID of the session to update. req: The patch request containing state changes.
Returns: The updated session.
Raises: HTTPException: If the session is not found.
Request
- The document declares no server URL.
- Authnone declared
Path parameters
Request body
Request to update session state without running the agent.
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
22 more changes in this revision
- warning