Metadata-Version: 2.4
Name: decimalai
Version: 0.3.0
Summary: Open source SDK for agent dataset lifecycle management
Project-URL: Homepage, https://github.com/decimal-labs/decimalai-python
Project-URL: Documentation, https://docs.decimal.ai
Project-URL: Repository, https://github.com/decimal-labs/decimalai-python
Author: Decimal AI
License: MIT
License-File: LICENSE
Requires-Python: >=3.9
Requires-Dist: click>=8.0
Requires-Dist: httpx>=0.24
Requires-Dist: pydantic>=2.0
Provides-Extra: all
Requires-Dist: langchain-core>=0.3; extra == 'all'
Requires-Dist: langgraph>=0.1; extra == 'all'
Requires-Dist: openai>=1.0; extra == 'all'
Provides-Extra: dev
Requires-Dist: langchain-core>=0.3; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
Requires-Dist: pytest-mock>=3.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: responses>=0.23; extra == 'dev'
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.3; extra == 'langchain'
Provides-Extra: langgraph
Requires-Dist: langgraph>=0.1; extra == 'langgraph'
Provides-Extra: openai
Requires-Dist: openai>=1.0; extra == 'openai'
Provides-Extra: openai-agents
Requires-Dist: openai-agents>=0.1; extra == 'openai-agents'
Provides-Extra: otel
Requires-Dist: opentelemetry-api>=1.20; extra == 'otel'
Requires-Dist: opentelemetry-sdk>=1.20; extra == 'otel'
Description-Content-Type: text/markdown

# DecimalAI Python SDK

The open source SDK for [Decimal AI](https://decimal.ai) — the dataset control plane for agents.

## Installation

```bash
pip install decimal-ai
```

With framework integrations:
```bash
pip install "decimal-ai[langchain]"   # LangChain/LangGraph
pip install "decimal-ai[openai]"      # OpenAI SDK
pip install "decimal-ai[all]"         # All integrations
```

## Quick Start

```python
import decimalai

decimalai.init(api_key="dai_sk_...")

# LangChain/LangGraph — add callback handler
from decimalai.langchain import CallbackHandler

llm = ChatOpenAI(model="gpt-4o", callbacks=[CallbackHandler()])
```

## What It Does

- **Trace capture** — Auto-captures LLM calls, tool calls, and agent steps
- **Version spec extraction** — Auto-detects tool schemas, prompts, models, and graph topology
- **Change detection** — Detects when your agent configuration changes
- **Replay helpers** — Pull and submit replay tasks for data rescue
- **Dataset export** — Export clean JSONL/parquet for fine-tuning

## License

MIT
