Limits
Properties
Section titled “Properties”maxOscillations?
Section titled “maxOscillations?”optional maxOscillations?: number;maxSteps?
Section titled “maxSteps?”optional maxSteps?: number;maxToolConcurrency?
Section titled “maxToolConcurrency?”optional maxToolConcurrency?: number;Ceiling on parallel-safe tools executing at once within one model-emitted batch.
Defaults to DEFAULT_MAX_TOOL_CONCURRENCY (8). Raise it deliberately; the
model’s batch size must never be the concurrency policy, and above eight the
session store’s CAS starts rejecting concurrent writes.
maxToolResultTokens?
Section titled “maxToolResultTokens?”optional maxToolResultTokens?: number;Token ceiling on a single tool result as the MODEL sees it. Default 8000.
The journal and ctx.tool() always keep the full value.
maxTurns?
Section titled “maxTurns?”optional maxTurns?: number;toolMaxSteps?
Section titled “toolMaxSteps?”optional toolMaxSteps?: number;