Skip to main content

Module tool_executor

Module tool_executor 

Source
Expand description

Parallel tool execution within a single agent turn.

When the LLM returns multiple tool_use blocks, this module partitions them into execution “waves” based on their concurrency class and runs safe subsets in parallel via tokio::JoinSet.

Structs§

PendingToolCall
A single pending tool call extracted from the LLM response.
ToolBatchContext
Mutable context accumulated across tool executions within a turn.
ToolMetrics
Metrics counters for tool execution.

Functions§

execute_tool_batch
Execute a batch of tool calls, optionally in parallel.