ORromu commited on
Commit
e091a2c
·
verified ·
1 Parent(s): 5106f09

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -33,7 +33,7 @@ def simple_graph():
33
  ## Defining our nodes
34
  def assistant(state: MessagesState):
35
  """Assistant node"""
36
- return {"messages": [state["messages"]] + [chat_with_tools.invoke(state["messages"])]}
37
 
38
  # Build graph / nodes
39
  builder = StateGraph(MessagesState)
 
33
  ## Defining our nodes
34
  def assistant(state: MessagesState):
35
  """Assistant node"""
36
+ return {"messages": state["messages"] + [chat_with_tools.invoke(state["messages"])]}
37
 
38
  # Build graph / nodes
39
  builder = StateGraph(MessagesState)