rasa-pro 3.12.12.dev1__py3-none-any.whl → 3.12.13__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/run.py CHANGED
@@ -86,13 +86,15 @@ def _create_single_channel(channel: Text, credentials: Dict[Text, Any]) -> Any:
86
86
  )
87
87
 
88
88
 
89
- def _create_app_without_api(cors: Optional[Union[Text, List[Text]]] = None) -> Sanic:
89
+ def _create_app_without_api(
90
+ cors: Optional[Union[Text, List[Text]]] = None, is_inspector_enabled: bool = False
91
+ ) -> Sanic:
90
92
  app = Sanic("rasa_core_no_api", configure_logging=False)
91
93
 
92
94
  # Reset Sanic warnings filter that allows the triggering of Sanic warnings
93
95
  warnings.filterwarnings("ignore", category=DeprecationWarning, module=r"sanic.*")
94
96
 
95
- server.add_root_route(app)
97
+ server.add_root_route(app, is_inspector_enabled)
96
98
  server.configure_cors(app, cors)
97
99
  return app
98
100
 
@@ -127,6 +129,7 @@ def configure_app(
127
129
  server_listeners: Optional[List[Tuple[Callable, Text]]] = None,
128
130
  use_uvloop: Optional[bool] = True,
129
131
  keep_alive_timeout: int = constants.DEFAULT_KEEP_ALIVE_TIMEOUT,
132
+ is_inspector_enabled: bool = False,
130
133
  ) -> Sanic:
131
134
  """Run the agent."""
132
135
  rasa.core.utils.configure_file_logging(
@@ -144,6 +147,7 @@ def configure_app(
144
147
  jwt_private_key=jwt_private_key,
145
148
  jwt_method=jwt_method,
146
149
  endpoints=endpoints,
150
+ is_inspector_enabled=is_inspector_enabled,
147
151
  )
148
152
  )
149
153
  else:
@@ -259,6 +263,7 @@ def serve_application(
259
263
  syslog_protocol=syslog_protocol,
260
264
  request_timeout=request_timeout,
261
265
  server_listeners=server_listeners,
266
+ is_inspector_enabled=inspect,
262
267
  )
263
268
 
