Class: RubyLLM::Protocol::Streaming::StreamState
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::Protocol::Streaming::StreamState
- Defined in:
- lib/ruby_llm/protocol/streaming.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize ⇒ StreamState
constructor
A new instance of StreamState.
Constructor Details
#initialize ⇒ StreamState
Returns a new instance of StreamState.
11 12 13 |
# File 'lib/ruby_llm/protocol/streaming.rb', line 11 def initialize super(EventStreamParser::Parser.new, +'') end |
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer
10 11 12 |
# File 'lib/ruby_llm/protocol/streaming.rb', line 10 def buffer @buffer end |
#parser ⇒ Object
Returns the value of attribute parser
10 11 12 |
# File 'lib/ruby_llm/protocol/streaming.rb', line 10 def parser @parser end |