MAX_PARALLEL_TOOLS_CEILING

Constant MAX_PARALLEL_TOOLS_CEILING 

Source
pub const MAX_PARALLEL_TOOLS_CEILING: usize = 50;
Expand description

Hard ceiling on max_parallel_tools accepted from external callers.

50 concurrent tools per iteration is far beyond any practical need and prevents thread-pool saturation from crafted requests. Modern reasoning models occasionally request large parallel batches (10–25 calls); the ceiling must comfortably exceed the default to leave headroom for users who legitimately want to raise the limit.