(nodeData, newNodeId)
| 35 | } |
| 36 | |
| 37 | const createAgentFlowOutputs = (nodeData, newNodeId) => { |
| 38 | if (nodeData.hideOutput) return [] |
| 39 | |
| 40 | if (nodeData.outputs?.length) { |
| 41 | return nodeData.outputs.map((_, index) => ({ |
| 42 | id: `${newNodeId}-output-${index}`, |
| 43 | label: nodeData.label, |
| 44 | name: nodeData.name |
| 45 | })) |
| 46 | } |
| 47 | |
| 48 | return [ |
| 49 | { |
| 50 | id: `${newNodeId}-output-${nodeData.name}`, |
| 51 | label: nodeData.label, |
| 52 | name: nodeData.name |
| 53 | } |
| 54 | ] |
| 55 | } |
| 56 | |
| 57 | const createOutputOption = (output, newNodeId) => { |
| 58 | const outputBaseClasses = output.baseClasses ?? [] |
no outgoing calls
no test coverage detected