Class: Tep::Llm::StreamState
- Inherits:
-
Object
- Object
- Tep::Llm::StreamState
- 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
-
#acc ⇒ Object
Returns the value of attribute acc.
-
#done ⇒ Object
Returns the value of attribute done.
-
#leftover ⇒ Object
Returns the value of attribute leftover.
Instance Method Summary collapse
-
#initialize ⇒ StreamState
constructor
A new instance of StreamState.
Constructor Details
#initialize ⇒ StreamState
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
#acc ⇒ Object
Returns the value of attribute acc.
477 478 479 |
# File 'lib/tep/llm.rb', line 477 def acc @acc end |
#done ⇒ Object
Returns the value of attribute done.
477 478 479 |
# File 'lib/tep/llm.rb', line 477 def done @done end |
#leftover ⇒ Object
Returns the value of attribute leftover.
477 478 479 |
# File 'lib/tep/llm.rb', line 477 def leftover @leftover end |