Class: RubyLLM::Protocol::Streaming::StreamState

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby_llm/protocol/streaming.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStreamState

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

#bufferObject

Returns the value of attribute buffer

Returns:

  • (Object)

    the current value of buffer



10
11
12
# File 'lib/ruby_llm/protocol/streaming.rb', line 10

def buffer
  @buffer
end

#parserObject

Returns the value of attribute parser

Returns:

  • (Object)

    the current value of parser



10
11
12
# File 'lib/ruby_llm/protocol/streaming.rb', line 10

def parser
  @parser
end