ArchAstro. Types. AIChatStreamMessageComplete
(archastro v0.2.0)
Copy Markdown
The fully assembled assistant message for one run of a streaming chat completion (SSE message_complete event).
Summary
Types
@type t() :: %ArchAstro.Types.AIChatStreamMessageComplete{ finish_reason: String.t() | ArchAstro.Unset.t(), message: ArchAstro.Types.AIMessage.t(), usage: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()