MCPcopy Create free account
hub / github.com/codemix/graph / clone

Method clone

packages/graph/src/Steps.ts:7384–7393  ·  view source on GitHub ↗
(partial?: Partial<CallStepConfig>)

Source from the content-addressed store, hash-verified

7382 }
7383
7384 public clone(partial?: Partial<CallStepConfig>): CallStep {
7385 return new CallStep({
7386 procedureName: partial?.procedureName ?? this.config.procedureName,
7387 arguments: partial?.arguments ?? [...this.config.arguments],
7388 yieldItems:
7389 partial?.yieldItems ?? (this.config.yieldItems ? [...this.config.yieldItems] : undefined),
7390 stepLabels:
7391 partial?.stepLabels ?? (this.config.stepLabels ? [...this.config.stepLabels] : undefined),
7392 });
7393 }
7394
7395 public override toStringTokens(): StepStringToken[] {
7396 const tokens: StepStringToken[] = [{ kind: "start" }, { kind: "name", value: this.name }];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected