Metadata-Version: 2.4
Name: rabbittwatch-ai-observability
Version: 0.1.0
Summary: RabbittWatch AI Observability tracing SDK for Python
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: langchain-core>=0.1.0; extra == "dev"
Requires-Dist: litellm>=1.0.0; extra == "dev"
Requires-Dist: pytest>=7.0.0; extra == "dev"

# RabbittWatch AI Observability Python SDK

A lightweight Python SDK to track LLM costs, tokens, latencies, error states, and distributed traces in RabbittWatch.

## Installation

```bash
pip install .
```

## Basic Usage

```python
from rabbittwatch.client import RabbittWatchAI

rw_ai = RabbittWatchAI(
    api_key="rw_live_xxxxx",
    environment="prod",
    service_name="customer-support"
)

# Wrapping a call
response = rw_ai.trace(
    name="agent.answer",
    provider="openai",
    model="gpt-4o",
    input="Hello!",
    fn=lambda: openai_client.chat.completions.create(
        model="gpt-4o",
        messages=[{"role": "user", "content": "Hello!"}]
    )
)
```
