feat: openai-agents becomes a base dependency - #406
Merged
Conversation
… with the SDK chat() is the SDK's front door, and its engine lived behind a vendor-named extra: pip install pageindex could index a document but failed on the first chat call, and chatting with Claude required installing '[openai]'. Measured before moving: the base tree already carries litellm (75 MB) + openai (13 MB), openai-agents adds ~15 MB (agents 8.1 + mcp 1.7 + griffe 1.4 + small pure-python deps), and current litellm's openai range (>=2.20,<3) intersects cleanly with openai-agents' (>=2.45,<3). The [openai] extra stays declared but empty, so existing pip install 'pageindex[openai]' commands keep resolving. Error messages and docstrings drop the extra; requirements.txt gains the dependency, so CI now runs the openai-agents test lane instead of skipping it. Extras now mean exactly one thing: a vendor's own SDK surface ([anthropic] for messages()/tool runner, [claude] for the Claude Agent SDK).
This was referenced Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the pending commit from
feat/local-chat(the v0.2.10 line) tomain, following the #402/#404/#405 pattern. After this merge,git diff main feat/local-chatis empty (verified on the branch before opening this PR).openai-agents becomes a base dependency
chat()is the SDK's front door, but its engine lived behind a vendor-named extra:pip install pageindexcould index a document yet failed on the first chat call, and chatting with Claude required installing[openai]. The engine now ships with the SDK —pip install pageindexruns everything local (indexing,chat(),chat_completions(),responses()).Measured before moving: the base tree already carries litellm (75 MB) + openai (13 MB); openai-agents adds ~15 MB (agents 8.1 + mcp 1.7 + griffe 1.4 + small pure-python deps). Current litellm's openai range (
>=2.20,<3) intersects cleanly with openai-agents' (>=2.45,<3). The>=0.18.1floor is the live-probed minimum that works with current openai (f58cca1).Extras now mean exactly one thing — a vendor's own SDK surface:
[anthropic]formessages()/ the tool runner,[claude]for the Claude Agent SDK. The[openai]extra stays declared but empty, so existingpip install "pageindex[openai]"commands keep resolving; error messages and docstrings drop the extra reference.Verification
276 tests green (3 skipped without the claude extra) on the ported branch; wheel metadata inspected —
Requires-Dist: openai-agents (>=0.18.1)unconditional,Provides-Extra: openairetained. requirements.txt gains the dependency, so CI now runs the openai-agents test lane instead of skipping it. #400 carries the commit for review onfeat/local-chat.