Skip to main content

Module tool_batching

Module tool_batching 

Source
Expand description

Tool call batching for parallel execution.

Groups tool calls into sequential and parallel batches based on their read-only classification and preflight safety status. Read-only tools can be parallelized; mutating tools must be sequential.

Structs§

FallbackRecommendation
A recommended fallback tool call if the primary fails.
FallbackStep
A single step in a fallback chain.
PreparedToolBatch
A batch of tool calls grouped by execution strategy.
PreparedToolCall
A prepared tool call with its classification and effective arguments.

Enums§

PreparedToolBatchKind
Whether a batch of tool calls should be executed sequentially or in parallel.

Functions§

is_parallel_safe_tool_batch
Whether all calls in a batch are parallel-safe.