sarath2803 commited on
Commit
d60b2f7
·
verified ·
1 Parent(s): 0d9ef7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
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 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
 
 
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