adapt v0.1.0 Adapt.EngineBuilder

Adapt.EngineBuilder is a module that provides methods to create the rules by which intents will be drawn from the text passed to the engine.

Summary

Functions

Creates a string entity and adds it to the engine declaration

Adds an intent to the engine declaration

Creats an optional intent and adds it to the engine declaration

Creates a regex entity and adds it to the engine declaration

Creates a required intent and adds it to the engine declaration

Functions

entity(name, values, builder)

Creates a string entity and adds it to the engine declaration.

Returns Adapt.Model.Builder

intent(it, builder)

Adds an intent to the engine declaration.

Returns Adapt.Model.Builder

optional(intent, e, attribute \\ "")

Creats an optional intent and adds it to the engine declaration.

regex(pattern, builder)

Creates a regex entity and adds it to the engine declaration.

required(intent, e, attribute \\ "")

Creates a required intent and adds it to the engine declaration.