Skip to main content

run_agent_run

Function run_agent_run 

Source
pub fn run_agent_run(
    config: AgentConfig,
    goal: String,
    resume: bool,
) -> Result<()>
Expand description

Run agent in unattended mode: one-time goal, continuous execution until done/timeout. Replan (update_task_plan) does not wait for user — agent continues immediately. Confirmations (run_command, L3 skill scan) are auto-approved. A13: When resume=true, load checkpoint and continue from last state.

Caller should build config with run-mode defaults (e.g. enable_task_planning=true, max_consecutive_failures set, soul_path, skill_dirs, etc.).