Releases: RasaHQ/rasa-sdk
Releases · RasaHQ/rasa-sdk
1.8.0
Improvements
[\#130](https://github.com/rasahq/rasa/issues/130): Copied over instance methods `last_executed_action_has()`, `get_last_event_for()` and
: `applied_events` from the Rasa `DialogueStateTracker` class to the SDK `Tracker` class.
- #145: Add
poetry
for dependency management and reduce the size of Docker image.
Miscellaneous internal changes
Merge pull request #144 from RasaHQ/prepare-1.7.0-release
Changed
ReminderScheduled
andReminderCancelled
now takeintent
andentities
as options, instead ofaction
. This is because starting with Rasa 1.7 reminders
trigger intents (with entities) instead of actions.- The following
FormAction
methods are nowasync
by default:validate_slots
,
validate
,submit
andrun
. User-defined classes inheriting from
FormAction
should be adapted to useasync
for these methods. Existing
synchronous implementations will continue to work as normal, but this behaviour will
be deprecated in the future. - The following
ActionQueryKnowledgeBase
methods are nowasync
:
utter_objects
andrun
. - The following
KnowledgeBase
methods are nowasync
:
get_attributes_of_object
,get_key_attribute_of_object
,
get_representation_function_of_object
,get_objects
andget_object
. Same
warning forFormAction
applies here - user-defined classes should be updated to
useasync
, but will continue to work for the moment. - The following
InMemoryKnowledgeBase
methods are nowasync
:
get_attributes_of_object
,get_objects
andget_object
.
1.6.1
1.6.0
1.5.2
Fixed
- Pinned
multidict
dependency to 4.6.1 to prevent sanic from breaking,
see sanic-org/sanic#1729
1.5.1
Added
- Added
LOG_LEVEL_LIBRARIES
environment variable to set log level of libraries, such assanic
Changed
DeprecationWarning
s are nowFutureWarning
s, as they should be seen
by end userstext
is now the first positional argument inutter_message
instead of
image
Fixed
- The deprecated
utter_elements
now correctly usesutter_message
Merge pull request #119 from RasaHQ/release-1.5.0
Added
- Add support for multiple sanic workers (configurable with the
ACTION_SERVER_SANIC_WORKERS
environment variable). - Add support for async
run
methods in theAction
class. - Return status code
404
in case requested action was not found. - Return status code
400
in case an empty request body was sent to the/webhook
endpoint.
Changed
- Replace
flask
server framework withsanic
. - Replace
flask_cors
withsanic-cors
. CollectingDispatcher.utter_message
can now do anything that other dispatcher
methods can do.- The
CollectingDispatcher
methodsutter_custom_message
,utter_elements
,
utter_button_message
,utter_attachment
,utter_button_template
,
utter_template
,utter_custom_json
andutter_image_url
were deprecated in
favor ofutter_message
. - Updated format strings to f-strings where appropriate.
Removed
- Remove
requests
dependency - Remove
gevent
dependency