Class: ClaudeCode::ToolResultBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_code/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



27
28
29
# File 'lib/claude_code/types.rb', line 27

def content
  @content
end

#is_errorObject (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_idObject (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