Skip to main content

Module runner

Module runner 

Source
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.
RunnerConfig
Configuration for a single runner execution.

Enums§

RunErrorAction
Specifies what the runner should do when an error occurs.
StopKind
Kind of stop requested from outside the runner.