Skip to content

chore: remove agentic compressor support#424

Merged
SachaMorard merged 3 commits into
mainfrom
chore/remove-agentic-compressor
May 20, 2026
Merged

chore: remove agentic compressor support#424
SachaMorard merged 3 commits into
mainfrom
chore/remove-agentic-compressor

Conversation

@SachaMorard
Copy link
Copy Markdown
Member

Summary

  • Drop the agentic compression model from the SDK now that the gateway no longer offers it
  • Remove the CompressionConfiguration struct, the compression_configuration field on InputObject/ParsedInput, the with_compression_configuration builder, and the body-serialization paths in send/stream
  • Update the compression.rs example and the builder test to use the claude compression model and refresh the doc comments to list only the still-supported models (claude, opencode, cursor, customer)

Test plan

  • cargo build
  • cargo test (8 unit + 5 doc tests passing)
  • Confirm no downstream consumer still relies on with_compression_configuration / CompressionConfiguration

🤖 Generated with Claude Code

The agentic compression model and its per-request CompressionConfiguration
(rate, semantic_preservation_threshold) are no longer offered by the gateway.
Drop the struct, builder, body serialization, and example/test references so
the SDK only exposes the supported compression models.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SachaMorard SachaMorard requested a review from a team as a code owner May 20, 2026 03:44
SachaMorard and others added 2 commits May 20, 2026 05:46
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SachaMorard SachaMorard merged commit ab4af88 into main May 20, 2026
12 checks passed
@SachaMorard SachaMorard deleted the chore/remove-agentic-compressor branch May 20, 2026 03:57
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.

1 participant