jaburaschi commited on
Commit
b95dbfd
·
verified ·
1 Parent(s): 8c5c24b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -33,6 +33,20 @@ 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
+ # Below is an attempt at an adding tool
37
+ @tool
38
+ def add_numbers(first_number:str, second_number:int)-> str:
39
+ """A tool that adds two numbers together
40
+ Args:
41
+ first_number: the first argument
42
+ second_number: the second argument
43
+ """
44
+
45
+ try:
46
+ return str(float(first_number) + float(second_number))
47
+ else:
48
+ return f"Error adding the two parameters '{first_number}' and '{second_number}'"
49
+
50
 
51
  final_answer = FinalAnswerTool()
52