Documentation
¶
Overview ¶
Example: drive an agent through agent.RunAutonomous end-to-end with no LLM credentials. The mock "scripted" provider replays a JSONL transcript that the model would normally produce; the autonomous driver loops, watches for the report_done tool call, and returns a structured RunResult.
go run ./examples/autonomous
Real consumers swap in a credentialled provider:
GEMINI_API_KEY=... go run ./examples/autonomous --real
(the --real path is intentionally not implemented here; this example focuses on the loop shape and termination gesture).
Click to show internal directories.
Click to hide internal directories.