MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / createAgentFlowOutputs

Function createAgentFlowOutputs

packages/ui/src/utils/genericHelper.js:37–55  ·  view source on GitHub ↗
(nodeData, newNodeId)

Source from the content-addressed store, hash-verified

35}
36
37const 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
57const createOutputOption = (output, newNodeId) => {
58 const outputBaseClasses = output.baseClasses ?? []

Callers 1

initializeOutputAnchorsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected