ExOpenAI.Components.ChatCompletionRequestMessage (ex_openai.ex v1.2.1) View Source

Schema representing a ChatCompletionRequestMessage within the OpenAI API

Link to this section Summary

Link to this section Types

Specs

t() :: %ExOpenAI.Components.ChatCompletionRequestMessage{
  content: String.t() | nil,
  function_call: %{arguments: String.t(), name: String.t()} | nil,
  name: String.t() | nil,
  role: :function | :assistant | :user | :system
}