oracular / Snapshot
Interface: Snapshot
Defined in: types.ts:486
Every intent's prediction, gate and explanation at one moment, as inspect returns it: what a debug panel shows, what a test asserts on, what console.table prints.
Example
ts
const { intents } = inspect(state, Date.now());
console.table(intents.map((i) => ({ intent: i.intent, p: i.prediction.p, reveal: i.reveal })));Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
at | number | - | types.ts:487 |
intents | IntentSnapshot[] | In config order. | types.ts:489 |