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.
new(content : String | Nil = nil, encrypted_content : String | Nil = nil, encrypted_content_present : Bool = false)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
Sourceencrypted_content
Sourceencrypted_content_present?
Whether the payload carried the encrypted_content key (even
null). The streaming accumulator only copies the key when the
server sent it.
type
Source