Skip to main content
Article·agno.com
agent-frameworklightweightmulti-modalreasoningAI agents

Agno

Agno is a lightweight framework for building multi-modal AI agents. It simplifies agent creation and tool integration with a clean, easy-to-use API, focusing on memory, knowledge, and reasoning capabilities.

beginner30 min6 steps
The play
  1. Explore Agno's Core Concepts
    Visit the Agno documentation to understand the fundamental concepts like memory modules, knowledge bases, and reasoning engines.
  2. Set Up Your Environment
    Install Agno using pip. Ensure you have Python 3.8+ installed.
  3. Create a Simple Agent
    Instantiate a basic agent with default configurations.
  4. Add a Memory Module
    Attach a memory module to your agent for storing and retrieving information.
  5. Define a Tool
    Create a simple tool that the agent can use, such as a function to get the current time.
  6. Interact with the Agent
    Send a query to the agent and observe its response. The agent will use the available tools and memory to provide an answer.
Starter code
from agno import Agent
from agno.memory import InMemoryMemory
import datetime

def get_current_time():
    return datetime.datetime.now().isoformat()

agent = Agent()
memory = InMemoryMemory()
agent.memory = memory
agent.register_tool(get_current_time, 'get_current_time')

response = agent.query("What is the current time?")
print(response)
Source
Agno — Action Pack