Class: Tep::Llm::StreamState

Inherits:
Object
  • Object
show all
Defined in:
lib/tep/llm.rb

Overview

Per-stream state carried across consume_sse_events / read loop iterations. See chat_stream + read_sse_response for use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStreamState

Returns a new instance of StreamState.



479
480
481
482
483
# File 'lib/tep/llm.rb', line 479

def initialize
  @acc      = ""
  @leftover = ""
  @done     = false
end

Instance Attribute Details

#accObject

Returns the value of attribute acc.



477
478
479
# File 'lib/tep/llm.rb', line 477

def acc
  @acc
end

#doneObject

Returns the value of attribute done.



477
478
479
# File 'lib/tep/llm.rb', line 477

def done
  @done
end

#leftoverObject

Returns the value of attribute leftover.



477
478
479
# File 'lib/tep/llm.rb', line 477

def leftover
  @leftover
end