Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ class BasicAgent:
|
|
40 |
def __init__(self):
|
41 |
workflow = StateGraph(State)
|
42 |
workflow.add_node("assistant", assistant)
|
43 |
-
workflow.add_node("tools", ToolNode(
|
44 |
workflow.add_edge(START, "assistant")
|
45 |
workflow.add_conditional_edge("assistant", tools_condition)
|
46 |
workflow.add_edge("tools", "assistant")
|
|
|
40 |
def __init__(self):
|
41 |
workflow = StateGraph(State)
|
42 |
workflow.add_node("assistant", assistant)
|
43 |
+
workflow.add_node("tools", ToolNode(tools))
|
44 |
workflow.add_edge(START, "assistant")
|
45 |
workflow.add_conditional_edge("assistant", tools_condition)
|
46 |
workflow.add_edge("tools", "assistant")
|