VOOZH about

URL: https://www.analyticsvidhya.com/blog/2025/03/agno-framework/

⇱ How to Build MultiModal AI Agents Using Agno Framework?


India's Most Futuristic AI Conference Is Back – Bigger, Sharper, Bolder

  • d
  • :
  • h
  • :
  • m
  • :
  • s

Agno Framework: A Lightweight Library for Building Multimodal Agents

Pankaj Singh Last Updated : 24 Mar, 2025
6 min read

While working on Agentic AI, developers often find themselves navigating the trade-offs between speed, flexibility, and resource efficiency. I have been exploring the Agentic AI framework and came across Agno (earlier it was Phi-data). Agno is a lightweight framework for building multi-modal Agents. They are claiming to be ~10,000x faster than LangGraph and ~50x less memory than LangGraph. Sound intriguing right?

Agno and LangGraph—offer very different experiences. After going hands-on with Agno and comparing its performance and architecture to LangGraph, here’s a breakdown of how they differ, where each one shines, and what Agno brings to the table.

TL;DR

  • Building TriSage and Marketing Analyst Agent
  • Use Agno if you want speed, low memory use, multimodal capabilities, and flexibility with models/tools.
  • Use LangGraph if you prefer flow-based logic, or structured execution paths, or are already tied into LangChain’s ecosystem.

The Agno: What it Offers?

Agno is designed with a laser focus on performance and minimalism. At its core, Agno is an open-source, model-agnostic agent framework built for multimodal tasks—meaning it handles text, images, audio, and video natively. What makes it unique is how light and fast it is under the hood, even when orchestrating large numbers of agents with added complexity like memory, tools, and vector stores.

Key strengths that stand out:

  • Blazing Instantiation Speed: Agent creation in Agno clocks in at about 2μs per agent, which is ~10,000x faster than LangGraph.
  • Featherlight Memory Footprint: Agno agents use just ~3.75 KiB of memory on average—~50x less than LangGraph agents.
  • Multimodal Native Support: No hacks or plugins—Agno is built from the ground up to work seamlessly with various media types.
  • Model Agnostic: Agno doesn’t care if you’re using OpenAI, Claude, Gemini, or open-source LLMs. You’re not locked into a specific provider or runtime.
  • Real-Time Monitoring: Agent sessions and performance can be observed live via Agno, which makes debugging and optimization much smoother.

Hands-On with Agno: Building TriSage Agent

Using Agno feels refreshingly efficient. You can spin up entire fleets of agents that not only operate in parallel but also share memory, tools, and knowledge bases. These agents can be specialized and grouped into multi-agent teams, and the memory layer supports storing sessions and states in a persistent database.

What’s really impressive is how Agno manages complexity without sacrificing performance. It handles real-world agent orchestration—like tool chaining, RAG-based retrieval, or structured output generation—without becoming a performance bottleneck.

If you’ve worked with LangGraph or similar frameworks, you’ll immediately notice the startup lag and resource consumption that Agno avoids. This becomes a critical differentiator at scale. Let’s build the TriSage Agent.

Installing Required Libraries

!pip install -U agno
!pip install duckduckgo-search
!pip install openai
!pip install pycountry

These are shell commands to install the required Python packages:

  • agno: Core framework used to define and run AI agents.
  • duckduckgo-search: Lets agents use DuckDuckGo to search the web.
  • openai: For interfacing with OpenAI’s models like GPT-4 or GPT-3.5.

Required Imports

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.googlesearch import GoogleSearchTools
from agno.tools.dalle import DalleTools
from agno.team import Team
from textwrap import dedent

API Key Setup

from getpass import getpass
OPENAI_KEY = getpass('Enter Open AI API Key: ')

import os
os.environ['OPENAI_API_KEY'] = OPENAI_KEY
  • getpass(): Secure way to enter your API key (so it’s not visible).
  • The key is then stored in the environment so that the agno framework can pick it up when calling OpenAI’s API.

web_agent – Searches the Web, writer_agent – Writes the Article, image_agent – Creates Visuals

web_agent = Agent(
 name="Web Agent",
 role="Search the web for information on Eiffel tower",
 model=OpenAIChat(id="o3-mini"),
 tools=[DuckDuckGoTools()],
 instructions="Give historical information",
 show_tool_calls=True,
 markdown=True,
)

writer_agent = Agent(
 name="Writer Agent",
 role="Write comprehensive article on the provided topic",
 model=OpenAIChat(id="o3-mini"),
 tools=[GoogleSearchTools()],
 instructions="Use outlines to write articles",
 show_tool_calls=True,
 markdown=True,
)

