struct

Anthropic::CompactionContent

Inherits JSON::Serializable < Struct < Value < Object

Compaction content block

Returned during auto-compaction of conversation history.

For conversations using confidential compaction, encrypted_content is returned instead of content. The encrypted blob must be passed back verbatim on subsequent requests; do not inspect or modify it.

Constructors

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

Instance methods

content
Source
encrypted_content
Source
type
Source