Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -161,24 +161,11 @@ class BasicAgent:
|
|
| 161 |
def __init__(self):
|
| 162 |
print("BasicAgent initialized.")
|
| 163 |
token=os.environ["OPENROUTER_API_KEY"]
|
| 164 |
-
self.system_prompt= """You are a helpful assistant.
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
Your final answer should be in the following format:
|
| 170 |
-
"your answer here".
|
| 171 |
-
|
| 172 |
-
If you are asked question related to numbers,return the answer in numeric format.
|
| 173 |
-
If you want more details about a topic,person, you can use the wikipedia_tool.
|
| 174 |
-
If you want to find out about any works done by a person use wikipedia_tool and answer to only what was asked.
|
| 175 |
-
If you want to perform web search to find the answer, use the web_search tool.
|
| 176 |
-
If you are given a text which is not known try to rearrange the words and characters if needed to form a valid answer.
|
| 177 |
-
If you are asked to find a specific person form a work,search the work using the web_search_tool or wikipedia_tool and find the person and return the person's name.
|
| 178 |
-
If you are given an youtube video then use the youtube_transcript_tool to get the transcript of the video and then answer the question based on the transcript.
|
| 179 |
-
If you are given a task to create an image, you can use the image_generation_tool.
|
| 180 |
-
|
| 181 |
-
Answer only what is asked, do not add any additional information.
|
| 182 |
|
| 183 |
"""
|
| 184 |
|
|
|
|
| 161 |
def __init__(self):
|
| 162 |
print("BasicAgent initialized.")
|
| 163 |
token=os.environ["OPENROUTER_API_KEY"]
|
| 164 |
+
self.system_prompt= """You are a helpful assistant tasked with answering questions using a set of tools.
|
| 165 |
+
Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
|
| 166 |
+
FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 167 |
+
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 above rules depending of whether the element to be put in the list is a number or a string.
|
| 168 |
+
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
|
| 170 |
"""
|
| 171 |
|