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

Function compactFunctionRouteBody

apps/sim/app/api/function/execute/route.ts:869–881  ·  view source on GitHub ↗
(
  body: T,
  context: FunctionRouteExecutionContext
)

Source from the content-addressed store, hash-verified

867}
868
869async function compactFunctionRouteBody<T>(
870 body: T,
871 context: FunctionRouteExecutionContext
872): Promise<T> {
873 return compactExecutionPayload(body, {
874 workflowId: context.workflowId,
875 workspaceId: context.workspaceId,
876 executionId: context.executionId,
877 userId: context.userId,
878 preserveRoot: true,
879 requireDurable: Boolean(context.workspaceId && context.workflowId && context.executionId),
880 })
881}
882
883async function functionJsonResponse<T>(
884 body: T,

Callers 1

functionJsonResponseFunction · 0.85

Calls 1

compactExecutionPayloadFunction · 0.90

Tested by

no test coverage detected