Skip to main content

run_agent_loop_continue

Function run_agent_loop_continue 

Source
pub async fn run_agent_loop_continue(
    context: AgentContext,
    config: AgentLoopConfig,
    emit: Arc<dyn AgentEmitter>,
    stream_fn: StreamFn,
) -> Result<NewMessages, AgentError>
Expand description

Continue an agent loop from the existing context (no new prompt). Mirrors TS runAgentLoopContinue. Errors if the context is empty or its last message is an assistant message (the provider would reject that).