Class: ClaudeAgentSDK::CompactBoundaryMessage

Inherits:
SystemMessage show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Compact boundary system message (emitted after context compaction completes)

Instance Attribute Summary collapse

Attributes inherited from SystemMessage

#data, #subtype

Instance Method Summary collapse

Constructor Details

#initialize(subtype:, data:, uuid: nil, session_id: nil, compact_metadata: nil) ⇒ CompactBoundaryMessage

Returns a new instance of CompactBoundaryMessage.



214
215
216
217
218
219
# File 'lib/claude_agent_sdk/types.rb', line 214

def initialize(subtype:, data:, uuid: nil, session_id: nil, compact_metadata: nil)
  super(subtype: subtype, data: data)
  @uuid = uuid
  @session_id = session_id
  @compact_metadata = 
end

Instance Attribute Details

#compact_metadataObject

Returns the value of attribute compact_metadata.



212
213
214
# File 'lib/claude_agent_sdk/types.rb', line 212

def 
  @compact_metadata
end

#session_idObject

Returns the value of attribute session_id.



212
213
214
# File 'lib/claude_agent_sdk/types.rb', line 212

def session_id
  @session_id
end

#uuidObject

Returns the value of attribute uuid.



212
213
214
# File 'lib/claude_agent_sdk/types.rb', line 212

def uuid
  @uuid
end