lycaoduong commited on
Commit
748a0f6
·
1 Parent(s): 54d71cd

added docstring tool

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -35,8 +35,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  @tool
38
- def fibonacci(n: str) -> str:
39
- n = int(n)
 
 
 
40
  if n <= 0:
41
  return "Input should be a positive integer."
42
  elif n == 1:
 
35
 
36
 
37
  @tool
38
+ def fibonacci(n: int) -> str:
39
+ """A tool that returns Fibonacci numbers.
40
+ Args:
41
+ n: An integer indicating the nth Fibonacci number (e.g., 10).
42
+ """
43
  if n <= 0:
44
  return "Input should be a positive integer."
45
  elif n == 1: