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

Function createAgentBlock

packages/testing/src/factories/block.factory.ts:92–98  ·  view source on GitHub ↗
(options: Omit<BlockFactoryOptions, 'type'> = {})

Source from the content-addressed store, hash-verified

90 * Creates an agent block (AI agent execution).
91 */
92export function createAgentBlock(options: Omit<BlockFactoryOptions, 'type'> = {}): any {
93 return createBlock({
94 ...options,
95 type: 'agent',
96 name: options.name ?? 'Agent',
97 })
98}
99
100/**
101 * Creates a function block (code execution).

Callers 4

addAgentMethod · 0.90
utils.test.tsFile · 0.90
utils.test.tsFile · 0.90
utils.test.tsFile · 0.90

Calls 1

createBlockFunction · 0.70

Tested by

no test coverage detected