Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/hal9/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion apps/hal9/tools/other_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down