from agno.agent import Agent from agno.models.ollama import Ollama from agno.tools.hackernews import HackerNewsTools agent = Agent( model=Ollama(id="llama3.2:latest"), tools=[HackerNewsTools()], markdown=True, ) agent.print_response("Whats happening in France?")
Set up your virtual environment
uv venv --python 3.12 source .venv/bin/activate
Install Ollama
ollama pull llama3.2:latest
Install dependencies
uv pip install -U ollama agno
Run Agent
python cookbook/11_models/ollama/tool_use.py
Was this page helpful?