Skip to main content

Overview

The ExecutionEvent class represents individual events that occur during agent execution. These events provide real-time visibility into what the agent is doing, making them essential for streaming responses, debugging, and monitoring.

Class Definition

Properties

EventType
The type of event that occurred (e.g., LLM_REQUEST, TOOL_SELECTED)
datetime
UTC timestamp of when the event occurred
Dict[str, Any]
Event-specific data. Structure varies by event type
Optional[Dict[str, Any]]
Optional additional metadata for the event

Event Types and Data

Each event type includes specific data fields:

LLM Events

Tool Events

Message Events

Control Flow Events

Usage Examples

Streaming Responses

Event Logging

Building Event History

Real-time UI Updates

Event Filtering

Timing Analysis

See Also

  • EventType - All available event types
  • Thread - Thread methods for accessing aggregated information
  • Agent - The main agent class