Documentation
¶
Overview ¶
quickstart constructs an Agent from a Driver, asks one question, and reads one Result.
The whole SDK surface used here is three names — adaptor.New, agent.Run, res.Text — plus the single err verdict: a business failure arrives as a typed *adaptor.RunError that still carries the full Result.
Usage:
go run ./examples/quickstart -agent=codex -prompt="say hi"
Click to show internal directories.
Click to hide internal directories.