Class: LLMs::Stream::Events::ToolCallArgumentsUpdated

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

Overview

Holds the current parse-attempted state of the arguments object, not a delta

Instance Attribute Summary collapse

Attributes inherited from Base

#timestamp

Instance Method Summary collapse

Constructor Details

#initialize(message_id, tool_call_id, index, arguments) ⇒ ToolCallArgumentsUpdated

Returns a new instance of ToolCallArgumentsUpdated.



73
74
75
76
77
78
79
# File 'lib/llms/stream/events.rb', line 73

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

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



72
73
74
# File 'lib/llms/stream/events.rb', line 72

def arguments
  @arguments
end

#indexObject (readonly)

Returns the value of attribute index.



72
73
74
# File 'lib/llms/stream/events.rb', line 72

def index
  @index
end

#message_idObject (readonly)

Returns the value of attribute message_id.



72
73
74
# File 'lib/llms/stream/events.rb', line 72

def message_id
  @message_id
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id.



72
73
74
# File 'lib/llms/stream/events.rb', line 72

def tool_call_id
  @tool_call_id
end