Skip to content

OpenAIAgentsIntegration

junjo.plugins.openai_agents.OpenAIAgentsIntegration

Kind: Class

SDK version: 0.67.0

Documentation channel: Stable release

OpenAIAgentsIntegration(shared: _SharedIntegration)

View source

Closeable ownership handle for the process-level integration.

Handles returned for the same active OpenTelemetry provider share one OpenAI TraceProvider wrapper. Closing the final handle restores the exact original OpenAI provider. The integration never shuts down the application-owned OpenTelemetry provider or its exporters.

close() -> None

View source

Release this handle and restore the original OpenAI provider.

The operation is idempotent. Applications must stop creating Agent runs before closing the final process-lifetime handle.