Spaces:
Sleeping
Sleeping
Update app.py
Browse fileschanged prompt
app.py
CHANGED
|
@@ -174,23 +174,16 @@ class AgentWrapper:
|
|
| 174 |
def assistant(state: MyAgent):
|
| 175 |
# Add system message to instruct the agent to use the tool
|
| 176 |
system_message = SystemMessage(content="""
|
| 177 |
-
You are a
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
Think step by step and report your answer with the following template:
|
| 189 |
-
FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 190 |
-
|
| 191 |
-
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.
|
| 192 |
-
|
| 193 |
-
Your answer should only have the answer.
|
| 194 |
""")
|
| 195 |
|
| 196 |
# Combine system message with user messages
|
|
|
|
| 174 |
def assistant(state: MyAgent):
|
| 175 |
# Add system message to instruct the agent to use the tool
|
| 176 |
system_message = SystemMessage(content="""
|
| 177 |
+
You are a general AI assistant. I will ask you a question. Think step by step, and finish
|
| 178 |
+
your answer with the following template: [YOUR FINAL ANSWER].
|
| 179 |
+
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of
|
| 180 |
+
numbers and/or strings.
|
| 181 |
+
If you are asked for a number, don’t use comma to write your number neither use units such as $ or percent
|
| 182 |
+
sign unless specified otherwise.
|
| 183 |
+
If you are asked for a string, don’t use articles, neither abbreviations (e.g. for cities), and write the digits in
|
| 184 |
+
plain text unless specified otherwise.
|
| 185 |
+
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put
|
| 186 |
+
in the list is a number or a string.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
""")
|
| 188 |
|
| 189 |
# Combine system message with user messages
|