Decision Recording
Install
pip install briefcase-aiQuick Example
from briefcase import capture
@capture()def classify(text: str) -> str: return llm.classify(text)
result = classify("Urgent support ticket")Every call creates a DecisionSnapshot containing the input, output, model parameters, and execution context.
Key Classes
@capture— decorator that intercepts function callsDecisionSnapshot— immutable record of a single decisionInput/Output— typed wrappers for serialization
Configuration
| Option | Default | Description |
|---|---|---|
storage_backend | "memory" | Where to persist snapshots |
capture_exceptions | True | Record failed calls |
metadata | {} | Extra key-value pairs attached to each snapshot |