Carcar4 commited on
Commit
f424e83
·
verified ·
1 Parent(s): 5a7e6ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -33,6 +33,22 @@ 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
  final_answer = FinalAnswerTool()
38
 
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
+ @tool
37
+ def DuckDuckGoSearchTool(*args, max_results = 10, **kwargs)
38
+ """A tool that...
39
+ Args:
40
+
41
+
42
+
43
+ """
44
+
45
+ try:
46
+
47
+
48
+ except Exceiption as e:
49
+ return f"Error search with duckduck go search '{search_term}' : {str(e)}"
50
+
51
+
52
 
53
  final_answer = FinalAnswerTool()
54