Class: Foam::Otel::LLM::HttpAnthropicShim::FailingBodyStream
- Inherits:
-
Object
- Object
- Foam::Otel::LLM::HttpAnthropicShim::FailingBodyStream
- Defined in:
- lib/foam/otel/llm/http_anthropic_shim.rb
Overview
Re-raises the transport error foam swallowed mid-capture, so the app's own read fails with the REAL exception class and message.
Instance Method Summary collapse
-
#initialize(error) ⇒ FailingBodyStream
constructor
A new instance of FailingBodyStream.
- #readpartial(*_args) ⇒ Object
Constructor Details
#initialize(error) ⇒ FailingBodyStream
Returns a new instance of FailingBodyStream.
235 236 237 |
# File 'lib/foam/otel/llm/http_anthropic_shim.rb', line 235 def initialize(error) @error = error end |
Instance Method Details
#readpartial(*_args) ⇒ Object
239 240 241 |
# File 'lib/foam/otel/llm/http_anthropic_shim.rb', line 239 def readpartial(*_args) raise @error end |