pub async fn run_turn_with<P, T>(
provider: &P,
tools: &T,
model: &str,
messages: Vec<Message>,
options: RunTurnOptions,
) -> Result<TurnResult, P::Error>Expand description
Run one agent turn to completion with caller-supplied RunTurnOptions.
Used by the harness when resuming a previously-paused turn: the
approved_call_ids set lets the function-calling loop execute the
specific tool calls a human has signed off on while still pausing on any
other needs_approval=true calls that haven’t been approved.
§Errors
Propagates the provider’s error.