WeByT3 commited on
Commit
9402140
·
verified ·
1 Parent(s): 7e0f1a7

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -3
agent.py CHANGED
@@ -48,9 +48,9 @@ def build_agent():
48
  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.
49
  Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
50
  """
51
- context = {"role": "system", "content": sys_msg}
52
-
53
- return context + state["messages"]
54
 
55
  ## The graph
56
  builder = StateGraph(AgentState)
 
48
  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.
49
  Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
50
  """
51
+ return {
52
+ "messages": [sys_msg] + state["messages"]
53
+ }
54
 
55
  ## The graph
56
  builder = StateGraph(AgentState)