Paperbag commited on
Commit
62cf8a8
·
1 Parent(s): 2337449
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -48,7 +48,7 @@ def answer_message(state: AgentState) -> AgentState:
48
  """
49
  response = model.invoke(prompt)
50
  # Append the model's answer to the messages list
51
- return {"messages": prompt + [response]}
52
 
53
 
54
  def build_graph():
 
48
  """
49
  response = model.invoke(prompt)
50
  # Append the model's answer to the messages list
51
+ return {"messages": messages + [response]}
52
 
53
 
54
  def build_graph():