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