aws.internal.decode_stream_event

Decode one event payload by its `:event-type`; `null` for an event type this model does not know.

Reference version

Signature

function aws.internal.decode_stream_event(
event_type: string,
data: string
) -> aws.internal.ConverseStreamEvent | null throws baml.json.DecodeError | baml.json.ParseError

Decode one event payload by its :event-type; null for an event type this model does not know.

Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 63168–63784