autonomous-resume

command
v1.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Example: drive an agent through agent.RunAutonomous, simulate a crash via a tight max-turns budget, then continue the run with agent.ResumeAutonomous against the same SQLite event log.

go run ./examples/autonomous-resume

No LLM credentials needed — uses the scripted mock provider.

What this demonstrates end-to-end:

  • Per-turn checkpoint events emitted into a durable event log.
  • ResumeAutonomous picking up where the prior run stopped, with turn count + token totals carried forward.
  • The session lock primitive (acquired automatically) preventing two simultaneous resumers from clobbering each other.

Jump to

Keyboard shortcuts

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