Skip to content

Commit 28475f1

Browse files
committed
chore: bump openai-agents to 0.19.0 and openai to 2.48.0
openai-agents 0.17.3 requires mcp<2, which conflicts with fastmcp>=4.0 that requires mcp>=2.0.0b2. Bumping to 0.19.0 which includes MCP Python SDK v2 compatibility (see openai/openai-agents-python#3989). Vetted: stdio + streamable-http transports tested against fastmcp 4.0.0a2; InputTokensDetails issue #187 (the reason for the original openai==2.44.0 pin) is resolved in openai-agents 0.19.0. Bump openai to 2.48.0 which openai-agents 0.19.0 declares as minimum compatible. Exact pins preserved per supply-chain policy. Why-comments added/updated.
1 parent ff54396 commit 28475f1

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

‎pyproject.toml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ dependencies = [
3838
"click==8.4.0",
3939
"watchdog==6.0.0",
4040
"litellm==1.87.2",
41-
"openai-agents==0.17.3",
42-
# openai 2.45.0 added a required `cache_write_tokens` field to
43-
# InputTokensDetails that openai-agents 0.17.3 does not set, crashing
44-
# usage parsing on every response (issue #187). Pin below 2.45 until
45-
# openai-agents catches up.
46-
"openai==2.44.0",
41+
# openai-agents 0.19.0 adds MCP Python SDK v2 compatibility (mcp 2.0.0b2).
42+
# mcp<2 (required by 0.17.3) conflicts with fastmcp>=4 which requires
43+
# mcp>=2.0.0b2. Vetted: stdio + streamable-http transports tested against
44+
# fastmcp 4.0.0a2; InputTokensDetails issue #187 resolved in 0.19.0.
45+
"openai-agents==0.19.0",
46+
# openai 2.48.0 is the minimum that openai-agents 0.19.0 declares compatible.
47+
# The InputTokensDetails crash (issue #187) that pinned us to 2.44.0 is
48+
# resolved in openai-agents 0.19.0 which correctly handles cache_write_tokens.
49+
"openai==2.48.0",
4750
"pyyaml==6.0.3",
4851
"python-dotenv==1.2.2",
4952
"json-repair==0.59.10",

0 commit comments

Comments
 (0)