sampsong commited on
Commit
c74efe4
·
1 Parent(s): c46066c

figure why didnt trigger agent

Browse files
Files changed (1) hide show
  1. 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
- path_true="tools",
116
- path_false=END,
 
 
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