rasa-pro 3.14.0a20__py3-none-any.whl → 3.14.0a22__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/core/actions/direct_custom_actions_executor.py +9 -2
- rasa/engine/loader.py +12 -0
- rasa/version.py +1 -1
- {rasa_pro-3.14.0a20.dist-info → rasa_pro-3.14.0a22.dist-info}/METADATA +1 -1
- {rasa_pro-3.14.0a20.dist-info → rasa_pro-3.14.0a22.dist-info}/RECORD +8 -8
- {rasa_pro-3.14.0a20.dist-info → rasa_pro-3.14.0a22.dist-info}/NOTICE +0 -0
- {rasa_pro-3.14.0a20.dist-info → rasa_pro-3.14.0a22.dist-info}/WHEEL +0 -0
- {rasa_pro-3.14.0a20.dist-info → rasa_pro-3.14.0a22.dist-info}/entry_points.txt +0 -0
|
@@ -35,8 +35,6 @@ class DirectCustomActionExecutor(CustomActionExecutor):
|
|
|
35
35
|
self.action_name = action_name
|
|
36
36
|
self.action_endpoint = action_endpoint
|
|
37
37
|
self.action_executor = self._create_action_executor()
|
|
38
|
-
self.register_actions_from_a_module()
|
|
39
|
-
self.action_executor.reload()
|
|
40
38
|
|
|
41
39
|
@staticmethod
|
|
42
40
|
@lru_cache(maxsize=1)
|
|
@@ -88,12 +86,21 @@ class DirectCustomActionExecutor(CustomActionExecutor):
|
|
|
88
86
|
|
|
89
87
|
Returns:
|
|
90
88
|
The response from the execution of the custom action.
|
|
89
|
+
|
|
90
|
+
Raises:
|
|
91
|
+
RasaException: If the actions module specified does not exist.
|
|
91
92
|
"""
|
|
92
93
|
structlogger.debug(
|
|
93
94
|
"action.direct_custom_action_executor.run",
|
|
94
95
|
action_name=self.action_name,
|
|
95
96
|
)
|
|
96
97
|
|
|
98
|
+
# Register actions module if not already registered.
|
|
99
|
+
# This is done here instead of __init__ to allow proper
|
|
100
|
+
# exception handling and avoid hanging conversations.
|
|
101
|
+
self.register_actions_from_a_module()
|
|
102
|
+
self.action_executor.reload()
|
|
103
|
+
|
|
97
104
|
tracker_state = tracker.current_state(EventVerbosity.ALL)
|
|
98
105
|
action_call = {
|
|
99
106
|
"next_action": self.action_name,
|
rasa/engine/loader.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
from typing import Tuple, Type
|
|
3
3
|
|
|
4
|
+
import structlog
|
|
5
|
+
|
|
4
6
|
from rasa.engine.graph import ExecutionContext
|
|
5
7
|
from rasa.engine.runner.interface import GraphRunner
|
|
6
8
|
from rasa.engine.storage.storage import ModelMetadata, ModelStorage
|
|
@@ -9,6 +11,8 @@ from rasa.engine.validation import (
|
|
|
9
11
|
validate_model_group_configuration_setup,
|
|
10
12
|
)
|
|
11
13
|
|
|
14
|
+
structlogger = structlog.get_logger()
|
|
15
|
+
|
|
12
16
|
|
|
13
17
|
def load_predict_graph_runner(
|
|
14
18
|
storage_path: Path,
|
|
@@ -30,6 +34,10 @@ def load_predict_graph_runner(
|
|
|
30
34
|
model_storage, model_metadata = model_storage_class.from_model_archive(
|
|
31
35
|
storage_path=storage_path, model_archive_path=model_archive_path
|
|
32
36
|
)
|
|
37
|
+
structlogger.debug(
|
|
38
|
+
"engine.loader.load_predict_graph_runner.success",
|
|
39
|
+
model_id=model_metadata.model_id,
|
|
40
|
+
)
|
|
33
41
|
|
|
34
42
|
# Components using LLMs or embeddings can reference model groups defined in
|
|
35
43
|
# the endpoints.yml file for their client configurations. To ensure they will work
|
|
@@ -38,6 +46,10 @@ def load_predict_graph_runner(
|
|
|
38
46
|
validate_model_group_configuration_setup()
|
|
39
47
|
validate_model_client_configuration_setup_during_inference_time(model_metadata)
|
|
40
48
|
|
|
49
|
+
structlogger.debug(
|
|
50
|
+
"engine.loader.config.validation.success",
|
|
51
|
+
model_id=model_metadata.model_id,
|
|
52
|
+
)
|
|
41
53
|
runner = graph_runner_class.create(
|
|
42
54
|
graph_schema=model_metadata.predict_schema,
|
|
43
55
|
model_storage=model_storage,
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.14.
|
|
3
|
+
Version: 3.14.0a22
|
|
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
|
|
@@ -311,7 +311,7 @@ rasa/core/actions/action_trigger_flow.py,sha256=IydYAGafTtoY6XSgCX124xJQhzudUg8J
|
|
|
311
311
|
rasa/core/actions/action_trigger_search.py,sha256=QfYqnaGRCqRYJ4msYsLAbnVYW5ija_tqhCcKIN8aEfw,1064
|
|
312
312
|
rasa/core/actions/constants.py,sha256=gfgdWmj-OJ5xTcTAS1OcXQ3dgcTiHO98NC-SGyKlTjs,161
|
|
313
313
|
rasa/core/actions/custom_action_executor.py,sha256=qafASBdM3-hByDqbkNxgXfx5yMSsJh_nB3B7x9ye0TY,6176
|
|
314
|
-
rasa/core/actions/direct_custom_actions_executor.py,sha256=
|
|
314
|
+
rasa/core/actions/direct_custom_actions_executor.py,sha256=zGHI3cXVRfyzaaGSH7VePXHQxsDAvF0iAZSEcOuM-_M,4026
|
|
315
315
|
rasa/core/actions/e2e_stub_custom_action_executor.py,sha256=D-kECC1QjVLv4owNxstW2xJPPsXTGfGepvquMeWB_ec,2282
|
|
316
316
|
rasa/core/actions/forms.py,sha256=MPGxp3vg-EgFcU5UQYqWM2tycSFIuoF6vWvNSSWPhSA,26967
|
|
317
317
|
rasa/core/actions/grpc_custom_action_executor.py,sha256=EDxdSIDA4H4Mu-QZk-pPGV2N41ZsbY8W9laV6l1WlDQ,9103
|
|
@@ -727,7 +727,7 @@ rasa/engine/constants.py,sha256=hfd8nTw2ViNjiM3LNpXjB6Gb7VW9_h5fwKaoaEeYgZY,637
|
|
|
727
727
|
rasa/engine/exceptions.py,sha256=1aV48nLrlAGzEeIDuXeB0qjxe5qaqzOhrK52OBs66xc,437
|
|
728
728
|
rasa/engine/graph.py,sha256=cJRtj_b5pF80OYp5bQ4V8AhxFMM6rBWfhm9F7lShR0g,24540
|
|
729
729
|
rasa/engine/language.py,sha256=iDb5gh5ZNhVw4jl-ncDDXzuK3RMjxKktepUv_nMll_c,6535
|
|
730
|
-
rasa/engine/loader.py,sha256=
|
|
730
|
+
rasa/engine/loader.py,sha256=I0TjYokNJgSSkx-zRB8pCBnVVGVIdpnN2h5bYVlVD84,2233
|
|
731
731
|
rasa/engine/recipes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
732
732
|
rasa/engine/recipes/config_files/default_config.yml,sha256=E1sAW6Qq_T0QXBDK8NzkhkmSESX9g8Op85h5aCVbYlA,1194
|
|
733
733
|
rasa/engine/recipes/default_components.py,sha256=pFPA5ljoqQcy7s8mhQDEFFKY-2nqEiGfmr5Db06hVjU,3948
|
|
@@ -1074,9 +1074,9 @@ rasa/utils/train_utils.py,sha256=ClJx-6x3-h3Vt6mskacgkcCUJTMXjFPe3zAcy_DfmaU,212
|
|
|
1074
1074
|
rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
|
|
1075
1075
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
1076
1076
|
rasa/validator.py,sha256=_5IjhhzG-_LM5_Bpa09siEQATgFRYEsPp9FbOwXzVmM,83275
|
|
1077
|
-
rasa/version.py,sha256=
|
|
1078
|
-
rasa_pro-3.14.
|
|
1079
|
-
rasa_pro-3.14.
|
|
1080
|
-
rasa_pro-3.14.
|
|
1081
|
-
rasa_pro-3.14.
|
|
1082
|
-
rasa_pro-3.14.
|
|
1077
|
+
rasa/version.py,sha256=bc8JPyhHsG0QxfS5s7flBzxlFkE7jWBucA9ijUBamms,120
|
|
1078
|
+
rasa_pro-3.14.0a22.dist-info/METADATA,sha256=0mz1vbuDjWxjy9YeSmIohkfmN8ZzT3eaBkGHWGBddxk,10274
|
|
1079
|
+
rasa_pro-3.14.0a22.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
1080
|
+
rasa_pro-3.14.0a22.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
1081
|
+
rasa_pro-3.14.0a22.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
1082
|
+
rasa_pro-3.14.0a22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|