Current section

Files

Jump to
oapi_open_ai lib schemas vector_store expiration_after.ex
Raw

lib/schemas/vector_store/expiration_after.ex

defmodule OpenAi.VectorStore.ExpirationAfter do
@moduledoc """
Provides struct and type for a VectorStore.ExpirationAfter
"""
@type t :: %__MODULE__{anchor: String.t(), days: integer}
defstruct [:anchor, :days]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[anchor: {:const, "last_active_at"}, days: :integer]
end
end