(.mrvenv) ***@***review % /Users/**/AI/review/.mrvenv/bin/python /Users/*/AI/review/daytona_tools.py
Traceback (most recent call last):
File “/Users/***/AI/**review/daytona_tools.py”, line 4, in
from agno.tools.daytona import DaytonaTools
ModuleNotFoundError: No module named ‘agno.tools.daytona’
I got same issue for tools=[VisualizationTools(output_dir=“business_charts”)],
May I know why it happens even after installing latest agno and the corresponding libraries like daytona?
Its same for visualization.
from agno.tools.visualization import VisualizationTools
ModuleNotFoundError: No module named ‘agno.tools.visualization’
Am I doing somethign wrong? Just trying to launch the same code in example.
from textwrap import dedent
from agno.agent import Agent
from agno.tools.daytona import DaytonaTools
from agno.models.ollama import Ollama
agent = Agent(
name=“Coding Agent with Daytona tools”,
model=Ollama(id=“llama3.2”),
tools=[DaytonaTools()],
markdown=True,
instructions=dedent(“”"
You are an expert at writing and executing code. You have access to a remote, secure Daytona sandbox.
Your primary purpose is to:
1. Write clear, efficient code based on user requests
2. ALWAYS execute the code in the Daytona sandbox using run_code
3. Show the actual execution results to the user
4. Provide explanations of how the code works and what the output means
Guidelines:
- NEVER just provide code without executing it
- Execute all code using the run_code tool to show real results
- Support Python, JavaScript, and TypeScript execution
- Use file operations (create_file, read_file) when working with scripts
- Install missing packages when needed using run_shell_command
- Always show both the code AND the execution output
- Handle errors gracefully and explain any issues encountered
“”"),
show_tool_calls=True,
)
agent.print_response(
“Write JavaScript code to generate 10 random numbers between 1 and 100, sort them in ascending order, and print each number”, stream=True
)
regards
Sathish