rasa-pro 3.12.32__py3-none-any.whl → 3.12.34__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.

@@ -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,
@@ -86,6 +86,7 @@ class AudiocodesVoiceOutputChannel(VoiceOutputChannel):
86
86
  # This is an approximation, as the bot will be sent the audio chunks next
87
87
  # which are played to the user immediately.
88
88
  call_state.is_bot_speaking = True # type: ignore[attr-defined]
89
+ VoiceInputChannel._cancel_silence_timeout_watcher()
89
90
 
90
91
  async def send_intermediate_marker(self, recipient_id: str) -> None:
91
92
  """Audiocodes doesn't need intermediate markers, so do nothing."""
@@ -249,6 +249,16 @@ class FlowRetrieval(EmbeddingsHealthCheckMixin):
249
249
  )
250
250
 
251
251
  flows_to_embedd = flows.exclude_link_only_flows()
252
+
253
+ if not flows_to_embedd:
254
+ structlogger.debug(
255
+ "flow_retrieval.populate_vector_store.no_flows_to_embed",
256
+ event_info=(
257
+ "No flows to embed in the vector store, skipping population."
258
+ ),
259
+ )
260
+ return
261
+
252
262
  embeddings = self._create_embedder(self.config)
253
263
  documents = self._generate_flow_documents(flows_to_embedd, domain)
254
264
  try:
@@ -148,7 +148,7 @@ class LiteLLMRouterLLMClient(_BaseLiteLLMRouterClient, _BaseLiteLLMClient):
148
148
  if not self._use_chat_completions_endpoint:
149
149
  return self._text_completion(messages)
150
150
  try:
151
- formatted_messages = self._format_messages(messages)
151
+ formatted_messages = self._get_formatted_messages(messages)
152
152
  response = self.router_client.completion(
153
153
  messages=formatted_messages, **self._completion_fn_args
154
154
  )
@@ -185,7 +185,7 @@ class LiteLLMRouterLLMClient(_BaseLiteLLMRouterClient, _BaseLiteLLMClient):
185
185
  if not self._use_chat_completions_endpoint:
186
186
  return await self._atext_completion(messages)
187
187
  try:
188
- formatted_messages = self._format_messages(messages)
188
+ formatted_messages = self._get_formatted_messages(messages)
189
189
  response = await self.router_client.acompletion(
190
190
  messages=formatted_messages, **self._completion_fn_args
191
191
  )
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.32"
3
+ __version__ = "3.12.34"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rasa-pro
3
- Version: 3.12.32
3
+ Version: 3.12.34
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
@@ -103,7 +103,7 @@ rasa/core/actions/action_trigger_flow.py,sha256=IydYAGafTtoY6XSgCX124xJQhzudUg8J
103
103
  rasa/core/actions/action_trigger_search.py,sha256=QfYqnaGRCqRYJ4msYsLAbnVYW5ija_tqhCcKIN8aEfw,1064
104
104
  rasa/core/actions/constants.py,sha256=gfgdWmj-OJ5xTcTAS1OcXQ3dgcTiHO98NC-SGyKlTjs,161
105
105
  rasa/core/actions/custom_action_executor.py,sha256=qafASBdM3-hByDqbkNxgXfx5yMSsJh_nB3B7x9ye0TY,6176
106
- rasa/core/actions/direct_custom_actions_executor.py,sha256=IzxRnPF92zs3WX-p9DoFq51Vf0QwfE6prB_AlyEEllc,3746
106
+ rasa/core/actions/direct_custom_actions_executor.py,sha256=zGHI3cXVRfyzaaGSH7VePXHQxsDAvF0iAZSEcOuM-_M,4026
107
107
  rasa/core/actions/e2e_stub_custom_action_executor.py,sha256=D-kECC1QjVLv4owNxstW2xJPPsXTGfGepvquMeWB_ec,2282
108
108
  rasa/core/actions/forms.py,sha256=MPGxp3vg-EgFcU5UQYqWM2tycSFIuoF6vWvNSSWPhSA,26967
109
109
  rasa/core/actions/grpc_custom_action_executor.py,sha256=EDxdSIDA4H4Mu-QZk-pPGV2N41ZsbY8W9laV6l1WlDQ,9103
@@ -280,7 +280,7 @@ rasa/core/channels/voice_stream/asr/asr_event.py,sha256=skPwrkRrcsptmeWXu9q68i4B
280
280
  rasa/core/channels/voice_stream/asr/azure.py,sha256=dUFxtNVVwGM2D1VyqQ5FWeSpKwUQekMXUxWZv6tPJ7w,6114
281
281
  rasa/core/channels/voice_stream/asr/deepgram.py,sha256=VeVMWg05uL_epGGOZbUHXeIIhoBf0bxiWMp6QwNFe0A,5920
282
282
  rasa/core/channels/voice_stream/audio_bytes.py,sha256=3V0QQplPD-kVfebaaeVcKgV7pwIJyjnTenujVD3y3sY,340
