MCPcopy Create free account
hub / github.com/callstack/agent-device / isValidBatchMaxSteps

Function isValidBatchMaxSteps

src/batch-contract.ts:15–17  ·  view source on GitHub ↗
(maxSteps: number)

Source from the content-addressed store, hash-verified

13 new AppError('INVALID_ARGS', message);
14
15export function isValidBatchMaxSteps(maxSteps: number): boolean {
16 return Number.isInteger(maxSteps) && maxSteps >= 1 && maxSteps <= 1000;
17}
18
19export function assertBatchStepCount(
20 stepCount: number,

Callers 2

readBatchInputFunction · 0.90
runBatchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…