Bugfix/tool node selected tool (#4579)

* fix tool node selected tool

* fix tool node config

* update node to display tool node icons
This commit is contained in:
Henry Heng
2025-06-04 17:54:36 +01:00
committed by GitHub
parent aa0984e802
commit d134b66bd8
2 changed files with 9 additions and 3 deletions
@@ -401,8 +401,11 @@ const AgentFlowNode = ({ data }) => {
{ tools: data.inputs?.llmTools, toolProperty: 'llmSelectedTool' },
{ tools: data.inputs?.agentTools, toolProperty: 'agentSelectedTool' },
{
tools: data.inputs?.selectedTool ? [{ selectedTool: data.inputs?.selectedTool }] : [],
toolProperty: 'selectedTool'
tools:
data.inputs?.selectedTool ?? data.inputs?.toolAgentflowSelectedTool
? [{ selectedTool: data.inputs?.selectedTool ?? data.inputs?.toolAgentflowSelectedTool }]
: [],
toolProperty: ['selectedTool', 'toolAgentflowSelectedTool']
},
{ tools: data.inputs?.agentKnowledgeVSEmbeddings, toolProperty: ['vectorStore', 'embeddingModel'] }
]