Current section

Files

Jump to
oapi_open_ai lib schemas chat completion named_tool choice_function.ex
Raw

lib/schemas/chat/completion/named_tool/choice_function.ex

defmodule OpenAi.Chat.Completion.NamedTool.ChoiceFunction do
@moduledoc """
Provides struct and type for a Chat.Completion.NamedTool.ChoiceFunction
"""
@type t :: %__MODULE__{name: String.t()}
defstruct [:name]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[name: {:string, :generic}]
end
end