Skip to main content

run_turn

Function run_turn 

Source
pub async fn run_turn<P, T>(
    provider: &P,
    tools: &T,
    model: &str,
    messages: Vec<Message>,
) -> Result<TurnResult, P::Error>
where P: LlmProvider + ?Sized, T: ToolExecutor + ?Sized,
Expand description

Run one agent turn to completion with no caller-supplied options (the common path; equivalent to run_turn_with(..., RunTurnOptions::default())).

§Errors

Propagates the provider’s error.