Class: ClaudeAgentSDK::UnknownBlock
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::UnknownBlock
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Generic content block for types the SDK doesn’t explicitly handle (e.g., “document”, “image”). Preserves the raw hash data for forward compatibility with newer CLI versions.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, data:) ⇒ UnknownBlock
constructor
A new instance of UnknownBlock.
Constructor Details
#initialize(type:, data:) ⇒ UnknownBlock
Returns a new instance of UnknownBlock.
108 109 110 111 |
# File 'lib/claude_agent_sdk/types.rb', line 108 def initialize(type:, data:) @type = type @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
106 107 108 |
# File 'lib/claude_agent_sdk/types.rb', line 106 def data @data end |
#type ⇒ Object
Returns the value of attribute type.
106 107 108 |
# File 'lib/claude_agent_sdk/types.rb', line 106 def type @type end |