Skip to main content

agent_loop

Function agent_loop 

Source
pub fn agent_loop(
    prompts: Vec<AgentMessage>,
    context: AgentContext,
    config: AgentLoopConfig,
    cancellation_token: Option<CancellationToken>,
    stream_fn: Option<StreamFn>,
) -> AgentEventStream