EtienneB commited on
Commit
7fe8e5c
·
1 Parent(s): eed7f48
Files changed (2) hide show
  1. agent.py +3 -3
  2. tools.py +1 -1
agent.py CHANGED
@@ -139,12 +139,12 @@ def build_graph():
139
 
140
  # --- Graph Definition ---
141
  builder = StateGraph(MessagesState)
142
- builder.add_node("retriever", retriever_node)
143
  builder.add_node("assistant", assistant)
144
  builder.add_node("tools", ToolNode(tools))
145
 
146
- builder.add_edge(START, "retriever")
147
- builder.add_edge("retriever", "assistant")
148
  builder.add_conditional_edges("assistant", tools_condition)
149
  builder.add_edge("tools", "assistant")
150
 
 
139
 
140
  # --- Graph Definition ---
141
  builder = StateGraph(MessagesState)
142
+ # builder.add_node("retriever", retriever_node)
143
  builder.add_node("assistant", assistant)
144
  builder.add_node("tools", ToolNode(tools))
145
 
146
+ builder.add_edge(START, "assistant")
147
+ # builder.add_edge("retriever", "assistant")
148
  builder.add_conditional_edges("assistant", tools_condition)
149
  builder.add_edge("tools", "assistant")
150
 
tools.py CHANGED
@@ -765,7 +765,7 @@ def reverse_sentence(text: str) -> str:
765
  """
766
  return text[::-1]
767
 
768
-
769
  def get_max_bird_species_count_from_video(url: str) -> Dict:
770
  """
771
  Downloads a YouTube video and returns the maximum number of unique bird species
 
765
  """
766
  return text[::-1]
767
 
768
+ @tool
769
  def get_max_bird_species_count_from_video(url: str) -> Dict:
770
  """
771
  Downloads a YouTube video and returns the maximum number of unique bird species