Skip to content

Commit

Permalink
prepared next major version
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Nov 11, 2018
1 parent f4764bc commit 339cc16
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
30 changes: 25 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,42 @@ This project adheres to `Semantic Versioning`_ starting with version 0.11.0.

.. note:: This version is not yet released and is under active development.

Added
-----

Removed
-------

Changed
-------

Fixed
-----

[0.12.0] - 2018-11-11
^^^^^^^^^^^^^^^^^^^^^

Added
-----
- added Dockerfile for rasa_core_sdk
- add ``active_form`` and ``latest_action_name`` properties to ``Tracker``
- add ``FormAction.slot_mapping()`` method to specify the mapping between user input and requested slot in the form
- add helper methods ``FormAction.from_entity(...)``, ``FormAction.from_intent(...)`` and ``FormAction.from_text(...)``
- add ``FormAction.slot_mapping()`` method to specify the mapping between
user input and requested slot in the form
- add helper methods ``FormAction.from_entity(...)``,
``FormAction.from_intent(...)`` and ``FormAction.from_text(...)``
- add ``FormAction.validate(...)`` method to validate user input

Changed
-------

- ``FormAction`` class was completely refactored
- ``required_fields()`` is changed to ``required_slots(tracker)``
- moved ``FormAction.get_other_slots(...)`` functionality to ``FormAction.extract_other_slots(...)``
- moved ``FormAction.get_requested_slot(...)`` functionality to ``FormAction.extract_requested_slot(...)``
- logic of requesting next slot can be customized in ``FormAction.request_next_slot(...)`` method
- moved ``FormAction.get_other_slots(...)`` functionality to
``FormAction.extract_other_slots(...)``
- moved ``FormAction.get_requested_slot(...)`` functionality to
``FormAction.extract_requested_slot(...)``
- logic of requesting next slot can be customized in
``FormAction.request_next_slot(...)`` method

Removed
-------
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pip install rasa_core_sdk

| SDK version | compatible Rasa Core version |
|---------------|----------------------------------------|
| `0.11.x` | `>=0.11.x` |
| `0.12.x` | `>=0.12.x` |
| `0.11.x` | `0.11.x` |
| not comatible | `<=0.10.x` |

## Usage
Expand All @@ -30,9 +31,12 @@ Detailed instructions can be found in the Rasa Core Documentation about

### Usage

In order to start an action server using implemented custom actions, you can use the available Docker image `rasa/rasa_core_sdk:latest`.
In order to start an action server using implemented custom actions,
you can use the available Docker image `rasa/rasa_core_sdk:latest`.

Before starting the action server ensure that the folder containing your actions is handled as Python module and therefore has to contain a file called `__init__.py`
Before starting the action server ensure that the folder containing
your actions is handled as Python module and therefore has to contain
a file called `__init__.py`

Then start the action server using:

Expand Down Expand Up @@ -61,7 +65,8 @@ RUN pip install --no-cache-dir <A_REQUIRED_PACKAGE_ON_PYPI>
```

## License
Licensed under the Apache License, Version 2.0. Copyright 2018 Rasa Technologies GmbH. [Copy of the license](LICENSE.txt).
Licensed under the Apache License, Version 2.0. Copyright 2018 Rasa
Technologies GmbH. [Copy of the license](LICENSE.txt).

A list of the Licenses of the dependencies of the project can be found at
the bottom of the
Expand Down
2 changes: 1 addition & 1 deletion rasa_core_sdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from __future__ import absolute_import


__version__ = '0.11.5'
__version__ = '0.12.0'

0 comments on commit 339cc16

Please sign in to comment.