(id: string, overrides?: Partial<FlowNode>)
| 13 | * makeFlowNode('a', { data: { id: 'a', name: 'llmAgentflow', label: 'LLM' } }) |
| 14 | */ |
| 15 | export const makeFlowNode = (id: string, overrides?: Partial<FlowNode>): FlowNode => ({ |
| 16 | id, |
| 17 | type: 'customNode', |
| 18 | position: { x: 0, y: 0 }, |
| 19 | data: { id, name: id, label: id }, |
| 20 | ...overrides |
| 21 | }) |
| 22 | |
| 23 | /** |
| 24 | * Create a {@link FlowEdge} between two node ids. |
no outgoing calls