Build AI Agents with Ollama
Run open-source models locally
Available Ollama Models
| Model | ID |
|---|---|
| Llama 3.3 | llama3.3 |
| Llama 3.1 | llama3.1 |
| Qwen 2.5 | qwen2.5 |
| Mistral | mistral |
| Gemma 2 | gemma2 |
Quick start code
agent.py
from agno.agent import Agent
from agno.models.ollama import Ollama
agent = Agent(
name="My Ollama Agent",
model=Ollama(id="llama3.3"),
instructions=["You are a helpful assistant."],
markdown=True,
)
agent.print_response("Hello! What can you help me with?")Install: pip install agno Then set API_KEY