Skip to main content

Production-grade multiservice Agent Development Kit

Project description

🤖 LiteLLM ADK (Agent Development Kit)

License: MIT Powered by LiteLLM

A production-grade, highly flexible multiservice framework for building AI agents. Swap models, API keys, and configurations dynamically while maintaining a robust structure for tool usage, complex memory persistence, and human oversight.


🌟 Key Features

  • 🔌 Model Agnostic: Native support for 100+ LLMs (OpenAI, Anthropic, OCI Grok-3, Llama) via LiteLLM.
  • 📊 Database Intelligence: Built-in DatabaseAgent (NL2SQL) with adapters for MySQL, PostgreSQL, and MongoDB.
  • 🧠 Advanced Memory: Pluggable persistence via local JSON, MongoDB, or Vector stores (Chroma, PGVector).
  • 🛡️ Human-in-the-Loop: Integrated PolicyEngine and ApprovalManager for safe tool execution with audit trails.
  • ⚡ Modern Async/Streaming: First-class support for ainvoke and event-based streaming (astream).
  • 🔍 Observability: Structured logging and token tracking out of the box.

🚀 Quick Start

1. Installation

pip install litellm-adk

2. Basic Agent with Tools

import asyncio
from litellm_adk import LiteLLMAgent, tool, FileMemory

# Define a tool with zero boilerplate
@tool
def get_stock_price(symbol: str):
    """Fetches the current stock price."""
    return {"symbol": symbol, "price": 150.0}

async def main():
    # Initialize with persistent file memory
    agent = LiteLLMAgent(
        model="oci/xai.grok-3",
        tools=[get_stock_price],
        memory=FileMemory("history.json")
    )
    
    response = await agent.ainvoke("What is the price of AAPL?")
    print(f"Agent: {response}")
    await agent.aclose()

if __name__ == "__main__":
    asyncio.run(main())

📊 High-Performance Database Agents

The ADK specializes in NL2SQL via the DatabaseAgent. It supports "Blind Summarization" for security—allowing the agent to talk about data without leaking PII into model logs.

from litellm_adk import DatabaseAgent

agent = DatabaseAgent(
    db_url="mysql+pymysql://user:pass@localhost/analytics",
    model="gpt-4o",
    return_direct=True # Privacy: Summary to LLM, full data to your UI
)

📖 Documentation

Dive deeper into the components:


🏗️ Project Structure

  • core/: Abstract base classes (Agent, Memory, Adapter).
  • integrations/: Specific implementations (MySQL, MongoDB, ChromaDB).
  • session/: State management for multi-user chat.
  • observability/: Logging and telemetry.

📜 License

MIT © 2026 Aarumugapandi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litellm_adk-0.2.3.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

litellm_adk-0.2.3-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file litellm_adk-0.2.3.tar.gz.

File metadata

  • Download URL: litellm_adk-0.2.3.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for litellm_adk-0.2.3.tar.gz
Algorithm Hash digest
SHA256 acc37624612affd051ed6444af710c6386bce2a2deb3a561652d6101a948c14b
MD5 3174b572ad2267ff3a439b9fa343ae6c
BLAKE2b-256 b1cf03a49599ce0dafd3cf431a7598cbf223c90b206294d65160e5a719fe548a

See more details on using hashes here.

File details

Details for the file litellm_adk-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: litellm_adk-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for litellm_adk-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 64af0b8e2763ef8640239a671551a132f8edf12f341ba79b691d2ecc027fb764
MD5 069cfcde85c66260e428708d18353368
BLAKE2b-256 81a96c8de387f0f8ba7dc7497e0e79ced0068d41c2fef25bb1033e10ee8aeebb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page