Metadata-Version: 2.5
Name: openliate
Version: 0.3.5
Summary: OpenLiate — Open Source OOP Framework for AI Agents · A Class is an Agent
Project-URL: Homepage, https://liate.dev
Project-URL: Repository, https://github.com/OpenLiate/Liate
Project-URL: Documentation, https://liate.dev
Project-URL: Issues, https://github.com/OpenLiate/Liate/issues
Author-email: OpenLiate <vinod@openliate.tech>, Vinod Hatti <vinod@openliate.tech>
License: MIT
Keywords: agent,ai-agents,aum,autonomous-agents,framework,liate,mcp,om,oop-framework,open-source,open-source-framework-for-ai-agents,openliate,sarvamai,sovereign-ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: httpx>=0.24.0
Description-Content-Type: text/markdown

<div align="center">

# Let's Try Liate
## Open Source OOP Framework for AI Agents
### A Class is an Agent

`L[LM] · I[ntegration] · A[gent] · T[ools] · E[nvironment]`

<br>

<p align="center">
  <a href="https://liate.dev"><img src="https://img.shields.io/badge/docs-liate.dev-white?labelColor=black&style=flat-square" alt="Docs"></a>
  <a href="https://github.com/OpenLiate/Liate/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-white?labelColor=black&style=flat-square" alt="License: MIT"></a>
  <a href="https://sarvam.ai"><img src="https://raw.githubusercontent.com/OpenLiate/Liate/main/assets/sarvam-badge.svg" alt="Powered by Sarvam AI Startup Program"></a>
  <a href="https://exa.ai"><img src="https://raw.githubusercontent.com/OpenLiate/Liate/main/assets/exa-badge.svg" alt="Powered by Exa.ai Startup Program"></a>
  <a href="https://codespaces.new/OpenLiate/Liate"><img src="https://img.shields.io/badge/Codespaces-1--Click_Run-white?logo=github&logoColor=white&labelColor=black&style=flat-square" alt="Open in GitHub Codespaces"></a>
  <a href="https://pypi.org/project/openliate/"><img src="https://img.shields.io/badge/pypi-v0.3.5-white?logo=pypi&logoColor=FFD43B&labelColor=black&style=flat-square" alt="PyPI: v0.3.5"></a>
  <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2Fvinodhatti%2F4e50442b9bc06000069dd0c1552ab66b%2Fraw%2Fdownloads.json&style=flat-square&labelColor=black" alt="Total Downloads">
  <img src="https://img.shields.io/badge/Python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14%20%7C%203.15-white?logo=python&logoColor=white&labelColor=black&style=flat-square" alt="Python 3.9+">
</p>

<p align="center">
  <a href="https://pypi.org/project/liate/"><img src="https://img.shields.io/badge/liate-v0.3.5-white?logo=pypi&logoColor=FFD43B&label=liate&labelColor=black&color=white&style=flat-square" alt="PyPI liate"></a>
  &nbsp;
  <a href="https://pypi.org/project/openliate/"><img src="https://img.shields.io/badge/openliate-v0.3.5-white?logo=pypi&logoColor=FFD43B&label=openliate&labelColor=black&color=white&style=flat-square" alt="PyPI openliate"></a>
</p>

<p align="center">
  <a href="#aum-architecture"><img src="https://img.shields.io/badge/Agent_Architecture-AUM_(Agent_Unified_Module)-white?labelColor=black&style=flat-square" alt="Agent Unified Module (AUM)"></a>
  &nbsp;
  <a href="#runtime-engine"><img src="https://img.shields.io/badge/Core_Runtime_Engine-OM_(Orchestration_Module)-white?labelColor=black&style=flat-square" alt="Core Runtime Engine: OM (Orchestration Module)"></a>
</p>

<br>

