# Limina AI — Python Monitor SDK
[](https://badge.fury.io/py/limina-monitor)
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
> Lightweight, zero-latency Python client SDK for streaming multi-turn AI Agent execution traces to Limina AI.
---
## ⚡ Quickstart
### 1. Installation
```bash
pip install limina-monitor
2. Trace Your AI Agent & External Tools
from limina import LiminaMonitor
# 1. Initialize client with your Limina API Key
limina = LiminaMonitor(api_key="your_limina_api_key_here")
# 2. Trace external tool/database execution
@limina.trace_tool(tool_name="sql_database")
def query_database(user_id: str):
return {"status": "active", "plan": "pro"}
# 3. Trace top-level AI agent function
@limina.trace(session_id="customer_run_1", description="Support Agent Test")
def my_agent(user_prompt: str):
user_info = query_database("usr_101")
return f"User plan is {user_info['plan']}."
if __name__ == "__main__":
response = my_agent("What is my current subscription plan?")
print(response)
🚀 Key Features
- 1-Line Integration: Wrap agent and tool functions with simple decorators (
@limina.trace,@limina.trace_tool). - 0ms Host Latency: Streams trajectory graphs asynchronously in non-blocking daemon background threads.
- Automatic DAG Modeling: Automatically constructs State-Space execution graphs (
User -> Tool -> Agent) with millisecond execution latencies. - AST & Context Validation: Captures structured JSON outputs for deterministic evaluation.
🛡️ Privacy & Performance
The limina-monitor SDK does not block your agent's execution. If network errors occur, the SDK fails silently to ensure your host application remains unaffected in production.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
limina_monitor-0.1.1.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file limina_monitor-0.1.1.tar.gz.
File metadata
- Download URL: limina_monitor-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61ed4e2d52ba33bd53af8bfd2396964c8f1825f45b68ab0a60b45e3ec41da430
|
|
| MD5 |
f39bb0b8b32d9ccec48459ce2b244287
|
|
| BLAKE2b-256 |
692b8d6b0ee64e5f03b769c5f4a05ee18ae9713c27b51b58295cb6a1af75a868
|
File details
Details for the file limina_monitor-0.1.1-py3-none-any.whl.
File metadata
- Download URL: limina_monitor-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155a098a798dcf439616a058e3194503194db9cf94514407c0f716691dba4f25
|
|
| MD5 |
5ef5c7faa399298d24a381d9e1070227
|
|
| BLAKE2b-256 |
bed57e15a13b55bdbe2a546c66c89e3907ed30b166484b344b64099eda99d00a
|