Class: LLMs::Stream::Events::ToolCallCompleted

Inherits:
Base
  • Object
show all
Defined in:
lib/llms/stream/events.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#timestamp

Instance Method Summary collapse

Constructor Details

#initialize(message_id, tool_call_id, index, name, arguments) ⇒ ToolCallCompleted

Returns a new instance of ToolCallCompleted.



84
85
86
87
88
89
90
91
# File 'lib/llms/stream/events.rb', line 84

def initialize(message_id, tool_call_id, index, name, arguments)
  super()
  @message_id = message_id
  @tool_call_id = tool_call_id
  @index = index
  @name = name
  @arguments = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



83
84
85
# File 'lib/llms/stream/events.rb', line 83

def arguments
  @arguments
end

#indexObject (readonly)

Returns the value of attribute index.



83
84
85
# File 'lib/llms/stream/events.rb', line 83

def index
  @index
end

#message_idObject (readonly)

Returns the value of attribute message_id.



83
84
85
# File 'lib/llms/stream/events.rb', line 83

def message_id
  @message_id
end

#nameObject (readonly)

Returns the value of attribute name.



83
84
85
# File 'lib/llms/stream/events.rb', line 83

def name
  @name
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id.



83
84
85
# File 'lib/llms/stream/events.rb', line 83

def tool_call_id
  @tool_call_id
end