Run Task Agent
Authentication
Bearer token authentication using JWT tokens from Ory Kratos/Hydra
Bearer token authentication using JWT tokens from Ory Kratos/Hydra
Execute the Task Agent with a user message.
The agent will:
Responses are streamed using Server-Sent Events (SSE).
The first SSE event emitted after successful stream setup is:
event_type: "session_id" with the resolved session_id in metadataUse revision_id to execute a specific TaskAgent revision. New sessions can run
any revision belonging to the TaskAgent. Existing sessions remain pinned to their
original revision; passing a conflicting revision_id is rejected.
Subsequent events include tool calls/results, text responses, metadata-only
memory_compaction events when compaction memory runs, and the terminal done
or error event. Compaction metadata may include token-threshold configuration
such as trigger: "auto", token_threshold, and event_retention_size when
token-aware compaction is active.