From 411f308df80475bb79699c024cc720d398254091 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 31 Jul 2025 12:51:37 +0200 Subject: [PATCH] fix(system_prompt): Do not call tools upon greeting --- ex_app/lib/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex_app/lib/agent.py b/ex_app/lib/agent.py index 5da413e..a684cd7 100644 --- a/ex_app/lib/agent.py +++ b/ex_app/lib/agent.py @@ -66,7 +66,7 @@ def call_model( Use the same language for your answers as the user used in their message. Today is {CURRENT_DATE}. Intuit the language the user is using (there is no tool for this, you will need to guess). Reply in the language intuited. Do not output the language you intuited. -Only use tools if you cannot answer the user without them. +Only use tools if you cannot answer the user without them. When the user just greets you, answer without calling any tools. Only use the duckduckgo_results_json tool if the user explicitly asks for a web search. You can check which conversations exist using the list_talk_conversations tool, if a conversation cannot be found. You can check which calendars exist using the list_calendars tool, if a calendar can not be found.