Skip to main content

AgentResponseStream

OpenAI Responses-API-conformant SSE stream. Each frame carries both an SSE event: line (the event type) and a data: line (the JSON payload); there is no [DONE] sentinel — the terminal frame (response.completed / response.failed / response.incomplete) closes the stream. Every frame carries a monotonic sequence_number (the resume cursor). The documented event subset is response.created, response.output_item.added, response.content_part.added, response.output_text.delta, response.output_text.done, response.function_call_arguments.delta, response.function_call_arguments.done, response.content_part.done, response.output_item.done, response.completed, response.failed, response.incomplete, plus the platform sidebands response.cost_breakdown and response.tool_call.output. Per-item agent identity is encoded in each output item's id (agent:<agent_id>::…); response-level metadata.x_alien_root_agent_id and metadata.x_alien_agent_registry describe the multi-agent topology. Full taxonomy: see the Responses streaming guide (/streaming/responses).

objectobject

OpenAI Responses-API-conformant SSE stream. Each frame carries both an SSE event: line (the event type) and a data: line (the JSON payload); there is no [DONE] sentinel — the terminal frame (response.completed / response.failed / response.incomplete) closes the stream. Every frame carries a monotonic sequence_number (the resume cursor). The documented event subset is response.created, response.output_item.added, response.content_part.added, response.output_text.delta, response.output_text.done, response.function_call_arguments.delta, response.function_call_arguments.done, response.content_part.done, response.output_item.done, response.completed, response.failed, response.incomplete, plus the platform sidebands response.cost_breakdown and response.tool_call.output. Per-item agent identity is encoded in each output item's id (agent:<agent_id>::…); response-level metadata.x_alien_root_agent_id and metadata.x_alien_agent_registry describe the multi-agent topology. Full taxonomy: see the Responses streaming guide (/streaming/responses).

AgentResponseStream
{}