Skip to main content
The Lyzr ADK (Agent Development Kit) is a Python library for building, deploying, and managing AI agents. It provides a simple, intuitive interface to create agents with features like RAG, memory, tools, and responsible AI guardrails.

Installation

Install the ADK using pip:

Quick Start

Authentication

The ADK requires an API key for authentication.

Getting Your API Key

  1. Sign in to Lyzr Studio
  2. Go to your Account page
  3. Copy your API key
Keep your API key secure. Never commit it to version control or share it publicly.

Providing the API Key

You can provide the API key in three ways:

Direct Parameter

Environment Variable

.env File

Create a .env file in your project root:

Key Concepts

Studio

The Studio class is the main entry point. It manages connections and provides methods to create and manage all resources.

Agents

Agents are AI-powered entities that can understand and respond to messages. Each agent has a provider (LLM), role, goal, and instructions.

Knowledge Bases

Knowledge bases enable RAG (Retrieval Augmented Generation) by storing and querying documents.

Memory

Memory allows agents to maintain conversation context across sessions.

Tools

Tools let agents execute Python functions to perform actions.

Contexts

Contexts provide background information to agents as key-value pairs.

RAI Guardrails

Responsible AI policies provide safety features like toxicity detection, PII handling, and content filtering.

Supported Providers

The ADK supports multiple LLM providers:

Context Manager

The ADK supports context manager pattern for automatic cleanup:

Next Steps

Studio

Learn about the Studio class and initialization options

Agents

Create and manage AI agents

Knowledge Bases

Build RAG-powered agents with document retrieval

Providers

See all supported LLM providers and models