ORromu commited on
Commit
8c0aaf4
·
verified ·
1 Parent(s): 5d9bb86

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -40,7 +40,7 @@ def simple_graph():
40
  ## Defining our nodes
41
  def assistant(state: MessagesState):
42
  """Assistant node"""
43
- return {"messages": [sys_msg] + [chat_with_tools.invoke(state["messages"])]}
44
 
45
  # Build graph / nodes
46
  builder = StateGraph(MessagesState)
 
40
  ## Defining our nodes
41
  def assistant(state: MessagesState):
42
  """Assistant node"""
43
+ return {"messages": [state["messages"]] + [chat_with_tools.invoke(state["messages"])]}
44
 
45
  # Build graph / nodes
46
  builder = StateGraph(MessagesState)