Stream real-time events from a run using Server-Sent Events (SSE)
run_xyz789abc)data messages with JSON payloads:
| Type | Description |
|---|---|
run.started | Run execution began |
run.completed | Run finished successfully |
run.failed | Run encountered an error |
task.started | A task began execution |
task.completed | A task finished |
agent.action | An agent performed an action |
tool_use | A tool was invoked |
log | Log message from the crew |
artifact | An artifact was produced |
| Type | Description |
|---|---|
heartbeat | Periodic status update while the run is in progress |
complete | Run reached a terminal state (succeeded, failed, canceled) |
error | An error occurred (e.g., run not found) |
timeout | The SSE connection timed out |
succeeded, failed, canceled), a single complete event is returned immediatelyheartbeat events