Documentation
¶
Overview ¶
Package eventstream frames AWS Event Stream messages into raw inference stream frames. Bedrock ConverseStream uses this binary protocol rather than Server-Sent Events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeStreamFrames ¶
func DecodeStreamFrames(body io.ReadCloser) (*stream.StreamReader[stream.StreamFrame], error)
DecodeStreamFrames lazily decodes one AWS Event Stream message per Next call. The returned reader owns body and closes it when Close is called. A clean EOF is returned only when no bytes remain at the start of a new frame.
func Framer ¶
func Framer() codec.StreamFramer
Framer returns the package's StreamFramer as an injectable value.
Types ¶
type FramerError ¶
FramerError identifies a malformed AWS Event Stream frame or a read failure encountered while reading one. Err remains available through errors.Is/As.
func (*FramerError) Error ¶
func (e *FramerError) Error() string
func (*FramerError) Unwrap ¶
func (e *FramerError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.