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

Function compactRoutePayload

apps/sim/app/api/workflows/[id]/execute/route.ts:98–113  ·  view source on GitHub ↗
(
  value: T,
  context: {
    workspaceId?: string
    workflowId?: string
    executionId?: string
    userId?: string
    preserveUserFileBase64?: boolean
    preserveRoot?: boolean
    rejectLargeValues?: boolean
    rejectLargeValueLabel?: string
    thresholdBytes?: number
  }
)

Source from the content-addressed store, hash-verified

96export const dynamic = 'force-dynamic'
97
98async function compactRoutePayload<T>(
99 value: T,
100 context: {
101 workspaceId?: string
102 workflowId?: string
103 executionId?: string
104 userId?: string
105 preserveUserFileBase64?: boolean
106 preserveRoot?: boolean
107 rejectLargeValues?: boolean
108 rejectLargeValueLabel?: string
109 thresholdBytes?: number
110 }
111): Promise<T> {
112 return compactExecutionPayload(value, { ...context, requireDurable: true })
113}
114
115async function compactWorkflowResponseOutput<T>(
116 value: T,

Callers 3

onBlockCompleteFunction · 0.85
startFunction · 0.85

Calls 1

compactExecutionPayloadFunction · 0.90

Tested by

no test coverage detected