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

Function batchStepResponseLevel

src/core/batch.ts:225–231  ·  view source on GitHub ↗
(
  requested: ResponseLevel | undefined,
  isFinalStep: boolean,
)

Source from the content-addressed store, hash-verified

223// meta is passed through unchanged — byte-identical to today (Maestro `.ad`
224// recompare safe).
225function batchStepResponseLevel(
226 requested: ResponseLevel | undefined,
227 isFinalStep: boolean,
228): ResponseLevel | undefined {
229 if (!isNonDefaultResponseLevel(requested)) return requested;
230 return isFinalStep ? requested : 'digest';
231}
232
233function batchStepMeta(meta: BatchRequest['meta'], isFinalStep: boolean): BatchRequest['meta'] {
234 const requested = meta?.responseLevel;

Callers 1

batchStepMetaFunction · 0.85

Calls 1

Tested by

no test coverage detected