Skip to main content

Mathematical drift detection library for calculating drift/hallucination scores between outputs

Project description

CMVK — Verification Kernel — Public Preview

Part of Agent OS - Kernel-level governance for AI agents

PyPI version License: 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

pip install agentmesh-drift

Quick Start

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 for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentmesh_drift-3.6.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentmesh_drift-3.6.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file agentmesh_drift-3.6.0.tar.gz.

File metadata

  • Download URL: agentmesh_drift-3.6.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for agentmesh_drift-3.6.0.tar.gz
Algorithm Hash digest
SHA256 e82fc55804e3ea6044a3a172ebbd83e969cb429c1009fa28607414d5b8717edb
MD5 205d705f4f496618761e0f0a0c33ae50
BLAKE2b-256 5267f81d8641c85654e0015c806e17e421d86f4532a51fe545b82fa00e172af8

See more details on using hashes here.

File details

Details for the file agentmesh_drift-3.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmesh_drift-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 433d269065cb4680d904257a5b72b0729097c93a6246ab5dffe0b2ee62234ae1
MD5 54c28eaa620a897f56e52bf8067e2dcd
BLAKE2b-256 71673bc8a1c453eaf542dc2096d379e49520cbfb9fde130bdd183ded10544181

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page