Releases: wit-ai/wit-ruby
Releases · wit-ai/wit-ruby
Wit Refresh API update
Ruby SDK - Converse reset
converse
now takesreset
as optional parameter.
Breaking changes
run_actions
now resets the last turn on new messages and errors.
v4.0.0
say
renamed tosend
to reflect that it deals with more than just text- Removed built-in actions
merge
anderror
- Actions signature simplified with
request
andresponse
arguments - 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
20160330
to20160516
Ruby SDK
Ruby SDK - Unifying action parameters
Breaking changes:
- the
say
action now takes 3 parameters:session_id
,context
,msg
- the
error
action now takes 3 parameters:session_id
,context
,error
Ruby SDK - Updating action parameters
Breaking changes:
- the
merge
action now takes 4 parameters:session_id
,context
,entities
,msg
- the
error
action now takescontext
as second parameter - custom actions now take 2 parameters:
session_id
,context
Ruby SDK
Ruby SDK - Bot Engine integration
Breaking changes:
- the
message
API is wrapped around aWit
class, 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