Executes an agent and streams the interaction in real-time using Server-Sent Events (SSE). Provides live updates as the agent processes the request, including message chunks, tool calls, and execution status. Perfect for building responsive chat interfaces and monitoring agent progress. The stream continues until the agent completes its task, encounters an error, or reaches the configured timeout (default 30 minutes, configurable 1-3600 seconds).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The key or ID of the agent to invoke
The A2A message to send to the agent (user input or tool results)
Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
Optional variables for template replacement in system prompt, instructions, and messages
Information about the identity making the request. If the identity does not exist, it will be created automatically.
@deprecated Use identity instead. Information about the contact making the request.
Thread information to group related requests
Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
Optional metadata for the agent invocation as key-value pairs that will be included in traces
Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
1 <= x <= 3600Server-Sent Event stream successfully established. Returns real-time events including agent messages, tool calls, status updates, and completion signals. The stream ends with a [DONE] sentinel value.
Initial event emitted when an agent stream begins. Contains the task ID for tracking, workspace context, and trace ID for observability.