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.
Click to show internal directories.
Click to hide internal directories.