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

Function createStandardOutputs

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

Source from the content-addressed store, hash-verified

72}
73
74const createStandardOutputs = (nodeData, newNodeId) => {
75 if (nodeData.hideOutput) return []
76
77 if (nodeData.outputs?.length) {
78 const outputOptions = nodeData.outputs.map((output) => createOutputOption(output, newNodeId))
79
80 return [
81 {
82 name: 'output',
83 label: 'Output',
84 type: 'options',
85 description: nodeData.outputs[0].description ?? '',
86 options: outputOptions,
87 default: nodeData.outputs[0].name
88 }
89 ]
90 }
91
92 return [
93 {
94 id: `${newNodeId}-output-${nodeData.name}-${nodeData.baseClasses.join('|')}`,
95 name: nodeData.name,
96 label: nodeData.type,
97 description: nodeData.description ?? '',
98 type: nodeData.baseClasses.join(' | ')
99 }
100 ]
101}
102
103const initializeOutputAnchors = (nodeData, newNodeId, isAgentflow) => {
104 return isAgentflow ? createAgentFlowOutputs(nodeData, newNodeId) : createStandardOutputs(nodeData, newNodeId)

Callers 1

initializeOutputAnchorsFunction · 0.85

Calls 1

createOutputOptionFunction · 0.85

Tested by

no test coverage detected