Exception: Rubino::StreamInterruptedError
- Inherits:
-
UpstreamError
- Object
- StandardError
- Error
- UpstreamError
- Rubino::StreamInterruptedError
- Defined in:
- lib/rubino/errors.rb
Overview
The LLM streaming response was cut before a clean completion: upstream closed the SSE connection without a terminal signal (no finish_reason / no [DONE] / null usage), leaving only a buffered partial with no tool call. Raised by the Loop so a truncated turn fails honestly (run.failed) instead of being reported as a successful “completed” turn carrying empty/partial output. Common trigger: a provider stream idle-timeout during a long time-to-first-token on a very large context. Maps to 502 (subclass of UpstreamError).
Instance Attribute Summary
Attributes inherited from UpstreamError
Instance Method Summary collapse
-
#initialize(message = "stream ended before completion", service: "llm") ⇒ StreamInterruptedError
constructor
A new instance of StreamInterruptedError.
Constructor Details
#initialize(message = "stream ended before completion", service: "llm") ⇒ StreamInterruptedError
Returns a new instance of StreamInterruptedError.
101 102 103 |
# File 'lib/rubino/errors.rb', line 101 def initialize( = "stream ended before completion", service: "llm") super end |