rasa-pro 3.10.12__py3-none-any.whl → 3.10.13a1__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/shared/utils/yaml.py CHANGED
@@ -416,47 +416,6 @@ def validate_raw_yaml_using_schema_file_with_responses(
416
416
  )
417
417
 
418
418
 
419
- def process_content(content: str) -> str:
420
- """
421
- Process the content to handle both Windows paths and emojis.
422
- Windows paths are processed by escaping backslashes but emojis are left untouched.
423
-
424
- Args:
425
- content: yaml content to be processed
426
- """
427
- # Detect common Windows path patterns: e.g., C:\ or \\
428
- UNESCAPED_WINDOWS_PATH_PATTERN = re.compile(
429
- r"(?<!\w)[a-zA-Z]:(\\[a-zA-Z0-9_ -]+)*(\\)?(?!\\n)"
430
- )
431
- ESCAPED_WINDOWS_PATH_PATTERN = re.compile(
432
- r"(?<!\w)[a-zA-Z]:(\\\\[a-zA-Z0-9_ -]+)+\\\\?(?!\\n)"
433
- )
434
-
435
- # Function to escape backslashes in Windows paths but leave other content as is
436
- def escape_windows_paths(match: re.Match) -> str:
437
- path = str(match.group(0))
438
- return path.replace("\\", "\\\\") # Escape backslashes only in Windows paths
439
-
440
- def unescape_windows_paths(match: re.Match) -> str:
441
- path = str(match.group(0))
442
- return path.replace("\\\\", "\\")
443
-
444
- # First, process Windows paths by escaping backslashes
445
- content = re.sub(UNESCAPED_WINDOWS_PATH_PATTERN, escape_windows_paths, content)
446
-
447
- # Ensure proper handling of emojis by decoding Unicode sequences
448
- content = (
449
- content.encode("utf-8")
450
- .decode("raw_unicode_escape")
451
- .encode("utf-16", "surrogatepass")
452
- .decode("utf-16")
453
- )
454
-
455
- content = re.sub(ESCAPED_WINDOWS_PATH_PATTERN, unescape_windows_paths, content)
456
-
457
- return content
458
-
459
-
460
419
  def read_yaml(
461
420
  content: str,
462
421
  reader_type: Union[str, List[str]] = "safe",
@@ -472,9 +431,6 @@ def read_yaml(
472
431
  Raises:
473
432
  ruamel.yaml.parser.ParserError: If there was an error when parsing the YAML.
474
433
  """
475
- if _is_ascii(content):
476
- content = process_content(content)
477
-
478
434
  custom_constructor = kwargs.get("custom_constructor", None)
479
435
 
480
436
  # Create YAML parser with custom constructor
rasa/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  # this file will automatically be changed,
2
2
  # do not add anything but the version number here!
3
- __version__ = "3.10.12"
3
+ __version__ = "3.10.13a1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rasa-pro
3
- Version: 3.10.12
3
+ Version: 3.10.13a1
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
  Home-page: https://rasa.com
6
6
  Keywords: nlp,machine-learning,machine-learning-library,bot,bots,botkit,rasa conversational-agents,conversational-ai,chatbot,chatbot-framework,bot-framework
@@ -665,7 +665,7 @@ rasa/shared/utils/schemas/domain.yml,sha256=b2k4ZYSV-QL3hGjDaRg8rfoqaTh4hbhDc_hB
665
665
  rasa/shared/utils/schemas/events.py,sha256=nm7WotE1UCZpkMMLNW2vs-vKslwngfG7VvjFp0T8ADM,6819
666
666
  rasa/shared/utils/schemas/model_config.yml,sha256=GU1lL_apXjJ3Xbd9Fj5jKm2h1HeB6V6TNqrhK5hOrGY,998
667
667
  rasa/shared/utils/schemas/stories.yml,sha256=DV3wAFnv1leD7kV-FH-GQihF1QX5oKHc8Eb24mxjizc,4737
668
- rasa/shared/utils/yaml.py,sha256=XJoKLe_vOmCcTI_Vg5o-iJzu2uumen7j1rrO6T95QXM,32592
668
+ rasa/shared/utils/yaml.py,sha256=poDOFJ4jU-hQG7XS7ozeFA8ec5L4NSUBiFvH-N5BuQc,31089
669
669
  rasa/studio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
670
670
  rasa/studio/auth.py,sha256=6Hk6aHpNNrFXpGygWVIF2V5FFyVpqEOyMX5fVU8bqxU,9673
671
671
  rasa/studio/config.py,sha256=wqjvg_hARKG-6cV3JrhnP_ptZIq0VSFbdv-aWrH0u_Q,4091
@@ -720,9 +720,9 @@ rasa/utils/train_utils.py,sha256=f1NWpp5y6al0dzoQyyio4hc4Nf73DRoRSHDzEK6-C4E,212
720
720
  rasa/utils/url_tools.py,sha256=JQcHL2aLqLHu82k7_d9imUoETCm2bmlHaDpOJ-dKqBc,1218
721
721
  rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
722
722
  rasa/validator.py,sha256=ToRaa4dS859CJO3H2VGqS943O5qWOg45ypbDfFMKECU,62699
723
- rasa/version.py,sha256=_k0Lu-3EqFE4i100DMYBgRi3c_KmZxqc9lFcIfHO9UA,118
724
- rasa_pro-3.10.12.dist-info/METADATA,sha256=Ct7ic4Md_uIsiULOtZ2MGSrpeJ4ZlsoatHmyp2OUOCc,10919
725
- rasa_pro-3.10.12.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
726
- rasa_pro-3.10.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
727
- rasa_pro-3.10.12.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
728
- rasa_pro-3.10.12.dist-info/RECORD,,
723
+ rasa/version.py,sha256=XeYU5gF7m3YQ6D79cZdCdDxwmL4reMJlBtTt5PKs8BI,120
724
+ rasa_pro-3.10.13a1.dist-info/METADATA,sha256=X0kN_6S3XcNSWg1RyxSSf3WrT1YDi6Nf9Qj9JY8ZvAU,10921
725
+ rasa_pro-3.10.13a1.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
726
+ rasa_pro-3.10.13a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
727
+ rasa_pro-3.10.13a1.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
728
+ rasa_pro-3.10.13a1.dist-info/RECORD,,