Skip to content

oracular / EngineConfig

Interface: EngineConfig ​

Defined in: types.ts:134

Everything createState needs. A normalized copy is stored in the state; pass the current config to deserialize on load.

Example ​

ts
const config: EngineConfig = {
  episodeTimeout: 30 * 60 * 1000,
  intents: { upgrade, churn },
  reveal: { z: 1.28 },
};

Properties ​

PropertyTypeDescriptionDefined in
episodeTimeout?numberIdle gap after which the current episode ends on its own, in the same unit as at. Omit to end episodes only via endEpisode.types.ts:137
intentsRecord<string, IntentConfig>-types.ts:135
learning?LearningConfig-types.ts:138
reveal?RevealOptionsReveal defaults for every intent.types.ts:140

Released under the MIT License.