Skip to main content

Briefcase SDK Documentation

Welcome to the Briefcase SDK documentation. This SDK provides comprehensive observability, versioning, and compliance features for AI applications.

Features​

Phase 1: Foundational Features​

lakeFS Integration​

Automatic commit SHA capture for knowledge base versioning with context managers, decorators, and direct client access.

Learn more →

Multi-Agent Correlation​

Automatic trace correlation across multi-agent workflows with distributed context propagation.

Learn more →

Compliance Reporting​

Generate SOC2, HIPAA, and GDPR compliance reports with automated control evaluation.

Learn more →

Phase 2: Advanced Versioning​

RAG Versioning​

Version RAG components including documents, embeddings, and vector indices with drift detection.

Learn more →

External Data Tracking​

Track and version external data sources with snapshot management and hash-based deduplication.

Learn more →

Phase 3: Validation Engine​

Prompt-Knowledge Validation​

3-layer validation architecture for prompt-knowledge consistency with reference extraction and semantic validation.

Learn more →

Quick Start​

from briefcase.integrations.lakefs import versioned_context

# Automatic versioning with lakeFS
with versioned_context(client, "acme-healthcare", "main") as lakefs:
policy = lakefs.read_object("policies/policy.pdf")
# Automatically tracked with commit SHA
from briefcase.correlation import briefcase_workflow

# Multi-agent correlation
with briefcase_workflow("prior_auth", client) as workflow:
result1 = agent1.process(data)
result2 = agent2.process(result1) # Automatically linked!

Architecture​

The SDK is built on OpenTelemetry standards and provides:

  • Semantic Conventions: Standardized attribute names for all telemetry
  • Automatic Instrumentation: Zero-code or minimal-code integration
  • Performance: <5ms overhead for all operations
  • Extensibility: Pluggable backends and custom integrations

Installation​

pip install briefcase-ai

# With optional dependencies
pip install "briefcase-ai[lakefs,rag,compliance]"

Support​

License​

GPL-3.0 License - see LICENSE for details.