quickstart

command
v1.1.2 Latest Latest
Warning

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

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

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"

Jump to

Keyboard shortcuts

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