Class: ClaudeAgentSDK::CompactMetadata

Inherits:
Type
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Metadata about a compaction event

Instance Attribute Summary collapse

Method Summary

Methods inherited from Type

#[], #[]=, from_hash, #initialize, #to_h, wrap

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#custom_instructionsObject

Returns the value of attribute custom_instructions.



255
256
257
# File 'lib/claude_agent_sdk/types.rb', line 255

def custom_instructions
  @custom_instructions
end

#post_tokensObject

Returns the value of attribute post_tokens.



255
256
257
# File 'lib/claude_agent_sdk/types.rb', line 255

def post_tokens
  @post_tokens
end

#pre_tokensObject

Returns the value of attribute pre_tokens.



255
256
257
# File 'lib/claude_agent_sdk/types.rb', line 255

def pre_tokens
  @pre_tokens
end

#preserved_segmentObject

Returns the value of attribute preserved_segment.



255
256
257
# File 'lib/claude_agent_sdk/types.rb', line 255

def preserved_segment
  @preserved_segment
end

#triggerObject

Returns the value of attribute trigger.



255
256
257
# File 'lib/claude_agent_sdk/types.rb', line 255

def trigger
  @trigger
end