naman1102 commited on
Commit
8e0d47b
·
1 Parent(s): e168d85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def respond_to_input(user_input: str) -> str:
130
  "tool_result": None
131
  }
132
  # Use .run(initial_state, user_input) in v0.3.x
133
- final_state = compiled_graph.run(initial_state, user_input)
134
  # The “final” on END means agent_out has no more tool calls and finished reasoning
135
  # We return the last assistant message from state["messages"]:
136
  return final_state["messages"][-1].replace("ASSISTANT: ", "")
 
130
  "tool_result": None
131
  }
132
  # Use .run(initial_state, user_input) in v0.3.x
133
+ final_state = compiled_graph.invoke(initial_state, user_input)
134
  # The “final” on END means agent_out has no more tool calls and finished reasoning
135
  # We return the last assistant message from state["messages"]:
136
  return final_state["messages"][-1].replace("ASSISTANT: ", "")