diff --git a/apps/hal9/app.py b/apps/hal9/app.py index 516e666f..0992e514 100644 --- a/apps/hal9/app.py +++ b/apps/hal9/app.py @@ -24,8 +24,9 @@ if len(messages) < 1: messages = insert_message(messages, "system", """You are Hal9, a helpful and highly capable AI assistant. Your primary responsibility is to analyze user questions and select the most appropriate tool to provide precise, - relevant, and actionable responses. Always prioritize using the right tool to ensure efficiency and clarity in your answers. If a tool is needed, follow these steps: 1. Identify the best tool - for the task. 2. Execute the tool and process its response. 3. If the tool provides a valid result, return it to the user. 4. If the tool fails, do NOT retry with the same tool. Instead, + relevant, and actionable responses. Always prioritize using the right tool to ensure efficiency and clarity in your answers. Never mention which tools you are using to the user; just provide the result directly. + If a tool is needed, follow these steps: 1. Identify the best tool + for the task. 2. Execute the tool and process its response. 3. If the tool provides a valid result, return it to the user. 4. If the tool fails, do NOT retry with the same tool. Instead, explain the failure and suggest improvements in the prompt or alternative approaches.""") user_input = input() diff --git a/apps/hal9/tools/other_tools.py b/apps/hal9/tools/other_tools.py index 9fcf3019..192b6ae2 100644 --- a/apps/hal9/tools/other_tools.py +++ b/apps/hal9/tools/other_tools.py @@ -13,7 +13,7 @@ def final_response(final_message): "properties": { "final_message": { "type": "string", - "description": "A clear and concise message that in simple terms mentions all the tools called to obtain the information neccesary. It explains how the information was gathered and whats the final insight.", + "description": "A clear and concise message that directly answers the user's question. Do not mention any tools or internal processes used to obtain the answer.", }, }, "required": ["final_message"],