Briefcase AI Python SDK
Python SDK for AI observability, replay, and decision tracking.
briefcase-ai provides Rust-powered performance with a Python-native API.
Overview
Briefcase AI helps you:
- Capture AI decision inputs/outputs as structured snapshots
- Track estimated model costs and monitor drift signals
- Sanitize sensitive values before storage or transport
- Store, query, and replay decisions with SQLite or lakeFS backends
The package is built from the briefcase-core Rust runtime and exposed through PyO3 bindings.
Installation
Requirements:
- Python
>=3.10 - Rust toolchain only if building from source
Artifact note:
- Releases can include native wheels and a source distribution (sdist).
- If a wheel is unavailable for your environment,
pipcan install from sdist.
Compatibility
briefcase-ai supports both namespaces in this release:
- Modern namespace:
briefcase_ai - Legacy namespace:
briefcase
Examples:
# Modern
# Legacy (still supported)
Compatibility aliases exposed in briefcase_ai include:
versionedlakefs_versionedversioned_contextlakefs_contextbriefcase_workflow
Alias usage may emit DeprecationWarning to encourage migration to canonical module paths.
Quick Start
=
=
=
=
Core Capabilities
1) Decision Snapshot Modeling
DecisionSnapshot,Input,Output,ModelParameters,ExecutionContext- Build reproducible records for AI decisions and annotate with tags/metadata
2) Storage and Query
SqliteBackendfor local/in-memory usageLakeFSBackendfor versioned storage workflows- Save/load/query snapshots and decision records
3) Drift Monitoring
=
=
4) Cost Estimation
=
=
5) PII Sanitization
=
=
6) Replay
ReplayEnginecan replay persisted snapshots/decisions from a configured backend- Useful for debugging determinism and policy validation workflows
7) Legacy Feature Modules
The distribution bundles legacy feature modules under briefcase.*, including:
briefcase.integrations(lakeFS, framework handlers, VCS adapters)briefcase.correlationbriefcase.compliancebriefcase.ragbriefcase.external_databriefcase.validation
Optional provider libraries (for example Pinecone/Weaviate/Chroma or framework-specific SDKs) may still be required at runtime depending on the integration you use.
Documentation Links
- Product docs: https://docs.briefcasebrain.com
- Getting started: https://docs.briefcasebrain.com/getting-started/installation
- Quick start: https://docs.briefcasebrain.com/getting-started/quickstart
License
This project is licensed under GNU General Public License v3.0 (GPL-3.0-or-later). See the LICENSE file.