Skip to content

fix(core): fix trim_messages misclassification of per-message token_counter#35630

Open
GAUTAM V DATLA (gautamvarmadatla) wants to merge 5 commits into
langchain-ai:masterfrom
gautamvarmadatla:fix/core-trim-messages-token-counter-annotation
Open

fix(core): fix trim_messages misclassification of per-message token_counter#35630
GAUTAM V DATLA (gautamvarmadatla) wants to merge 5 commits into
langchain-ai:masterfrom
gautamvarmadatla:fix/core-trim-messages-token-counter-annotation

Merge branch 'master' into fix/core-trim-messages-token-counter-annot…

f8a8823
Select commit
Loading
Failed to load commit list.
CodSpeed HQ / CodSpeed Performance Analysis succeeded Mar 31, 2026 in 0s

Performance Gate Passed

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

✅ 13 untouched benchmarks
⏩ 27 skipped benchmarks1


Comparing gautamvarmadatla:fix/core-trim-messages-token-counter-annotation (f8a8823) with master (0f4f3f7)

Open in CodSpeed

Footnotes

  1. 27 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.