Class: LLMs::Stream::Events::ToolCallArgumentsJsonDelta

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, json_delta) ⇒ ToolCallArgumentsJsonDelta

Returns a new instance of ToolCallArgumentsJsonDelta.



61
62
63
64
65
66
67
# File 'lib/llms/stream/events.rb', line 61

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

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



60
61
62
# File 'lib/llms/stream/events.rb', line 60

def index
  @index
end

#json_deltaObject (readonly)

Returns the value of attribute json_delta.



60
61
62
# File 'lib/llms/stream/events.rb', line 60

def json_delta
  @json_delta
end

#message_idObject (readonly)

Returns the value of attribute message_id.



60
61
62
# File 'lib/llms/stream/events.rb', line 60

def message_id
  @message_id
end

#tool_call_idObject (readonly)

Returns the value of attribute tool_call_id.



60
61
62
# File 'lib/llms/stream/events.rb', line 60

def tool_call_id
  @tool_call_id
end