Get session
Reads the state of a session started by POST /agents/execute: whether it is running, waiting in line, or finished, where it sits in its queue, and how much work that queue is holding. Cheap enough to poll while waiting for enqueued work to start.
Body
The ID of the session, as returned by POST /agents/execute
"agent_conversation_thread_01k1v4m0000000000000000000"
Response
The session
The ID of the session, as returned by POST /agents/execute
"agent_conversation_thread_01k1v4m0000000000000000000"
The ID of the agent running the session
Lifecycle status of the session
Pending, InProgress, Completed, Failed, Paused, WaitingInLine, Sleeping "WaitingInLine"
Place in the waiting line while the status is WaitingInLine (1 = next to run). Null once the session has started, and for sessions that never waited
The queue gating the session, if any
When the session was created, as an ISO 8601 timestamp
When the session last changed status, as an ISO 8601 timestamp