Class: ClaudeAgentSDK::AssistantMessage
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::AssistantMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Assistant message with content blocks
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#model ⇒ Object
Returns the value of attribute model.
-
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
Instance Method Summary collapse
-
#initialize(content:, model:, parent_tool_use_id: nil) ⇒ AssistantMessage
constructor
A new instance of AssistantMessage.
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
#content ⇒ Object
Returns the value of attribute content.
61 62 63 |
# File 'lib/claude_agent_sdk/types.rb', line 61 def content @content end |
#model ⇒ Object
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_id ⇒ Object
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 |