riskjuggler commited on
Commit
39d4e91
·
verified ·
1 Parent(s): 4851e9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -33,6 +33,15 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
 
 
 
 
 
 
 
 
 
36
 
37
  @tool
38
  def mirror_user(happy: str) -> str:
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
+ # Web search tool using DuckDuckGo
37
+ @tool
38
+ def duckduckgo_web_search(query: str) -> list:
39
+ """A tool that performs a web search using DuckDuckGo and returns relevant results.
40
+ Args:
41
+ query: The search term or question to look up.
42
+ Returns:
43
+ A list of search results containing URLs and descriptions.
44
+ """
45
 
46
  @tool
47
  def mirror_user(happy: str) -> str: