Metadata-Version: 2.4
Name: agentmesh_drift
Version: 3.3.0
Summary: Mathematical drift detection library for calculating drift/hallucination scores between outputs
Project-URL: Homepage, https://github.com/microsoft/agent-governance-toolkit
Project-URL: Documentation, https://github.com/microsoft/agent-governance-toolkit#readme
Project-URL: Repository, https://github.com/microsoft/agent-governance-toolkit.git
Project-URL: Issues, https://github.com/microsoft/agent-governance-toolkit/issues
Project-URL: Changelog, https://github.com/microsoft/agent-governance-toolkit/blob/main/CHANGELOG.md
Author-email: Microsoft Corporation <agentgovtoolkit@microsoft.com>
License: MIT
License-File: LICENSE
Keywords: adversarial,ai-safety,drift-detection,hallucination,mathematical,scoring,verification
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: numpy<2.0,>=1.24.0
Provides-Extra: all
Requires-Dist: cmvk[dev,scipy]; extra == 'all'
Provides-Extra: dev
Requires-Dist: black<26.0,>=25.1.0; extra == 'dev'
Requires-Dist: mypy<2.0,>=1.14.0; extra == 'dev'
Requires-Dist: pytest-cov<7.0,>=6.0.0; extra == 'dev'
Requires-Dist: pytest<9.0,>=8.3.0; extra == 'dev'
Requires-Dist: ruff<1.0,>=0.9.0; extra == 'dev'
Provides-Extra: scipy
Requires-Dist: scipy<2.0,>=1.11.0; extra == 'scipy'
Description-Content-Type: text/markdown

# CMVK — Verification Kernel — Public Preview

> **Part of [Agent OS](https://github.com/microsoft/agent-governance-toolkit)** - Kernel-level governance for AI agents

[![PyPI version](https://badge.fury.io/py/cmvk.svg)](https://badge.fury.io/py/cmvk)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**Basic drift detection between model outputs.**

CMVK provides lightweight functions for comparing text and embeddings to detect when model outputs diverge. Use it to verify that two models (or two runs of the same model) produce semantically equivalent results.

## Installation

```bash
pip install agentmesh-drift
```

## Quick Start

```python
from cmvk import verify

score = verify("def add(a, b): return a + b", "def add(x, y): return x + y")
print(f"Drift: {score.drift_score:.3f}")  # 0.0 = identical
```

## Features

- Text comparison with drift scoring (0.0–1.0)
- Embedding and distribution comparison utilities
- Batch verification with aggregation
- Zero external service dependencies (numpy only)

## License

MIT License - see [LICENSE](LICENSE) for details.
