MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / addException

Function addException

packages/ui/src/views/canvas/AddNodes.jsx:105–117  ·  view source on GitHub ↗
(category)

Source from the content-addressed store, hash-verified

103 }
104
105 const addException = (category) => {
106 let nodes = []
107 if (category) {
108 const nodeNames = exceptionsForAgentCanvas[category] || []
109 nodes = nodesData.filter((nd) => nd.category === category && nodeNames.includes(nd.name))
110 } else {
111 for (const category in exceptionsForAgentCanvas) {
112 const nodeNames = exceptionsForAgentCanvas[category]
113 nodes.push(...nodesData.filter((nd) => nd.category === category && nodeNames.includes(nd.name)))
114 }
115 }
116 return nodes
117 }
118
119 // Fuzzy search utility function that calculates similarity score
120 const fuzzyScore = (searchTerm, text) => {

Callers 2

getSearchedNodesFunction · 0.85
groupByCategoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected