Expand description
Agent runner and execution loop.
Runner drives the agent turn loop:
session lookup → middleware chain → model invocation → tool dispatch →
directive execution → event emission → usage tracking.
It enforces max_turns and max_budget limits, handles model errors with
configurable retry / fallback, and supports graceful and force stop.
Structs§
- Runner
- Drives the agent execution loop.
- Runner
Config - Configuration for a single runner execution.
Enums§
- RunError
Action - Specifies what the runner should do when an error occurs.
- Stop
Kind - Kind of stop requested from outside the runner.