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.3.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.3.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmesh_drift-3.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 4d47b6ae8b8463f26d46f999ba461314aa7fbe1f16cf95fb81d799b29027419b
MD5 5be50707f6e79f7ba57939f27afab61f
BLAKE2b-256 5c9cc272bab4903571545f28f9fa7cdc80e829e2f592a0e0a34172231c981c50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentmesh_drift-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f286d61dd20c5ec3d74d6d1ef76dad382f10f02c704ef99b73e4979d321bafd1
MD5 912cffe49260b990a9a9ab16b8e7a865
BLAKE2b-256 de5b4ae03d0364beb8d7ae65eba8dacb8e7cd2d35e079d2108303f8292ee6261

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