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

Function assertRejectSize

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

Source from the content-addressed store, hash-verified

59}
60
61function assertRejectSize(observedBytes: number, options: CompactExecutionPayloadOptions): void {
62 if (!options.rejectLargeValues) return
63 if (observedBytes > (options.thresholdBytes ?? LARGE_VALUE_THRESHOLD_BYTES)) {
64 throw largeValueLimitError(options, observedBytes)
65 }
66}
67
68async function compactValue(
69 value: unknown,

Callers 1

Calls 1

largeValueLimitErrorFunction · 0.85

Tested by

no test coverage detected