Conny89 commited on
Commit
6a845d3
·
verified ·
1 Parent(s): ae7a494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -33,6 +33,18 @@ 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 get_reverse_str(word: str) -> str:
38
+ """
39
+ A tool that returns a input word reversed
40
+ Args:
41
+ word (str): A string containing a word
42
+ Returns:
43
+ word2 (str): The input word reversed
44
+ """
45
+ word2 = word[::-1]
46
+ return word2
47
+
48
 
49
  final_answer = FinalAnswerTool()
50