Class: LLMs::Stream::Events::MessageStarted
- Defined in:
- lib/llms/stream/events.rb
Instance Attribute Summary collapse
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(message_id, text = '') ⇒ MessageStarted
constructor
A new instance of MessageStarted.
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(, text = '') super() @message_id = @text = text end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
12 13 14 |
# File 'lib/llms/stream/events.rb', line 12 def @message_id end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
12 13 14 |
# File 'lib/llms/stream/events.rb', line 12 def text @text end |