Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for message batching api #31

Merged

Conversation

StevanFreeborn
Copy link
Owner

Closes #16

  • feat: implement CreateMessageBatchAsync method
  • fix: use proper count tokens endpoint
  • fix: make correct properties nullable
  • tests: add integration tests for remaining 🥲 and 😀 paths
  • tests: add end-to-end test for creating a message batch
  • feat: add class for representing batch statuses
  • feat: implement GetMessageBatchAsync method
  • fix: default nullable properties to actually datetimeoffset min value when new'd up
  • feat: implement GetMessageBatchResultsAsync method
  • refactor: move local function below return
  • tests: add test for batch result type and succeeded batch result model
  • tests: cover null responses
  • feat: implement ListMessageBatchesAsync method
  • feat: add ListAllMessageBatchesAsync method and corresponding tests
  • feat: add CancelMessageBatchAsync method and corresponding tests
  • tests: add end to end test for canceling a batch
  • refactor: add private method to dry class up a bit
  • feat: add DeleteMessageBatchAsync method and MessageBatchDeleteResponse model with tests
  • docs: stub out batch documentation
  • docs: add examples for message batch api methods

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 98.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 98.98%. Comparing base (0b81bfc) to head (fc2932f).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
src/AnthropicClient/AnthropicApiClient.cs 96.10% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   98.23%   98.98%   +0.75%     
==========================================
  Files          70       81      +11     
  Lines        1356     1478     +122     
  Branches      119      126       +7     
==========================================
+ Hits         1332     1463     +131     
  Misses          5        5              
+ Partials       19       10       -9     

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

@StevanFreeborn StevanFreeborn merged commit 26e5d29 into main Jan 15, 2025
2 checks passed
@StevanFreeborn StevanFreeborn deleted the stevanfreeborn/feat/add-support-for-message-batching branch January 15, 2025 16:31
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.

[FEAT]: Add support for message batching
1 participant