Class: ToolLoopError
Defined in: errors.ts:218
Error thrown when the agent is stuck in a tool call loop.
This occurs when the same tool is called with identical input multiple times consecutively, indicating the agent is not processing the tool results properly.
Example
throw new ToolLoopError('read_file', 3);
Extends
Constructors
Constructor
new ToolLoopError(
toolName,
consecutiveCalls,
input?): ToolLoopError;
Defined in: errors.ts:219
Parameters
| Parameter | Type |
|---|---|
toolName | string |
consecutiveCalls | number |
input? | Record<string, unknown> |
Returns
ToolLoopError
Overrides
Properties
cause?
readonly optional cause?: Error;
Defined in: errors.ts:17
Inherited from
consecutiveCalls
readonly consecutiveCalls: number;
Defined in: errors.ts:221
input?
readonly optional input?: Record<string, unknown>;
Defined in: errors.ts:222
toolName
readonly toolName: string;
Defined in: errors.ts:220