Releases: wit-ai/pywit
Releases · wit-ai/pywit
Wit Refresh API update
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
- adding verbose option for
message
,converse
andrun_actions
Python SDK - API versioning + custom logging + fixes
- allows for overriding API version, by setting
WIT_API_VERSION
- fixes unicode error
- adds custom logging
- warns instead of throwing when validating actions
Breaking:
- bumped default API version from
20160330
to20160516
Python SDK - interactive mode + fixes
interactive()
mode- fixed default arg for
context
- fixed
say
action inexamples/quickstart.py
- examples to take the Wit access token in argument
Python 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
,e
Python SDK - Updating action parameters
Breaking changes:
- the merge action now takes 4 parameters: session_id, context, entities, msg
- the error action now takes context as second parameter
- custom actions now take 2 parameters: session_id, context
Python SDK
- Fixed request keyword arguments issue
- Better error messages
Python SDK
- Added
examples/template.py
- Fixed missing type
- Updated
examples/weather.py
toexamples/quickstart.py
to reflect the docs
Python SDK - Bot Engine integration
Bot Engine integration
Breaking changes:
- the
message
API is wrapped around aWit
class, and doesn't take the token as first parameter
Python SDK - Rewrite in pure Python
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 Python dict instead of a JSON string