MistralClient.Models.ChatCompletionChoice (mistralex_ai v0.1.0)

View Source

Represents a choice in a chat completion response.

Summary

Functions

Create a chat completion choice from a map.

Types

t()

@type t() :: %MistralClient.Models.ChatCompletionChoice{
  delta: map() | nil,
  finish_reason: String.t() | nil,
  index: integer(),
  message: MistralClient.Models.Message.t()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create a chat completion choice from a map.