Class: LLMs::Stream::Events::TextDelta
- 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) ⇒ TextDelta
constructor
A new instance of TextDelta.
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(, text) super() @message_id = @text = text end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
39 40 41 |
# File 'lib/llms/stream/events.rb', line 39 def @message_id end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
39 40 41 |
# File 'lib/llms/stream/events.rb', line 39 def text @text end |