Class: LLMs::ConversationToolResult

Inherits:
Object
  • Object
show all
Defined in:
lib/llms/conversation_tool_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index, tool_call_id, tool_call_type, name, results, is_error) ⇒ ConversationToolResult

Returns a new instance of ConversationToolResult.



5
6
7
8
9
10
11
12
13
# File 'lib/llms/conversation_tool_result.rb', line 5

def initialize(index, tool_call_id, tool_call_type, name, results, is_error)
  raise "index is nil" if index.nil?
  @index = index
  @tool_call_id = tool_call_id
  @tool_call_type = tool_call_type
  @name = name
  @results = results
  @is_error = is_error
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



3
4
5
# File 'lib/llms/conversation_tool_result.rb', line 3

def index
  @index
end

#is_errorObject (readonly)

Returns the value of attribute is_error.



3
4
5
# File 'lib/llms/conversation_tool_result.rb', line 3

def is_error
  @is_error
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/llms/conversation_tool_result.rb', line 3

def name
  @name
end

#resultsObject (readonly)

Returns the value of attribute results.



3
4
5
# File 'lib/llms/conversation_tool_result.rb', line 3

def results
  @results
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id.



3
4
5
# File 'lib/llms/conversation_tool_result.rb', line 3

def tool_call_id
  @tool_call_id
end

#tool_call_typeObject (readonly)

Returns the value of attribute tool_call_type.



3
4
5
# File 'lib/llms/conversation_tool_result.rb', line 3

def tool_call_type
  @tool_call_type
end