Metadata-Version: 2.4
Name: reliai
Version: 0.1.0
Summary: Observability and reliability tooling for AI systems
Project-URL: Homepage, https://github.com/reliai/reliai-python
Project-URL: Repository, https://github.com/reliai/reliai-python
Project-URL: Bug Tracker, https://github.com/reliai/reliai-python/issues
Author: Reliai Labs
License: MIT
Classifier: Development Status :: 3 - Alpha
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: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# reliai

Python SDK for [Reliai](https://github.com/reliai/reliai) — trace AI requests, detect regressions, and debug failures at the span level.

## Install

```bash
pip install reliai
```

## Quickstart

```python
import reliai

reliai.init()

@reliai.trace
def retrieve_docs(query: str) -> list[str]:
    return [f"Document about {query}"]

with reliai.span("llm_call") as span:
    response = call_your_llm(prompt)
    span.set_trace_fields(
        model="gpt-4.1",
        provider="openai",
        input_text=prompt,
        output_text=response,
        latency_ms=elapsed_ms,
    )
```

## Auto-instrumentation

```python
reliai.init()
reliai.auto_instrument()  # instruments FastAPI, OpenAI, Anthropic, LangChain
```

Or via CLI (no code changes):

```bash
reliai-run uvicorn app:app
```

## Links

- [reliai-demo](https://github.com/reliai/reliai-demo) — run the full stack locally in 60 seconds
- [reliai-examples](https://github.com/reliai/reliai-examples) — copy-paste integrations
- [Documentation](https://reliai.dev/docs)

## License

MIT
