Class: ClaudeAgentSDK::UserMessage
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::UserMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
User message
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
-
#tool_use_result ⇒ Object
Returns the value of attribute tool_use_result.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(content:, uuid: nil, parent_tool_use_id: nil, tool_use_result: nil) ⇒ UserMessage
constructor
A new instance of UserMessage.
Constructor Details
#initialize(content:, uuid: nil, parent_tool_use_id: nil, tool_use_result: nil) ⇒ UserMessage
Returns a new instance of UserMessage.
120 121 122 123 124 125 |
# File 'lib/claude_agent_sdk/types.rb', line 120 def initialize(content:, uuid: nil, parent_tool_use_id: nil, tool_use_result: nil) @content = content @uuid = uuid # Unique identifier for rewind support @parent_tool_use_id = parent_tool_use_id @tool_use_result = tool_use_result # Tool result data when message is a tool response end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
118 119 120 |
# File 'lib/claude_agent_sdk/types.rb', line 118 def content @content end |
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
118 119 120 |
# File 'lib/claude_agent_sdk/types.rb', line 118 def parent_tool_use_id @parent_tool_use_id end |
#tool_use_result ⇒ Object
Returns the value of attribute tool_use_result.
118 119 120 |
# File 'lib/claude_agent_sdk/types.rb', line 118 def tool_use_result @tool_use_result end |
#uuid ⇒ Object
Returns the value of attribute uuid.
118 119 120 |
# File 'lib/claude_agent_sdk/types.rb', line 118 def uuid @uuid end |