Skip to main content

run_loop

Function run_loop 

Source
pub async fn run_loop<T: Transport, R: Tools>(
    provider: &dyn Provider,
    transport: &T,
    tools: &R,
    limits: &Limits,
    model: &str,
    system: &str,
    instruction: &str,
    allow_drafts: bool,
    trace: &mut Trace,
) -> Result<Answer, AssistantError>
Expand description

Runs the tool loop until the model answers or a limit is reached.