examples/

directory
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT

Directories

Path Synopsis
Command customprovider shows the minimum needed to bring up a new inference backend: implement agent.Provider's single required method, Generate.
Command customprovider shows the minimum needed to bring up a new inference backend: implement agent.Provider's single required method, Generate.
Command multiprovider shows that Agent code is identical regardless of which first-class provider backs it — only construction differs.
Command multiprovider shows that Agent code is identical regardless of which first-class provider backs it — only construction differs.
Command quickstart is the smallest possible go-agent program: construct a provider, build an Agent, and run a single turn.
Command quickstart is the smallest possible go-agent program: construct a provider, build an Agent, and run a single turn.
Command streaming shows Agent.RunStream: a single logical event stream for a whole run, including any tool round-trips.
Command streaming shows Agent.RunStream: a single logical event stream for a whole run, including any tool round-trips.
Command tools demonstrates strongly-typed tool registration: the model's tool input is unmarshalled directly into a plain Go struct — no map[string]any, no manual JSON Schema.
Command tools demonstrates strongly-typed tool registration: the model's tool input is unmarshalled directly into a plain Go struct — no map[string]any, no manual JSON Schema.

Jump to

Keyboard shortcuts

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