Class: LLMs::ConversationToolCall

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index, tool_call_id, tool_call_type, name, arguments) ⇒ ConversationToolCall

Returns a new instance of ConversationToolCall.



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

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

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



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

def arguments
  @arguments
end

#indexObject (readonly)

Returns the value of attribute index.



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

def index
  @index
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id.



3
4
5
# File 'lib/llms/conversation_tool_call.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_call.rb', line 3

def tool_call_type
  @tool_call_type
end