Skip to content

feat: expose rich token usage#27

Merged
yltw27 merged 1 commit into
mainfrom
feat/expose-rich-token-usage
May 20, 2026
Merged

feat: expose rich token usage#27
yltw27 merged 1 commit into
mainfrom
feat/expose-rich-token-usage

Conversation

@yltw27
Copy link
Copy Markdown
Collaborator

@yltw27 yltw27 commented May 20, 2026

Summary

Expose detailed AI SDK token usage from eval-kit evaluator results so downstream services can report cache and reasoning token metrics.

Changes

  • Extends the public TokenUsage type with input/output token details and deprecated compatibility fields.
  • Preserves detailed usage fields from AI SDK responses in Evaluator results.
  • Adds regression coverage for detailed token usage propagation.
  • Adds a Changeset for the package release.

Preserve AI SDK token detail fields on evaluator results so consumers can report cache and reasoning token metrics.

Co-Authored-By: Codex (GPT-5) <noreply@openai.com>
@yltw27 yltw27 marked this pull request as ready for review May 20, 2026 14:33
@yltw27 yltw27 requested a review from a team as a code owner May 20, 2026 14:33
@yltw27 yltw27 requested review from djslimbo, horlaarsco and matt-koevort and removed request for a team May 20, 2026 14:33
@yltw27 yltw27 merged commit 66935fb into main May 20, 2026
2 checks passed
@yltw27 yltw27 deleted the feat/expose-rich-token-usage branch May 20, 2026 15:24
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.

2 participants