events

command
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL