autonomous

command
v1.8.0 Latest Latest
Warning

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

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

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).

Jump to

Keyboard shortcuts

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