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

Function describeValue

apps/sim/lib/logs/execution/logger.ts:154–161  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

152}
153
154function describeValue(value: unknown): string {
155 if (value === null) return 'null'
156 if (value === undefined) return 'undefined'
157 if (Array.isArray(value)) return `array with ${value.length} items`
158 if (typeof value === 'string') return `string with ${value.length} characters`
159 if (typeof value === 'object') return `object with ${Object.keys(value).length} keys`
160 return typeof value
161}
162
163function summarizeValueForExecutionData(value: unknown, maxBytes: number): unknown {
164 const size = getJsonByteSize(value, maxBytes)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected