Current section
Files
Jump to
Current section
Files
lib/ex_openai/generated/components/assistant_tools_file_search.ex
defmodule ExOpenAI.Components.AssistantToolsFileSearch do
use ExOpenAI.Jason
@moduledoc """
Module for representing the OpenAI schema AssistantToolsFileSearch.
## Fields
* `:file_search` - **optional** - `{:%{}, [], [{{:optional, [], [:max_num_results]}, {:integer, [], []}}, {{:optional, [], [:ranking_options]}, {{:., [], [ExOpenAI.Components.FileSearchRankingOptions, :t]}, [], []}}]}`
Overrides for the file search tool.
* `:type` - **required** - `:file_search`
The type of tool being defined: `file_search`
Allowed values: `"file_search"`
"""
@type t() :: %{
__struct__: __MODULE__,
file_search:
%{
optional(:max_num_results) => integer(),
optional(:ranking_options) => ExOpenAI.Components.FileSearchRankingOptions.t()
}
| nil,
type: :file_search
}
defstruct [:file_search, :type]
end