Skip to main content

partition_by_lane

Function partition_by_lane 

Source
pub fn partition_by_lane(
    tool_calls: &[ToolCall],
) -> (Vec<ToolCall>, Vec<ToolCall>)
Expand description

Partition tool calls into Query-lane (parallelizable) and sequential tools.

Query-lane tools (read, glob, grep, ls, search, list_files) are pure reads with no side effects — safe to execute in parallel. All other tools are executed sequentially to preserve side-effect ordering.