safia-8 commited on
Commit
d7d8bd1
·
verified ·
1 Parent(s): 3b89474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -19,6 +19,20 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
19
  search=DuckDuckGoSearchTool()
20
  result=search.run(arg1, max_results=3)
21
  return result
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str:
 
19
  search=DuckDuckGoSearchTool()
20
  result=search.run(arg1, max_results=3)
21
  return result
22
+
23
+ @tool
24
+ def my_custom_tool2(arg1:str, arg2:int=3)-> str: #it's import to specify the return type
25
+ #Keep this format for the description / args / args description but feel free to modify the tool
26
+ """A tool that does nothing yet
27
+ Args:
28
+ arg1: the first argument
29
+ arg2: the second argument
30
+ """
31
+ im=image_generation_tool()
32
+ result=im.run(arg1,max_results=arg2)
33
+ return result
34
+
35
+
36
 
37
  @tool
38
  def get_current_time_in_timezone(timezone: str) -> str: