Skip to content

briefcase.auto

Install the extra for the target framework, then import auto and undo:

from briefcase.auto import auto, undo
print(callable(auto), callable(undo))

auto

auto(
framework,
*,
exporter=None,
context_version=None,
async_capture=True,
**handler_options,
) -> handler

Supported values are langchain, llamaindex, ag2, crewai, openai-agents, autogen, and pageindex. Repeated calls for one framework return the installed handler without patching twice.

undo

undo("langchain") # restore one framework
undo() # restore every active framework

See Framework Auto-Instrumentation for install extras, integration points, and process-global behavior.