From 5c80cb57cf709a1097a38e0394aad6fce5330eba Mon Sep 17 00:00:00 2001 From: jeanpaul Date: Fri, 22 Nov 2024 13:47:43 +0100 Subject: [PATCH] fix(AI Agent Node): Add binary message before scratchpad to prevent tool calling loops (#11845) --- .../nodes/agents/Agent/agents/ToolsAgent/execute.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@n8n/nodes-langchain/nodes/agents/Agent/agents/ToolsAgent/execute.ts b/packages/@n8n/nodes-langchain/nodes/agents/Agent/agents/ToolsAgent/execute.ts index 25e6e78984..74d6819961 100644 --- a/packages/@n8n/nodes-langchain/nodes/agents/Agent/agents/ToolsAgent/execute.ts +++ b/packages/@n8n/nodes-langchain/nodes/agents/Agent/agents/ToolsAgent/execute.ts @@ -258,7 +258,6 @@ export async function toolsAgentExecute(this: IExecuteFunctions): Promise