Skip to main content

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

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

Event Actions

Usage Example

Next Steps