josondev commited on
Commit
aed7b67
·
verified ·
1 Parent(s): 9c9d8fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -21,11 +21,12 @@ class BasicAgent:
21
  api_key=os.getenv("GOOGLE_API_KEY"),
22
  streaming=False # Set to True if you want streaming output
23
  )
24
- self.instructions = """You are a helpful assistant tasked with answering questions using a set of tools.
25
- Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
26
- FINAL ANSWER: [YOUR FINAL ANSWER].
27
- 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.
28
- Your answer should only start with "FINAL ANSWER: ", then follows with the answer."""
 
29
 
30
  print("BasicAgent initialized.")
31
 
 
21
  api_key=os.getenv("GOOGLE_API_KEY"),
22
  streaming=False # Set to True if you want streaming output
23
  )
24
+ self.instructions =
25
+ "You are a helpful assistant. For every question, reply with only the answer—no explanation, "
26
+ "no units, and no extra words. If the answer is a number, just return the number. "
27
+ "If it is a word or phrase, return only that. If it is a list, return a comma-separated list with no extra words. "
28
+ "Do not include any prefix, suffix, or explanation.")
29
+
30
 
31
  print("BasicAgent initialized.")
32