mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(AI Agent Node): Escape curly brackets in tools description for non Tool agents (#11772)
This commit is contained in:
@@ -31,7 +31,7 @@ export async function conversationalAgentExecute(
|
||||
| BaseChatMemory
|
||||
| undefined;
|
||||
|
||||
const tools = await getConnectedTools(this, nodeVersion >= 1.5);
|
||||
const tools = await getConnectedTools(this, nodeVersion >= 1.5, true, true);
|
||||
const outputParsers = await getOptionalOutputParsers(this);
|
||||
|
||||
await checkForStructuredTools(tools, this.getNode(), 'Conversational Agent');
|
||||
|
||||
@@ -26,7 +26,7 @@ export async function planAndExecuteAgentExecute(
|
||||
0,
|
||||
)) as BaseChatModel;
|
||||
|
||||
const tools = await getConnectedTools(this, nodeVersion >= 1.5);
|
||||
const tools = await getConnectedTools(this, nodeVersion >= 1.5, true, true);
|
||||
|
||||
await checkForStructuredTools(tools, this.getNode(), 'Plan & Execute Agent');
|
||||
const outputParsers = await getOptionalOutputParsers(this);
|
||||
|
||||
@@ -31,7 +31,7 @@ export async function reActAgentAgentExecute(
|
||||
| BaseLanguageModel
|
||||
| BaseChatModel;
|
||||
|
||||
const tools = await getConnectedTools(this, nodeVersion >= 1.5);
|
||||
const tools = await getConnectedTools(this, nodeVersion >= 1.5, true, true);
|
||||
|
||||
await checkForStructuredTools(tools, this.getNode(), 'ReAct Agent');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user