Class: ClaudeCodeSDK::SystemMessage

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

Overview

System message

Instance Attribute Summary collapse

Attributes inherited from Message

#id, #type

Instance Method Summary collapse

Constructor Details

#initialize(id:, title:, message:) ⇒ SystemMessage

Returns a new instance of SystemMessage.



39
40
41
42
43
# File 'lib/claude_code_sdk/messages.rb', line 39

def initialize(id:, title:, message:)
  super(id: id, type: "system")
  @title = title
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



37
38
39
# File 'lib/claude_code_sdk/messages.rb', line 37

def message
  @message
end

#titleObject (readonly)

Returns the value of attribute title.



37
38
39
# File 'lib/claude_code_sdk/messages.rb', line 37

def title
  @title
end