class

OpenAI::VectorStoreExpirationAfter

Inherits JSON::Serializable < Reference < Object

The expiration policy for a vector store.

Constructors

new(anchor : VectorStoreExpirationAfterAnchor = VectorStoreExpirationAfterAnchor::LastActiveAt, days : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

anchor

Anchor timestamp after which the expiration policy applies. Supported anchors: last_active_at.

Source
anchor=(anchor : VectorStoreExpirationAfterAnchor)

Anchor timestamp after which the expiration policy applies. Supported anchors: last_active_at.

Source
days

The number of days after the anchor time that the vector store will expire.

Source
days=(days : Int64)

The number of days after the anchor time that the vector store will expire.

Source
validate!
Source