ArchAstro. Types. Operations. PostApiV1AiChatCompletionsStream. StreamEvent
(archastro v0.2.0)
Copy Markdown
Stream a chat completion server-sent events.
Summary
Types
@type t() :: %ArchAstro.SSE.Event{ data: ArchAstro.Types.AIChatStreamDone.t() | ArchAstro.Types.AIChatStreamError.t() | ArchAstro.Types.AIChatStreamMessageComplete.t() | ArchAstro.Types.AIChatStreamMessageDelta.t() | ArchAstro.Types.AIChatStreamThinkingDelta.t() | ArchAstro.Types.AIChatStreamToolCallDelta.t() | ArchAstro.Types.AIChatStreamToolResult.t() | ArchAstro.JSON.t(), event: term(), id: term(), retry: term() }
Functions
@spec decode(ArchAstro.SSE.Event.t()) :: t()