M.Natale commited on
Commit
016198f
·
1 Parent(s): 975cb18
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -17,6 +17,10 @@ tool = [
17
  youtube_tool,
18
  FinalAnswerTool()
19
  ]
 
 
 
 
20
  # --- Basic Agent Definition ---
21
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
22
  class BasicAgent:
@@ -27,7 +31,7 @@ class BasicAgent:
27
  max_steps=7,
28
  add_base_tools=False,
29
  planning_interval=4,
30
- 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."
31
  )
32
  print("BasicAgent initialized.")
33
 
 
17
  youtube_tool,
18
  FinalAnswerTool()
19
  ]
20
+
21
+ my_instructions = (
22
+ "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."
23
+ )
24
  # --- Basic Agent Definition ---
25
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
26
  class BasicAgent:
 
31
  max_steps=7,
32
  add_base_tools=False,
33
  planning_interval=4,
34
+ instructions=my_instructions
35
  )
36
  print("BasicAgent initialized.")
37