Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -161,11 +161,18 @@ class BasicAgent:
|
|
| 161 |
def __init__(self):
|
| 162 |
print("BasicAgent initialized.")
|
| 163 |
token=os.environ["OPENROUTER_API_KEY"]
|
| 164 |
-
self.system_prompt= """You are
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
|
| 170 |
"""
|
| 171 |
|
|
|
|
| 161 |
def __init__(self):
|
| 162 |
print("BasicAgent initialized.")
|
| 163 |
token=os.environ["OPENROUTER_API_KEY"]
|
| 164 |
+
self.system_prompt= """You are an expert assistant with knowledge about everything.
|
| 165 |
+
You will be given a task to do and you need to do it with the help of tools provied.
|
| 166 |
+
if you are asked about a person or anything related to a work you can use the web_search tool or the wikipedia_tool to come up with the most suitable answer.
|
| 167 |
+
If you are given any mathematical tasks you can use the add,subtract,multiply and divide tools provided.
|
| 168 |
+
If you are given a youtube video link use the youtube_transcript_tool to transcibe the audio and to find the answer of the query being asked.
|
| 169 |
+
If you are asked something related to how many ,use the web_search tool to directly find the answer ,if not available use wikipedia_tool and use your senses to find out the answer yourself and always return a number to such queries.
|
| 170 |
+
If you are given a query which you are not familiar with,try to rearrange the words ,if needed the letters of the words to come up with a meaningful query.
|
| 171 |
+
|
| 172 |
+
Always make sure to answer to only what was asked.
|
| 173 |
+
|
| 174 |
+
You should always return your answer as :
|
| 175 |
+
"your answer here"
|
| 176 |
|
| 177 |
"""
|
| 178 |
|