adapt v0.1.0 Adapt.Engine

Adapt.Engine is the power of intent parsing.

It should be noted that thanks goes to AdaptJS for the inspiration of how the engine definition is used with conjuction with the Adapt library.

Summary

Functions

Query with the give text and engine definition to retrieve the intents found

Functions

query(text, options)

Specs

query(String.t, Adapt.Model.Builder.t) :: {atom, any}

Query with the give text and engine definition to retrieve the intents found.

The method returns {:ok, %{"intents": [...]}} if successful, and {:error, error_message} if it encounters any problems.