Skip to content

feat(api): add memory and history to beta agents - #4372

Merged
dpiet-oai merged 1 commit into
mainfrom
castiron/promotions/pr-470
Dec 5, 2026
Merged

dpiet-oai merged 1 commit into
mainfrom
castiron/promotions/pr-470

Conversation

@dpiet-oai

Copy link
Copy Markdown
Contributor

Summary

Adds reusable memory and history stores to client.beta.agents.

Changes

  • Create, retrieve, and update memory and history stores.
  • Manage notes within a memory store and list sessions within a history store.
  • Configure memory and history tools with a store ID when creating agents or sessions.
  • List memory and history stores in your project.

@dpiet-oai
dpiet-oai requested a review from a team as a code owner December 4, 2026 19:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T00:15:58.888888Z e7282ec New commits
🔒 Security Review ✅ Completed 2026-12-05T00:16:17.363917Z e7282ec New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed f66c9b8 with an independent static review. No actionable correctness, security, or compatibility findings. Checked memory/history resource routing, beta authentication headers, request serialization and revision guards, nullable store/tool fields, union integration, exports, and token-versus-ID pagination including empty intermediate token pages. Inspected the added tests and existing feedback.

Hosted CI has no failures at review time; several test/analysis jobs and OkTest are still pending. Static review only; no local code or tests were run.

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been checking the new store and note request paths, pagination, and the distinction between omitted and null store IDs.

Castiron-Internal-PR: openai/openai-python-internal#470
Castiron-Source-SHA: e617d6b71cbc376563392d0974c85e1f897f71bf
Castiron-Public-Base-SHA: dfed070
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-470 branch from f66c9b8 to e7282ec Compare December 5, 2026 00:14
@dpiet-oai
dpiet-oai requested a review from a team December 5, 2026 00:15

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rebase has been preserving the reviewed Python SDK behavior for memory and history stores, including pagination and the tool fields.

@dpiet-oai
dpiet-oai added this pull request to the merge queue Dec 5, 2026

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after comprehensive static re-review and an independent second review. Memory/history implementations, pagination, nullable fields, signatures, and tests remain unchanged from the previously approved revision. Incoming custom-storage changes match separately reviewed code; no actionable integration findings. Hosted checks have completed successfully (with skipped/neutral checks as applicable). No candidate code or local tests were executed.

Merged via the queue into main with commit cc52701 Dec 5, 2026
26 checks passed
@dpiet-oai
dpiet-oai deleted the castiron/promotions/pr-470 branch December 5, 2026 00:25
@openai-sdks openai-sdks Bot mentioned this pull request Dec 5, 2026
dpiet-oai pushed a commit that referenced this pull request Dec 5, 2026
Automated Release PR
---


## [3.64.0](v3.63.0...v3.64.0) (2026-12-05)


### ⚠ BREAKING CHANGES

* **api:** Type checkers can flag direct `provider.region` access even for bucket-only callers. At runtime, reading it on a custom endpoint raises `AttributeError`. Check `provider.type != "custom_endpoint"` first. ([#4374](#4374))

### Features

* **api:** add memory and history to beta agents ([#4372](#4372)) ([cc52701](cc52701))
* **api:** add model and token category to organization costs ([#4365](#4365)) ([43b6ff6](43b6ff6))
* **api:** add project API key status filters ([#4371](#4371)) ([7adbcba](7adbcba))
* **api:** support custom HTTPS providers for external storage ([#4374](#4374)) ([dfed070](dfed070))


### Bug Fixes

* **streaming:** omit payloads from invalid delta errors ([#4375](#4375)) ([ba6e577](ba6e577))


### Chores

* **api:** clarify agent session deletion ([#4368](#4368)) ([8f651c7](8f651c7))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

4 participants