funcky commited on
Commit
dbf3143
·
verified ·
1 Parent(s): b1bbc3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -26,7 +26,10 @@ def random_tool(arg1:str)-> str: #it's import to specify the return type
26
  arg1: the first argument
27
  arg2: the second argument
28
  """
29
- return f"What magic will you build {arg1} ?"
 
 
 
30
 
31
  @tool
32
  def get_current_time_in_timezone(timezone: str) -> str:
 
26
  arg1: the first argument
27
  arg2: the second argument
28
  """
29
+ if isinstance(arg1, list):
30
+ return f"The Sum of the list is {sum(arg1)}"
31
+
32
+ return f"There is no magic there, just a bugy program?"
33
 
34
  @tool
35
  def get_current_time_in_timezone(timezone: str) -> str: