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.
86 87 88 89 90 91 |
# File 'lib/claude_agent_sdk/types.rb', line 86 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.
84 85 86 |
# File 'lib/claude_agent_sdk/types.rb', line 84 def content @content end |
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
84 85 86 |
# File 'lib/claude_agent_sdk/types.rb', line 84 def parent_tool_use_id @parent_tool_use_id end |
#tool_use_result ⇒ Object
Returns the value of attribute tool_use_result.
84 85 86 |
# File 'lib/claude_agent_sdk/types.rb', line 84 def tool_use_result @tool_use_result end |
#uuid ⇒ Object
Returns the value of attribute uuid.
84 85 86 |
# File 'lib/claude_agent_sdk/types.rb', line 84 def uuid @uuid end |