Repository navigation
Remove OpenAI Agents integration - #1868
Conversation
…lio/sdk-python into remove-openai-agents-integration
Co-authored-by: Brian Strauch <brian@brianstrauch.com>
|
Side note from watching this branch's CI: Separately, the |
The OpenAI Agents OTel interceptor, the only caller of seed_span_id and seed_trace_id, now propagates the caller's span as a remote parent instead of re-minting it under the caller's IDs (temporalio/ai-integrations#26), and #1868 removes it from this repository. Drop the two methods, their context-local seed queues, the seed-consumption branches in the generate_* methods, and the test that only exercised the seeding.
* Remove TemporalIdGenerator span/trace ID seeding The OpenAI Agents OTel interceptor, the only caller of seed_span_id and seed_trace_id, now propagates the caller's span as a remote parent instead of re-minting it under the caller's IDs (temporalio/ai-integrations#26), and #1868 removes it from this repository. Drop the two methods, their context-local seed queues, the seed-consumption branches in the generate_* methods, and the test that only exercised the seeding. * condense changelog
* Remove OpenAI Agents integration * Add OpenAI Agents migration error * Load standalone OpenAI Agents module * Keep contrib migration helpers private * Forward OpenAI Agents extra to standalone package * Apply suggestion from @brianstrauch * Add OpenAI Agents migration guide * Recommend direct OpenAI Agents dependency * Remove SDK upgrade from migration steps * Remove versions from migration guide * Simplify OpenAI Agents migration steps * Apply batched suggestions from code review Co-authored-by: Brian Strauch <brian@brianstrauch.com> * Deprecate OpenAI Agents compatibility imports * Lock released OpenAI Agents integration * Address OpenAI integration review feedback * Explain Temporal namespace extension * Fix OpenAI Agents compatibility documentation references * Remove OpenAI Agents compatibility deprecations * Discover and forward OpenAI Agents public modules * Preserve typed OpenAI Agents compatibility imports Migrated-From: temporalio/sdk-python@6e66be6
Summary
temporalio[openai-agents]as a forwarding extra that installstemporalio-openai-agentstemporalio.contrib.openai_agentsimports with explicit compatibility modulestemporalio.openai_agentsthe canonical standalone import pathtemporalio.contrib.__getattr__migration hooktemporaliopackage path so editable standalone plugins can be discoveredThis is the SDK half of the OpenAI Agents plugin cutover. The standalone distribution installs under
temporalio.openai_agents, so it can coexist with an SDK-bundledtemporalio.contrib.openai_agentsimplementation without sharing files.Release order
temporalio-openai-agents1.0.0 is published on PyPI. The two-week dependency age window has passed, and this branch now locks the published package without a per-package override.temporalio-openai-agents1.0.0 was published through its normal release workflow.Migration
Remove the
openai-agentsextra from the existing Temporal dependency and install the standalone package directly:Remove the brackets if no extras remain. Then install the standalone package:
Change application imports to the standalone package:
The new import path selects the standalone implementation instead of the SDK-bundled
temporalio.contrib.openai_agentsimplementation.The forwarding extra and old public imports remain available for compatibility, but direct dependency on
temporalio-openai-agentsand thetemporalio.openai_agentsimport are the recommended migration.Validation
Completed on macOS with Python 3.14:
uv lock --checkuv sync --all-extraspoe build-developpoe lintpoe test -s -k openai_agents_compatibility(2 passed)The full SDK test matrix runs in CI.