ai.stream._overlay_usage

(internal) `base` with every count `next` reports replaced: a provider reports its counts across several events, the latest value of each winning.

Reference version

Signature

function ai.stream._overlay_usage(
base: ai.events.Usage | null,
) -> ai.events.Usage throws never

(internal) base with every count next reports replaced: a provider reports its counts across several events, the latest value of each winning.

Source:<builtin>/ai/ns_stream/stream.bamlbytes 29204–29810