Skip to content

Commit 411f308

Browse files
committed
fix(system_prompt): Do not call tools upon greeting
1 parent b789065 commit 411f308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ex_app/lib/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def call_model(
6666
Use the same language for your answers as the user used in their message.
6767
Today is {CURRENT_DATE}.
6868
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.
69-
Only use tools if you cannot answer the user without them.
69+
Only use tools if you cannot answer the user without them. When the user just greets you, answer without calling any tools.
7070
Only use the duckduckgo_results_json tool if the user explicitly asks for a web search.
7171
You can check which conversations exist using the list_talk_conversations tool, if a conversation cannot be found.
7272
You can check which calendars exist using the list_calendars tool, if a calendar can not be found.

0 commit comments

Comments
 (0)