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

Function summarizeValueForExecutionData

apps/sim/lib/logs/execution/logger.ts:163–175  ·  view source on GitHub ↗
(value: unknown, maxBytes: number)

Source from the content-addressed store, hash-verified

161}
162
163function summarizeValueForExecutionData(value: unknown, maxBytes: number): unknown {
164 const size = getJsonByteSize(value, maxBytes)
165 if (size === undefined || size <= maxBytes) {
166 return value
167 }
168
169 return {
170 _truncated: true,
171 reason: 'execution_data_size_limit',
172 originalBytes: size,
173 summary: describeValue(value),
174 }
175}
176
177function summarizeTextForExecutionData(value: string | undefined): string | undefined {
178 if (!value) return value

Calls 2

getJsonByteSizeFunction · 0.85
describeValueFunction · 0.85

Tested by

no test coverage detected