image_agent = Agent(
 model=OpenAIChat(id="gpt-4o"),
 tools=[DalleTools()],
 description=dedent("""\
 You are an experienced AI artist with expertise in various artistic styles,
 from photorealism to abstract art. You have a deep understanding of composition,
 color theory, and visual storytelling.\
 """),
 instructions=dedent("""\
 As an AI artist, follow these guidelines:
 1. Analyze the user's request carefully to understand the desired style and mood
 2. Before generating, enhance the prompt with artistic details like lighting, perspective, and atmosphere
 3. Use the `create_image` tool with detailed, well-crafted prompts
 4. Provide a brief explanation of the artistic choices made
 5. If the request is unclear, ask for clarification about style preferences

 Always aim to create visually striking and meaningful images that capture the user's vision!\
 """),
 markdown=True,
 show_tool_calls=True,
)

Combine into a Team

agent_team = Agent(
 team=[web_agent, writer_agent, image_agent],
 model=OpenAIChat(id="gpt-4o"),
 instructions=["Give historical information", "Use outlines to write articles","Generate Image"],
 show_tool_calls=True,
 markdown=True,
)

Run the Whole Thing

agent_team.print_response("Write an article on Eiffel towar and generate image", stream=True)

Output

👁 Output

Continued Output

👁 Output

Continued Output

👁 Output
I have created a realistic image of the Eiffel Tower. The image captures the
tower's full height and design, ┃
┃ beautifully highlighted by the late afternoon sun. You can view it by
clicking here.

Image Output

👁 Image Output

Hands-On with Agno: Building Market Analyst Agent

This Market Analyst Agent is a team-based system using Agno, combining a Web Agent for real-time info via DuckDuckGo and a Finance Agent for financial data via Yahoo Finance. Powered by OpenAI models, it delivers market insights and AI company performance using tables, markdown, and source-backed content for clarity, depth, and transparency.

from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
from agno.team import Team

web_agent = Agent(
 name="Web Agent",
 role="Search the web for information",
 model=OpenAIChat(id="o3-mini"),
 tools=[DuckDuckGoTools()],
 instructions="Always include sources",
 show_tool_calls=True,
 markdown=True,
)

finance_agent = Agent(
 name="Finance Agent",
 role="Get financial data",
 model=OpenAIChat(id="o3-mini"),
 tools=[YFinanceTools(stock_price=True, analyst_recommendations=True, company_info=True)],
 instructions="Use tables to display data",
 show_tool_calls=True,
 markdown=True,
)

agent_team = Agent(
 team=[web_agent, finance_agent],
 model=OpenAIChat(id="gpt-4o"),
 instructions=["Always include sources", "Use tables to display data"],
 show_tool_calls=True,
 markdown=True,
)

agent_team.print_response("What's the market outlook and financial performance of top AI companies of the world?", stream=True)

Output

👁 Output

Agno vs LangGraph: Performance Showdown

Let’s get into specifics and it is all included in the official documentation of Agno:

MetricAgnoLangGraphFactor
Agent Instantiation Time~2μs~20ms~10,000x faster
Memory Usage per Agent~3.75 KiB~137 KiB~50x lighter
  • The performance testing was done on an Apple M4 MacBook Pro using Python’s tracemalloc for memory profiling.
  • Agno measured the average instantiation and memory usage over 1000 runs, isolating the Agent code to get a clean delta.

This kind of speed and memory efficiency isn’t just about numbers—it’s the key to scalability. In real-world agent deployments, where thousands of agents may need to spin up concurrently, every millisecond and kilobyte matters.

LangGraph, while powerful and more structured for certain flow-based applications, tends to struggle under this kind of load unless heavily optimized. That might not be an issue for low-scale apps, but it becomes expensive fast when running production-scale agents.

So… Is Agno Better Than LangGraph?

Not necessarily. It depends on what you’re building:

  • If you’re working on flow-based agent logic (think: directed graphs of steps with high-level control), LangGraph might offer a more expressive structure.
  • But if you need ultra-fast, low-footprint, multimodal agent execution, especially in high-concurrency or dynamic environments, Agno wins by a mile.

Agno clearly favours speed and system-level efficiency, whereas LangGraph leans into structured orchestration and reliability. That said, Agno’s developers themselves acknowledge that accuracy and reliability benchmarks are just as important—and they’re currently in the works. Until those are out, we can’t conclude correctness or resilience under edge cases.

Also read: Smolagents vs LangGraph: A Comprehensive Comparison of AI Agent Frameworks

Conclusion

From a hands-on perspective, Agno feels ready for real workloads, especially for teams building agentic systems at scale. It’s real-time performance monitoring, support for structured output, and ability to plug in memory + vector knowledge make it a compelling platform for building robust applications quickly.

