PolPC13 commited on
Commit
8ac99e1
·
1 Parent(s): 5feb24f

Renamed websearch tool and added import to app.py

Browse files
Files changed (1) hide show
  1. tools/web_search.py +1 -1
tools/web_search.py CHANGED
@@ -2,7 +2,7 @@ from typing import Any, Optional
2
  from smolagents.tools import Tool
3
  import ddgs
4
 
5
- class ddgs(Tool):
6
  name = "web_search"
7
  description = "Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."
8
  inputs = {'query': {'type': 'string', 'description': 'The search query to perform.'}}
 
2
  from smolagents.tools import Tool
3
  import ddgs
4
 
5
+ class web_search(Tool):
6
  name = "web_search"
7
  description = "Performs a duckduckgo web search based on your query (think a Google search) then returns the top search results."
8
  inputs = {'query': {'type': 'string', 'description': 'The search query to perform.'}}