283
- rasa/core/channels/voice_stream/audiocodes.py,sha256=MimjLo31wikfGmsyllRiX-pIZRy-D5JFeKhHJt2vnbU,12856
283
+ rasa/core/channels/voice_stream/audiocodes.py,sha256=ZUj15x16A3MS3v1wZ7YGR5DOX0GH5PlUwIOmZP7QAwo,12916
284
284
  rasa/core/channels/voice_stream/browser_audio.py,sha256=fDwp-yaalik8R92EOJHsgHMuNAg9yoeGWVRGMCH2lJQ,3939
285
285
  rasa/core/channels/voice_stream/call_state.py,sha256=fbwVbT0ddE7AjTYjx-Mq5jBMEGXanbug5wlBwstaews,899
286
286
  rasa/core/channels/voice_stream/genesys.py,sha256=EyZ4G3gfiQ5HXP6jslTjXRBYVEhpyO8nK5r6znQtHtE,16965
@@ -399,7 +399,7 @@ rasa/dialogue_understanding/generator/command_generator.py,sha256=huRDWC2gv_bRHF
399
399
  rasa/dialogue_understanding/generator/command_parser.py,sha256=wf6FSgqBw5F0legg06SqKlzajIN6sc_Cov2lFY_O9MI,8109
400
400
  rasa/dialogue_understanding/generator/constants.py,sha256=ulqmLIwrBOZLyhsCChI_4CdOnA0I8MfuBxxuKGyFp7U,1130
401
401
  rasa/dialogue_understanding/generator/flow_document_template.jinja2,sha256=f4H6vVd-_nX_RtutMh1xD3ZQE_J2OyuPHAtiltfiAPY,253
402
- rasa/dialogue_understanding/generator/flow_retrieval.py,sha256=DavL-37e0tksMWkxvFImoqlsmYeYeSdDN3u7wZI0K-8,17817
402
+ rasa/dialogue_understanding/generator/flow_retrieval.py,sha256=D-D6bvYt_GDLoRQzhvlTEPnmZI4ceESLJBLWrMgUyrA,18120
403
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
@@ -739,7 +739,7 @@ rasa/shared/providers/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
739
739
  rasa/shared/providers/llm/_base_litellm_client.py,sha256=Ua5Kt6VGe5vRzSzWWWx2Q3LH2PCDd8V7V4zfYD464yU,11634
740
740
  rasa/shared/providers/llm/azure_openai_llm_client.py,sha256=ui85vothxR2P_-eLc4nLgbpjnpEKY2BXnIjLxBZoYz8,12504
741
741
  rasa/shared/providers/llm/default_litellm_llm_client.py,sha256=xx-o-NX_mtx6AszK--ZRj8n8JyEJuVu1-42dt8AynBM,4083
742
- rasa/shared/providers/llm/litellm_router_llm_client.py,sha256=_6vAdPLAVSI_sBJLaXLnE87M-0ip_klfQ78fQ_pyoyI,7947
742
+ rasa/shared/providers/llm/litellm_router_llm_client.py,sha256=68kQGl5OAhbp39xFlo4YVAx7gn-hJzDBHjNENZeilBQ,7961
743
743
  rasa/shared/providers/llm/llm_client.py,sha256=-hTCRsL-A3GCMRHtcyCgcCyra-9OJ8GUC-mURoRXH0k,3242
744
744
  rasa/shared/providers/llm/llm_response.py,sha256=8mOpZdmh4-3yM7aOmNO0yEYUmRDErfoP7ZDMUuHr2Cc,3504
745
745
  rasa/shared/providers/llm/openai_llm_client.py,sha256=rSdLj29Hl1Wm5G6Uwo77j4WqogK_3QIbTA7fyt63YAg,5013
@@ -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=0jQ2Z9MlEZq5LE0RbR_32-V_zhhpiBjIXu7kqb57q5o,118
826
- rasa_pro-3.12.32.dist-info/METADATA,sha256=I4-ePtMb2yxAT-TkIqxVoCL2NUPCsSVo-f4sflNjIzo,10609
827
- rasa_pro-3.12.32.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
- rasa_pro-3.12.32.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
- rasa_pro-3.12.32.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
- rasa_pro-3.12.32.dist-info/RECORD,,
825
+ rasa/version.py,sha256=GrWXjBKaO-TkXMloPNG2sYWuTESfhlG2mLeWnhrhfJQ,118
826
+ rasa_pro-3.12.34.dist-info/METADATA,sha256=PK9eyKZyZMpIISus8gptS1zf-Uwgc6Vv1QLjGTrdzYQ,10609
827
+ rasa_pro-3.12.34.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
+ rasa_pro-3.12.34.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
+ rasa_pro-3.12.34.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
+ rasa_pro-3.12.34.dist-info/RECORD,,