Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadded addition tool
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 |
|