Skip to content

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 ​

PropertyTypeDescriptionDefined in
alphanumberBeta α. Always equals prior α plus the sum of contributions[*].alpha.types.ts:171
betanumberBeta β. Always equals prior β plus the sum of contributions[*].beta.types.ts:173
contributionsRecord<string, SignalContribution>-types.ts:176
episodesSignalRecordEpisodes that ended with (hits) or without (misses) the outcome: the base rate.types.ts:179
lastOutcomeAtnumber | nullTime the intent's outcome event last arrived. shouldReveal stays false for the cooldown after it.types.ts:189
lastRevealedAtnumber | null-types.ts:187
learnedRecord<string, SignalRecord>-types.ts:177
learnedAtnumber | nullTime learned and episodes were last decayed to.types.ts:186
pendingPendingEpisode[]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
revealCountnumber-types.ts:190
updatedAtnumber | nullTime α, β and contributions were last decayed to.types.ts:175

Released under the MIT License.