rasa-pro 3.13.2__py3-none-any.whl → 3.13.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rasa-pro might be problematic. Click here for more details.
- rasa/cli/project_templates/defaults.py +25 -3
- rasa/core/actions/action.py +2 -2
- rasa/core/nlg/callback.py +1 -1
- rasa/version.py +1 -1
- {rasa_pro-3.13.2.dist-info → rasa_pro-3.13.3.dist-info}/METADATA +1 -1
- {rasa_pro-3.13.2.dist-info → rasa_pro-3.13.3.dist-info}/RECORD +9 -9
- {rasa_pro-3.13.2.dist-info → rasa_pro-3.13.3.dist-info}/NOTICE +0 -0
- {rasa_pro-3.13.2.dist-info → rasa_pro-3.13.3.dist-info}/WHEEL +0 -0
- {rasa_pro-3.13.2.dist-info → rasa_pro-3.13.3.dist-info}/entry_points.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import os
|
|
3
4
|
import tempfile
|
|
4
5
|
from typing import Any, Dict, List, Optional, Text
|
|
5
6
|
|
|
@@ -78,14 +79,35 @@ def _get_domain_from_importer(config: Dict[Text, Any]) -> Domain:
|
|
|
78
79
|
Returns:
|
|
79
80
|
A Domain object .
|
|
80
81
|
"""
|
|
81
|
-
with
|
|
82
|
-
|
|
82
|
+
# We create the file with delete=False so that it can be re-opened on
|
|
83
|
+
# Windows. If delete=True, the file is opened with the _O_TEMPORARY flag
|
|
84
|
+
# which blocks any second open() call.
|
|
85
|
+
tmp = tempfile.NamedTemporaryFile("w+", suffix=".yml", delete=False)
|
|
86
|
+
|
|
87
|
+
try:
|
|
88
|
+
path = tmp.name
|
|
89
|
+
|
|
90
|
+
# write_yaml() re-opens the same path. On Windows an already-open
|
|
91
|
+
# handle keeps the file locked for further opens, so we close
|
|
92
|
+
# the first handle before we call write_yaml().
|
|
93
|
+
tmp.close()
|
|
94
|
+
write_yaml(config, path)
|
|
95
|
+
|
|
83
96
|
importer = TrainingDataImporter.load_from_config(
|
|
84
97
|
domain_path=FlowSyncImporter.default_pattern_path(),
|
|
85
|
-
config_path=
|
|
98
|
+
config_path=path,
|
|
86
99
|
)
|
|
87
100
|
return importer.get_domain()
|
|
88
101
|
|
|
102
|
+
finally:
|
|
103
|
+
# Because we passed delete=False above, Python will not clean the file
|
|
104
|
+
# To avoid leaving garbage in the temp directory after the tests run,
|
|
105
|
+
# we remove it explicitly.
|
|
106
|
+
try:
|
|
107
|
+
os.remove(path)
|
|
108
|
+
except FileNotFoundError:
|
|
109
|
+
pass
|
|
110
|
+
|
|
89
111
|
|
|
90
112
|
def get_pattern_defaults(config: Dict[Text, Any]) -> PatternDefaults:
|
|
91
113
|
"""Get the default flows, responses and slots for patterns.
|
rasa/core/actions/action.py
CHANGED
|
@@ -910,8 +910,8 @@ class RemoteAction(Action):
|
|
|
910
910
|
|
|
911
911
|
# Avoid overwriting `draft` values with empty values
|
|
912
912
|
response = {k: v for k, v in response.items() if v}
|
|
913
|
-
|
|
914
|
-
bot_messages.append(create_bot_utterance(
|
|
913
|
+
response.update(draft)
|
|
914
|
+
bot_messages.append(create_bot_utterance(response))
|
|
915
915
|
|
|
916
916
|
return bot_messages
|
|
917
917
|
|
rasa/core/nlg/callback.py
CHANGED
|
@@ -19,7 +19,7 @@ def nlg_response_format_spec() -> Dict[Text, Any]:
|
|
|
19
19
|
return {
|
|
20
20
|
"type": "object",
|
|
21
21
|
"properties": {
|
|
22
|
-
"text": {"type": "string"},
|
|
22
|
+
"text": {"type": ["string", "null"]},
|
|
23
23
|
"id": {"type": ["string", "null"]},
|
|
24
24
|
"buttons": {"type": ["array", "null"], "items": {"type": "object"}},
|
|
25
25
|
"elements": {"type": ["array", "null"], "items": {"type": "object"}},
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.13.
|
|
3
|
+
Version: 3.13.3
|
|
4
4
|
Summary: State-of-the-art open-core Conversational AI framework for Enterprises that natively leverages generative AI for effortless assistant development.
|
|
5
5
|
Keywords: nlp,machine-learning,machine-learning-library,bot,bots,botkit,rasa conversational-agents,conversational-ai,chatbot,chatbot-framework,bot-framework
|
|
6
6
|
Author: Rasa Technologies GmbH
|
|
@@ -50,7 +50,7 @@ rasa/cli/project_templates/default/e2e_tests/happy_paths/user_lists_contacts.yml
|
|
|
50
50
|
rasa/cli/project_templates/default/e2e_tests/happy_paths/user_removes_contact.yml,sha256=Q0W4FEb6NQjQYjfhcxcMGLozX6uqXdl4GUkr61z671Y,352
|
|
51
51
|
rasa/cli/project_templates/default/e2e_tests/happy_paths/user_removes_contact_from_list.yml,sha256=5iMfRCbPpf08Jawog_fuXw-aR6nV0za0Cx60wiFwhhA,417
|
|
52
52
|
rasa/cli/project_templates/default/endpoints.yml,sha256=YHMIzpxM7xyfhNOQLpZs1V-RgQvRdR8uc2SZsnKZDxg,1999
|
|
53
|
-
rasa/cli/project_templates/defaults.py,sha256=
|
|
53
|
+
rasa/cli/project_templates/defaults.py,sha256=Yuqway0slq8d4nX8QakiXHokCrVcZiT1UY7sqv09c28,5370
|
|
54
54
|
rasa/cli/project_templates/tutorial/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
55
55
|
rasa/cli/project_templates/tutorial/actions/actions.py,sha256=OG2_fGtq5_uAxcDfeM6qdbGrMqeSgNsAnYbiD5_YYh8,777
|
|
56
56
|
rasa/cli/project_templates/tutorial/config.yml,sha256=3kqcjn_S1lITvgkH1pPECSZPxsjtsnOS5B5RdebJCv8,232
|
|
@@ -79,7 +79,7 @@ rasa/cli/x.py,sha256=T10e6bVUx5BadZOt3JJ4T5EByiR5jJ2hv5ExXOnt9F8,6839
|
|
|
79
79
|
rasa/constants.py,sha256=ddT6MLksS96Jeav0waBMu3Z5yocBPgC695-IYE9EbXM,1389
|
|
80
80
|
rasa/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
81
|
rasa/core/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
|
-
rasa/core/actions/action.py,sha256=
|
|
82
|
+
rasa/core/actions/action.py,sha256=6rNo2TziSPsF08bd39EnDD7vefic6JxQu5CK-lBt2iI,43232
|
|
83
83
|
rasa/core/actions/action_clean_stack.py,sha256=xUP-2ipPsPAnAiwP17c-ezmHPSrV4JSUZr-eSgPQwIs,2279
|
|
84
84
|
rasa/core/actions/action_exceptions.py,sha256=hghzXYN6VeHC-O_O7WiPesCNV86ZTkHgG90ZnQcbai8,724
|
|
85
85
|
rasa/core/actions/action_hangup.py,sha256=o5iklHG-F9IcRgWis5C6AumVXznxzAV3o9zdduhozEM,994
|
|
@@ -310,7 +310,7 @@ rasa/core/lock.py,sha256=KNrpWv_KYLFjQfwaDembrjO2i4HhoVHbllw6_BPYMrE,4718
|
|
|
310
310
|
rasa/core/lock_store.py,sha256=wP_0S5bBNI0cnRPVOcGNZgD8usdzw4udT4ncP6CKy14,15443
|
|
311
311
|
rasa/core/migrate.py,sha256=h1dOpXxmVmZlbLVGy1yOU_Obp2KzRiOiL0iuEacA0Cg,14618
|
|
312
312
|
rasa/core/nlg/__init__.py,sha256=jZuQAhOUcxO-KqqHGqICHSY3oDeXlUiGr2trQDYfG6o,240
|
|
313
|
-
rasa/core/nlg/callback.py,sha256=
|
|
313
|
+
rasa/core/nlg/callback.py,sha256=lxBBZdjXHS54fn_pH_YUW8ApbFOBO-kYSY5bL4gR1p0,5218
|
|
314
314
|
rasa/core/nlg/contextual_response_rephraser.py,sha256=Kvns8mfc8HIhGHcK4p4p-LP_di9laPvRYWJdCtkoUqQ,15093
|
|
315
315
|
rasa/core/nlg/generator.py,sha256=P3JvT4qO3XHLDRb0DVstZ4MmLLA-d4LZt3BbD3S9yO8,10864
|
|
316
316
|
rasa/core/nlg/interpolator.py,sha256=vI2ZyeKHkHESPScCbefrcRrY6mrClI0LNwvZ1GvS5Tk,5138
|
|
@@ -846,9 +846,9 @@ rasa/utils/train_utils.py,sha256=ClJx-6x3-h3Vt6mskacgkcCUJTMXjFPe3zAcy_DfmaU,212
|
|
|
846
846
|
rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
|
|
847
847
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
848
848
|
rasa/validator.py,sha256=JXi8bz3SsTB2c1tbDRY3r3TkcfSbhxacoxs-rVx6a9s,82937
|
|
849
|
-
rasa/version.py,sha256=
|
|
850
|
-
rasa_pro-3.13.
|
|
851
|
-
rasa_pro-3.13.
|
|
852
|
-
rasa_pro-3.13.
|
|
853
|
-
rasa_pro-3.13.
|
|
854
|
-
rasa_pro-3.13.
|
|
849
|
+
rasa/version.py,sha256=4RCaYpgtCz-Asjj711UQfwxVlgK8OeJ9hNMkn63zR7g,117
|
|
850
|
+
rasa_pro-3.13.3.dist-info/METADATA,sha256=zMojjnCarNZke0TztOhNApWOLFvsKYkHDq0IjW0KT1E,10550
|
|
851
|
+
rasa_pro-3.13.3.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
852
|
+
rasa_pro-3.13.3.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
853
|
+
rasa_pro-3.13.3.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
854
|
+
rasa_pro-3.13.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|