File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 33from agno .agent import Agent
44from agno .models .openai import OpenAIChat
55from agno .tools .calculator import CalculatorTools
6- from agno .tools import tool
76
8- def get_fibonacci_series (count : int = 5 ) -> int :
7+ def get_fibonacci_series (count : int = 5 ) -> str :
98 """Generate a Fibonacci series up to the specified count."""
109 if count <= 0 :
1110 return "Count must be a positive integer."
12-
11+
1312 fib_series = [0 , 1 ]
1413 for i in range (2 , count ):
1514 fib_series .append (fib_series [- 1 ] + fib_series [- 2 ])
16-
15+
1716 return json .dumps (fib_series [:count ])
1817
1918agent = Agent (
@@ -26,13 +25,13 @@ def get_fibonacci_series(count: int = 5) -> int:
2625 exponentiate = True ,
2726 is_prime = True
2827 )
29- ],
30- show_tool_calls = True ,
28+ ],
29+ show_tool_calls = True ,
3130 markdown = True
3231)
3332
3433agent .print_response ("""
3534 1. Get 10 elements of fibonacci series
3635 2. Calculate the sum of cubes of the prime numbers in the series
3736 3. Subtract 4
38- """ , stream = True )
37+ """ , stream = True )
You can’t perform that action at this time.
0 commit comments