Sborole commited on
Commit
7e141b9
·
verified ·
1 Parent(s): 8df8dbc

Update tools/WebSearchTool.py

Browse files
Files changed (1) hide show
  1. tools/WebSearchTool.py +5 -1
tools/WebSearchTool.py CHANGED
@@ -7,10 +7,14 @@ class SerpApiSearchTool(Tool):
7
  description = "Use SerpAPI (Google search) to get reliable snippets."
8
 
9
  inputs = {
10
- "query": {"type": "string"}
 
 
 
11
  }
12
  output_type = "string"
13
 
 
14
  def forward(self, query: str) -> str:
15
  params = {
16
  "q": query,
 
7
  description = "Use SerpAPI (Google search) to get reliable snippets."
8
 
9
  inputs = {
10
+ "query": {
11
+ "type": "string",
12
+ "description": "The search query to look up via SerpAPI."
13
+ }
14
  }
15
  output_type = "string"
16
 
17
+
18
  def forward(self, query: str) -> str:
19
  params = {
20
  "q": query,