Class ExpirationPolicy
- Namespace
- OpenAI.VectorStores
- Assembly
- OpenAI-DotNet.dll
The expiration policy for a vector store.
public sealed class ExpirationPolicy
- Inheritance
-
ExpirationPolicy
- Inherited Members
Constructors
ExpirationPolicy(int)
Constructor.
public ExpirationPolicy(int days)
Parameters
days
intThe number of days after the anchor time that the vector store will expire.
Properties
Anchor
Anchor timestamp after which the expiration policy applies. Supported anchors: 'last_active_at'.
[JsonInclude]
[JsonPropertyName("anchor")]
public string Anchor { get; }
Property Value
Days
The number of days after the anchor time that the vector store will expire.
[JsonInclude]
[JsonPropertyName("days")]
public int Days { get; }
Property Value
Operators
implicit operator ExpirationPolicy(int)
public static implicit operator ExpirationPolicy(int days)
Parameters
days
int