avfranco commited on
Commit
62e00df
·
1 Parent(s): 325eaa8

final assignment gaia agent tools submission enabled system prompt

Browse files
Files changed (1) hide show
  1. agents/gaia.py +2 -0
agents/gaia.py CHANGED
@@ -26,6 +26,8 @@ class GaiaAgent:
26
  tools=[self.search_tool],
27
  )
28
 
 
 
29
  self.questions_data = fetch_questions(self.questions_url)
30
 
31
  def get_questions(self):
 
26
  tools=[self.search_tool],
27
  )
28
 
29
+ self.agent.prompt_templates["system_prompt"] += "You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. 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."
30
+
31
  self.questions_data = fetch_questions(self.questions_url)
32
 
33
  def get_questions(self):