Skip to content

feat: add context management model settings#1233

Merged
seratch merged 2 commits intomainfrom
feat/model-context-management
May 5, 2026
Merged

feat: add context management model settings#1233
seratch merged 2 commits intomainfrom
feat/model-context-management

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented May 5, 2026

This pull request adds a first-class modelSettings.contextManagement option so callers can configure Responses context management, including server-side compaction, without using providerData.

It updates the shared model settings type and export, converts camelCase context management settings to the OpenAI Responses wire shape, documents the new setting, and adds coverage for the generated context_management request payload.

see also: https://developers.openai.com/api/docs/guides/compaction

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

🦋 Changeset detected

Latest commit: cdc1b45

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@openai/agents-core Patch
@openai/agents-openai Patch
@openai/agents-extensions Patch
@openai/agents-realtime Patch
@openai/agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added this to the 0.8.x milestone May 5, 2026
@seratch seratch mentioned this pull request May 5, 2026
@seratch seratch modified the milestones: 0.8.x, 0.9.x May 5, 2026
@seratch seratch merged commit a34f506 into main May 5, 2026
7 checks passed
@seratch seratch deleted the feat/model-context-management branch May 5, 2026 11:59
seratch added a commit that referenced this pull request May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant