Skip to content

Anthropic Token Counting#1749

Open
TimPansino wants to merge 6 commits into
mainfrom
feat-anthropic-token-counting
Open

Anthropic Token Counting#1749
TimPansino wants to merge 6 commits into
mainfrom
feat-anthropic-token-counting

Conversation

@TimPansino

Copy link
Copy Markdown
Contributor

Overview

  • Add token counting to Anthropic SDK for all LLM invocations.

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 8 0 0 0.97s
✅ MARKDOWN markdownlint 7 0 0 0 1.33s
✅ PYTHON ruff 1038 0 0 0 1.16s
✅ PYTHON ruff-format 1038 0 0 0 0.45s
✅ YAML prettier 20 0 0 0 1.65s
✅ YAML v8r 20 0 0 6.2s
✅ YAML yamllint 20 0 0 0.69s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@codecov-commenter

codecov-commenter commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.07%. Comparing base (04d7e1e) to head (1d239f3).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_anthropic.py 76.00% 0 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1749      +/-   ##
==========================================
+ Coverage   82.04%   82.07%   +0.02%     
==========================================
  Files         215      215              
  Lines       26410    26431      +21     
  Branches     4169     4175       +6     
==========================================
+ Hits        21669    21692      +23     
+ Misses       3322     3311      -11     
- Partials     1419     1428       +9     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@TimPansino TimPansino marked this pull request as ready for review June 2, 2026 22:26
@TimPansino TimPansino requested a review from a team as a code owner June 2, 2026 22:26
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