Class: ClaudeAgentSDK::UnknownBlock

Inherits:
Type
  • Object
show all
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

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

#dataObject

Returns the value of attribute data.



186
187
188
# File 'lib/claude_agent_sdk/types.rb', line 186

def data
  @data
end

#typeObject

Returns the value of attribute type.



186
187
188
# File 'lib/claude_agent_sdk/types.rb', line 186

def type
  @type
end