MCPcopy Index your code
hub / github.com/callstack/agent-device / readBatchStepInputObject

Function readBatchStepInputObject

src/batch-contract.ts:40–50  ·  view source on GitHub ↗
(
  record: Record<string, unknown>,
  stepNumber: number,
  makeError: BatchStepErrorFactory = batchInvalidArgsError,
)

Source from the content-addressed store, hash-verified

38}
39
40export function readBatchStepInputObject(
41 record: Record<string, unknown>,
42 stepNumber: number,
43 makeError: BatchStepErrorFactory = batchInvalidArgsError,
44): Record<string, unknown> {
45 const input = record.input;
46 if (!isRecord(input)) {
47 throw makeError(`Batch step ${stepNumber} input must be an object.`);
48 }
49 return input;
50}
51
52export function parseBatchStepRuntime(
53 value: unknown,

Callers 2

readBatchStepFunction · 0.90
readBatchDaemonStepFunction · 0.90

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected