Class: ClaudeCode::ToolResultBlock
- Inherits:
-
Object
- Object
- ClaudeCode::ToolResultBlock
- Defined in:
- lib/claude_code/types.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#is_error ⇒ Object
readonly
Returns the value of attribute is_error.
-
#tool_use_id ⇒ Object
readonly
Returns the value of attribute tool_use_id.
Instance Method Summary collapse
-
#initialize(tool_use_id:, content: nil, is_error: nil) ⇒ ToolResultBlock
constructor
A new instance of ToolResultBlock.
Constructor Details
#initialize(tool_use_id:, content: nil, is_error: nil) ⇒ ToolResultBlock
Returns a new instance of ToolResultBlock.
29 30 31 32 33 |
# File 'lib/claude_code/types.rb', line 29 def initialize(tool_use_id:, content: nil, is_error: nil) @tool_use_id = tool_use_id @content = content @is_error = is_error end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
27 28 29 |
# File 'lib/claude_code/types.rb', line 27 def content @content end |
#is_error ⇒ Object (readonly)
Returns the value of attribute is_error.
27 28 29 |
# File 'lib/claude_code/types.rb', line 27 def is_error @is_error end |
#tool_use_id ⇒ Object (readonly)
Returns the value of attribute tool_use_id.
27 28 29 |
# File 'lib/claude_code/types.rb', line 27 def tool_use_id @tool_use_id end |