Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,17 +31,20 @@ class BasicAgent:
|
|
| 31 |
model=self.model,
|
| 32 |
add_base_tools=True
|
| 33 |
)
|
| 34 |
-
|
| 35 |
-
You are a general AI assistant. I will ask you a question.
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
#self.agent.prompt_templates['system_prompt'] = """
|
| 47 |
|
|
|
|
| 31 |
model=self.model,
|
| 32 |
add_base_tools=True
|
| 33 |
)
|
| 34 |
+
|
| 35 |
+
self.agent.prompt_templates['system_prompt'] = """You are a general AI assistant. I will ask you a question.
|
| 36 |
+
Your primary goal is to answer the question directly and concisely.
|
| 37 |
+
The 'content' field of your response message, even if it's just your thought process before a tool call, MUST be a single string or null. It MUST NOT be a list or any other sequence.
|
| 38 |
+
If you are providing a direct answer without using any tools, your response content MUST be a single string.
|
| 39 |
+
Report your thoughts as a single block of text (a single string).
|
| 40 |
+
Finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 41 |
+
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
|
| 42 |
+
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.
|
| 43 |
+
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.
|
| 44 |
+
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 45 |
+
"""
|
| 46 |
+
print("BasicAgent initialized.")
|
| 47 |
+
|
| 48 |
|
| 49 |
#self.agent.prompt_templates['system_prompt'] = """
|
| 50 |
|