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

Function summarizeTextForExecutionData

apps/sim/lib/logs/execution/logger.ts:177–184  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

175}
176
177function summarizeTextForExecutionData(value: string | undefined): string | undefined {
178 if (!value) return value
179 const size = getJsonByteSize(value, MAX_TRACE_IO_BYTES)
180 if (size === undefined || size <= MAX_TRACE_IO_BYTES) {
181 return value
182 }
183 return `[Truncated ${size} byte text value due to execution log size limit]`
184}
185
186function summarizeTraceSpansForExecutionData(traceSpans?: TraceSpan[]): TraceSpan[] | undefined {
187 if (!traceSpans) {

Callers 1

Calls 1

getJsonByteSizeFunction · 0.85

Tested by

no test coverage detected