Class: ClaudeCodeSDK::ThinkingMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/claude_code_sdk/messages.rb

Overview

Thinking message (Claude's internal reasoning)

Instance Attribute Summary collapse

Attributes inherited from Message

#id, #type

Instance Method Summary collapse

Constructor Details

#initialize(id:, content:) ⇒ ThinkingMessage

Returns a new instance of ThinkingMessage.



62
63
64
65
# File 'lib/claude_code_sdk/messages.rb', line 62

def initialize(id:, content:)
  super(id: id, type: "thinking")
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



60
61
62
# File 'lib/claude_code_sdk/messages.rb', line 60

def content
  @content
end