Skip to main content

decode_converse_stream

Function decode_converse_stream 

Source
pub fn decode_converse_stream(
    bytes: &[u8],
) -> Result<Vec<ConverseEvent>, AwsError>
Expand description

Decode AWS EventStream frames returned by Bedrock ConverseStream. CRCs are validated before JSON is inspected, preventing truncated/corrupt frames from being interpreted as model output.