aws.internal.decode_stream_batch

One `SseStream.next()` batch -> the stream events it contains. Tool-use and reasoning deltas are skipped: streaming runs no tool loop, and the non-streaming path does not surface reasoning as text either.

Reference version

Signature

function aws.internal.decode_stream_batch(
batch: string
) -> ai.stream.Event[] throws baml.json.DecodeError | baml.json.ParseError | ai.errors.Failure

One SseStream.next() batch -> the stream events it contains. Tool-use and reasoning deltas are skipped: streaming runs no tool loop, and the non-streaming path does not surface reasoning as text either.

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 65223–69106