Code
cookbook/11_models/ollama/tool_use.py
Usage
Install Ollama
Follow the Ollama installation guide and run:
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?")
Install Ollama
ollama pull llama3.2:latest
Was this page helpful?