Skip to content

csv_tools.py not working #3151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrprohack opened this issue May 10, 2025 · 14 comments
Open

csv_tools.py not working #3151

mrprohack opened this issue May 10, 2025 · 14 comments
Labels
bug Something isn't working

Comments

@mrprohack
Copy link

Description

(agno) ➜ tools git:(main) ✗ python csv_tools.py
Rank,Title,Genre,Description,Director,Actors,Year,Runtime (Minutes),Rating,Votes,Revenue (Millions),Metascore
▰▱▱▱▱▱▱ Thinking...
┏━ Message ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ What is the average rating of movies? ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Traceback (most recent call last):
File "/root/git/agno/cookbook/tools/csv_tools.py", line 28, in
agent.print_response("What is the average rating of movies?", markdown=True)
File "/root/git/agno/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 4725, in print_response
run_response = self.run(
^^^^^^^^^
File "/root/git/agno/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 1174, in run
return next(resp)
^^^^^^^^^^
File "/root/git/agno/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 605, in _run
self.update_model(async_mode=False, user_id=user_id, session_id=session_id)
File "/root/git/agno/.venv/lib/python3.12/site-packages/agno/agent/agent.py", line 2094, in update_model
self.model.response_format = None
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'response_format'
(agno) ➜ tools git:(main) ✗
(agno) ➜ tools git:(main) ✗

@mrprohack mrprohack added the bug Something isn't working label May 10, 2025
@dirkbrnd
Copy link
Contributor

@mrprohack what version of agno do you have? I just ran on latest with your prompt and it worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

15 participants
@mrprohack @dirkbrnd and others