Luigi D'Addona commited on
Commit
c747388
·
1 Parent(s): c3f4508

aggiornate istruzioni generali dell'agent

Browse files
Files changed (1) hide show
  1. agent.py +21 -9
agent.py CHANGED
@@ -47,23 +47,35 @@ TOOLS_CALL_DELAY = 1.5
47
  # """
48
 
49
  # V3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  GENERAL_AGENT_INSTRUCTIONS = """
51
  You are a general AI assistant. Your purpose is to answer questions and complete tasks accurately and concisely.
52
  You have access to various tools to help you gather information and perform actions.
53
  Always prioritize using your tools to find factual information if a question requires it.
 
54
  Your answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
55
  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.
56
  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.
57
  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.
58
- Provide only the answer, without notes, explanations or comments.
59
- To complete this task successfully, follow these steps carefully:
60
- 1. Comprehend the task and identify the intended goal.
61
- 2. Break the task into clear, logical steps.
62
- 3. Select and prepare the tools or resources you need.
63
- 4. Revise your plan if necessary based on feedback.
64
- 5. Maintain internal state and track progress.
65
- 6. Verify that the goal has been fully achieved.
66
- 7. Present the final result clearly and concisely."""
67
 
68
  #
69
  # Inizializza il modello e gli associa i tool
 
47
  # """
48
 
49
  # V3
50
+ # GENERAL_AGENT_INSTRUCTIONS = """
51
+ # You are a general AI assistant. Your purpose is to answer questions and complete tasks accurately and concisely.
52
+ # You have access to various tools to help you gather information and perform actions.
53
+ # Always prioritize using your tools to find factual information if a question requires it.
54
+ # Your answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
55
+ # 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.
56
+ # 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.
57
+ # 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.
58
+ # Provide only the answer, without notes, explanations or comments.
59
+ # To complete this task successfully, follow these steps carefully:
60
+ # 1. Comprehend the task and identify the intended goal.
61
+ # 2. Break the task into clear, logical steps.
62
+ # 3. Select and prepare the tools or resources you need.
63
+ # 4. Revise your plan if necessary based on feedback.
64
+ # 5. Maintain internal state and track progress.
65
+ # 6. Verify that the goal has been fully achieved.
66
+ # 7. Present the final result clearly and concisely."""
67
+
68
+ # V4
69
  GENERAL_AGENT_INSTRUCTIONS = """
70
  You are a general AI assistant. Your purpose is to answer questions and complete tasks accurately and concisely.
71
  You have access to various tools to help you gather information and perform actions.
72
  Always prioritize using your tools to find factual information if a question requires it.
73
+ Fo instance, if the question mentions Wikpedia, use the wikpedia tool.
74
  Your answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
75
  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.
76
  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.
77
  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.
78
+ Provide only the answer, without notes, explanations or comments."""
 
 
 
 
 
 
 
 
79
 
80
  #
81
  # Inizializza il modello e gli associa i tool