MCPcopy Index your code
hub / github.com/simstudioai/sim / largeValueLimitError

Function largeValueLimitError

apps/sim/lib/execution/payloads/serializer.ts:50–59  ·  view source on GitHub ↗
(
  options: CompactExecutionPayloadOptions,
  observedBytes: number
)

Source from the content-addressed store, hash-verified

48}
49
50function largeValueLimitError(
51 options: CompactExecutionPayloadOptions,
52 observedBytes: number
53): PayloadSizeLimitError {
54 return new PayloadSizeLimitError({
55 label: options.rejectLargeValueLabel ?? 'Large execution value',
56 maxBytes: options.thresholdBytes ?? LARGE_VALUE_THRESHOLD_BYTES,
57 observedBytes,
58 })
59}
60
61function assertRejectSize(observedBytes: number, options: CompactExecutionPayloadOptions): void {
62 if (!options.rejectLargeValues) return

Callers 2

assertRejectSizeFunction · 0.85
compactValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected