Skip to main content

MAX_TOOL_CALLS

Constant MAX_TOOL_CALLS 

Source
pub const MAX_TOOL_CALLS: usize = 256;
Expand description

Upper bound on the number of parallel tool calls a single streaming model response may accumulate. A delta whose index exceeds this is dropped rather than used to grow an allocation proportional to an untrusted integer (guards against a crafted stream OOM-ing the daemon).