Skip to main content

ai_max_tool_iters

Function ai_max_tool_iters 

Source
pub fn ai_max_tool_iters(node: &FlowNode) -> usize
Expand description

Per-node cap on the in-node tool-use loop, read from the node’s maxToolIters field; falls back to DEFAULT_TOOL_ITERATIONS. Clamped to at least 1 so a 0 can’t silently disable tool use.