rasa-pro 3.12.18__py3-none-any.whl → 3.12.19__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/utils.py CHANGED
@@ -389,16 +389,25 @@ def should_force_slot_filling(
389
389
  and the name of the slot if applicable.
390
390
  """
391
391
  from rasa.dialogue_understanding.processor.command_processor import (
392
+ find_updated_flows,
392
393
  get_current_collect_step,
393
394
  )
394
395
 
395
396
  if tracker is None:
396
- structlogger.error(
397
- "slot.force_slot_filling.error",
397
+ structlogger.debug(
398
+ "slot.force_slot_filling.no_found_tracker",
398
399
  event_info="Tracker is None. Cannot force slot filling.",
399
400
  )
400
401
  return False, None
401
402
 
403
+ updated_flows = find_updated_flows(tracker, flows)
404
+ if updated_flows:
405
+ structlogger.debug(
406
+ "slot.force_slot_filling.running_flows_were_updated",
407
+ updated_flow_ids=updated_flows,
408
+ )
409
+ return False, None
410
+
402
411
  stack = tracker.stack
403
412
  step = get_current_collect_step(stack, flows)
404
413
  if step is None or not step.force_slot_filling:
@@ -16,6 +16,9 @@ from rasa.dialogue_understanding.commands.error_command import ErrorCommand
16
16
  from rasa.dialogue_understanding.commands.free_form_answer_command import (
17
17
  FreeFormAnswerCommand,
18
18
  )
19
+ from rasa.dialogue_understanding.commands.handle_code_change_command import (
20
+ HandleCodeChangeCommand,
21
+ )
19
22
  from rasa.dialogue_understanding.commands.human_handoff_command import (
20
23
  HumanHandoffCommand,
21
24
  )
@@ -49,6 +52,7 @@ __all__ = [
49
52
  "SetSlotCommand",
50
53
  "StartFlowCommand",
51
54
  "HumanHandoffCommand",
55
+ "HandleCodeChangeCommand",
52
56
  "CorrectSlotsCommand",
53
57
  "CorrectedSlot",
54
58
  "ErrorCommand",
@@ -95,7 +95,9 @@ class CancelFlowCommand(Command):
95
95
  original_stack = original_tracker.stack
96
96
 
97
97
  applied_events: List[Event] = []
98
- user_frame = top_user_flow_frame(original_stack)
98
+ user_frame = top_user_flow_frame(
99
+ original_stack, ignore_call_and_link_frames=False
100
+ )
99
101
  current_flow = user_frame.flow(all_flows) if user_frame else None
100
102
 
101
103
  if not current_flow:
@@ -8,6 +8,7 @@ from rasa.dialogue_understanding.commands import (
8
8
  Command,
9
9
  CorrectSlotsCommand,
10
10
  ErrorCommand,
11
+ HandleCodeChangeCommand,
11
12
  SetSlotCommand,
12
13
  StartFlowCommand,
13
14
  )
@@ -396,15 +397,24 @@ class CommandGenerator:
396
397
  The filtered commands.
397
398
  """
398
399
  from rasa.dialogue_understanding.processor.command_processor import (
400
+ find_updated_flows,
399
401
  get_current_collect_step,
400
402
  )
401
403
 
402
404
  if tracker is None:
403
- structlogger.error(
405
+ structlogger.debug(
404
406
  "command_generator.filter_commands_during_force_slot_filling.tracker_not_found",
405
407
  )
406
408
  return commands
407
409
 
410
+ updated_flows = find_updated_flows(tracker, available_flows)
411
+ if updated_flows:
412
+ structlogger.debug(
413
+ "command_generator.filter_commands_during_force_slot_filling.running_flows_were_updated",
414
+ updated_flow_ids=updated_flows,
415
+ )
416
+ return [HandleCodeChangeCommand()]
417
+
408
418
  stack = tracker.stack
409
419
  step = get_current_collect_step(stack, available_flows)
410
420
 
@@ -214,18 +214,18 @@ def execute_commands(
214
214
  commands: List[Command] = get_commands_from_tracker(tracker)
215
215
  original_tracker = tracker.copy()
216
216
 
217
- commands = clean_up_commands(
218
- commands, tracker, all_flows, execution_context, story_graph, domain
219
- )
220
-
221
217
  updated_flows = find_updated_flows(tracker, all_flows)
222
218
  if updated_flows:
223
- # Override commands
219
+ # if there are updated flows, we need to handle the code change
224
220
  structlogger.debug(
225
221
  "command_processor.execute_commands.running_flows_were_updated",
226
222
  updated_flow_ids=updated_flows,
227
223
  )
228
224
  commands = [HandleCodeChangeCommand()]
225
+ else:
226
+ commands = clean_up_commands(
227
+ commands, tracker, all_flows, execution_context, story_graph, domain
228
+ )
229
229
 
230
230
  # store current flow hashes if they changed
231
231
  new_hashes = calculate_flow_fingerprints(all_flows)
@@ -209,7 +209,9 @@ def get_collect_steps_excluding_ask_before_filling_for_active_flow(
209
209
  All collect steps that are part of the current active flow,
210
210
  excluding the collect steps that have to be asked before filling.
211
211
  """
212
- active_frame = top_user_flow_frame(dialogue_stack)
212
+ active_frame = top_user_flow_frame(
213
+ dialogue_stack, ignore_call_and_link_frames=False
214
+ )
213
215
  if active_frame is None:
214
216
  return set()
215
217
  active_flow = active_frame.flow(all_flows)
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.18"
3
+ __version__ = "3.12.19"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rasa-pro
3
- Version: 3.12.18
3
+ Version: 3.12.19
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
@@ -359,7 +359,7 @@ rasa/core/training/converters/responses_prefix_converter.py,sha256=D4wZ8XWBowUNq
359
359
  rasa/core/training/interactive.py,sha256=OKTg2asZ_gC8S9GIJtDfK2q-hvtZeOC6CEkbr5jy8BU,60342
360
360
  rasa/core/training/story_conflict.py,sha256=sr-DOpBMz2VikXcmpYiqrlRY2O_4ErX9GKlFI1fjjcM,13592
361
361
  rasa/core/training/training.py,sha256=A7f3O4Nnfik1VVAGAI1VM3ZoxmZxNxqZxe_UGKO4Ado,3031
362
- rasa/core/utils.py,sha256=BuSZklSJilk_Pgy3xopGtyqheeZEgEei6oMhuQHyfM8,14132
362
+ rasa/core/utils.py,sha256=yDFQlGjyW6WvDgz7b95nZiQm1ReKy42w67II5kEZnhQ,14424
363
363
  rasa/core/visualize.py,sha256=ZP5k8YI3r7A_ZKUhBmXZ6PvBQ-dSw19xwUjHxCAfr3g,2125
364
364
  rasa/dialogue_understanding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
365
365
  rasa/dialogue_understanding/coexistence/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -367,9 +367,9 @@ rasa/dialogue_understanding/coexistence/constants.py,sha256=RpgLKMG4s7AgII0fRV0s
367
367
  rasa/dialogue_understanding/coexistence/intent_based_router.py,sha256=JlYBZdScnhflLK__i4bG0-PIkuFv0B7L4yOdnLgYWAY,7609
368
368
  rasa/dialogue_understanding/coexistence/llm_based_router.py,sha256=Bl38ZdQWJesb3NeR7sUvoQXXRzDTwSoLqnsNf_hH5rw,11897
369
369
  rasa/dialogue_understanding/coexistence/router_template.jinja2,sha256=CHWFreN0sv1EbPh-hf5AlCt3zxy2_llX1Pdn9Q11Y18,357
370
- rasa/dialogue_understanding/commands/__init__.py,sha256=F-pLETYRUjhIkjjDfXGUuPsK_ac1HcLmJkrUUP0RhME,2259
370
+ rasa/dialogue_understanding/commands/__init__.py,sha256=LsHqTKlDUP-pWpgnOXpA4FPVykWkmoKp18bviNw2vos,2399
371
371
  rasa/dialogue_understanding/commands/can_not_handle_command.py,sha256=fKOj9ScLxuaFO9Iw0p7og_4zMiw2weBdx322rBKlnCI,3519
372
- rasa/dialogue_understanding/commands/cancel_flow_command.py,sha256=7Jcvza6OBT8vM7bwJlTCujKsCMrC8gxR0DE6uaIb5_0,5340
372
+ rasa/dialogue_understanding/commands/cancel_flow_command.py,sha256=x1EH0G0YeTV7aDOHCLLmmPeB-npc0w_uqV6Om0hD8pA,5397
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
375
  rasa/dialogue_understanding/commands/clarify_command.py,sha256=mxdHWdyaQwA4uYdhVUjwAUPfl0HvqtDHU2DWKEeZal4,4290
@@ -395,7 +395,7 @@ rasa/dialogue_understanding/commands/utils.py,sha256=keNOSdTqCPEXO1ICWpKr229IyGQ
395
395
  rasa/dialogue_understanding/constants.py,sha256=_kB0edGV23uvhujlF193N2jk6YG0R6LC599YDX5B5vo,129
396
396
  rasa/dialogue_understanding/generator/__init__.py,sha256=pBm0o6pnJA_0W0UOrGuVsiG4hsTNH_n5GLrz8BYQHM8,830
397
397
  rasa/dialogue_understanding/generator/_jinja_filters.py,sha256=KuK7nGKvKzKJz6Wg3AmrLFvzneGgIyeK825MCE379wc,248
398
- rasa/dialogue_understanding/generator/command_generator.py,sha256=WAlDCzpQuQnoWSHozq3a6xIN5UWMxxiKFFIRp9AXvA0,15640
398
+ rasa/dialogue_understanding/generator/command_generator.py,sha256=YQ_EFNzZfSKf1iHcAjGwh1eBFjuFRDkGa6xADJilhP4,16044
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
@@ -436,7 +436,7 @@ rasa/dialogue_understanding/patterns/skip_question.py,sha256=fJ1MC0WEEtS-BpnGJEf
436
436
  rasa/dialogue_understanding/patterns/user_silence.py,sha256=xP-QMnd-MsybH5z4g01hBv4OLOHcw6m3rc26LQfe2zo,1140
437
437
  rasa/dialogue_understanding/patterns/validate_slot.py,sha256=hqd5AEGT3M3HLNhMwuI9W9kZNCvgU6GyI-2xc2b4kz8,2085
438
438
  rasa/dialogue_understanding/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
439
- rasa/dialogue_understanding/processor/command_processor.py,sha256=3Q7vux5xN1oMwF7SPpbgm4934G_M9nF1dLDPiw_pAIk,29952
439
+ rasa/dialogue_understanding/processor/command_processor.py,sha256=wxTHxslb2jHGMEQ9CMwEbabhbb5iZPXOvYX_GsCNY1c,30017
440
440
  rasa/dialogue_understanding/processor/command_processor_component.py,sha256=rkErI_Uo7s3LsEojUSGSRbWGyGaX7GtGOYSJn0V-TI4,1650
441
441
  rasa/dialogue_understanding/stack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
442
442
  rasa/dialogue_understanding/stack/dialogue_stack.py,sha256=cYV6aQeh0EuOJHODDqK3biqXozYTX8baPgLwHhPxFqs,5244
@@ -446,7 +446,7 @@ rasa/dialogue_understanding/stack/frames/dialogue_stack_frame.py,sha256=SBTmCV4S
446
446
  rasa/dialogue_understanding/stack/frames/flow_stack_frame.py,sha256=__W-kAZt5EFBLsIYC4XEUuy8q7zlfVkskXfmkzjkOEE,5609
447
447
  rasa/dialogue_understanding/stack/frames/pattern_frame.py,sha256=EVrYWv5dCP7XTvNV-HqtOOrseP-IkF0jD2_JacAvIYw,235
448
448
  rasa/dialogue_understanding/stack/frames/search_frame.py,sha256=Eo6tSSbJpslKcs6DLu250NmtoKMe4bDHC8_ebx5sJ60,759
449
- rasa/dialogue_understanding/stack/utils.py,sha256=7ETHyvsqUSyNElVmouswKm99NcGCOG6sWBWFazgXd7A,7932
449
+ rasa/dialogue_understanding/stack/utils.py,sha256=vgoCQ9p3Pqi6cjw_1VOUZSFxcadK4wHH1I-kvSH-X4s,7981
450
450
  rasa/dialogue_understanding/utils.py,sha256=p-KVd7VF21HFHwRMHp5zAnOcMs_BMkVnDgY17TLSUy8,7804
451
451
  rasa/dialogue_understanding_test/README.md,sha256=klUCq_FYd0MkIeyxlwYCfsB9EEsSmXUpTTDTxdR7EPc,17764
452
452
  rasa/dialogue_understanding_test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -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=vZNYr5Zk5DwLMX6MZTlHFps4qYuaY0DFYD0tzVLkV4c,118
826
- rasa_pro-3.12.18.dist-info/METADATA,sha256=uVOwQl-Au_O0FASWeXd1oV20va92DR8qq3zppW7pEM0,10609
827
- rasa_pro-3.12.18.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
- rasa_pro-3.12.18.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
- rasa_pro-3.12.18.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
- rasa_pro-3.12.18.dist-info/RECORD,,
825
+ rasa/version.py,sha256=52jGx9GwcJ_8mznjtNuDaQ_e5ERXOGOmWhzAVrRgckM,118
826
+ rasa_pro-3.12.19.dist-info/METADATA,sha256=n5Yp46lad8Ka1NOxorghZN03fa78icU8a_BDPvCJUaw,10609
827
+ rasa_pro-3.12.19.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
+ rasa_pro-3.12.19.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
+ rasa_pro-3.12.19.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
+ rasa_pro-3.12.19.dist-info/RECORD,,