Isaacgv commited on
Commit
3810434
·
verified ·
1 Parent(s): 6401544

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -163,7 +163,7 @@ def build_graph(provider: str = "huggingface"):
163
  builder.add_node("assistant", assistant)
164
  builder.add_node("tools", ToolNode(tools))
165
 
166
- builder.add_edge("assistant")
167
  builder.add_conditional_edges(
168
  "assistant",
169
  tools_condition,
 
163
  builder.add_node("assistant", assistant)
164
  builder.add_node("tools", ToolNode(tools))
165
 
166
+ builder.add_edge(START, "assistant")
167
  builder.add_conditional_edges(
168
  "assistant",
169
  tools_condition,