Exception: Rubino::StreamInterruptedError

Inherits:
UpstreamError show all
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

#service

Instance Method Summary collapse

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(message = "stream ended before completion", service: "llm")
  super
end