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),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),