Documentation
¶
Overview ¶
Command events prints an agent run as it happens: assistant deltas, tool starts, tool progress updates, and tool completion events.
Subscribe before Prompt. The listener receives every event in order on the goroutine that drives the run, so real applications should keep the listener quick or hand work to another goroutine.
The API key is read from the provider's environment variable when StreamOptions.APIKey is empty:
DEEPSEEK_API_KEY=sk-... go run ./example/agent/events
Click to show internal directories.
Click to hide internal directories.