Current section
Files
Jump to
Current section
Files
lib/schemas/response/file_search/tool/call.ex
defmodule OpenAi.Response.FileSearch.Tool.Call do
@moduledoc """
Provides struct and type for a Response.FileSearch.Tool.Call
"""
@type t :: %__MODULE__{
id: String.t(),
queries: [String.t()],
results: [OpenAi.Response.FileSearch.Tool.CallResult.t()] | nil,
status: String.t(),
type: String.t()
}
defstruct [:id, :queries, :results, :status, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
id: {:string, :generic},
queries: [string: :generic],
results: [{OpenAi.Response.FileSearch.Tool.CallResult, :t}],
status: {:enum, ["in_progress", "searching", "completed", "incomplete", "failed"]},
type: {:const, "file_search_call"}
]
end
end