rasa-pro 3.9.14__py3-none-any.whl → 3.9.15__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/dialogue_understanding/commands/set_slot_command.py +5 -1
- rasa/dialogue_understanding/patterns/default_flows_for_patterns.yml +15 -15
- rasa/dialogue_understanding/processor/command_processor.py +14 -13
- rasa/version.py +1 -1
- {rasa_pro-3.9.14.dist-info → rasa_pro-3.9.15.dist-info}/METADATA +1 -1
- {rasa_pro-3.9.14.dist-info → rasa_pro-3.9.15.dist-info}/RECORD +9 -9
- {rasa_pro-3.9.14.dist-info → rasa_pro-3.9.15.dist-info}/NOTICE +0 -0
- {rasa_pro-3.9.14.dist-info → rasa_pro-3.9.15.dist-info}/WHEEL +0 -0
- {rasa_pro-3.9.14.dist-info → rasa_pro-3.9.15.dist-info}/entry_points.txt +0 -0
|
@@ -127,7 +127,11 @@ class SetSlotCommand(Command):
|
|
|
127
127
|
if (
|
|
128
128
|
self.name not in slots_of_active_flow
|
|
129
129
|
and self.name != ROUTE_TO_CALM_SLOT
|
|
130
|
-
and self.extractor
|
|
130
|
+
and self.extractor
|
|
131
|
+
in {
|
|
132
|
+
SetSlotExtractor.LLM.value,
|
|
133
|
+
SetSlotExtractor.COMMAND_PAYLOAD_READER.value,
|
|
134
|
+
}
|
|
131
135
|
):
|
|
132
136
|
# Get the other predicted flows from the most recent message on the tracker.
|
|
133
137
|
predicted_flows = get_flows_predicted_to_start_from_tracker(tracker)
|
|
@@ -55,7 +55,7 @@ responses:
|
|
|
55
55
|
template: jinja
|
|
56
56
|
|
|
57
57
|
utter_free_chitchat_response:
|
|
58
|
-
- text:
|
|
58
|
+
- text: "Sorry, I'm not able to answer that right now."
|
|
59
59
|
metadata:
|
|
60
60
|
rephrase: True
|
|
61
61
|
rephrase_prompt: |
|
|
@@ -160,9 +160,9 @@ flows:
|
|
|
160
160
|
action: action_run_slot_rejections
|
|
161
161
|
- action: validate_{{context.collect}}
|
|
162
162
|
next:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
- if: "slots.{{context.collect}} is not null"
|
|
164
|
+
then: END
|
|
165
|
+
- else: ask_collect
|
|
166
166
|
- id: ask_collect
|
|
167
167
|
action: "{{context.utter}}"
|
|
168
168
|
- action: "{{context.collect_action}}"
|
|
@@ -205,17 +205,17 @@ flows:
|
|
|
205
205
|
steps:
|
|
206
206
|
- noop: true
|
|
207
207
|
next:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
208
|
+
- if: "'{{context.error_type}}' = 'rasa_internal_error_user_input_too_long'"
|
|
209
|
+
then:
|
|
210
|
+
- action: utter_user_input_too_long_error_rasa
|
|
211
|
+
next: END
|
|
212
|
+
- if: "'{{context.error_type}}' = 'rasa_internal_error_user_input_empty'"
|
|
213
|
+
then:
|
|
214
|
+
- action: utter_user_input_empty_error_rasa
|
|
215
|
+
next: END
|
|
216
|
+
- else:
|
|
217
|
+
- action: utter_internal_error_rasa
|
|
218
|
+
next: END
|
|
219
219
|
|
|
220
220
|
|
|
221
221
|
pattern_restart:
|
|
@@ -487,22 +487,23 @@ def clean_up_slot_command(
|
|
|
487
487
|
stack = tracker.stack
|
|
488
488
|
|
|
489
489
|
resulting_commands = commands_so_far[:]
|
|
490
|
-
if command.name in slots_so_far and command.name != ROUTE_TO_CALM_SLOT:
|
|
491
|
-
slot = tracker.slots.get(command.name)
|
|
492
|
-
if slot is None:
|
|
493
|
-
structlogger.debug(
|
|
494
|
-
"command_processor.clean_up_slot_command.skip_command_slot_not_in_domain",
|
|
495
|
-
command=command,
|
|
496
|
-
)
|
|
497
|
-
return resulting_commands
|
|
498
490
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
491
|
+
slot = tracker.slots.get(command.name)
|
|
492
|
+
if slot is None:
|
|
493
|
+
structlogger.debug(
|
|
494
|
+
"command_processor.clean_up_slot_command.skip_command_slot_not_in_domain",
|
|
495
|
+
command=command,
|
|
496
|
+
)
|
|
497
|
+
return resulting_commands
|
|
503
498
|
|
|
504
|
-
|
|
499
|
+
if not should_slot_be_set(slot, command):
|
|
500
|
+
cannot_handle = CannotHandleCommand(reason=CANNOT_HANDLE_REASON)
|
|
501
|
+
if cannot_handle not in resulting_commands:
|
|
502
|
+
resulting_commands.append(cannot_handle)
|
|
505
503
|
|
|
504
|
+
return resulting_commands
|
|
505
|
+
|
|
506
|
+
if command.name in slots_so_far and command.name != ROUTE_TO_CALM_SLOT:
|
|
506
507
|
current_collect_info = get_current_collect_step(stack, all_flows)
|
|
507
508
|
|
|
508
509
|
if current_collect_info and current_collect_info.collect == command.name:
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.9.
|
|
3
|
+
Version: 3.9.15
|
|
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
|
|
@@ -339,7 +339,7 @@ rasa/dialogue_understanding/commands/handle_code_change_command.py,sha256=pKaj8E
|
|
|
339
339
|
rasa/dialogue_understanding/commands/human_handoff_command.py,sha256=viSzL3Zmudm2WEjWmOS2s0zfOTXNsWoVU2pS-JXDFlU,1928
|
|
340
340
|
rasa/dialogue_understanding/commands/knowledge_answer_command.py,sha256=JPiWQC5qWJmryE7DgApDlf9AdGVMazuU9TXx44gc78w,1773
|
|
341
341
|
rasa/dialogue_understanding/commands/noop_command.py,sha256=302wi-pPXnraqclTDXug6_IYucEZCwDtP032OhPv1JY,1476
|
|
342
|
-
rasa/dialogue_understanding/commands/set_slot_command.py,sha256=
|
|
342
|
+
rasa/dialogue_understanding/commands/set_slot_command.py,sha256=jsiG3K0SYqsx3bah9mxBw0DR5EliaiZ8iMsDzv2wTxw,5187
|
|
343
343
|
rasa/dialogue_understanding/commands/skip_question_command.py,sha256=bSrUFOHUz1ozdaHma-KAaAArhP59RB3W8CEEBQaPIkA,2251
|
|
344
344
|
rasa/dialogue_understanding/commands/start_flow_command.py,sha256=a0Yk8xpBpFgC3Hkh4J8kAudz4s4ZLQWuoDq_a63lQXM,3309
|
|
345
345
|
rasa/dialogue_understanding/generator/__init__.py,sha256=Ykeb2wQ1DuiUWAWO0hLIPSTK1_Ktiq9DZXF6D3ugN78,764
|
|
@@ -367,13 +367,13 @@ rasa/dialogue_understanding/patterns/collect_information.py,sha256=nfzAtvjIyP67C
|
|
|
367
367
|
rasa/dialogue_understanding/patterns/completed.py,sha256=NqVaS_5-62UetGRXjR1eOGG3o6EPaIAQxbbkkNVEa9s,1278
|
|
368
368
|
rasa/dialogue_understanding/patterns/continue_interrupted.py,sha256=4UCFxCReL1wR8ALU4B0LzpC9izdtKrp2nJ6chS_jVng,1355
|
|
369
369
|
rasa/dialogue_understanding/patterns/correction.py,sha256=ZfSGzvgLvmbebEuisYP0Ke0lQEZziuDvq1oB4wMSFr4,11001
|
|
370
|
-
rasa/dialogue_understanding/patterns/default_flows_for_patterns.yml,sha256=
|
|
370
|
+
rasa/dialogue_understanding/patterns/default_flows_for_patterns.yml,sha256=6AM-nIc-JSD8wSZ7KDGInm6nP5n4EJZe4rce747V8fQ,8284
|
|
371
371
|
rasa/dialogue_understanding/patterns/human_handoff.py,sha256=ocGrnLLRW-_aiXjmSUG9nReUGQbBUxFFt4FTBWSXARM,1132
|
|
372
372
|
rasa/dialogue_understanding/patterns/internal_error.py,sha256=L8kEC6-TOZecugWtA2dm8lNG9gUevffyT5RotWeJIzM,1608
|
|
373
373
|
rasa/dialogue_understanding/patterns/search.py,sha256=X7HaMyFwS8gPprKFSOJvCoC6NgZQUTHvqtYxazFdgYc,1105
|
|
374
374
|
rasa/dialogue_understanding/patterns/skip_question.py,sha256=rvZuVUxulikwUhP01MAIgkcHZ4Si7mzxNedH6QBPdX4,1214
|
|
375
375
|
rasa/dialogue_understanding/processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
376
|
-
rasa/dialogue_understanding/processor/command_processor.py,sha256=
|
|
376
|
+
rasa/dialogue_understanding/processor/command_processor.py,sha256=tNx80xm2VuWOMUrxVEwpucb0Q1ihslrk5fBym5GAlmE,24426
|
|
377
377
|
rasa/dialogue_understanding/processor/command_processor_component.py,sha256=KVDW0H2K-CGXljVww1vn61g-TqCWGzbZ-wwvQ9THMV0,1398
|
|
378
378
|
rasa/dialogue_understanding/stack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
379
379
|
rasa/dialogue_understanding/stack/dialogue_stack.py,sha256=j8MnLCyv6cAZVpKRaUVM-Z5HqgWP-scrnaiQXzLNBwY,5243
|
|
@@ -654,9 +654,9 @@ rasa/utils/train_utils.py,sha256=f1NWpp5y6al0dzoQyyio4hc4Nf73DRoRSHDzEK6-C4E,212
|
|
|
654
654
|
rasa/utils/url_tools.py,sha256=JQcHL2aLqLHu82k7_d9imUoETCm2bmlHaDpOJ-dKqBc,1218
|
|
655
655
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
656
656
|
rasa/validator.py,sha256=JFhASyXNzA24SIK4BCyX2rE4x2bsLMU7phYWAMSzlSM,55245
|
|
657
|
-
rasa/version.py,sha256=
|
|
658
|
-
rasa_pro-3.9.
|
|
659
|
-
rasa_pro-3.9.
|
|
660
|
-
rasa_pro-3.9.
|
|
661
|
-
rasa_pro-3.9.
|
|
662
|
-
rasa_pro-3.9.
|
|
657
|
+
rasa/version.py,sha256=Zi2YtUXy5cneUnH--cY0SPzXqgRhVqKHOU83Y9nHCZg,117
|
|
658
|
+
rasa_pro-3.9.15.dist-info/METADATA,sha256=eRJrcdI4CAo3RYS7Gb7J8iBhALhhznkwQKSmqldYOA0,27759
|
|
659
|
+
rasa_pro-3.9.15.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
660
|
+
rasa_pro-3.9.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
661
|
+
rasa_pro-3.9.15.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
662
|
+
rasa_pro-3.9.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|