WeByT3 commited on
Commit
d716044
·
verified ·
1 Parent(s): 9ce4324

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -2
agent.py CHANGED
@@ -38,7 +38,7 @@ def build_agent():
38
  - Thought: Describe your reasoning.
39
  - Action: Call a tool, using this format → Action: tool_name(input)
40
  - Observation: Describe what the tool returned.
41
- - Repeat Thought → Action → Observation as needed.
42
 
43
  When you are ready to answer, say:
44
 
@@ -47,7 +47,8 @@ def build_agent():
47
  Formatting rules for FINAL ANSWER:
48
  - If a number: no commas, no units unless explicitly asked.
49
  - If a string: no articles, no abbreviations, digits in plain text.
50
- - If a comma-separated list: apply the above rules to each element."""
 
51
  return {
52
  "messages": [{"role": "system", "content": sys_msg}] + state["messages"],
53
  "wiki_table": None
 
38
  - Thought: Describe your reasoning.
39
  - Action: Call a tool, using this format → Action: tool_name(input)
40
  - Observation: Describe what the tool returned.
41
+ - Repeat Thought → Action → Observation as needed until you are SURE you can answer.
42
 
43
  When you are ready to answer, say:
44
 
 
47
  Formatting rules for FINAL ANSWER:
48
  - If a number: no commas, no units unless explicitly asked.
49
  - If a string: no articles, no abbreviations, digits in plain text.
50
+ - If a comma-separated list: apply the above rules to each element.
51
+ - Only include the final answer, do not include any reasoning steps."""
52
  return {
53
  "messages": [{"role": "system", "content": sys_msg}] + state["messages"],
54
  "wiki_table": None