Skip to content

Decision Recording

Install

Terminal window
pip install briefcase-ai

Quick 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 calls
  • DecisionSnapshot — immutable record of a single decision
  • Input / Output — typed wrappers for serialization

Configuration

OptionDefaultDescription
storage_backend"memory"Where to persist snapshots
capture_exceptionsTrueRecord failed calls
metadata{}Extra key-value pairs attached to each snapshot