sarath2803 commited on
Commit
54972ae
·
verified ·
1 Parent(s): be0a6bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -14
app.py CHANGED
@@ -189,20 +189,13 @@ class BasicAgent:
189
  def __init__(self):
190
  print("BasicAgent initialized.")
191
  token=os.environ["OPENROUTER_API_KEY"]
192
- self.system_prompt= """You are an expert assistant with knowledge about everything.
193
- You will be given a task to do and you need to do it with the help of tools provied.
194
- if you are asked about a person or anything related to a work you can use the web_search tool or the wikipedia_tool or arvix_search tool to come up with the most suitable answer.
195
- If you are given any mathematical tasks you can use the add,subtract,multiply and divide tools provided.
196
- 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.
197
- 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.
198
- 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.
199
-
200
- Always make sure to answer to only what was asked.
201
-
202
- You should always return your answer as :
203
- "your answer here"
204
-
205
- """
206
 
207
  model = InferenceClientModel(
208
  model_id="deepseek/deepseek-r1:free", # Correct OpenRouter model ID
 
189
  def __init__(self):
190
  print("BasicAgent initialized.")
191
  token=os.environ["OPENROUTER_API_KEY"]
192
+ self.system_prompt= """
193
+ You are a helpful assistant tasked with answering questions using a set of tools.
194
+ Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
195
+ FINAL ANSWER: [YOUR FINAL ANSWER].
196
+ 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.
197
+ Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
198
+ """
 
 
 
 
 
 
 
199
 
200
  model = InferenceClientModel(
201
  model_id="deepseek/deepseek-r1:free", # Correct OpenRouter model ID