Class: ClaudeCodeSDK::Content::ToolResultBlock
- Inherits:
-
Object
- Object
- ClaudeCodeSDK::Content::ToolResultBlock
- Defined in:
- lib/claude_code_sdk/messages.rb
Instance Attribute Summary collapse
-
#is_error ⇒ Object
readonly
Returns the value of attribute is_error.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#tool_use_id ⇒ Object
readonly
Returns the value of attribute tool_use_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(tool_use_id:, output:, is_error: false) ⇒ ToolResultBlock
constructor
A new instance of ToolResultBlock.
Constructor Details
#initialize(tool_use_id:, output:, is_error: false) ⇒ ToolResultBlock
Returns a new instance of ToolResultBlock.
93 94 95 96 97 98 |
# File 'lib/claude_code_sdk/messages.rb', line 93 def initialize(tool_use_id:, output:, is_error: false) @type = "tool_result" @tool_use_id = tool_use_id @output = output @is_error = is_error end |
Instance Attribute Details
#is_error ⇒ Object (readonly)
Returns the value of attribute is_error.
91 92 93 |
# File 'lib/claude_code_sdk/messages.rb', line 91 def is_error @is_error end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
91 92 93 |
# File 'lib/claude_code_sdk/messages.rb', line 91 def output @output end |
#tool_use_id ⇒ Object (readonly)
Returns the value of attribute tool_use_id.
91 92 93 |
# File 'lib/claude_code_sdk/messages.rb', line 91 def tool_use_id @tool_use_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
91 92 93 |
# File 'lib/claude_code_sdk/messages.rb', line 91 def type @type end |