> **#1 Selected for Sarvam AI Startup Program 2026** <sup>IN</sup> — Sovereign Indic AI Infrastructure  
> **#2 Selected for Exa.ai Startup Program (YC S21)** — \$2,500 Search API Credits  
> **#3 Architecture Validation (NVIDIA Keynote 2026)** — 1-to-1 Mapping to Jensen Huang's 5 Elements of an Agent  
> Built by **[OpenLiate](https://github.com/OpenLiate/Liate)** — Open Source Backend Layer for AI Agents

> *"If Stripe did payments in 7 lines of code, why not AI Agents in 5 lines of code?*  
> **Class is an Agent. Agent is a Function. Function is an API.**  
> *Don't build AI agents. Integrate by parts."*

</div>

---

## [0] Installation

### #1 Direct Package
```bash
pip install liate
```

### #2 Alternative Package
```bash
pip install openliate
```

---

## [1] Quickstart: Frontier Sovereign Agent (`FrontierAgent` / `agentyaan`)

Every agent is declared natively as a Python class inheriting from `Liate`. The 5 layers map 1-to-1 to NVIDIA CEO Jensen Huang's 5 foundational agent elements:

```python
from liate import Liate

class FrontierAgent(Liate):
    # [L] Large Models: Native Routing across Sovereign & 65+ Frontier AI Models:
    # - "sarvam/sarvam-105b" (Sarvam AI Indic Foundation Model - Startup Program 2026)
    # - "sarvam/sarvam-prism" (Sarvam AI Nov 2026 Frontier Decision & System-1 LoRA Model ~44ms)
    # - "sarvam/sarvam-30b" | "sarvam/bulbul-v4" | "sarvam/saaras-v4"
    # - "gnani/prisma-v3" (Gnani AI STT 10+ Indic Languages) | "gnani/timbre-v3" (Gnani AI TTS Multilingual)
    # - "neon/gemini-2.5-pro" | "neon/gemini-2.5-flash" (Google Gemini Frontier Series)
    # - "neon/claude-3-7-sonnet" | "neon/claude-3-5-haiku" (Anthropic Frontier Series)
    # - 65+ Frontier AI Models via Neon AI Gateway with JEV System-One Heuristic Routing
    L = "sarvam/sarvam-105b"

    # [I] Integration & Memory Layer
    I = {"memory": "sessions/agentyaan"}

    # [A] Agent Harness Layer
    A = {
        "name": "agentyaan",
        "intent": "Frontier Sovereign AI Agent · Built on Liate · Selected for India's Sarvam AI Startup Program 2026",
        "maxSteps": 5
    }

    # [T] Tools & MCP Layer (Stdio uvx/npx & Remote SSE)
    T = {
        # Local Stdio MCP: Sarvam AI Indic STT, TTS & Document tools
        "sarvam_ai": {
            "command": "uvx",
            "args": ["sarvam-mcp"],
            "tools": ["*"]
        },
        # Remote Hosted MCP: Bolna AI (YC-backed Voice Agent & Telephony Orchestration)
        "bolna_voice": {
            "url": "https://mcp.bolna.ai/api/mcp",
            "headers": {
                "Authorization": "Bearer $BOLNA_API_KEY"
            },
            "tools": ["*"]
        }
    }

    # [E] Environment & Sandbox Layer
    E = {
        "SARVAM_API_KEY": "$SARVAM_API_KEY",
        "BOLNA_API_KEY": "$BOLNA_API_KEY",
        "GNANI_API_KEY": "$GNANI_API_KEY",
        "NEON_API_KEY": "$NEON_API_KEY"
    }

# Run the agent via the autonomous ReAct loop:
agent = FrontierAgent()
result = agent.run("Introduce Mission AgentYaan and explain why sovereign OOP AI agents matter for India.")
print(result.response)
```

---

## [2] The 5 Layers (L · I · A · T · E)

### #1 Industry Architecture Parity: NVIDIA Keynote 2026

In the **NVIDIA Keynote 2026**, NVIDIA CEO Jensen Huang defined the five foundational elements of an autonomous agent:  
> *"AI Factories Produce Intelligence. Agents Put Intelligence to Work... Model, Knowledge, Tools, Sandbox, Harness — These are the five elements of an agent."*

OpenLiate maps 1-to-1 to this 5-element architecture:

| 5 Elements of an Agent (NVIDIA Keynote 2026) | Liate Layer (L · I · A · T · E) | Production File | Architecture Role |
| :--- | :--- | :--- | :--- |
| **[1] Model** | **`[L]` LLM** | `src/layers/llm/model.ts` | Native provider routing for Sarvam AI & 65+ models |
| **[2] Knowledge** | **`[I]` Integration** | `src/layers/integration/knowledge.ts` | Co-located session memory & vector knowledge context |
| **[3] Harness** | **`[A]` Agent** | `src/layers/agent/harness.ts` | Autonomous ReAct reasoning loop & intent declaration |
| **[4] Tools** | **`[T]` Tools** | `src/layers/tools/mcp.ts` | Anthropic Model Context Protocol (MCP v2) stdio & SSE |
| **[5] Sandbox** | **`[E]` Environment** | `src/layers/environment/sandbox.ts` | Secrets management, API key masking & sandbox guardrails |

<br>

### #2 The 5 Layers Specification Matrix

| Layer | Component | Description |
| :--- | :--- | :--- |
| **`L`** | **LLM / Large Models** | Native provider routing for Sarvam AI (105B Reasoning, Bulbul TTS, Saaras STT), Neon AI Gateway (63+ models), and OpenAI endpoints. |
| **`I`** | **Integration & Memory** | Co-located session memory, database state persistence, and knowledge context. |
| **`A`** | **Agent Harness** | Autonomous ReAct reasoning loop, intent declaration, and step guardrails. |
| **`T`** | **Tools & Actuators** | Model Context Protocol (Anthropic MCP v2 stdio `uvx`/`npx` & HTTP/SSE transports). |
| **`E`** | **Environment & Sandbox** | Secrets management, API key masking, and security guardrails. |

---

## [3] Real Production Ecosystem Traction

| Registry | Package Distribution | Total Downloads | Telemetry Source |
| :--- | :--- | :--- | :--- |
| **PyPI** | [`openliate`](https://pypi.org/project/openliate/) | **945+** | [pypistats.org/packages/openliate](https://pypistats.org/packages/openliate) (3,401+ with mirrors) |
| **PyPI** | [`liate`](https://pypi.org/project/liate/) | **729+** | [pypistats.org/packages/liate](https://pypistats.org/packages/liate) (2,500+ with mirrors) |
| **npm** | [`openliate`](https://www.npmjs.com/package/openliate) | **1,148+** | Direct Developer CLI & Runners |
| **npm** | [`@openliate/liate`](https://www.npmjs.com/package/@openliate/liate) | **1,047+** | TypeScript SDK Imports |
| **Total** | **Combined Ecosystem** | **8,096+ Total Installs** | **Over 3,869+ Direct Human Installs (`without_mirrors`)** |

---

## [4] Links & Ecosystem

* **Website & Documentation:** [https://liate.dev](https://liate.dev)
* **GitHub Repository:** [https://github.com/OpenLiate/Liate](https://github.com/OpenLiate/Liate)
* **Developer Community:** [OpenLiate Community](https://github.com/OpenLiate/Liate/discussions)

---

## [5] License

[MIT License](https://github.com/OpenLiate/Liate/blob/main/LICENSE) © 2026 OpenLiate.

<br>

<div align="center">

**LIATE — Open Source OOP Framework for AI Agents · A Class is an Agent**

<br>

*From India, For India, Beyond India 🇮🇳 🌍*

</div>
