Releases: wit-ai/wit-ruby
Releases · wit-ai/wit-ruby
Wit Refresh API update
Ruby SDK - Converse reset
conversenow takesresetas optional parameter.
Breaking changes
run_actionsnow resets the last turn on new messages and errors.
v4.0.0
sayrenamed tosendto reflect that it deals with more than just text- Removed built-in actions
mergeanderror - Actions signature simplified with
requestandresponsearguments - INFO level replaces LOG level
Ruby SDK - API versioning + interactive
- allows for overriding API version, by setting
WIT_API_VERSION interactive()mode- warns instead of throwing when validating actions
Breaking:
- bumped default API version from
20160330to20160516
Ruby SDK
Ruby SDK - Unifying action parameters
Breaking changes:
- the
sayaction now takes 3 parameters:session_id,context,msg - the
erroraction now takes 3 parameters:session_id,context,error
Ruby SDK - Updating action parameters
Breaking changes:
- 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
Ruby SDK
Ruby SDK - Bot Engine integration
Breaking changes:
- the
messageAPI is wrapped around aWitclass, and doesn't take the token as first parameter
Ruby SDK - Rewrite in pure Ruby
Breaking changes:
- 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