alisamak commited on
Commit
89525b1
·
verified ·
1 Parent(s): 91eea70

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -2
tools.py CHANGED
@@ -106,8 +106,7 @@ def search_and_extract_number(query: str) -> str:
106
  """
107
  print(f"🛠️ search_and_extract_number called with: {query}")
108
  raw = web_search_tool.search(query)
109
- return extract_number_from_text(raw)
110
-
111
 
112
  @tool
113
  def search_duckduckgo(query: str) -> str:
 
106
  """
107
  print(f"🛠️ search_and_extract_number called with: {query}")
108
  raw = web_search_tool.search(query)
109
+ return extract_number_from_text.invoke(raw)
 
110
 
111
  @tool
112
  def search_duckduckgo(query: str) -> str: