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

Function basePayload

apps/sim/lib/workspace-events/payload.ts:34–51  ·  view source on GitHub ↗
(params: {
  event: SimEventType
  workflowId: string
  workflowName: string
})

Source from the content-addressed store, hash-verified

32}
33
34function basePayload(params: {
35 event: SimEventType
36 workflowId: string
37 workflowName: string
38}): SimEventPayload {
39 return {
40 event: params.event,
41 timestamp: new Date().toISOString(),
42 workflowId: params.workflowId,
43 workflowName: params.workflowName,
44 runId: null,
45 durationMs: null,
46 cost: null,
47 finalOutput: null,
48 triggeringRun: null,
49 version: null,
50 }
51}
52
53/** Run summary in user-facing units: cost in credits, finalOutput bounded. */
54function summarizeRun(context: ExecutionEventContext): SimRunSummary {

Callers 4

buildDeployEventPayloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected