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

Method constructor

apps/sim/executor/execution/snapshot.ts:13–27  ·  view source on GitHub ↗
(
    metadata: ExecutionMetadata,
    workflow: any,
    input: any,
    workflowVariables: unknown,
    selectedOutputs: unknown = [],
    state?: SerializableExecutionState
  )

Source from the content-addressed store, hash-verified

11 public readonly state?: SerializableExecutionState
12
13 constructor(
14 metadata: ExecutionMetadata,
15 workflow: any,
16 input: any,
17 workflowVariables: unknown,
18 selectedOutputs: unknown = [],
19 state?: SerializableExecutionState
20 ) {
21 this.metadata = metadata
22 this.workflow = workflow
23 this.input = input
24 this.workflowVariables = normalizeWorkflowVariables(workflowVariables)
25 this.selectedOutputs = normalizeStringArray(selectedOutputs)
26 this.state = state
27 }
28
29 toJSON(): string {
30 return JSON.stringify({

Callers

nothing calls this directly

Calls 2

normalizeStringArrayFunction · 0.90

Tested by

no test coverage detected