integrations module:
Integrations
Patch the OpenAI, Anthropic, and Google Gen AI SDKs so their calls are traced automatically.
Automatic tracing integrations for optional Python provider SDKs.
Access these through the
Patch loaded providers and watch for providers imported later.
Stop watching future imports; already-patched symbols stay patched.
Patch installed OpenAI SDK methods. Safe to call repeatedly.
Restore OpenAI SDK methods replaced by Forge.
Patch installed Anthropic SDK methods. Safe to call repeatedly.
Restore Anthropic SDK methods replaced by Forge.
Patch installed Google Gen AI SDK methods. Safe to call repeatedly.
Restore Google Gen AI SDK methods replaced by Forge.
Restore every provider patched by this package.
Last modified on September 30, 2026