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

modificate istruzioni generali per l'agent

Browse files
Files changed (1) hide show
  1. agent.py +29 -8
agent.py CHANGED
@@ -27,14 +27,16 @@ GEMINI_TEMPERATURE = float(os.environ.get("GEMINI_TEMPERATURE"))
27
 
28
  TOOLS_CALL_DELAY = 1.5
29
 
30
- GENERAL_AGENT_INSTRUCTIONS = """You are a helpful assistant tasked with answering questions using a set of tools.
31
- Now, I will ask you a question. Report your thoughts, and provide your answer.
32
- Your answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
33
- 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.
34
- 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.
35
- 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.
36
- Provide only the answer, without notes, explanations or comments."""
37
-
 
 
38
  # GENERAL_AGENT_INSTRUCTIONS = """
39
  # You are a general AI assistant. Your purpose is to answer questions and complete tasks accurately and concisely.
40
  # You have access to various tools to help you gather information and perform actions.
@@ -44,6 +46,25 @@ Provide only the answer, without notes, explanations or comments."""
44
  # Do not include any conversational filler, explanations of your thought process, or pleasantries unless specifically asked.
45
  # """
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  #
48
  # Inizializza il modello e gli associa i tool
49
  #
 
27
 
28
  TOOLS_CALL_DELAY = 1.5
29
 
30
+ # V1
31
+ # GENERAL_AGENT_INSTRUCTIONS = """You are a helpful assistant tasked with answering questions using a set of tools.
32
+ # Now, I will ask you a question. Report your thoughts, and provide your answer.
33
+ # Your answer should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
34
+ # 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.
35
+ # 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.
36
+ # 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.
37
+ # Provide only the answer, without notes, explanations or comments."""
38
+
39
+ # V2
40
  # GENERAL_AGENT_INSTRUCTIONS = """
41
  # You are a general AI assistant. Your purpose is to answer questions and complete tasks accurately and concisely.
42
  # You have access to various tools to help you gather information and perform actions.
 
46
  # Do not include any conversational filler, explanations of your thought process, or pleasantries unless specifically asked.
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
70
  #