Spaces:
Sleeping
Sleeping
figure why didnt trigger agent
Browse files- Agents/agent.py +4 -2
Agents/agent.py
CHANGED
|
@@ -112,8 +112,10 @@ def build_graph(provider: str="groq"):
|
|
| 112 |
builder.add_conditional_edges(
|
| 113 |
"assistant",
|
| 114 |
tools_condition,
|
| 115 |
-
|
| 116 |
-
|
|
|
|
|
|
|
| 117 |
)
|
| 118 |
builder.add_edge("tools","assistant")
|
| 119 |
|
|
|
|
| 112 |
builder.add_conditional_edges(
|
| 113 |
"assistant",
|
| 114 |
tools_condition,
|
| 115 |
+
path_map={
|
| 116 |
+
True: "tools",
|
| 117 |
+
False: END
|
| 118 |
+
}
|
| 119 |
)
|
| 120 |
builder.add_edge("tools","assistant")
|
| 121 |
|