oracular / IntentState
Interface: IntentState
Defined in: types.ts:169
Everything the engine knows about one intent for this user. Plain data; read it for debugging or dashboards, but change it only through the engine's functions.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
alpha | number | Beta α. Always equals prior α plus the sum of contributions[*].alpha. | types.ts:171 |
beta | number | Beta β. Always equals prior β plus the sum of contributions[*].beta. | types.ts:173 |
contributions | Record<string, SignalContribution> | - | types.ts:176 |
episodes | SignalRecord | Episodes that ended with (hits) or without (misses) the outcome: the base rate. | types.ts:179 |
lastOutcomeAt | number | null | Time the intent's outcome event last arrived. shouldReveal stays false for the cooldown after it. | types.ts:189 |
lastRevealedAt | number | null | - | types.ts:187 |
learned | Record<string, SignalRecord> | - | types.ts:177 |
learnedAt | number | null | Time learned and episodes were last decayed to. | types.ts:186 |
pending | PendingEpisode[] | Closed episodes whose verdict waits for the outcome (see IntentConfig.attribution), in order of close, at most 32. Empty unless attribution is set. | types.ts:184 |
revealCount | number | - | types.ts:190 |
updatedAt | number | null | Time α, β and contributions were last decayed to. | types.ts:175 |