rasa-pro 3.14.0a13__py3-none-any.whl → 3.14.0a15__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/builder/main.py +5 -1
- rasa/builder/project_generator.py +3 -1
- rasa/builder/template_cache.py +8 -6
- rasa/version.py +1 -1
- {rasa_pro-3.14.0a13.dist-info → rasa_pro-3.14.0a15.dist-info}/METADATA +2 -1
- {rasa_pro-3.14.0a13.dist-info → rasa_pro-3.14.0a15.dist-info}/RECORD +9 -9
- {rasa_pro-3.14.0a13.dist-info → rasa_pro-3.14.0a15.dist-info}/NOTICE +0 -0
- {rasa_pro-3.14.0a13.dist-info → rasa_pro-3.14.0a15.dist-info}/WHEEL +0 -0
- {rasa_pro-3.14.0a13.dist-info → rasa_pro-3.14.0a15.dist-info}/entry_points.txt +0 -0
rasa/builder/main.py
CHANGED
|
@@ -24,6 +24,7 @@ from rasa.builder.logging_utils import (
|
|
|
24
24
|
from rasa.builder.service import bp, setup_project_generator
|
|
25
25
|
from rasa.builder.training_service import try_load_existing_agent, update_agent
|
|
26
26
|
from rasa.core.channels.studio_chat import StudioChatInput
|
|
27
|
+
from rasa.model_manager.warm_rasa_process import warmup
|
|
27
28
|
from rasa.server import configure_cors
|
|
28
29
|
from rasa.utils.common import configure_logging_and_warnings
|
|
29
30
|
from rasa.utils.log_utils import configure_structlog
|
|
@@ -187,9 +188,12 @@ def main(project_folder: Optional[str] = None) -> None:
|
|
|
187
188
|
rasa.telemetry.initialize_telemetry()
|
|
188
189
|
rasa.telemetry.initialize_error_reporting(private_mode=False)
|
|
189
190
|
|
|
190
|
-
# TODO: don't do this when running locally
|
|
191
191
|
_apply_llm_overrides_from_builder_env()
|
|
192
192
|
|
|
193
|
+
if config.HELLO_RASA_PROJECT_ID:
|
|
194
|
+
# ensures long import times for modules are ahead of time
|
|
195
|
+
warmup()
|
|
196
|
+
|
|
193
197
|
# working directory needs to be the project folder, e.g.
|
|
194
198
|
# for relative paths (./docs) in a projects config to work
|
|
195
199
|
if not project_folder:
|
|
@@ -60,7 +60,7 @@ class ProjectGenerator:
|
|
|
60
60
|
create_initial_project(self.project_folder.as_posix(), template)
|
|
61
61
|
# If a local cache for this template exists, copy it into the project.
|
|
62
62
|
# We no longer download here to avoid blocking project creation.
|
|
63
|
-
copy_cache_for_template_if_available(template, self.project_folder)
|
|
63
|
+
await copy_cache_for_template_if_available(template, self.project_folder)
|
|
64
64
|
# needs to happen after caching, as we download/copy .rasa and that would
|
|
65
65
|
# overwrite the project info file in .rasa
|
|
66
66
|
ensure_first_used(self.project_folder)
|
|
@@ -339,6 +339,8 @@ class ProjectGenerator:
|
|
|
339
339
|
for filename in os.listdir(self.project_folder):
|
|
340
340
|
file_path = os.path.join(self.project_folder, filename)
|
|
341
341
|
try:
|
|
342
|
+
if filename == "lost+found":
|
|
343
|
+
continue
|
|
342
344
|
if os.path.isfile(file_path) or os.path.islink(file_path):
|
|
343
345
|
os.unlink(file_path)
|
|
344
346
|
elif os.path.isdir(file_path):
|
rasa/builder/template_cache.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import os
|
|
2
|
-
import shutil
|
|
3
2
|
from pathlib import Path
|
|
4
3
|
|
|
4
|
+
import aiofiles
|
|
5
|
+
import aiofiles.os
|
|
6
|
+
import aioshutil
|
|
5
7
|
import structlog
|
|
6
8
|
|
|
7
9
|
from rasa.cli.scaffold import ProjectTemplateName
|
|
@@ -19,7 +21,7 @@ def _template_cache_dir(template: ProjectTemplateName) -> Path:
|
|
|
19
21
|
return _CACHE_ROOT_DIR / template.value
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
def _copytree(src: Path, dst: Path) -> None:
|
|
24
|
+
async def _copytree(src: Path, dst: Path) -> None:
|
|
23
25
|
"""Copy directory tree from src to dst, merging into dst.
|
|
24
26
|
|
|
25
27
|
Existing files are overwritten. Hidden files and directories are included, as
|
|
@@ -29,14 +31,14 @@ def _copytree(src: Path, dst: Path) -> None:
|
|
|
29
31
|
for root, dirs, files in os.walk(src):
|
|
30
32
|
rel_path = Path(root).relative_to(src)
|
|
31
33
|
target_dir = dst / rel_path
|
|
32
|
-
|
|
34
|
+
await aiofiles.os.makedirs(target_dir, exist_ok=True)
|
|
33
35
|
for filename in files:
|
|
34
36
|
src_file = Path(root) / filename
|
|
35
37
|
dst_file = target_dir / filename
|
|
36
|
-
|
|
38
|
+
await aioshutil.copy2(src_file, dst_file)
|
|
37
39
|
|
|
38
40
|
|
|
39
|
-
def copy_cache_for_template_if_available(
|
|
41
|
+
async def copy_cache_for_template_if_available(
|
|
40
42
|
template: ProjectTemplateName, project_folder: Path
|
|
41
43
|
) -> None:
|
|
42
44
|
"""Copy a previously downloaded cache for `template` into `project_folder`.
|
|
@@ -46,7 +48,7 @@ def copy_cache_for_template_if_available(
|
|
|
46
48
|
try:
|
|
47
49
|
cache_dir = _template_cache_dir(template)
|
|
48
50
|
if cache_dir.exists() and any(cache_dir.iterdir()):
|
|
49
|
-
_copytree(cache_dir, project_folder)
|
|
51
|
+
await _copytree(cache_dir, project_folder)
|
|
50
52
|
structlogger.info(
|
|
51
53
|
"project_generator.copy_cache_for_template.success",
|
|
52
54
|
template=template,
|
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.0a15
|
|
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
|
|
@@ -28,6 +28,7 @@ Requires-Dist: absl-py (>=2.0,<2.1)
|
|
|
28
28
|
Requires-Dist: aio-pika (>=8.2.3,<9.4.4)
|
|
29
29
|
Requires-Dist: aiogram (>=3.15,<3.16)
|
|
30
30
|
Requires-Dist: aiohttp (>=3.10,<3.11)
|
|
31
|
+
Requires-Dist: aioshutil (>=1.5,<2.0)
|
|
31
32
|
Requires-Dist: apscheduler (>=3.10,<3.11)
|
|
32
33
|
Requires-Dist: attrs (>=23.1,<23.2)
|
|
33
34
|
Requires-Dist: azure-identity (>=1.19.0,<1.20.0)
|
|
@@ -37,15 +37,15 @@ rasa/builder/job_manager.py,sha256=eQ5HRff-U4Cj3joHKqpjDcfCMWj4nz4D_oQmoozpwPM,2
|
|
|
37
37
|
rasa/builder/jobs.py,sha256=KgqWNW5e8Nh5kYBm3Fm0wZWspbPRe5Qr1cRfrVKnYlM,9346
|
|
38
38
|
rasa/builder/llm_service.py,sha256=y3CPQS0qHGFhe6Z4lbs2HkEVztYYVZtnWiTNjghlBdE,8859
|
|
39
39
|
rasa/builder/logging_utils.py,sha256=E1YZs5BdHT9TrnoA2758sFMD1Xw7e5mnAtqWSAZs1gk,9296
|
|
40
|
-
rasa/builder/main.py,sha256=
|
|
40
|
+
rasa/builder/main.py,sha256=hSDkcaV_gCYss9rfXjqM1QeBjEIhmRrACycoFDHKHEE,7597
|
|
41
41
|
rasa/builder/models.py,sha256=UWMN1Z20Btrc2fBK4y4eAyRmx3RVyQiqiUHYQTJfyIE,5937
|
|
42
|
-
rasa/builder/project_generator.py,sha256=
|
|
42
|
+
rasa/builder/project_generator.py,sha256=d7ZAMX1NIR-lzznBtEV_S0MODRGJ-kmzVyHI0HtYCcs,13914
|
|
43
43
|
rasa/builder/project_info.py,sha256=ZBwFCigZLSo1RBMhlZDYBoVl2G-9OnhRrYxdMWHn6S4,2093
|
|
44
44
|
rasa/builder/scrape_rasa_docs.py,sha256=iR_uThYA_kjDeIFY7AdpXcP-30P2vOHQ65gH4S1OjLw,2485
|
|
45
45
|
rasa/builder/service.py,sha256=DBIZeF9IDS-C0SWDfDwo8ieU6Ok9q5N417S3Mz82eLc,46649
|
|
46
46
|
rasa/builder/shared/tracker_context.py,sha256=2P-DsWjWEkZ32dqrx6s4zVxdo0_mokZNrU3LYisu6MY,7691
|
|
47
47
|
rasa/builder/skill_to_bot_prompt.jinja2,sha256=h2Fgoh9k3XinN0blEEqMuOWuvwXxJifP3GJs-GczgBU,5530
|
|
48
|
-
rasa/builder/template_cache.py,sha256=
|
|
48
|
+
rasa/builder/template_cache.py,sha256=Lrn_AjiDTdwG1ydBNKeuCtydTlwOfYs7i2J1Vk9djpM,2424
|
|
49
49
|
rasa/builder/training_service.py,sha256=kmcxgCxZzklxr4RKqan3aA_BU3pRE7WS_q-AO5sFyxM,5975
|
|
50
50
|
rasa/builder/validation_service.py,sha256=FAHSf2tQZ8yDlckWWjqMqhjb0rANbXR2DJTybh4fHnM,3099
|
|
51
51
|
rasa/cli/__init__.py,sha256=eO5vp9rFCANtbTVU-pxN3iMBKw4p9WRcgzytt9MzinY,115
|
|
@@ -1123,9 +1123,9 @@ rasa/utils/train_utils.py,sha256=ClJx-6x3-h3Vt6mskacgkcCUJTMXjFPe3zAcy_DfmaU,212
|
|
|
1123
1123
|
rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
|
|
1124
1124
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
1125
1125
|
rasa/validator.py,sha256=_5IjhhzG-_LM5_Bpa09siEQATgFRYEsPp9FbOwXzVmM,83275
|
|
1126
|
-
rasa/version.py,sha256=
|
|
1127
|
-
rasa_pro-3.14.
|
|
1128
|
-
rasa_pro-3.14.
|
|
1129
|
-
rasa_pro-3.14.
|
|
1130
|
-
rasa_pro-3.14.
|
|
1131
|
-
rasa_pro-3.14.
|
|
1126
|
+
rasa/version.py,sha256=_AKlXwLMSnw_23a0bzSCc6K0-bVC9iwn6Ww-WGIZWng,120
|
|
1127
|
+
rasa_pro-3.14.0a15.dist-info/METADATA,sha256=VWaN9xDkS16tRkpD403AmgpeqLGI24tGWEh599s5nec,10191
|
|
1128
|
+
rasa_pro-3.14.0a15.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
1129
|
+
rasa_pro-3.14.0a15.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
1130
|
+
rasa_pro-3.14.0a15.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
1131
|
+
rasa_pro-3.14.0a15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|