ToolLoop
Namespace: E2E
public static class ToolLoopUpstream’s createToolLoopExecutor (agent/tool-loop.ts): the chassis of an executor that thinks in a loop of model
turns and tool calls. It owns everything but the tool vocabulary: the done verdict tool and its closed code policy, the
hard stops (a spent budget, a timeout, or a cancel ends the loop, never the model), the loop guards, the shrink of a history
that overflowed the model, and the count of model calls. The built-in agent is this chassis plus the grammar tools
(CreateBuiltInAgent(BuiltInAgentOptions)). An executor for a device or an API brings other tools and inherits the same discipline.
Inheritance: object
Methods
Section titled “Methods”CreateToolLoopExecutor(ToolLoopExecutorOptions)
Section titled “CreateToolLoopExecutor(ToolLoopExecutorOptions)”public static IStepExecutor CreateToolLoopExecutor(ToolLoopExecutorOptions options)Builds a step executor from a tool vocabulary and the chassis. The loop runs at most
MaxModelCalls model turns per step: the agents entry’s MaxModelCalls.
Parameters
| Name | Type | Description |
|---|---|---|
options |
ToolLoopExecutorOptions |
Returns: IStepExecutor