Skip to content

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

Open
dpiet-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-470
Open

dpiet-oai wants to merge 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.

Castiron-Internal-PR: openai/openai-python-internal#470
Castiron-Source-SHA: 5dafdb90206edb35ff673aa26d5dc64af6e51b10
Castiron-Public-Base-SHA: 7adbcba
@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-04T19:43:29.841036Z f66c9b8 PR opened
🔒 Security Review ✅ Completed 2026-12-04T19:43:36.191851Z f66c9b8 PR opened
ℹ️ 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.

This branch has not been deployed

No deployments
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