elixir_wit v0.1.0 Wit
The client for the WIT API that contains the low-level functions for APIs such as /message and /converse. It also contains the high level function such as run_actions
to run module implementing the actions and also the interactive
API that runs the actions by getting message from the console.
Summary
Functions
Calls the /converse API
Calls the run_actions
using the text gotten from console and keeps on running till user exits. The user can exit by pressing Enter
which will prompt the user to quit or not
Calls the /message API
Calls the /converse API and sses the default and custome actions defined in the module
to return back the response to the /converse API and update the context until the /converse API returns back stop or max_steps
have reached (whichever comes first)
Functions
Specs
converse(String.t, String.t, String.t, map) ::
{:ok, Wit.Models.Response.Converse.t} |
{:error, String.t, map}
Calls the /converse API
Calls the run_actions
using the text gotten from console and keeps on running till user exits. The user can exit by pressing Enter
which will prompt the user to quit or not.
Specs
Calls the /message API
Calls the /converse API and sses the default and custome actions defined in the module
to return back the response to the /converse API and update the context until the /converse API returns back stop or max_steps
have reached (whichever comes first).