Class: ClaudeAgentSDK::AssistantMessage

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

Overview

Assistant message with content blocks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, model:, parent_tool_use_id: nil) ⇒ AssistantMessage

Returns a new instance of AssistantMessage.



63
64
65
66
67
# File 'lib/claude_agent_sdk/types.rb', line 63

def initialize(content:, model:, parent_tool_use_id: nil)
  @content = content
  @model = model
  @parent_tool_use_id = parent_tool_use_id
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



61
62
63
# File 'lib/claude_agent_sdk/types.rb', line 61

def content
  @content
end

#modelObject

Returns the value of attribute model.



61
62
63
# File 'lib/claude_agent_sdk/types.rb', line 61

def model
  @model
end

#parent_tool_use_idObject

Returns the value of attribute parent_tool_use_id.



61
62
63
# File 'lib/claude_agent_sdk/types.rb', line 61

def parent_tool_use_id
  @parent_tool_use_id
end