Skip to main content
# Limina AI — Python Monitor SDK

[![PyPI version](https://badge.fury.io/py/limina-monitor.svg)](https://badge.fury.io/py/limina-monitor)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](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.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

limina_monitor-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file limina_monitor-0.1.0.tar.gz.

File metadata

  • Download URL: limina_monitor-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for limina_monitor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0eeaef40b229f4b81fcf6673dc2f4edca7dc9fbbba0270fbc56e0da28471d5ca
MD5 fcc71c3d7b38129b6483a615c86ca0d0
BLAKE2b-256 472d25eab363a7d74f7b494220385894cd07e2426d99579929ab69c97796f6b6

See more details on using hashes here.

File details

Details for the file limina_monitor-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: limina_monitor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.7

File hashes

Hashes for limina_monitor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 097b166e1b77128a652cdcf744de68656e64257d98a8f10624866a664c87678a
MD5 3cf06b07b6661feff44b049fbc1cb4c2
BLAKE2b-256 91b86a1b3b574a90900c1f62aaf8813c178c147d9dfdc784a6f0e7133b0dd07b

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 Sentry Error logging StatusPage Status page