MCPcopy
hub / github.com/simstudioai/sim / addAgent

Method addAgent

packages/testing/src/builders/workflow.builder.ts:81–88  ·  view source on GitHub ↗

* Adds an agent block.

(id: string, position?: Position, name?: string)

Source from the content-addressed store, hash-verified

79 * Adds an agent block.
80 */
81 addAgent(id: string, position?: Position, name?: string): this {
82 this.blocks[id] = createAgentBlock({
83 id,
84 name: name ?? id,
85 position: position ?? { x: 0, y: 0 },
86 })
87 return this
88 }
89
90 /**
91 * Adds a condition block.

Callers 1

Calls 1

createAgentBlockFunction · 0.90

Tested by

no test coverage detected