Skip to content

oracular / IntentEvent

Interface: IntentEvent ​

Defined in: types.ts:241

What the app feeds to observe. Any event name is accepted; only names that appear in some intent's signals or as its outcome change evidence, every event extends the episode.

Example ​

ts
observe(state, { name: 'pricing.viewed', at: Date.now(), props: { plan: 'pro' } });

Properties ​

PropertyTypeDescriptionDefined in
atnumberTimestamp. Every duration in the config uses the same unit (milliseconds recommended).types.ts:244
namestring-types.ts:242
props?Record<string, unknown>Accepted and ignored in 0.1; never stored.types.ts:246

Released under the MIT License.