From 268265917e7951bff3adc2497e12977f358e3179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Popin?= Date: Wed, 4 Dec 2024 13:14:32 +0100 Subject: [PATCH] Update default prompt tool use if visu enabled --- front/lib/api/assistant/agent.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/front/lib/api/assistant/agent.ts b/front/lib/api/assistant/agent.ts index 76c0ea26cb05..f3774019603d 100644 --- a/front/lib/api/assistant/agent.ts +++ b/front/lib/api/assistant/agent.ts @@ -346,7 +346,10 @@ async function* runMultiActionsAgent( } let fallbackPrompt = "You are a conversational assistant"; - if (agentConfiguration.actions.length) { + if ( + agentConfiguration.actions.length || + agentConfiguration.visualizationEnabled + ) { fallbackPrompt += " with access to tool use."; } else { fallbackPrompt += ".";