defmodule OpenAi.VectorStore.File.Batch do @moduledoc """ Provides struct and type for a VectorStore.File.Batch """ @type t :: %__MODULE__{ created_at: integer, file_counts: OpenAi.VectorStore.File.Batch.FileCounts.t(), id: String.t(), object: String.t(), status: String.t(), vector_store_id: String.t() } defstruct [:created_at, :file_counts, :id, :object, :status, :vector_store_id] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ created_at: :integer, file_counts: {OpenAi.VectorStore.File.Batch.FileCounts, :t}, id: {:string, :generic}, object: {:const, "vector_store.files_batch"}, status: {:enum, ["in_progress", "completed", "cancelled", "failed"]}, vector_store_id: {:string, :generic} ] end end