Esta página se muestra en inglés. Una traducción al español está en curso.
PromptsApr 7, 2026·2 min de lectura

Agno — Lightweight AI Agent Framework for Python

Build AI agents in 5 lines of Python. Agno provides model-agnostic agents with tools, memory, knowledge bases, and team coordination at 10x less overhead.

Listo para agents

Instalación con revisión previa

Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.

Needs Confirmation · 64/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Prompt
Instalación
Single
Confianza
Confianza: Community
Entrada
Agno — Lightweight AI Agent Framework for Python
Comando con revisión previa
npx -y tokrepo@latest install 2bed99e8-77af-4998-b5cd-756b0a588d00 --target codex

Primero dry-run, confirma las escrituras y luego ejecuta este comando.

TL;DR
Lightweight Python framework for model-agnostic AI agents with tools, memory, knowledge bases, and team coordination at minimal overhead.
§01

What it is

Agno is a lightweight Python framework for building AI agents. It provides model-agnostic agents with tools, memory, knowledge bases, and team coordination capabilities. Agno emphasizes simplicity: you can build a functional agent in as few as 5 lines of Python.

Agno targets developers who want agent capabilities without the complexity of heavier frameworks. It supports OpenAI, Anthropic, Google, Groq, and local models through a unified interface.

§02

How it saves time or tokens

Agno's minimal API means less boilerplate code and faster iteration. The framework handles tool execution, memory management, and model communication with sensible defaults. You focus on defining tools and prompts rather than orchestration plumbing.

The team coordination feature lets you compose specialized agents into collaborative groups, each optimized for specific tasks, reducing the token cost of a single monolithic agent.

Additionally, the project's well-structured documentation and active community mean developers spend less time troubleshooting integration issues. When AI coding assistants generate code for this tool, they can reference established patterns from the documentation, producing correct implementations with fewer iterations and lower token costs.

§03

How to use

  1. Install Agno:
pip install agno
  1. Create a basic agent:
from agno import Agent

agent = Agent(
    model='claude-sonnet-4-20250514',
    description='You are a helpful coding assistant',
    tools=['web_search', 'file_read']
)
result = agent.run('Find the latest Python release version')
print(result)
  1. Add knowledge bases and memory:
from agno import Agent, Knowledge, Memory

agent = Agent(
    model='claude-sonnet-4-20250514',
    knowledge=Knowledge(sources=['./docs']),
    memory=Memory(db='sqlite:///memory.db')
)
  1. Create agent teams for complex tasks.
§04

Example

from agno import Agent, Team

researcher = Agent(name='researcher', model='claude-sonnet-4-20250514', tools=['web_search'])
writer = Agent(name='writer', model='claude-sonnet-4-20250514')

team = Team(agents=[researcher, writer])
result = team.run('Research and write a summary about WebAssembly in 2026')
§05

Related on TokRepo

§06

Common pitfalls

  • Overloading a single agent with too many tools. Agents perform better with focused tool sets. Use teams to distribute capabilities across specialized agents.
  • Not persisting memory between sessions. Without a database-backed memory, conversation context is lost when the agent stops. Configure SQLite or PostgreSQL memory for persistence.
  • Ignoring model-specific limitations. Agno is model-agnostic, but each model has different tool calling capabilities. Test your agent with your target model before deploying.
  • Failing to review community discussions and changelogs before upgrading. Breaking changes in major versions can disrupt existing workflows. Pin versions in production and test upgrades in staging first.

Preguntas frecuentes

How does Agno compare to LangChain?+

Agno is deliberately minimal. A basic agent takes 5 lines versus LangChain's more verbose setup. Agno focuses on the agent abstraction; LangChain provides a broader ecosystem of chains, retrievers, and integrations. Choose Agno for simplicity, LangChain for ecosystem breadth.

Which LLM providers does Agno support?+

Agno supports OpenAI, Anthropic Claude, Google Gemini, Groq, Together AI, and local models via Ollama. The model parameter accepts provider-specific model names. Switching providers requires only changing the model string.

Can Agno agents use custom tools?+

Yes. Define custom tools as Python functions with type annotations. Agno automatically generates the tool schema for the LLM. Custom tools can access databases, APIs, file systems, or any Python library.

What is agent team coordination?+

Teams let multiple specialized agents collaborate on a task. A researcher agent searches the web, a writer agent drafts content, and a reviewer agent checks quality. The team orchestrates the workflow and passes results between agents.

Does Agno support knowledge bases?+

Yes. Agno can index documents (PDFs, markdown, text files) into a knowledge base with vector embeddings. The agent retrieves relevant documents when answering questions, implementing RAG without external infrastructure.

Referencias (3)
🙏

Fuente y agradecimientos

Created by Agno Team. Licensed under MPL-2.0.

agno-agi/agno — 20k+ stars

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados