OptionalagentID of the agent that owns this session (agi_...).
Optionalcompleted_When the session reached a terminal state ("completed", "failed", or "cancelled"). null if still in progress.
Optionalcreated_When the session was created (ISO 8601).
OptionalerrorHuman-readable error message describing why the session failed. null unless status is "failed".
Session ID (ase_...).
OptionalinboxOrdered list of messages delivered to the session's inbox while it was in the "waiting" state. Each entry includes id, role, content, sender_id, sender_type, sent_at, and metadata.
OptionalinstructionsThe task the agent is instructed to perform in this session.
Optionalis_true if this session was created by the platform internally (e.g. by a schedule or health action) rather than by a user or API caller.
Optionalmax_Maximum number of tool calls the agent may make within a single turn. Defaults to 25.
Optionalmax_Maximum number of tokens the session may consume across all turns before being terminated. Defaults to 20000.
Optionalmax_Maximum number of agent turns (LLM calls) allowed before the session is forcibly terminated. Defaults to 100.
OptionalmetadataArbitrary key-value pairs attached to the session. Not interpreted by the platform.
OptionalnameOptional human-readable label for the session. null when not set.
OptionalresultStructured output produced by the session on successful completion. Shape is agent-defined. null while the session is still running or if it failed.
Optionalstarted_When the session began executing. null if still "pending".
OptionalstatusCurrent execution status. One of "pending" (queued, not yet started), "running" (actively executing), "waiting" (paused for an inbox message or external event), "completed" (finished successfully), "failed" (terminated with an error), or "cancelled" (manually stopped).
OptionaltrajectoryID of the trajectory that records the full message history for this session (trj_...). null until the session has started.
A durable agent session record representing a single AI task execution. Tracks status, trajectory, result, and any inbox messages delivered to the session.