Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def finalize_node(state: AgentState) -> AgentState:
|
|
127 |
return {"final_answer": llm_response.content.strip()}
|
128 |
|
129 |
# ─── 4) Wrap tools in a ToolNode ───
|
130 |
-
def
|
131 |
"""
|
132 |
Inspect exactly which tool‐key was set in `state` and call that function.
|
133 |
Returns only the partial state (with the tool's outputs) so that merge_tool_output can combine it.
|
|
|
127 |
return {"final_answer": llm_response.content.strip()}
|
128 |
|
129 |
# ─── 4) Wrap tools in a ToolNode ───
|
130 |
+
def tool_node(state: AgentState) -> AgentState:
|
131 |
"""
|
132 |
Inspect exactly which tool‐key was set in `state` and call that function.
|
133 |
Returns only the partial state (with the tool's outputs) so that merge_tool_output can combine it.
|