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

@@ -38,7 +38,7 @@ class CommandProcessorComponent(GraphComponent):
38
38
  self,
39
39
  tracker: DialogueStateTracker,
40
40
  flows: FlowsList,
41
- domain: Domain,
41
+ domain: Optional[Domain] = None,
42
42
  story_graph: Optional[StoryGraph] = None,
43
43
  ) -> List[Event]:
44
44
  """Execute commands to update tracker state."""
@@ -50,7 +50,8 @@ class FlowStackFrameType(str, Enum):
50
50
  typ: The string to create the `FlowStackFrameType` from.
51
51
 
52
52
  Returns:
53
- The created `FlowStackFrameType`."""
53
+ The created `FlowStackFrameType`.
54
+ """
54
55
  if typ is None:
55
56
  return FlowStackFrameType.REGULAR
56
57
  elif typ == FlowStackFrameType.INTERRUPT.value:
@@ -104,7 +105,8 @@ class BaseFlowStackFrame(DialogueStackFrame):
104
105
  all_flows: All flows in the assistant.
105
106
 
106
107
  Returns:
107
- The current flow."""
108
+ The current flow.
109
+ """
108
110
  flow = all_flows.flow_by_id(self.flow_id)
109
111
  if not flow:
110
112
  # we shouldn't ever end up with a frame that belongs to a non
@@ -119,9 +121,20 @@ class BaseFlowStackFrame(DialogueStackFrame):
119
121
  all_flows: All flows in the assistant.
120
122
 
121
123
  Returns:
122
- The current flow step."""
124
+ The current flow step.
125
+ """
123
126
  flow = self.flow(all_flows)
124
- step = flow.step_by_id(self.step_id)
127
+
128
+ step_id = self.step_id
129
+ # in 3.11.4 we added the flow_id as a prefix to the step_id
130
+ # this causes issues when loading old dialogues as the prefix is missing
131
+ # (see https://rasahq.atlassian.net/jira/software/c/projects/ENG/boards/43?selectedIssue=ENG-1939)
132
+ # so we try to find the step by adding the flow prefix to old step_ids as well
133
+ # TODO: remove this in 4.0.0
134
+ alternative_step_id = f"{self.flow_id}_{self.step_id}"
135
+
136
+ step = flow.step_by_id(step_id) or flow.step_by_id(alternative_step_id)
137
+
125
138
  if not step:
126
139
  # we shouldn't ever end up with a frame that belongs to a non
127
140
  # existing step, but if we do, we should raise an error
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.26"
3
+ __version__ = "3.10.28"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rasa-pro
3
- Version: 3.10.26
3
+ Version: 3.10.28
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
@@ -393,13 +393,13 @@ rasa/dialogue_understanding/patterns/session_start.py,sha256=yglhIEkkquRf0YppZ4C
393
393
  rasa/dialogue_understanding/patterns/skip_question.py,sha256=rvZuVUxulikwUhP01MAIgkcHZ4Si7mzxNedH6QBPdX4,1214
394
394
  rasa/dialogue_understanding/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
395
395
  rasa/dialogue_understanding/processor/command_processor.py,sha256=OEJ8uwV9LsaRN8Jw0IF9GpF-Gh0P8SaW_SDh5ELb7zk,25510
396
- rasa/dialogue_understanding/processor/command_processor_component.py,sha256=dV9VfkisajHe2JNv23MnPumUv7s79vqE625LwIvb6Ds,1634
396
+ rasa/dialogue_understanding/processor/command_processor_component.py,sha256=EdjfNPngjBzO8EhaZw45Npn_Urcwgz4yniTsssw5Ta0,1651
397
397
  rasa/dialogue_understanding/stack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
398
398
  rasa/dialogue_understanding/stack/dialogue_stack.py,sha256=j8MnLCyv6cAZVpKRaUVM-Z5HqgWP-scrnaiQXzLNBwY,5243
399
399
  rasa/dialogue_understanding/stack/frames/__init__.py,sha256=CXLs8I_eeJ-d2tQmS19V26OM6CHy3VN5whH5uHBodj4,656
400
400
  rasa/dialogue_understanding/stack/frames/chit_chat_frame.py,sha256=bfMCyeTK69SB3KP9TUCfdBGNDmNbblfDNWM_ll3ppPc,736
401
401
  rasa/dialogue_understanding/stack/frames/dialogue_stack_frame.py,sha256=rmG09a66PerYiuoWiG-Jlb4Oi6bct1OIHAJGTMN_F2M,4126
402
- rasa/dialogue_understanding/stack/frames/flow_stack_frame.py,sha256=W4mEmihIN5Bih2C9KDpKf-rxCHjLCzK9TcT6JslhW7g,5047
402
+ rasa/dialogue_understanding/stack/frames/flow_stack_frame.py,sha256=HRlR5YCkoOlI1DWCkgl_ak3YjFQEbmgwvzC16elkK54,5578
403
403
  rasa/dialogue_understanding/stack/frames/pattern_frame.py,sha256=EVrYWv5dCP7XTvNV-HqtOOrseP-IkF0jD2_JacAvIYw,235
404
404
  rasa/dialogue_understanding/stack/frames/search_frame.py,sha256=rJ9og28k_udUIjP-2Z5xeb_2T5HvCzwDCnxVG9K7lws,728
405
405
  rasa/dialogue_understanding/stack/utils.py,sha256=UpcxXwbneAMrvc94Fi1__r17UU2BAZQQ_RYI25Mek_c,7710
@@ -728,9 +728,9 @@ rasa/utils/train_utils.py,sha256=f1NWpp5y6al0dzoQyyio4hc4Nf73DRoRSHDzEK6-C4E,212
728
728
  rasa/utils/url_tools.py,sha256=JQcHL2aLqLHu82k7_d9imUoETCm2bmlHaDpOJ-dKqBc,1218
729
729
  rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
730
730
  rasa/validator.py,sha256=AsFJ8e1zWHW-hnH_IB3SGBBl68vstKPrrqbAydgjVhQ,63149
731
- rasa/version.py,sha256=GyJiURtkOfxjSeja1T4SO4rlFkmC8Y3Cm2KQMrH8Y1I,118
732
- rasa_pro-3.10.26.dist-info/METADATA,sha256=_ub_I78tX40PTrmdjSbqjdcWQ3yuMJxtQLigq_NDa7I,10852
733
- rasa_pro-3.10.26.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
734
- rasa_pro-3.10.26.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
735
- rasa_pro-3.10.26.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
736
- rasa_pro-3.10.26.dist-info/RECORD,,
731
+ rasa/version.py,sha256=qRzWBYaPYh0quMbB-uF4brccDk5iyl5vKeC7kWPv8iU,118
732
+ rasa_pro-3.10.28.dist-info/METADATA,sha256=M0YkoyUFTI9ezCBLZT1G1JcSXC_I-E9HtbItunWnRog,10852
733
+ rasa_pro-3.10.28.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
734
+ rasa_pro-3.10.28.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
735
+ rasa_pro-3.10.28.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
736
+ rasa_pro-3.10.28.dist-info/RECORD,,