From 51a1eddbf00393f3881c340cf37cfcca59566c99 Mon Sep 17 00:00:00 2001 From: oleg Date: Wed, 14 Aug 2024 15:45:50 +0200 Subject: [PATCH] fix(AI Agent Node): Fix issues with some tools not populating (#10406) --- packages/@n8n/nodes-langchain/utils/helpers.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/@n8n/nodes-langchain/utils/helpers.ts b/packages/@n8n/nodes-langchain/utils/helpers.ts index 673fa0402c..05b4a5cadc 100644 --- a/packages/@n8n/nodes-langchain/utils/helpers.ts +++ b/packages/@n8n/nodes-langchain/utils/helpers.ts @@ -13,7 +13,6 @@ import type { BaseLLM } from '@langchain/core/language_models/llms'; import type { BaseChatMemory } from 'langchain/memory'; import type { BaseChatMessageHistory } from '@langchain/core/chat_history'; import { N8nTool } from './N8nTool'; -import { DynamicTool } from '@langchain/core/tools'; function hasMethods(obj: unknown, ...methodNames: Array): obj is T { return methodNames.every( @@ -195,8 +194,6 @@ export const getConnectedTools = async ( const finalTools = []; for (const tool of connectedTools) { - if (!(tool instanceof DynamicTool) && !(tool instanceof N8nTool)) continue; - const { name } = tool; if (seenNames.has(name)) { throw new NodeOperationError(