Current section
Files
Jump to
Current section
Files
lib/schemas/assistant/named_tool_choice.ex
defmodule OpenAi.Assistant.NamedToolChoice do
@moduledoc """
Provides struct and type for a Assistant.NamedToolChoice
"""
@type t :: %__MODULE__{
function: OpenAi.Assistant.NamedToolChoiceFunction.t() | nil,
type: String.t()
}
defstruct [:function, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
function: {OpenAi.Assistant.NamedToolChoiceFunction, :t},
type: {:enum, ["function", "code_interpreter", "file_search"]}
]
end
end