PtcLlmHttp.StreamComplete (PtcLlmHttp v0.1.0)

Copy Markdown View Source

Terminal facts for a successfully completed text stream.

Generated text is never accumulated here and inspection is redacted.

Summary

Functions

Returns delivered decoded-text byte and chunk counts.

Returns bounded numeric transport metadata.

Returns provider-reported terminal usage, or nil when optional and absent.

Types

t()

@opaque t()

Functions

delivered(complete)

@spec delivered(t()) :: %{bytes: non_neg_integer(), chunks: non_neg_integer()}

Returns delivered decoded-text byte and chunk counts.

metadata(stream_complete)

@spec metadata(t()) :: map()

Returns bounded numeric transport metadata.

usage(stream_complete)

@spec usage(t()) :: PtcLlmHttp.Usage.t() | nil

Returns provider-reported terminal usage, or nil when optional and absent.