From fdafad37d148088d22c7343a0dab37dae39489d6 Mon Sep 17 00:00:00 2001 From: Alan Nichol Date: Thu, 21 Sep 2023 17:17:17 +0200 Subject: [PATCH] add missing slot mappings to examples in domain --- docs/docs/concepts/domain.mdx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/docs/concepts/domain.mdx b/docs/docs/concepts/domain.mdx index 7f8bc4ea235a..4a1851cfb642 100644 --- a/docs/docs/concepts/domain.mdx +++ b/docs/docs/concepts/domain.mdx @@ -77,8 +77,10 @@ Different slot types exist to restrict the possible values a slot can take. ```yaml-rasa slots: - cuisine: - type: text + cuisine: + type: text + mappings: + - type: custom ``` - **Allowed Values** @@ -90,8 +92,10 @@ Different slot types exist to restrict the possible values a slot can take. ```yaml-rasa slots: - confirmation: - type: bool + confirmation: + type: bool + mappings: + - type: custom ``` - **Allowed Values** @@ -105,6 +109,8 @@ Different slot types exist to restrict the possible values a slot can take. slots: risk_level: type: categorical + mappings: + - type: custom values: - low - medium @@ -119,6 +125,8 @@ Different slot types exist to restrict the possible values a slot can take. slots: temperature: type: float + mappings: + - type: custom ``` #### Any Slot @@ -129,6 +137,8 @@ Different slot types exist to restrict the possible values a slot can take. slots: shopping_items: type: any + mappings: + - type: custom ``` @@ -141,6 +151,8 @@ slots: num_fallbacks: type: float initial_value: 0 + mappings: + - type: custom ``` ### Slot Mappings