The content seems strange, or rather, it looks like the query isn’t being passed…
There are several implementations of search tools, but if it’s only happening with one of them, the search engine specifications may have changed and the library isn’t compatible.
opened 08:56PM - 26 May 25 UTC
closed 07:27AM - 27 May 25 UTC
bug
**Describe the bug**
The example about web search from the Guided Tour does not … work. I have internet access.
**Code to reproduce the error**
> from smolagents import WebSearchTool
> search_tool = WebSearchTool()
> print(search_tool("Who is the president of Russia?"))
**Error logs (if any)**
> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "env_home/lib/python3.10/site-packages/smolagents/tools.py", line 205, in __call__
outputs = self.forward(*args, **kwargs)
File "env_home/lib/python3.10/site-packages/smolagents/default_tools.py", line 227, in forward
raise Exception("No results found! Try a less restrictive/shorter query.")
Exception: No results found! Try a less restrictive/shorter query.
**Packages version:**
smolagents==1.16.1
1 Like