struct

Anthropic::CompactionDelta

Inherits JSON::Serializable < Struct < Value < Object

Compaction delta - streaming compaction content

encrypted_content is populated when the API is configured to return encrypted (confidential) compaction output instead of plaintext content.

Constructors

new(pull : JSON::PullParser) : self

Custom pull-parser constructor tracking encrypted_content key presence, which plain deserialization cannot observe.

Source
new(content : String | Nil = nil, encrypted_content : String | Nil = nil, encrypted_content_present : Bool = false)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
encrypted_content
Source
encrypted_content_present?

Whether the payload carried the encrypted_content key (even null). The streaming accumulator only copies the key when the server sent it.

Source
type
Source