Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,12 +33,12 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
33 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
34 |
@tool
|
35 |
def get_search_result(quer:str)->str:
|
36 |
-
|
37 |
-
|
38 |
quer:A String representing a valid set of characters to search .(e.g.,'what is a swat team?')
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
|
43 |
|
44 |
# Initialize the final answer tool
|
|
|
33 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
34 |
@tool
|
35 |
def get_search_result(quer:str)->str:
|
36 |
+
"""A tool that fetches the search result upon giving the query.
|
37 |
+
Args:
|
38 |
quer:A String representing a valid set of characters to search .(e.g.,'what is a swat team?')
|
39 |
+
"""
|
40 |
+
duckduckgotool=DuckDuckGoSearchTool(quer)
|
41 |
+
return duckduckgotool
|
42 |
|
43 |
|
44 |
# Initialize the final answer tool
|