Skip to content

Commit

Permalink
slots docs accidental changes reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
pseusys committed Oct 17, 2024
1 parent 9267a3f commit f075ad1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/source/user_guides/slot_extraction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ A dot-separated string that acts as a path from the root slot to the needed slot
In the example above ``name_slot`` would have the name "name"
because that is the key used to store it in the ``profile_slot``.

Let's consider nested group slots:
If you have a nested structure (of ``GroupSlots``) separate the names with dots:

.. code-block:: python
Expand Down Expand Up @@ -141,10 +141,7 @@ The `conditions` submodule provides a function for checking if specific slots ha

Both `processing` and `response` submodules provide functions for filling templates with
extracted slot values.

- ``FillTemplate`` changes the response function of the current node to ``FilledTemplate`` at the ``PRE_RESPONSE`` level.
- ``FilledTemplate`` is a response function that fills slots after producing inner response
(which can be ``BaseResponse``, ``Message`` or simply a string).
Choose whichever one you like, there's not much difference between them at the moment.

.. code-block:: python
Expand All @@ -156,7 +153,7 @@ extracted slot values.
RESPONSE: rsp.FilledTemplate("Your first name: {name}")
An example of script utilizing slot extraction can be found in the
Some real examples of scripts utilizing slot extraction can be found in the
`tutorials section <../tutorials/tutorials.slots.1_basic_example.html>`_.

Further reading
Expand Down

0 comments on commit f075ad1

Please sign in to comment.