Class: RubynCode::LLM::ToolResultBlock

Inherits:
Data
  • Object
show all
Defined in:
lib/rubyn_code/llm/message_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tool_use_id:, content:, is_error: false) ⇒ ToolResultBlock

Returns a new instance of ToolResultBlock.



16
17
18
# File 'lib/rubyn_code/llm/message_builder.rb', line 16

def initialize(tool_use_id:, content:, is_error: false)
  super
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



13
14
15
# File 'lib/rubyn_code/llm/message_builder.rb', line 13

def content
  @content
end

#is_errorObject (readonly)

Returns the value of attribute is_error

Returns:

  • (Object)

    the current value of is_error



13
14
15
# File 'lib/rubyn_code/llm/message_builder.rb', line 13

def is_error
  @is_error
end

#tool_use_idObject (readonly)

Returns the value of attribute tool_use_id

Returns:

  • (Object)

    the current value of tool_use_id



13
14
15
# File 'lib/rubyn_code/llm/message_builder.rb', line 13

def tool_use_id
  @tool_use_id
end

Instance Method Details

#typeObject



14
# File 'lib/rubyn_code/llm/message_builder.rb', line 14

def type = 'tool_result'