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

Function forceStoreValue

apps/sim/lib/execution/payloads/serializer.ts:203–215  ·  view source on GitHub ↗
(
  value: unknown,
  options: CompactExecutionPayloadOptions
)

Source from the content-addressed store, hash-verified

201}
202
203async function forceStoreValue(
204 value: unknown,
205 options: CompactExecutionPayloadOptions
206): Promise<unknown> {
207 if (isLargeValueRef(value) || isLargeArrayManifest(value)) {
208 return value
209 }
210 const measured = getJsonAndSize(value)
211 if (!measured) {
212 return value
213 }
214 return storeLargeValue(value, measured.json, measured.size, options)
215}
216
217export async function compactExecutionPayload<T>(
218 value: T,

Callers 1

compactSubflowResultsFunction · 0.85

Calls 4

isLargeValueRefFunction · 0.90
isLargeArrayManifestFunction · 0.90
storeLargeValueFunction · 0.90
getJsonAndSizeFunction · 0.85

Tested by

no test coverage detected