(options: Omit<BlockFactoryOptions, 'type'> = {})
| 90 | * Creates an agent block (AI agent execution). |
| 91 | */ |
| 92 | export 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). |
no test coverage detected