Bugfix/Tool node selected tool (#4578)

fix tool node selected tool
This commit is contained in:
Henry Heng
2025-06-04 13:44:09 +01:00
committed by GitHub
parent 63ff703e7a
commit aa0984e802
2 changed files with 10 additions and 7 deletions
@@ -125,7 +125,10 @@ class Tool_Agentflow implements INode {
async listToolInputArgs(nodeData: INodeData, options: ICommonObject): Promise<INodeOptionsValue[]> {
const currentNode = options.currentNode as ICommonObject
const selectedTool = (currentNode?.inputs?.selectedTool as string) || (currentNode?.inputs?.toolAgentflowSelectedTool as string)
const selectedToolConfig = currentNode?.inputs?.selectedToolConfig as ICommonObject
const selectedToolConfig =
(currentNode?.inputs?.selectedToolConfig as ICommonObject) ||
(currentNode?.inputs?.toolAgentflowSelectedToolConfig as ICommonObject) ||
{}
const nodeInstanceFilePath = options.componentNodes[selectedTool].filePath as string