Skip to main content

Module runner

Module runner 

Source
Expand description

Tool runner abstraction for executing batches of tool calls.

Provides pluggable execution strategies (serial, parallel) so brokers can stay independent of concurrency policy. Mirrors the Python and TypeScript ToolRunner design.

Structs§

ParallelToolRunner
Executes tool calls concurrently with a bounded fan-out.
SerialToolRunner
Executes tool calls one at a time in input order.
ToolCallExecution
A single tool call to execute, identified by an opaque id.
ToolCallOutcome
Outcome of executing a single tool call.

Traits§

ToolRunner
Strategy for executing a batch of tool calls.

Functions§

fresh_cancel_token
Convenience: build a fresh cancellation token for callers that don’t have one already (used by the sync broker code path).