Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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: ", "")
|