Class: MaxIterationsError

Defined in: errors.ts:199

Error thrown when the agentic loop exceeds max iterations.

Example

throw new MaxIterationsError(10);

Extends

Constructors

Constructor

new MaxIterationsError(maxIterations): MaxIterationsError;

Defined in: errors.ts:200

Parameters

Parameter Type
maxIterations number

Returns

MaxIterationsError

Overrides

AgentError.constructor

Properties

cause?

readonly optional cause?: Error;

Defined in: errors.ts:17

Inherited from

AgentError.cause

maxIterations

readonly maxIterations: number;

Defined in: errors.ts:200