naman1102 commited on
Commit
36b6dba
·
1 Parent(s): 769369c

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +7 -0
tools.py CHANGED
@@ -3,6 +3,13 @@ from langchain_community.tools import DuckDuckGoSearchRun
3
  import pandas as pd
4
  @tool
5
  def web_search(query: str) -> str:
 
 
 
 
 
 
 
6
  ddg = DuckDuckGoSearchRun()
7
  return ddg.run(query)
8
 
 
3
  import pandas as pd
4
  @tool
5
  def web_search(query: str) -> str:
6
+ """
7
+ Search the web for information.
8
+ Args:
9
+ query: The query to search the web for.
10
+ Returns:
11
+ The search results.
12
+ """
13
  ddg = DuckDuckGoSearchRun()
14
  return ddg.run(query)
15