Quickstart
Get from zero to your first drift score in about 5 minutes.
1. Install
pip install driftbase-core2. Add the handler
Wrap your agent with the Driftbase callback handler. One line:
from driftbase import DriftbaseCallbackHandler
handler = DriftbaseCallbackHandler(version="v1.0")
# Pass handler to your LangChain / LangGraph / AutoGen / CrewAI run3. Run and diff
After 50+ runs, a fingerprint is computed. When you deploy a new version, run:
driftbase diff v1.0 v2.0You’ll see a drift score (0–1) and which dimensions changed. Set a threshold (e.g. 0.2) to trigger alerts or block a PR. See Drift score reference for interpretation.