Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / claimExpiry

Function: claimExpiry()

ts
function claimExpiry(
   claimClass, 
   polarity, 
   observedAt): string;

Defined in: packages/core/src/knowledge/decay.ts:27

The asymmetric TTL applied to an observedAt ISO date.

Parameters

ParameterType
claimClassClaimClass
polarity"strength" | "weakness"
observedAtstring

Returns

string