Skip to content

feat: openai-agents becomes a base dependency - #406

Merged
rejojer merged 1 commit into
mainfrom
feat/agents-base
Aug 14, 2026
Merged

feat: openai-agents becomes a base dependency#406
rejojer merged 1 commit into
mainfrom
feat/agents-base

Conversation

@rejojer

@rejojer rejojer commented Aug 14, 2026

Copy link
Copy Markdown
Member

Ports the pending commit from feat/local-chat (the v0.2.10 line) to main, following the #402/#404/#405 pattern. After this merge, git diff main feat/local-chat is 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 pageindex could 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 pageindex runs 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.1 floor is the live-probed minimum that works with current openai (f58cca1).

Extras now mean exactly one thing — a vendor's own SDK surface: [anthropic] for messages() / the tool runner, [claude] for the Claude Agent SDK. The [openai] extra stays declared but empty, so existing pip 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: openai retained. requirements.txt gains the dependency, so CI now runs the openai-agents test lane instead of skipping it. #400 carries the commit for review on feat/local-chat.

… 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).
@rejojer
rejojer merged commit 08a912c into main Aug 14, 2026
8 checks passed
@rejojer
rejojer deleted the feat/agents-base branch August 14, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant