funcky commited on
Commit
55dd921
·
verified ·
1 Parent(s): 23d58d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -16,7 +16,15 @@ def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
- return "What magic will you build ?"
 
 
 
 
 
 
 
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
+ try:
20
+ user_name=arg1
21
+ user_age=arg2
22
+ return f"Your name is {user_name} and you have {user_age} years old."
23
+ except Exception as e:
24
+ return f"Error fetching values '{arg1}' '{arg2}': {str(e)}"
25
+
26
+
27
+ # return "What magic will you build ?"
28
 
29
  @tool
30
  def get_current_time_in_timezone(timezone: str) -> str: