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
Specs
entity(String.t, [String.t], Adapt.Model.Builder.t) :: Adapt.Model.Builder.t
Creates a string entity and adds it to the engine declaration.
Returns Adapt.Model.Builder
Specs
Adds an intent to the engine declaration.
Returns Adapt.Model.Builder
Specs
optional(Adapt.Model.Intent.t, String.t, String.t) :: Adapt.Model.Intent.t
Creats an optional intent and adds it to the engine declaration.
Specs
regex(String.t, Adapt.Model.Builder.t) :: Adapt.Model.Builder.t
Creates a regex entity and adds it to the engine declaration.
Specs
required(Adapt.Model.Intent.t, String.t, String.t) :: Adapt.Model.Intent.t
Creates a required intent and adds it to the engine declaration.