LangGraph isn’t out of the race—its strength lies in clear, flow-oriented control logic. But if you’re hitting scaling walls or need to run thousands of agents without melting your infrastructure, Agno is worth a serious look.

Hi, I am Pankaj Singh Negi - Senior Content Editor | Passionate about storytelling and crafting compelling narratives that transform ideas into impactful content. I love reading about technology revolutionizing our lifestyle.

Login to continue reading and enjoy expert-curated content.

Free Courses

Generative AI - A Way of Life

Explore Generative AI for beginners: create text and images, use top AI tools, learn practical skills, and ethics.

Getting Started with Large Language Models

Master Large Language Models (LLMs) with this course, offering clear guidance in NLP and model training made simple.

Building LLM Applications using Prompt Engineering

This free course guides you on building LLM apps, mastering prompt engineering, and developing chatbots with enterprise data.

Improving Real World RAG Systems: Key Challenges & Practical Solutions

Explore practical solutions, advanced retrieval strategies, and agentic RAG systems to improve context, relevance, and accuracy in AI-driven applications.

Microsoft Excel: Formulas & Functions

Master MS Excel for data analysis with key formulas, functions, and LookUp tools in this comprehensive course.

Responses From Readers

Himanshi Singh

Nice!

Borg Martha

This article is both informative and inspiring. This gave me clarity on the topic. I completely agree with your points.

Flagship Programs

GenAI Pinnacle Program| GenAI Pinnacle Plus Program| AI/ML BlackBelt Program| Agentic AI Pioneer Program

Free Courses

Generative AI| DeepSeek| OpenAI Agent SDK| LLM Applications using Prompt Engineering| DeepSeek from Scratch| Stability.AI| SSM & MAMBA| RAG Systems using LlamaIndex| Building LLMs for Code| Python| Microsoft Excel| Machine Learning| Deep Learning| Mastering Multimodal RAG| Introduction to Transformer Model| Bagging & Boosting| Loan Prediction| Time Series Forecasting| Tableau| Business Analytics| Vibe Coding in Windsurf| Model Deployment using FastAPI| Building Data Analyst AI Agent| Getting started with OpenAI o3-mini| Introduction to Transformers and Attention Mechanisms

Popular Categories

AI Agents| Generative AI| Prompt Engineering| Generative AI Application| News| Technical Guides| AI Tools| Interview Preparation| Research Papers| Success Stories| Quiz| Use Cases| Listicles

Generative AI Tools and Techniques

GANs| VAEs| Transformers| StyleGAN| Pix2Pix| Autoencoders| GPT| BERT| Word2Vec| LSTM| Attention Mechanisms| Diffusion Models| LLMs| SLMs| Encoder Decoder Models| Prompt Engineering| LangChain| LlamaIndex| RAG| Fine-tuning| LangChain AI Agent| Multimodal Models| RNNs| DCGAN| ProGAN| Text-to-Image Models| DDPM| Document Question Answering| Imagen| T5 (Text-to-Text Transfer Transformer)| Seq2seq Models| WaveNet| Attention Is All You Need (Transformer Architecture) | WindSurf| Cursor

Popular GenAI Models

Llama 4| Llama 3.1| GPT 4.5| GPT 4.1| GPT 4o| o3-mini| Sora| DeepSeek R1| DeepSeek V3| Janus Pro| Veo 2| Gemini 2.5 Pro| Gemini 2.0| Gemma 3| Claude Sonnet 3.7| Claude 3.5 Sonnet| Phi 4| Phi 3.5| Mistral Small 3.1| Mistral NeMo| Mistral-7b| Bedrock| Vertex AI| Qwen QwQ 32B| Qwen 2| Qwen 2.5 VL| Qwen Chat| Grok 3

AI Development Frameworks

n8n| LangChain| Agent SDK| A2A by Google| SmolAgents| LangGraph| CrewAI| Agno| LangFlow| AutoGen| LlamaIndex| Swarm| AutoGPT

Data Science Tools and Techniques

Python| R| SQL| Jupyter Notebooks| TensorFlow| Scikit-learn| PyTorch| Tableau| Apache Spark| Matplotlib| Seaborn| Pandas| Hadoop| Docker| Git| Keras| Apache Kafka| AWS| NLP| Random Forest| Computer Vision| Data Visualization| Data Exploration| Big Data| Common Machine Learning Algorithms| Machine Learning| Google Data Science Agent
👁 Av Logo White

Continue your learning for FREE

Forgot your password?
👁 Av Logo White

Enter OTP sent to

Edit

Wrong OTP.

Enter the OTP

Resend OTP

Resend OTP in 45s

👁 Popup Banner
👁 AI Popup Banner