Johnsonin commited on
Commit
9f894ba
·
verified ·
1 Parent(s): c43df58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -34,11 +34,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
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()
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
+ def add_nums(a: int, b: int) -> int:
38
+ """A tool that takes two integers as parameters and returns their sum."""
39
+ return int(a) + int(b)
 
 
40
 
41
 
42
  final_answer = FinalAnswerTool()