Skip to main content

run_turn_with_events

Function run_turn_with_events 

Source
pub async fn run_turn_with_events<F>(
    runtime: &AgentRuntime,
    session: &mut Session,
    prompt: &str,
    policy: ApprovalPolicy,
    on_event: F,
) -> Result<TurnOutcome, SdkError>
where F: FnMut(AgentEvent),