Metadata-Version: 2.4
Name: to11ai-sdk
Version: 0.0.3
Summary: Python SDK for the to11.ai platform
Project-URL: Homepage, https://to11.ai
Project-URL: Repository, https://github.com/to11ai/platform
License-Expression: MPL-2.0
License-File: LICENSE
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# to11ai-sdk

Python SDK for [to11.ai](https://to11.ai) — the AI engineering platform for prompt management, tracing, and evals.

## Installation

```bash
pip install to11ai-sdk
# or with uv
uv add to11ai-sdk
```

## Getting started

```python
from to11ai_sdk import create_client

client = create_client(
    base_url="https://api.to11.ai",
    api_key="...",
)

result = client.prompts.resolve(
    project_id="proj_abc123",
    slug="chat-system-prompt",
    labels=["production"],
    variables={"user_name": "Alice"},
)

print(result.rendered.text)  # "Hello, Alice!"
```

## Features

- Prompt resolution with label-based version selection and Liquid template rendering
- Typed errors for auth, rate limiting, validation, and network failures
- Compatible with Python 3.10+

## Documentation

Full API reference and guides: <https://docs.to11.ai>

## License

MPL-2.0
