Spaces:
Sleeping
Sleeping
new prompt
Browse files
app.py
CHANGED
|
@@ -166,10 +166,10 @@ def assistant(state: MyAgent):
|
|
| 166 |
# Add system message to instruct the agent to use the tool
|
| 167 |
system_message = SystemMessage(content="""
|
| 168 |
You are a helpful assistant tasked with answering questions using a set of tools.
|
| 169 |
-
Now, I will ask you a question.
|
| 170 |
FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 171 |
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, Apply the rules above for each element (number or string), ensure there is exactly one space after each comma.
|
| 172 |
-
Your answer should only
|
| 173 |
""")
|
| 174 |
|
| 175 |
# Combine system message with user messages
|
|
|
|
| 166 |
# Add system message to instruct the agent to use the tool
|
| 167 |
system_message = SystemMessage(content="""
|
| 168 |
You are a helpful assistant tasked with answering questions using a set of tools.
|
| 169 |
+
Now, I will ask you a question. Think step by step and report your answer with the following template:
|
| 170 |
FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 171 |
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, Apply the rules above for each element (number or string), ensure there is exactly one space after each comma.
|
| 172 |
+
Your answer should only have the answer.
|
| 173 |
""")
|
| 174 |
|
| 175 |
# Combine system message with user messages
|