- allows for overriding API version, by setting
WIT_API_VERSION interactive()mode- warns instead of throwing when validating actions
- bumped default API version from
20160330to20160516
- fixed recursive call when running actions
- throws an exception if context passed is not a Hash
Unifying action parameters
- the
sayaction now takes 3 parameters:session_id,context,msg - the
erroraction now takes 3 parameters:session_id,context,error
Updating action parameters
- the
mergeaction now takes 4 parameters:session_id,context,entities,msg - the
erroraction now takescontextas second parameter - custom actions now take 2 parameters:
session_id,context
- allows for custom logging
- better error message
Bot Engine integration
- the
messageAPI is wrapped around aWitclass, and doesn't take the token as first parameter
Rewrite in pure Ruby
- audio recording and streaming have been removed because:
- many people only needed access to the HTTP API, and audio recording did not make sense for server-side use cases
- dependent on platform, choice best left to developers
- forced us to maintain native bindings as opposed to a pure Pythonic library
- we renamed the functions to match the HTTP API more closely
.text_query(string, access_token)becomes.message(access_token, string)
- all functions now return a Ruby dict instead of a JSON string