Current section

Files

Jump to
oapi_open_ai lib schemas realtime session create_response tool.ex
Raw

lib/schemas/realtime/session/create_response/tool.ex

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