Skip to content

Limits

optional maxOscillations?: number;

optional maxSteps?: number;

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.


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.


optional maxTurns?: number;

optional toolMaxSteps?: number;