defmodule OpenAi.Response.WebSearch.ToolCall do @moduledoc """ Provides struct and type for a Response.WebSearch.ToolCall """ @type t :: %__MODULE__{id: String.t(), status: String.t(), type: String.t()} defstruct [:id, :status, :type] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ id: {:string, :generic}, status: {:enum, ["in_progress", "searching", "completed", "failed"]}, type: {:const, "web_search_call"} ] end end