Skip to main content
This guide provides instructions for integrating Agno AI with the Truefoundry AI Gateway.

What is Agno AI?

Agno is a powerful multi-agent AI framework designed for building AI systems with multiple agents that can work together autonomously.

Key Features of Agno AI

  • Multi-Agent Systems: Build teams of agents that work together towards a common goal, with industry-leading architecture for reasoning, collaboration, and coordination. Create deterministic, stateful workflows with pure Python for maximum flexibility and control
  • Interactive Playground: Test and interact with your AI agents through an intuitive interface featuring real-time streaming, session history, user memory, multimodal support, and comprehensive configuration options
  • Monitoring & Debugging: Monitor your agents, teams, and workflows in real-time with built-in debugging capabilities, session tracking, and detailed logs for system prompts, user messages, and tool calls

Prerequisites

Before integrating Agno AI with TrueFoundry, ensure you have:
  1. TrueFoundry Account: Create a Truefoundry account and follow the instructions in our Gateway Quick Start Guide
  2. Agno Installation: In your project directory, install Agno using pip: pip install agno #See PyPI for latest updates

Setup Process

1. Configure Environment Variables (Optional)

Set up your environment variables to connect Agno with TrueFoundry Gateway:
You will get your ‘truefoundry-api-key’, ‘truefoundry-gateway-url’ and model name directly from the unified code snippet

2. Configure Agno Agents

Create your Agno agents with TrueFoundry Gateway configuration:

Usage Examples

Basic Single Agent

Create a simple agent using the configured TrueFoundry Gateway:

Environment Variables Configuration

For persistent configuration across all Agno agents, set these environment variables:

Multi-Agent Team

Create a team of specialized agents for complex tasks:

Benefits of Using TrueFoundry Gateway with Agno AI

  1. Cost Tracking: Monitor and track costs across all your Agno AI agents and teams
  2. Security: Enhanced security with centralized API key management
  3. Access Controls: Implement fine-grained access controls for different teams and agents
  4. Rate Limiting: Prevent API quota exhaustion with intelligent rate limiting
  5. Fallback Support: Automatic failover to alternative providers when needed
  6. Analytics: Detailed analytics and monitoring for all LLM calls across your agent ecosystem
  7. Multi-Provider Support: Seamlessly switch between different model providers