liate 0.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- liate/__init__.py +29 -0
- liate-0.0.0.dist-info/METADATA +238 -0
- liate-0.0.0.dist-info/RECORD +5 -0
- liate-0.0.0.dist-info/WHEEL +4 -0
- liate-0.0.0.dist-info/licenses/LICENSE +21 -0
liate/__init__.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Liate [L-I-A-T-E] — India's Open Source Runtime For AI Agents 🇮🇳
|
|
3
|
+
"Class is an Agent. Agent is an API."
|
|
4
|
+
https://liate.dev
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
__version__ = "0.0.0"
|
|
8
|
+
__author__ = "Vinod Hatti <hello@liate.dev>"
|
|
9
|
+
|
|
10
|
+
class Agent:
|
|
11
|
+
"""
|
|
12
|
+
The Universal Base Class for OOP AI Agents.
|
|
13
|
+
5 Orthogonal Layers: L (LLM), I (Integration), A (Agent), T (Tools), E (Environment).
|
|
14
|
+
"""
|
|
15
|
+
L = None
|
|
16
|
+
I = None
|
|
17
|
+
A = None
|
|
18
|
+
T = None
|
|
19
|
+
E = None
|
|
20
|
+
|
|
21
|
+
def __init__(self, **kwargs):
|
|
22
|
+
for k, v in kwargs.items():
|
|
23
|
+
setattr(self, k, v)
|
|
24
|
+
|
|
25
|
+
def run(self, prompt: str):
|
|
26
|
+
"""Execute the agent ReAct reasoning loop."""
|
|
27
|
+
return f"Liate Agent ({self.__class__.__name__}) initialized with prompt: {prompt}"
|
|
28
|
+
|
|
29
|
+
__all__ = ["Agent", "__version__"]
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: liate
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Class is an Agent. Agent is an API. The Open Source AI Agent Runtime for OOP Architecture.
|
|
5
|
+
Project-URL: Homepage, https://liate.dev
|
|
6
|
+
Project-URL: Repository, https://github.com/solovinod/liate
|
|
7
|
+
Project-URL: Documentation, https://liate.dev
|
|
8
|
+
Author-email: Vinod Hatti <hello@liate.dev>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# LIATE — L[LM] · I[ntegration] · A[gent] · T[ools] · E[nvironment]
|
|
19
|
+
|
|
20
|
+
> **Class is an Agent. Agent is an API.**
|
|
21
|
+
|
|
22
|
+
## The Open Source AI Agent Runtime for OOP Architecture. 🇮🇳
|
|
23
|
+
|
|
24
|
+
> 🎉 **Liate is selected for the Sarvam AI Startup Program.**
|
|
25
|
+
> Built solo by Vinod Hatti ([@solovinod](https://github.com/solovinod))
|
|
26
|
+
|
|
27
|
+
Run Millions of AI Agents on Edge Cloud. Free Forever. Self Host.
|
|
28
|
+
Agent is a Function on Neon — 1,000,000 free runs/month on your own account.
|
|
29
|
+
|
|
30
|
+
If your language has a class — your class can be an AI Agent.
|
|
31
|
+
**Java · JavaScript · TypeScript · Python**
|
|
32
|
+
|
|
33
|
+
<p align="center">
|
|
34
|
+
<a href="https://liate.dev"><img src="https://img.shields.io/badge/docs-liate.dev-black.svg" alt="Docs"></a>
|
|
35
|
+
<a href="https://github.com/openliate/liate/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License: MIT"></a>
|
|
36
|
+
<a href="https://sarvam.ai"><img src="https://img.shields.io/badge/powered%20by-Sarvam%20AI-orange" alt="Powered by Sarvam AI"></a>
|
|
37
|
+
<img src="https://img.shields.io/badge/version-0.0.0-blue" alt="v0.0.0">
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<p align="center">
|
|
41
|
+
<strong>Run Locally</strong><br><br>
|
|
42
|
+
<a href="https://bun.sh"><img src="https://img.shields.io/badge/Bun-FBF0DF?logo=bun&logoColor=black" alt="Bun"></a>
|
|
43
|
+
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-339933?logo=node.js&logoColor=white" alt="Node.js"></a>
|
|
44
|
+
<a href="https://deno.com"><img src="https://img.shields.io/badge/Deno-000000?logo=deno&logoColor=white" alt="Deno"></a>
|
|
45
|
+
</p>
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<strong>Deploy Free — 1M Agent Runs/Month (BYOC)</strong><br><br>
|
|
49
|
+
<a href="https://neon.tech"><img src="https://img.shields.io/badge/Neon-00E59B?logo=neon&logoColor=black" alt="Neon"></a>
|
|
50
|
+
</p>
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### Not a Framework. A Runtime.
|
|
55
|
+
|
|
56
|
+
Frameworks tell you how to write code.
|
|
57
|
+
A runtime **executes** your code.
|
|
58
|
+
|
|
59
|
+
Liate is the runtime for AI Agents.
|
|
60
|
+
You write a class. Liate runs it as an autonomous AI Agent — locally, on edge, or on your own cloud.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
### The 3 Pillars
|
|
65
|
+
|
|
66
|
+
- 🛠️ **Build Your Own AI Agent** — Extend `LiateAgent`. Your class IS the agent and the API. Zero boilerplate.
|
|
67
|
+
- 🧠 **Bring Your Own AI (BYOAI)** — Plug in your own Sarvam AI key (`SARVAM_API_KEY`). Direct access, zero markup.
|
|
68
|
+
- ☁️ **Bring Your Own Cloud (BYOC)** — Connect your own Neon account. 1,000,000 free agent runs/month on your own infrastructure.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### Hello Agent ⚡
|
|
73
|
+
|
|
74
|
+
The frontier agent. One class. All 5 layers. Any OOP language.
|
|
75
|
+
|
|
76
|
+
**TypeScript**
|
|
77
|
+
```typescript
|
|
78
|
+
import { LiateAgent } from "liate";
|
|
79
|
+
|
|
80
|
+
class HelloAgent extends LiateAgent {
|
|
81
|
+
constructor() {
|
|
82
|
+
super({
|
|
83
|
+
L: "sarvam/sarvam-105b",
|
|
84
|
+
I: { memory: "sessions/hello" },
|
|
85
|
+
A: { name: "hello-agent", prompt: "You are HelloAgent." },
|
|
86
|
+
T: ["mcp/local"],
|
|
87
|
+
E: { SARVAM_API_KEY: process.env.SARVAM_API_KEY }
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
await new HelloAgent().run("Hello Agent World!");
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Java**
|
|
96
|
+
```java
|
|
97
|
+
import dev.liate.LiateAgent;
|
|
98
|
+
|
|
99
|
+
public class HelloAgent extends LiateAgent {
|
|
100
|
+
public HelloAgent() {
|
|
101
|
+
super(new AgentConfig()
|
|
102
|
+
.L("sarvam/sarvam-105b")
|
|
103
|
+
.I("sessions/hello")
|
|
104
|
+
.A("hello-agent", "You are HelloAgent.")
|
|
105
|
+
.T("mcp/local")
|
|
106
|
+
.E("SARVAM_API_KEY")
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
new HelloAgent().run("Hello Agent World!");
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Python**
|
|
115
|
+
```python
|
|
116
|
+
from liate import LiateAgent
|
|
117
|
+
import os
|
|
118
|
+
|
|
119
|
+
class HelloAgent(LiateAgent):
|
|
120
|
+
def __init__(self):
|
|
121
|
+
super().__init__(
|
|
122
|
+
L="sarvam/sarvam-105b",
|
|
123
|
+
I={"memory": "sessions/hello"},
|
|
124
|
+
A={"name": "hello-agent", "prompt": "You are HelloAgent."},
|
|
125
|
+
T=["mcp/local"],
|
|
126
|
+
E={"SARVAM_API_KEY": os.environ["SARVAM_API_KEY"]}
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
await HelloAgent().run("Hello Agent World!")
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**JavaScript**
|
|
133
|
+
```js
|
|
134
|
+
import { LiateAgent } from "liate";
|
|
135
|
+
|
|
136
|
+
class HelloAgent extends LiateAgent {
|
|
137
|
+
constructor() {
|
|
138
|
+
super({
|
|
139
|
+
L: "sarvam/sarvam-105b",
|
|
140
|
+
I: { memory: "sessions/hello" },
|
|
141
|
+
A: { name: "hello-agent", prompt: "You are HelloAgent." },
|
|
142
|
+
T: ["mcp/local"],
|
|
143
|
+
E: { SARVAM_API_KEY: process.env.SARVAM_API_KEY }
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
await new HelloAgent().run("Hello Agent World!");
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Or zero-code with `agent.json`:
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"L": "sarvam/sarvam-105b",
|
|
155
|
+
"I": { "memory": "sessions/hello" },
|
|
156
|
+
"A": { "name": "hello-agent", "prompt": "You are HelloAgent." },
|
|
157
|
+
"T": ["mcp/local"],
|
|
158
|
+
"E": { "SARVAM_API_KEY": "$SARVAM_API_KEY" }
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
```bash
|
|
162
|
+
npx liate run agent.json "Hello Agent World!"
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### Run on the fly
|
|
168
|
+
|
|
169
|
+
No project setup needed:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
npx liate run "Analyze this repository and find performance bottlenecks"
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
### Deploy to Your Own Cloud (BYOC) 🚀
|
|
178
|
+
|
|
179
|
+
Deploy the Liate runtime engine directly into your own Neon account:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Connect your own Neon account via OAuth
|
|
183
|
+
liate connect --neon
|
|
184
|
+
|
|
185
|
+
# Deploy Liate engine to your Neon account
|
|
186
|
+
liate deploy --neon
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
- Scale to Zero — zero cost when agents sleep.
|
|
190
|
+
- Neon Cron — scheduled agents wake up automatically.
|
|
191
|
+
- 1,000,000 free executions/month on your own account.
|
|
192
|
+
- Your data never leaves your own infrastructure.
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
### The LIATE Architecture
|
|
197
|
+
|
|
198
|
+
Every agent runs on 5 layers, declared as class properties:
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
+--------------------------------------------------+
|
|
202
|
+
| [L] LLM — Sarvam AI (India-First) |
|
|
203
|
+
+--------------------------------------------------+
|
|
204
|
+
| [I] Integration — Conversation Memory |
|
|
205
|
+
+--------------------------------------------------+
|
|
206
|
+
| [A] Agent — Name + Intent |
|
|
207
|
+
+--------------------------------------------------+
|
|
208
|
+
| [T] Tools — MCP Server Connector |
|
|
209
|
+
+--------------------------------------------------+
|
|
210
|
+
| [E] Environment — API Keys & Edge Runtime |
|
|
211
|
+
+--------------------------------------------------+
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### The 5 Layers (L·I·A·T·E)
|
|
215
|
+
|
|
216
|
+
| Layer | Name | Day 1 | Community PRs |
|
|
217
|
+
|---|---|---|---|
|
|
218
|
+
| **L** | LLM | Sarvam AI (`hub/llm/sarvam.json`) 🇮🇳 | Add OpenAI, Claude, Gemini... |
|
|
219
|
+
| **I** | Integration | In-memory conversation state | Add Neon Postgres, Redis... |
|
|
220
|
+
| **A** | Agent | `LiateAgent` class — name, prompt, intent | Add ReAct, multi-agent... |
|
|
221
|
+
| **T** | Tools | Local MCP v2 (stdio) | Add remote MCP servers... |
|
|
222
|
+
| **E** | Environment | Pure `.env` key reader | Add edge isolate configs... |
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### Contributing
|
|
227
|
+
|
|
228
|
+
Liate's core runtime is minimal and focused.
|
|
229
|
+
The **`hub/`** directory belongs to the community:
|
|
230
|
+
|
|
231
|
+
- Add a new LLM → PR to `hub/llm/`
|
|
232
|
+
- Share your agent → PR to `hub/agents/`
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
### License
|
|
237
|
+
|
|
238
|
+
[MIT](LICENSE) © 2026 Vinod Hatti ([@solovinod](https://github.com/solovinod)). Free and open source forever.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
liate/__init__.py,sha256=6OYmRqju-7kozMEh8KfkfWb6w4y4-aQ-Sv7ccwSeWb0,756
|
|
2
|
+
liate-0.0.0.dist-info/METADATA,sha256=jZmpvAOzZdLdxpuoKHTy9Yipad08JXHrV1rIvsQFxWg,7290
|
|
3
|
+
liate-0.0.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
4
|
+
liate-0.0.0.dist-info/licenses/LICENSE,sha256=KifQZ_7piK1eF-uWyNP587o4RHmYRwopERQRXsh11UU,1113
|
|
5
|
+
liate-0.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vinod Hatti (hello@liate.dev) and OpenLiate Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|