class LittleGhost::Providers::Bedrock::StreamError
Represents an error event returned inside a Bedrock stream.
Attributes
Normalized Bedrock event type used to decide whether a retry is safe.
Public Class Methods
Source
# File lib/little_ghost/providers/bedrock.rb, line 43 def initialize(message, event_type:) @event_type = event_type.to_s super(message) end
Creates a stream error for event_type.
Calls superclass method
Public Instance Methods
Source
# File lib/little_ghost/providers/bedrock.rb, line 49 def retryable? = TRANSIENT_STREAM_ERRORS.include?(event_type)
Indicates whether LittleGhost may retry this Bedrock event.