Class: LLMs::Stream::Events::TextDelta

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, text) ⇒ TextDelta

Returns a new instance of TextDelta.



40
41
42
43
44
# File 'lib/llms/stream/events.rb', line 40

def initialize(message_id, text)
  super()
  @message_id = message_id
  @text = text
end

Instance Attribute Details

#message_idObject (readonly)

Returns the value of attribute message_id.



39
40
41
# File 'lib/llms/stream/events.rb', line 39

def message_id
  @message_id
end

#textObject (readonly)

Returns the value of attribute text.



39
40
41
# File 'lib/llms/stream/events.rb', line 39

def text
  @text
end