WeByT3 commited on
Commit
f5e9cf5
·
verified ·
1 Parent(s): 30aa862

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +7 -1
agent.py CHANGED
@@ -20,7 +20,13 @@ def build_agent():
20
 
21
  def enhancer(state: MessagesState):
22
  sys_msg = """
23
- You are a helpful assistant tasked with answering questions using a set of tools.
 
 
 
 
 
 
24
  Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
25
  FINAL ANSWER: [YOUR FINAL ANSWER].
26
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
 
20
 
21
  def enhancer(state: MessagesState):
22
  sys_msg = """
23
+ You are a helpful assistant tasked with answering questions using a set of tools. You can reason through problems and take actions using available tools to solve complex tasks.
24
+ Follow this format strictly:
25
+ Message: {user question}
26
+ Thought: Describe your reasoning about the question.
27
+ Action: Call one of the available tools with a specific input.
28
+ Observation: Note what was returned from the tool.
29
+ Repeat the Thought → Action → Observation steps as many times as necessary until you have enough information to answer the original question.
30
  Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
31
  FINAL ANSWER: [YOUR FINAL ANSWER].
32
  YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.