Documentation Index
Fetch the complete documentation index at: https://docs.powabase.ai/llms.txt
Use this file to discover all available pages before exploring further.
SSE Overview
Server-Sent Events (SSE) provide a one-directional stream from server to client over a single HTTP connection. When you call a streaming endpoint (e.g. /api/agents/{id}/run/stream), the response is a text/event-stream with individual events sent as they occur. Each event is a JSON object prefixed with ‘data: ’ on a single line, separated by blank lines.Agent Streaming Events
| Event | Key Fields | Description |
|---|---|---|
| start | run_id, session_id | Agent run has started — save session_id for multi-turn |
| step_started | step | Agent is beginning a new reasoning step |
| chunk | content | A piece of the agent’s text response |
| tool_call | tool_name, arguments | Agent is calling a tool with the given arguments |
| tool_result | tool_name, result | Tool execution completed with this result |
| step_completed | step | Agent finished a reasoning step |
| approval_requested | tool_name, tool_input | Tool call paused — waiting for approval via the approve endpoint |
| complete | run_id | Agent run finished |
| error | message | An error occurred during execution |
Consuming SSE in Python
Orchestration Events
Orchestration streaming extends the agent event model with delegation events. You see the coordinator reasoning, delegating to entity agents, each entity’s response, and the coordinator’s final synthesis. Events like delegation_start and entity_chunk let you show which agent is currently working.Workflow Streaming
Workflow streaming sends events as each block executes: block_started, block_output, block_completed, and the final workflow result. This lets you show a progress indicator for each step in a multi-block workflow.Next Steps
Streaming Responses Guide
Hands-on guide to consuming streaming events.
Build an Agent
Create an agent with streaming support.
Agents API Reference
Streaming endpoint documentation.