Skip to main content

classify_parallel_tools

Function classify_parallel_tools 

Source
pub fn classify_parallel_tools(body: Option<&str>) -> Option<FailureClass>
Expand description

Pure acceptance for the parallel-tools check (feedback 02 30-tool-calling): exactly two tool calls in one turn, one per expected name (get_project_sentinel + get_project_marker, order-agnostic), both with valid JSON arguments. None means acceptance holds; otherwise NoToolCall (fewer than two calls), DuplicateToolCall (more than two, or the same name twice), InvalidToolName (an unexpected name), or InvalidToolArguments (an argument string that is not valid JSON).