WeByT3 commited on
Commit
4ddfcdd
·
verified ·
1 Parent(s): d0f885b

Update agent.py

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