Skip to main content

Module executors

Module executors 

Source
Expand description

Tool executors: how the tool calls of one model turn run.

ConcurrentToolExecutor (the default) runs every call of a batch on its own task; SequentialToolExecutor runs them one after another. Choose one with ToolExecutorStrategy.

The executors only schedule. The agent loop supplies the per-tool pipeline (the before-call hook, the tool stream, the after-call hook and retries) as a function that reports the call’s events through a sink and returns its ToolOutcome.

Structs§

ConcurrentToolExecutor
Runs the tool calls of a turn concurrently, each on its own task (ConcurrentToolExecutor).
SequentialToolExecutor
Runs the tool calls of a turn one at a time, in order (SequentialToolExecutor).

Enums§

ToolExecutorStrategy
How the tool calls of one model turn run (ToolExecutorStrategy).