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

Function batchStepMeta

src/core/batch.ts:233–238  ·  view source on GitHub ↗
(meta: BatchRequest['meta'], isFinalStep: boolean)

Source from the content-addressed store, hash-verified

231}
232
233function batchStepMeta(meta: BatchRequest['meta'], isFinalStep: boolean): BatchRequest['meta'] {
234 const requested = meta?.responseLevel;
235 const stepLevel = batchStepResponseLevel(requested, isFinalStep);
236 if (stepLevel === requested) return meta;
237 return { ...meta, responseLevel: stepLevel };
238}
239
240async function runBatchStep(
241 req: BatchRequest,

Callers 1

runBatchStepFunction · 0.85

Calls 1

batchStepResponseLevelFunction · 0.85

Tested by

no test coverage detected