BetsyFromR commited on
Commit
0aecdbc
·
verified ·
1 Parent(s): 6c9620d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -18
app.py CHANGED
@@ -18,25 +18,19 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
18
  """
19
  return "What magic will you build ?"
20
 
21
- @tool
22
- def web_search(query:str)-> str:
23
- """A tool that performs web searches.
24
- Args:
25
- query: search query
26
- """
27
- search = DuckDuckGoSearchRun()
28
- result = search.run(query)
29
- return result
30
 
31
- @tool
32
- def search(query:str)-> str:
33
- """A tool that performs search in internet.
34
- Args:
35
- query: search query
36
- """
37
- search = DuckDuckGoSearchRun()
38
- result = search.run(query)
39
- return result
40
 
41
  @tool
42
  def get_current_time_in_timezone(timezone: str) -> str:
 
18
  """
19
  return "What magic will you build ?"
20
 
21
+ # @tool
22
+ # def web_search(query:str)-> str:
23
+ # """A tool that performs web searches.
24
+ # Args:
25
+ # query: search query
26
+ # """
27
+ # search = DuckDuckGoSearchTool()
28
+ # result = search.forward(query)
29
+ # return result
30
 
31
+ search = DuckDuckGoSearchTool()
32
+ web_search = DuckDuckGoSearchTool()
33
+ # visit_webpage = VisitWebpageTool()
 
 
 
 
 
 
34
 
35
  @tool
36
  def get_current_time_in_timezone(timezone: str) -> str: