eugpal4 commited on
Commit
19e7400
·
verified ·
1 Parent(s): 09920f3

Update tools.py

Browse files

corrected indentation

Files changed (1) hide show
  1. tools.py +10 -10
tools.py CHANGED
@@ -37,19 +37,19 @@ def summarize_text(text: str, max_length: int = 150) -> str:
37
  @tool
38
  def duckduckgo_search(query: str, max_results: int = 3) -> str:
39
  def duckduckgo_search(query: str, max_results: int = 3) -> str:
40
- """
41
- Performs a search on DuckDuckGo and returns the results.
42
 
43
- Args:
44
- query (str): The search query.
45
- max_results (int, optional): Maximum number of results to return. Defaults to 3.
46
 
47
- Returns:
48
- str: A formatted string containing the search results.
49
 
50
- Raises:
51
- [Insert any exceptions the function might raise, if applicable]
52
- """
53
 
54
  results_texts = []
55
  retry_attempts = 2
 
37
  @tool
38
  def duckduckgo_search(query: str, max_results: int = 3) -> str:
39
  def duckduckgo_search(query: str, max_results: int = 3) -> str:
40
+ """
41
+ Performs a search on DuckDuckGo and returns the results.
42
 
43
+ Args:
44
+ query (str): The search query.
45
+ max_results (int, optional): Maximum number of results to return. Defaults to 3.
46
 
47
+ Returns:
48
+ str: A formatted string containing the search results.
49
 
50
+ Raises:
51
+ [Insert any exceptions the function might raise, if applicable]
52
+ """
53
 
54
  results_texts = []
55
  retry_attempts = 2