yooke commited on
Commit
8128ad5
·
verified ·
1 Parent(s): 36b0556

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -31,6 +31,18 @@ class BasicAgent:
31
  model=self.model,
32
  add_base_tools=True
33
  )
 
 
 
 
 
 
 
 
 
 
 
 
34
  #self.agent.prompt_templates['system_prompt'] = """
35
 
36
  #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.
 
31
  model=self.model,
32
  add_base_tools=True
33
  )
34
+ self.agent.prompt_templates['system_prompt'] = """
35
+ You are a general AI assistant. I will ask you a question.
36
+ Your primary goal is to answer the question directly and concisely.
37
+ If you are providing a direct answer without using any tools, your response content MUST be a single string.
38
+ Do NOT output a list or sequence as the content of your message unless it is part of a structured tool call.
39
+ Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER].
40
+ YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
41
+ 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.
42
+ 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.
43
+ 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.
44
+ """
45
+
46
  #self.agent.prompt_templates['system_prompt'] = """
47
 
48
  #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.