Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust
732 B
Raw Blame
//! Agent-engine turn execution: the turn state machine — the model-turn
//! runner, the turn boundary, the turn loop, the once-runner with its
//! retry/failover and quota-park machinery, and the session-agent
//! constructor.
use super::{
    aborted_message, drop_trailing_assistant, json, json_round_trip, map_thinking_level,
    retry_event_to_engine_event, AbortController, AgentSessionEngine, AutoCompactionRun,
    BoundaryRun, DaemonAllowlist, EngineEvent, GoalBoundary, Model, OverflowArmRun, ProviderTarget,
    QuotaParkState, StopReason, TurnAdmission, TurnOnce, TurnPrompt, TurnResult, Value,
    QUOTA_WAKE_MAX_RETRIES, QUOTA_WAKE_RETRY_DELAY_MS,
};

mod boundary;
mod model;
mod quota;
mod run_loop;
mod run_once;