Current section
Files
Jump to
Current section
Files
lib/schemas/response/file_search/tool/ranking_options.ex
defmodule OpenAi.Response.FileSearch.Tool.RankingOptions do
@moduledoc """
Provides struct and type for a Response.FileSearch.Tool.RankingOptions
"""
@type t :: %__MODULE__{ranker: String.t() | nil, score_threshold: number | nil}
defstruct [:ranker, :score_threshold]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[ranker: {:enum, ["auto", "default-2024-11-15"]}, score_threshold: :number]
end
end