Skip to main content

run_tool_loop_with_cache

Function run_tool_loop_with_cache 

Source
pub fn run_tool_loop_with_cache(
    cx: &mut Cx,
    plan: &Expr,
    request: &Expr,
    request_object: &Map<String, Value>,
    cache: &mut OpenAiPlanCache,
    initial: PlanEvalReport,
) -> Result<PlanEvalReport>
Expand description

Runs the tool loop using the tool registry parsed from request_object.

Returns initial unchanged when the request declares no tools; otherwise drives run_tool_loop_with_registry with the default ToolLoopConfig.