Terminal facts for a consumer-halted text stream.
Partial generated text is never retained and inspection is redacted.
Summary
Functions
Returns delivered decoded-text byte and chunk counts.
Returns bounded numeric transport metadata observed before halt.
Returns the closed halt reason.
Returns usage observed before the halt, if any.
Returns false; a halted stream never has authoritative terminal usage.
Types
Functions
@spec delivered(t()) :: %{bytes: non_neg_integer(), chunks: non_neg_integer()}
Returns delivered decoded-text byte and chunk counts.
Returns bounded numeric transport metadata observed before halt.
@spec reason(t()) :: :consumer_halted
Returns the closed halt reason.
@spec usage(t()) :: PtcLlmHttp.Usage.t() | nil
Returns usage observed before the halt, if any.
@spec usage_complete?(t()) :: false
Returns false; a halted stream never has authoritative terminal usage.