anthropic.internal.decode_batch

One `SseStream.next()` batch -> provider-agnostic stream events, folding everything Event cannot carry into `state`.

Reference version

Signature

function anthropic.internal.decode_batch(
) -> ai.stream.Event[] throws baml.json.DecodeError | baml.json.ParseError | ai.errors.Failure

One SseStream.next() batch -> provider-agnostic stream events, folding everything Event cannot carry into state.

Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 4082348254