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

Function functionJsonResponse

apps/sim/app/api/function/execute/route.ts:883–899  ·  view source on GitHub ↗
(
  body: T,
  context: FunctionRouteExecutionContext,
  init?: ResponseInit
)

Source from the content-addressed store, hash-verified

881}
882
883async function functionJsonResponse<T>(
884 body: T,
885 context: FunctionRouteExecutionContext,
886 init?: ResponseInit
887) {
888 return NextResponse.json(
889 await compactFunctionRouteBody(
890 {
891 ...body,
892 largeValueKeys: context.largeValueKeys,
893 fileKeys: context.fileKeys,
894 },
895 context
896 ),
897 init
898 )
899}
900
901async function maybeExportSandboxFileToWorkspace(args: {
902 authUserId: string

Callers 1

route.tsFile · 0.85

Calls 1

compactFunctionRouteBodyFunction · 0.85

Tested by

no test coverage detected