feat(langchain): Record cached token usage attributes - #7132
Open
alexander-alderman-webb wants to merge 8 commits into
Open
feat(langchain): Record cached token usage attributes#7132alexander-alderman-webb wants to merge 8 commits into
alexander-alderman-webb wants to merge 8 commits into
Conversation
alexander-alderman-webb
marked this pull request as ready for review
August 7, 2026 10:01
Contributor
Codecov Results 📊✅ 99182 passed | ⏭️ 6527 skipped | Total: 105709 | Pass Rate: 93.83% | Execution Time: 364m 35s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 97.96%. Project has 2501 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.98% 89.99% +0.01%
==========================================
Files 193 193 —
Lines 24975 24996 +21
Branches 9008 9030 +22
==========================================
+ Hits 22474 22495 +21
- Misses 2501 2501 —
- Partials 1437 1440 +3Generated by Codecov Action |
This was referenced Aug 7, 2026
Closed
ericapisani
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Limit support for cached tokens counts to values in the provider agnostic
UsageMetadatadictionaries.If values are in the agnostic dictionary, prefer these for all token types.
Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)