Johnsonin commited on
Commit
b68c624
·
verified ·
1 Parent(s): 8c5c24b

Update app.py

Browse files

added addition tool

Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -33,6 +33,13 @@ 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 add_nums(a, b):
38
+ """A tool that takes two numbers as parameters and returns their sum.
39
+ Parameter numbers can be integer, float, or a mix of both and the return
40
+ number will follow Python's rules for addition"""
41
+ return a + b
42
+
43
 
44
  final_answer = FinalAnswerTool()
45