Skip to content

Conversation

@seratch
Copy link
Member

@seratch seratch commented Dec 17, 2025

This pull request enhances #760 enhancement:

  • Add an endpoint field to RequestUsage and populate requestUsageEntries for both responses.create and responses.compact.
  • Change runCompaction to return CompactionResult | null so compaction usage is merged into the runner’s aggregated usage when it runs.
  • Update OpenAI Responses model/compaction session handling and serialization schemas, and refresh tests to assert requestUsageEntries with endpoint metadata.

Since this feature is not yet released, there is no breaking change.

@changeset-bot
Copy link

changeset-bot bot commented Dec 17, 2025

🦋 Changeset detected

Latest commit: 9d8f8f0

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-openai Patch
@openai/agents-core Patch
@openai/agents Patch
@openai/agents-extensions Patch
@openai/agents-realtime 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

@seratch seratch added this to the 0.3.x milestone Dec 17, 2025
@seratch seratch merged commit e89a54a into main Dec 17, 2025
5 checks passed
@seratch seratch deleted the compaction-usage-data branch December 17, 2025 07:40
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