Repository navigation
feat(api): type Managed Agents budget events - #4284
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Castiron-Internal-PR: openai/openai-python-internal#433 Castiron-Source-SHA: a19949c27880a103333743f8228d3475eb2f1151 Castiron-Public-Base-SHA: 793cb76
c7975d7 to
7262ccb
Compare
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Reviewed the typed budget event, nullable spending limit, session filtering, and creation/follow-up result boundaries. Matching budget pauses terminate observation before the first turn or after a terminal turn; active-turn snapshots continue collecting. The public changed files match the corrected internal candidate. No findings.
Hosted checks at review: 9 skipped, 17 success. Static review with independent subagent review; no candidate code or local tests executed.
Automated Release PR --- ## [3.54.0](openai/openai-python@v3.53.0...v3.54.0) (2026-11-17) ### Features * **api:** type Managed Agents budget events ([openai#4284](openai#4284)) ([c5da68a](openai@c5da68a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Summary
Adds typed budget notifications to Managed Agents session streams.
Changes
Noneforspend_control.limiton uncapped sessions.AgentSessionBudgetReachedEventand thebudget_reachedsession status.Verification
The offline replay has been covering sync and async creation and subscription with named and unnamed SSE frames. Each stream has been yielding the typed
errorfollowed byagent.session.budget_reached. The tests have been checking both numeric and explicit-null limits. The sync and async result tests have been checking that collection stops at the budget event after an error, before reading the next event.