ArchAstro. SDK. Types. AICompletionResult
(archastro v0.3.3)
Copy Markdown
The result of an AI chat completion request. Returned by chat completion endpoints after the model finishes generating.
Summary
Types
@type t() :: %ArchAstro.SDK.Types.AICompletionResult{ finish_reason: String.t(), message: ArchAstro.SDK.Types.AIMessage.t(), messages: [ArchAstro.SDK.Types.AIMessage.t()], token_usage: %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t() }
Functions
@spec from_map(ArchAstro.SDK.JSON.object()) :: t()
@spec matches?(ArchAstro.SDK.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.SDK.JSON.object()