### Beta Compaction Capability
The whole hunk
from line 39, old and new numbered
/
lines
from line 39
3939
4040 - `string`
4141
42 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
42 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`
4343
4444 - `"message-batches-2024-09-24"`
4545
from line 131
131131
132132 - `"mid-conversation-system-clear-at-2026-08-21"`
133133
134 - `"compact-2026-09-04"`
135
134136- `"anthropic-workspace-id": optional string`
135137
136138### Returns
from line 175
173175
174176 Whether the model supports code execution tools.
175177
178 - `compaction: BetaCompactionCapability or null`
179
180 Compaction capability details: whether the model accepts the top-level
181 `compaction` request parameter, with one entry per supported
182 `compaction.type` value.
183
184 - `summarize: BetaCapabilitySupport`
185
186 Whether the summarize compaction type is supported.
187
188 - `supported: boolean`
189
190 Whether this capability is supported by the model.
191
176192 - `context_management: BetaContextManagementCapability`
177193
178194 Context management support and available strategies.
from line 327
311327 "code_execution": {
312328 "supported": true
313329 },
330 "compaction": {
331 "summarize": {
332 "supported": true
333 },
334 "supported": true
335 },
314336 "context_management": {
315337 "clear_thinking_20251015": {
316338 "supported": true
from line 419
397419
398420 - `string`
399421
400 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
422 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`
401423
402424 - `"message-batches-2024-09-24"`
403425
from line 511
489511
490512 - `"mid-conversation-system-clear-at-2026-08-21"`
491513
514 - `"compact-2026-09-04"`
515
492516- `"anthropic-workspace-id": optional string`
493517
494518### Returns
from line 555
531555
532556 Whether the model supports code execution tools.
533557
558 - `compaction: BetaCompactionCapability or null`
559
560 Compaction capability details: whether the model accepts the top-level
561 `compaction` request parameter, with one entry per supported
562 `compaction.type` value.
563
564 - `summarize: BetaCapabilitySupport`
565
566 Whether the summarize compaction type is supported.
567
568 - `supported: boolean`
569
570 Whether this capability is supported by the model.
571
534572 - `context_management: BetaContextManagementCapability`
535573
536574 Context management support and available strategies.
from line 693
655693 "code_execution": {
656694 "supported": true
657695 },
696 "compaction": {
697 "summarize": {
698 "supported": true
699 },
700 "supported": true
701 },
658702 "context_management": {
659703 "clear_thinking_20251015": {
660704 "supported": true
from line 770
726770
727771 Whether this capability is supported by the model.
728772
773### Beta Compaction Capability
774
775- `BetaCompactionCapability object`
776
777 Compaction capability details: whether the model accepts the top-level
778 `compaction` request parameter, with one entry per supported
779 `compaction.type` value.
780
781 - `summarize: BetaCapabilitySupport`
782
783 Whether the summarize compaction type is supported.
784
785 - `supported: boolean`
786
787 Whether this capability is supported by the model.
788
789 - `supported: boolean`
790
791 Whether this capability is supported by the model.
792
729793### Beta Context Management Capability
730794
731795- `BetaContextManagementCapability object`
from line 872
808872
809873 Whether the model supports code execution tools.
810874
875 - `compaction: BetaCompactionCapability or null`
876
877 Compaction capability details: whether the model accepts the top-level
878 `compaction` request parameter, with one entry per supported
879 `compaction.type` value.
880
881 - `summarize: BetaCapabilitySupport`
882
883 Whether the summarize compaction type is supported.
884
885 - `supported: boolean`
886
887 Whether this capability is supported by the model.
888
811889 - `context_management: BetaContextManagementCapability`
812890
813891 Context management support and available strategies.
from line 1005
9271005 - `code_execution: BetaCapabilitySupport`
9281006
9291007 Whether the model supports code execution tools.
1008
1009 - `compaction: BetaCompactionCapability or null`
1010
1011 Compaction capability details: whether the model accepts the top-level
1012 `compaction` request parameter, with one entry per supported
1013 `compaction.type` value.
1014
1015 - `summarize: BetaCapabilitySupport`
1016
1017 Whether the summarize compaction type is supported.
1018
1019 - `supported: boolean`
1020
1021 Whether this capability is supported by the model.
9301022
9311023 - `context_management: BetaContextManagementCapability`
9321024