Class: LLMs::Stream::Events::MessageStarted

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 = '') ⇒ MessageStarted

Returns a new instance of MessageStarted.



13
14
15
16
17
# File 'lib/llms/stream/events.rb', line 13

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.



12
13
14
# File 'lib/llms/stream/events.rb', line 12

def message_id
  @message_id
end

#textObject (readonly)

Returns the value of attribute text.



12
13
14
# File 'lib/llms/stream/events.rb', line 12

def text
  @text
end