264
269
  ssl_context = server.create_ssl_context(
@@ -117,9 +117,9 @@ class ClarifyCommand(Command):
117
117
  @staticmethod
118
118
  def regex_pattern() -> str:
119
119
  mapper = {
120
- CommandSyntaxVersion.v1: r"Clarify\(([\"\'a-zA-Z0-9_, ]*)\)",
120
+ CommandSyntaxVersion.v1: r"Clarify\(([\"\'a-zA-Z0-9_, -]*)\)",
121
121
  CommandSyntaxVersion.v2: (
122
- r"""^[\s\W\d]*disambiguate flows (["'a-zA-Z0-9_, ]*)['"`]*$"""
122
+ r"""^[\s\W\d]*disambiguate flows (["'a-zA-Z0-9_, -]*)['"`]*$"""
123
123
  ),
124
124
  }
125
125
  return mapper.get(
@@ -528,7 +528,7 @@ class LLMBasedCommandGenerator(
528
528
  either contain a StartFlowCommand or a SetSlot command
529
529
  for the current collect step.
530
530
  """
531
- return self.config.get(KEY_MINIMIZE_NUM_CALLS, False) and (
531
+ return self.config.get(KEY_MINIMIZE_NUM_CALLS, True) and (
532
532
  self._prior_commands_contain_start_flow(prior_commands)
533
533
  or self._prior_commands_contain_set_slot_for_active_collect_step(
534
534
  prior_commands, flows, tracker
rasa/server.py CHANGED
@@ -522,12 +522,15 @@ def configure_cors(
522
522
  )
523
523
 
524
524
 
525
- def add_root_route(app: Sanic) -> None:
525
+ def add_root_route(app: Sanic, is_inspector_enabled: bool = False) -> None:
526
526
  """Add '/' route to return hello."""
527
527
 
528
528
  @app.get("/")
529
529
  async def hello(request: Request) -> HTTPResponse:
530
530
  """Check if the server is running and responds with the version."""
531
+ if not is_inspector_enabled:
532
+ return response.text("Hello from Rasa: " + rasa.__version__)
533
+
531
534
  html_content = f"""
532
535
  <html>
533
536
  <body>
@@ -688,6 +691,7 @@ def create_app(
688
691
  jwt_private_key: Optional[Text] = None,
689
692
  jwt_method: Text = "HS256",
690
693
  endpoints: Optional[AvailableEndpoints] = None,
694
+ is_inspector_enabled: bool = False,
691
695
  ) -> Sanic:
692
696
  """Class representing a Rasa HTTP server."""
693
697
  app = Sanic("rasa_server")
@@ -733,7 +737,7 @@ def create_app(
733
737
  ) -> HTTPResponse:
734
738
  return response.json(exception.error_info, status=exception.status)
735
739
 
736
- add_root_route(app)
740
+ add_root_route(app, is_inspector_enabled)
737
741
 
738
742
  @app.get("/version")
739
743
  async def version(request: Request) -> HTTPResponse:
rasa/telemetry.py CHANGED
@@ -915,7 +915,7 @@ def initialize_error_reporting() -> None:
915
915
  OSError,
916
916
  ],
917
917
  in_app_include=["rasa"], # only submit errors in this package
918
- with_locals=False, # don't submit local variables
918
+ include_local_variables=False, # don't submit local variables
919
919
  release=f"rasa-{rasa.__version__}",
920
920
  default_integrations=False,
921
921
  environment="development" if in_continuous_integration() else "production",
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.12.12.dev1"
3
+ __version__ = "3.12.13"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rasa-pro
3
- Version: 3.12.12.dev1
3
+ Version: 3.12.13
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
@@ -26,7 +26,7 @@ Requires-Dist: SQLAlchemy (>=2.0.22,<2.1.0)
26
26
  Requires-Dist: absl-py (>=2.0,<2.1)
27
27
  Requires-Dist: aio-pika (>=8.2.3,<9.4.4)
28
28
  Requires-Dist: aiogram (>=3.15,<3.16)
29
- Requires-Dist: aiohttp (>=3.9.4,<3.10)
29
+ Requires-Dist: aiohttp (>=3.10,<3.11)
30
30
  Requires-Dist: apscheduler (>=3.10,<3.11)
31
31
  Requires-Dist: attrs (>=23.1,<23.2)
32
32
  Requires-Dist: azure-identity (>=1.19.0,<1.20.0)
@@ -115,7 +115,7 @@ Requires-Dist: sanic-routing (>=22.8.0,<23.0.0)
115
115
  Requires-Dist: scikit-learn (>=1.5.1,<1.6.0)
116
116
  Requires-Dist: scipy (>=1.13.1,<1.14.0)
117
117
  Requires-Dist: sentencepiece[sentencepiece] (>=0.1.99,<0.2.0) ; extra == "transformers" or extra == "full"
118
- Requires-Dist: sentry-sdk (>=1.14.0,<1.15.0)
118
+ Requires-Dist: sentry-sdk (>=2.8.0,<3)
119
119
  Requires-Dist: setuptools (>=78.1.0,<78.2.0)
120
120
  Requires-Dist: sklearn-crfsuite (>=0.3.6,<0.4.0)
121
121
  Requires-Dist: skops (>=0.10.0,<0.11.0)
@@ -343,7 +343,7 @@ rasa/core/policies/rule_policy.py,sha256=EItfUn07JIBLRIbriPKDprsvWq_-xzZTGrlTS2e
343
343
  rasa/core/policies/ted_policy.py,sha256=0RzIuyrtt4PxLcqQ-bfaExkZvU-TnsMbgmDcwh2SakY,87710
344
344
  rasa/core/policies/unexpected_intent_policy.py,sha256=ZXvbswf2NDy00kHmBQcyXa1OVYFyc79HQKrFkQ4gCfM,39609
345
345
  rasa/core/processor.py,sha256=sUEKKDFHw0uDw8BgorN4DFQa5f_kVbOS344qV4F0oDk,59821
346
- rasa/core/run.py,sha256=5qq1Z-GiIrFejsthOnnkhQtNiqccuYHYf8ixP49PSHk,11484
346
+ rasa/core/run.py,sha256=N-NVdo-2wlKbaC1O1lS0t2Uraw9GjJYgZa0MkMPLdlg,11685
347
347
  rasa/core/secrets_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
348
348
  rasa/core/secrets_manager/constants.py,sha256=dTDHenvG1JBVi34QIR6FpdO5RDOXQwAjAxLlgJ2ZNEI,1193
349
349
  rasa/core/secrets_manager/endpoints.py,sha256=4b7KXB9amdF23eYGsx8215bOjE5-TQ73qD2hdI8Sm9c,12662
@@ -372,7 +372,7 @@ rasa/dialogue_understanding/commands/can_not_handle_command.py,sha256=fKOj9ScLxu
372
372
  rasa/dialogue_understanding/commands/cancel_flow_command.py,sha256=7Jcvza6OBT8vM7bwJlTCujKsCMrC8gxR0DE6uaIb5_0,5340
373
373
  rasa/dialogue_understanding/commands/change_flow_command.py,sha256=NnD9PM0B9o4oxTtYdcb-lDBC0-oQkbAQRB-55iYCkng,2409
374
374
  rasa/dialogue_understanding/commands/chit_chat_answer_command.py,sha256=PtwNuAHJdIUQ_PIOv5bguVJMyZ_2jPtoozQQdiebKB4,2842
375
- rasa/dialogue_understanding/commands/clarify_command.py,sha256=H-sse6PA47nPkFXhx8L6XAztdInSrgU_U4U0VF45EBU,4289
375
+ rasa/dialogue_understanding/commands/clarify_command.py,sha256=BpJ2CQHaA7ck6Vh5WKD7v4m7MOA_Kie-DSBoHR8oVbk,4291
376
376
  rasa/dialogue_understanding/commands/command.py,sha256=rhxHmllTMwvb4Uq-pDqmUdlKtu-87y8nqN5DRO-KDwE,2529
377
377
  rasa/dialogue_understanding/commands/command_syntax_manager.py,sha256=vO6sOak0g9GucEtiNximJ9bQFbHQwWJ-M5XNF1gGxz4,1893
378
378
  rasa/dialogue_understanding/commands/correct_slots_command.py,sha256=LlaBtWc3y-DyDPMF-zGG9x_J9uCe78LqiuogHIyoz5Q,10810
@@ -400,7 +400,7 @@ rasa/dialogue_understanding/generator/command_parser.py,sha256=wf6FSgqBw5F0legg0
400
400
  rasa/dialogue_understanding/generator/constants.py,sha256=PuUckBGUZ-Tu31B0cs8yxN99BDW3PGoExZa-BlIL5v8,1108
401
401
  rasa/dialogue_understanding/generator/flow_document_template.jinja2,sha256=f4H6vVd-_nX_RtutMh1xD3ZQE_J2OyuPHAtiltfiAPY,253
402
402
  rasa/dialogue_understanding/generator/flow_retrieval.py,sha256=DavL-37e0tksMWkxvFImoqlsmYeYeSdDN3u7wZI0K-8,17817
403
- rasa/dialogue_understanding/generator/llm_based_command_generator.py,sha256=uzzGufs2oDBXqz4LKz2429Hr3GvkMIKbsmBrgvEG4TA,23587
403
+ rasa/dialogue_understanding/generator/llm_based_command_generator.py,sha256=P1Hwjt8ph2oQQ2PzWaaBRcU36ia4mN21nTzhLtEF5Wc,23586
404
404
  rasa/dialogue_understanding/generator/llm_command_generator.py,sha256=z7jhIJ3W_5GFH-p15kVoWbigMIoY8fIJjc_j_uX7yxw,2581
405
405
  rasa/dialogue_understanding/generator/multi_step/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
406
406
  rasa/dialogue_understanding/generator/multi_step/fill_slots_prompt.jinja2,sha256=Y0m673tAML3cFPaLM-urMXDsBYUUcXIw9YUpkAhGUuA,2933
@@ -623,7 +623,7 @@ rasa/nlu/utils/mitie_utils.py,sha256=xf2EoOX8nu--t9f7lZ8bFpDtgJweUTey3aOI1R5vGvQ
623
623
  rasa/nlu/utils/pattern_utils.py,sha256=5Efoc6tpcVmoirAZuCNGNh0QjIs7tUxxk2PfLyPxZAM,5386
624
624
  rasa/nlu/utils/spacy_utils.py,sha256=5EnHR-MVAZhGbg2rq8VpOu7I0tagV3ThRTlM0-WO2Cg,11794
625
625
  rasa/plugin.py,sha256=cSmFhSWr5WQyYXdJOWwgH4ra_2kbhoNLZAtnqcsGny4,3071
626
- rasa/server.py,sha256=eomGM_3SpBxaF_-VfZbkSO_bMk_vI1XLUZjt32f4gcI,59390
626
+ rasa/server.py,sha256=0GQ9rML75EOuRDpUHZjz-uYbkSbnNuK0SRIGQJeiR-I,59599
627
627
  rasa/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
628
628
  rasa/shared/constants.py,sha256=PBpmxNQM29MoLp1pY7RGQ1I1hPt3N0_r2l_y5KguEnQ,12129
629
629
  rasa/shared/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -776,7 +776,7 @@ rasa/studio/download.py,sha256=Ap_Hq3veKKp5JxWt_qAeTJg0KLKkzowMclx2KPE1fy8,17188
776
776
  rasa/studio/results_logger.py,sha256=eLBi49o_4nkXccRM0h6-sjlV1o_HxTNEVJMdNocTw_I,4963
777
777
  rasa/studio/train.py,sha256=gfPtirITzBDo9gV4hqDNSwPYtVp_22cq8OWI6YIBgyk,4243
778
778
  rasa/studio/upload.py,sha256=K4QJIE-GYWgA1Z6dXOJAA7n0McvlBt0wOQyiCMXtZCk,17784
779
- rasa/telemetry.py,sha256=6-7-axs_CjWOsz9cfc_66i1S0NiCiLlELgxG_2RBe8Q,67272
779
+ rasa/telemetry.py,sha256=2iFGF9LQIbZJpvecPYWMxVBmhWDHTr6vpuyw-oDFbgI,67284
780
780
  rasa/tracing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
781
781
  rasa/tracing/config.py,sha256=32X2rqAiHe0e-Iijb5AivjqDs2j03n8xx5mo07NBMI4,12964
782
782
  rasa/tracing/constants.py,sha256=-3vlfI9v_D8f-KB5tuiqBHhszu2WofFQOyjKBn28gyg,2889
@@ -822,9 +822,9 @@ rasa/utils/train_utils.py,sha256=ClJx-6x3-h3Vt6mskacgkcCUJTMXjFPe3zAcy_DfmaU,212
822
822
  rasa/utils/url_tools.py,sha256=dZ1HGkVdWTJB7zYEdwoDIrEuyX9HE5WsxKKFVsXBLE0,1218
823
823
  rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
824
824
  rasa/validator.py,sha256=524VlFTYK0B3iXYveVD6BDC3K0j1QfpzJ9O-TAWczmc,83166
825
- rasa/version.py,sha256=QWa_BQoCDacPltrsk8lcJtzpUdXacGaAswNtIf0Cwj4,123
826
- rasa_pro-3.12.12.dev1.dist-info/METADATA,sha256=UzGujHcb0oPvZAi81__B4IR-yCkJOkoZx8jXQ23nYrs,10621
827
- rasa_pro-3.12.12.dev1.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
- rasa_pro-3.12.12.dev1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
- rasa_pro-3.12.12.dev1.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
- rasa_pro-3.12.12.dev1.dist-info/RECORD,,
825
+ rasa/version.py,sha256=xvjgzcMusQj7hAVj2HW5HXv63_EHazJDfb-XQzGy9RU,118
826
+ rasa_pro-3.12.13.dist-info/METADATA,sha256=Ol4uriGrH7UxdD7N3Z3Se-9eBZGOm2szhKZCuBJP6VY,10609
827
+ rasa_pro-3.12.13.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
+ rasa_pro-3.12.13.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
+ rasa_pro-3.12.13.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
+ rasa_pro-3.12.13.dist-info/RECORD,,