Help us shape the future of Go! Take the 2026 Go Developer Survey

stream

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

Stream Example

This example uses Agent.Stream to consume in-process runtime events while an Agent run is executing.

The stream emits bounded lifecycle events, then one terminal event with the final result summary. It stays transport-neutral; hosts can adapt the same stream to a CLI, UI, log tail, SSE endpoint, or approval layer.

Run it with:

go run ./examples/stream

Expected output includes:

stream=tool.completed tool=lookup_account ref=account:acct_1
stream=done llm=2 tools=1
Final answer: acct_1 is active.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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