Trace Events Reference
Trace events provide real-time visibility into task execution through WebSocket connections. Each event represents a specific action, state change, or milestone during execution.Event Structure
All trace events follow this structure:Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique event identifier |
event_type | string | Event type identifier |
scope | string | Event scope: task, step, action, system |
action | string | Action: start, end, error, info, update |
category | string | Category: dag, react, general, tool, llm, memory, etc. |
timestamp | float | Unix timestamp with milliseconds |
task_id | string | Associated task ID |
step_id | string | Associated step ID (for step/action scope) |
data | object | Event-specific data |
parent_id | string | Parent event ID for hierarchical events |
Event Types by Scope
Task-Level Events
Scope:task - Events related to the entire task execution.
TASK_START_DAG
Task DAG planning started.TASK_END_DAG
Task DAG planning completed.TASK_START_REACT
Task ReAct execution started.TASK_END_REACT
Task ReAct execution completed.TASK_START_GENERAL
General task execution started.TASK_END_GENERAL
General task execution completed.TASK_ERROR
Task-level error occurred.Step-Level Events
Scope:step - Events for individual execution steps.
STEP_START_DAG
DAG step started.STEP_END_DAG
DAG step completed.STEP_START_REACT
ReAct step started.STEP_END_REACT
ReAct step completed.STEP_ERROR
Step-level error occurred.Action-Level Events
Scope:action - Events for atomic actions within steps.
ACTION_START_TOOL
Tool execution started.ACTION_END_TOOL
Tool execution completed.ACTION_START_LLM
LLM call started.ACTION_END_LLM
LLM call completed.Memory Events
Memory operation events.MEMORY_GENERATE_START
Memory generation started.MEMORY_GENERATE_END
Memory generation completed.MEMORY_STORE_START
Memory storage started.MEMORY_STORE_END
Memory storage completed.MEMORY_RETRIEVE_START
Memory retrieval started.MEMORY_RETRIEVE_END
Memory retrieval completed.System Events
Scope:system - System-level informational events.
SYSTEM_VISUALIZATION_UPDATE
Visualization data update.SYSTEM_INFO
General system information.Event Categories
| Category | Description |
|---|---|
dag | DAG planning and execution events |
react | ReAct loop execution events |
general | General purpose events |
tool | Tool execution events |
llm | LLM API call events |
memory | Memory operation events |
visualization | UI visualization updates |
compact | Data compaction events |
Event Actions
| Action | Description |
|---|---|
start | Operation started |
end | Operation completed |
error | Operation failed |
info | Informational event |
update | Progress update |