Skip to main content

agent_loop_continue

Function agent_loop_continue 

Source
pub async fn agent_loop_continue(
    context: AgentContext,
    config: &AgentLoopConfig,
    sink: &dyn EventSink,
    cancel: CancellationToken,
) -> Result<Vec<AgentMessage>, AgentLoopError>
Expand description

Continues from the current transcript.

ยงErrors

AgentLoopError::NoMessages / AgentLoopError::ContinueFromAssistant before anything is emitted; AgentLoopError::Hook when a hook fails.