One or more condition key/value pairs.
Mix of accepted types for conditions constructor.
Collection of NLU matching criteria by key
Collection of NLUResult instances by key
Collection of raw NLU results by key (also used for matched subset)
Collection of Thought instances, extends object.
Alias for acceptable branch action types.
Bot instance, almost always imported instead of class.
Event Emitter for listening to bot events.
Winston logger provides a logging interface common to many Node apps, with custom levels, filters, and outputs, and service integrations. It will also handle exceptions and exit after logging (except middleware).
By default, all log items will write to console and a combined log file, errors also write to a an error log file. Log level can be set globally or for each transport:
Mock adapter types for manual loading in tests.
Adapter singleton (ish) require pattern.
Utility methods exported at root - does not reference bot instance.
Deep clone any class or object via JSON conversion.
Convert instance to plain object for storage.
Get the next value in global counter.
Key for counter, prepend to return value
Build a regular expression that matches text prefixed with the bot's name.
Build a regular expression for bot's name combined with another regex.
Type guard to check type of Collection
Type guard to check type of Condition.
Utility to convert internal object to schema required in adapter platform. Passing the original internal object as the external, allows inheriting all attributes without needing to map the ones that are the same in both. Otherwise, result would only include values from defined schema fields.
Generate a random unique ID value.
Optionally prepend ID type
Convert plain objects into their original class.
Text message constructed from mock data.
Create a promise wrapper, that rejects if timeout met before resolved
Make Adapters available for extensions under a "namespace"
Maintain a count of created IDs against their prefix key.
Mock method inputs and results for easy testing.
Keep save interval as external property to avoid being cleared.
Generated using TypeDoc
Collection of condition types assigned to named keys.