Skip to main content

Module loop_mode

Module loop_mode 

Source
Expand description

Long-running iteration mode — agents that run on a fixed interval. Long-running iteration mode for ares agents.

Provides a data model for agents that execute on a fixed interval (cron-like) rather than responding to a single request. Each “beat” runs one unit of work; the agent continues until it hits a halt condition (max iterations, consecutive failures, external stop).

Phase 1 (this module): pure data types and configuration. The runtime scheduler, tick dispatcher, and integration with orchestrator land in follow-up phases.

Structs§

LoopModeConfig
Configuration for a long-running iteration-mode agent.
LoopModeState
Runtime state of a long-running iteration-mode agent.
LoopRunner
Runtime scheduler that drives an iteration-mode agent.

Enums§

LoopFinishReason
Reason a long-running iteration-mode agent stopped.

Type Aliases§

TickFn
Boxed async tick function: returns Ok(()) on success, Err on failure.