Observe Agent Turn and Step Events
mainThe Interactive Agent CLI uses AgentEventLogger to visualize the lifecycle of an agent interaction. When running the CLI, you can observe:
- Turn lifecycle: The transition from
TurnStartedtoTurnCompleted. - Inference steps: Visual indicators of when the model is actively thinking or generating text.
- Tool execution steps: Real-time updates when server-side tools (e.g.,
knowledge_searchorfile_search) are being executed. - Step metadata: Information regarding whether tools are being executed
server_sideorclient_side. - Real-time streaming: Text generation appearing as it happens.