rasa-pro 3.13.1a18__py3-none-any.whl → 3.13.1a20__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.

Files changed (273) hide show
  1. rasa/__main__.py +8 -0
  2. rasa/builder/auth.py +71 -0
  3. rasa/builder/config.py +16 -0
  4. rasa/builder/copilot/constants.py +15 -0
  5. rasa/builder/copilot/copilot.py +342 -0
  6. rasa/builder/copilot/copilot_response_handler.py +471 -0
  7. rasa/builder/copilot/exceptions.py +20 -0
  8. rasa/builder/copilot/models.py +344 -0
  9. rasa/builder/copilot/prompts/copilot_system_prompt.jinja2 +495 -0
  10. rasa/builder/copilot/telemetry.py +195 -0
  11. rasa/builder/document_retrieval/__init__.py +0 -0
  12. rasa/builder/document_retrieval/constants.py +16 -0
  13. rasa/builder/{inkeep_document_retrieval.py → document_retrieval/inkeep_document_retrieval.py} +53 -44
  14. rasa/builder/document_retrieval/models.py +62 -0
  15. rasa/builder/download.py +140 -0
  16. rasa/builder/guardrails/__init__.py +1 -0
  17. rasa/builder/guardrails/constants.py +4 -0
  18. rasa/builder/guardrails/exceptions.py +4 -0
  19. rasa/builder/guardrails/lakera.py +188 -0
  20. rasa/builder/guardrails/models.py +199 -0
  21. rasa/builder/guardrails/utils.py +305 -0
  22. rasa/builder/job_manager.py +87 -0
  23. rasa/builder/jobs.py +232 -0
  24. rasa/builder/llm_service.py +89 -173
  25. rasa/builder/logging_utils.py +162 -4
  26. rasa/builder/main.py +29 -16
  27. rasa/builder/models.py +93 -121
  28. rasa/builder/project_generator.py +91 -7
  29. rasa/builder/scrape_rasa_docs.py +1 -1
  30. rasa/builder/service.py +650 -452
  31. rasa/builder/shared/tracker_context.py +212 -0
  32. rasa/builder/validation_service.py +4 -4
  33. rasa/cli/data.py +8 -3
  34. rasa/cli/project_templates/basic/actions/action_api.py +15 -0
  35. rasa/cli/project_templates/basic/actions/action_human_handoff.py +44 -0
  36. rasa/cli/project_templates/basic/config.yml +23 -0
  37. rasa/cli/project_templates/{plain → basic}/credentials.yml +8 -7
  38. rasa/cli/project_templates/basic/data/general/feedback.yml +20 -0
  39. rasa/cli/project_templates/basic/data/general/goodbye.yml +6 -0
  40. rasa/cli/project_templates/basic/data/general/hello.yml +7 -0
  41. rasa/cli/project_templates/basic/data/general/help.yml +6 -0
  42. rasa/cli/project_templates/basic/data/general/human_handoff.yml +16 -0
  43. rasa/cli/project_templates/basic/data/general/welcome.yml +9 -0
  44. rasa/cli/project_templates/{finance/data/patterns → basic/data/system}/pattern_completed.yml +2 -1
  45. rasa/cli/project_templates/basic/data/system/pattern_correction.yml +7 -0
  46. rasa/cli/project_templates/basic/data/system/pattern_search.yml +8 -0
  47. rasa/cli/project_templates/basic/data/system/pattern_session_start.yml +8 -0
  48. rasa/cli/project_templates/basic/docs/rasa_assistant_qa.txt +65 -0
  49. rasa/cli/project_templates/basic/docs/template.txt +7 -0
  50. rasa/cli/project_templates/basic/domain/general/assistant_details.yml +12 -0
  51. rasa/cli/project_templates/basic/domain/general/bot_identity.yml +5 -0
  52. rasa/cli/project_templates/basic/domain/general/cannot_handle.yml +5 -0
  53. rasa/cli/project_templates/basic/domain/general/feedback.yml +28 -0
  54. rasa/cli/project_templates/basic/domain/general/goodbye.yml +7 -0
  55. rasa/cli/project_templates/basic/domain/general/help.yml +5 -0
  56. rasa/cli/project_templates/basic/domain/general/human_handoff_domain.yml +35 -0
  57. rasa/cli/project_templates/{finance/domain/default_actions.yml → basic/domain/general/utils.yml} +0 -3
  58. rasa/cli/project_templates/basic/domain/general/welcome.yml +7 -0
  59. rasa/cli/project_templates/{plain → basic}/endpoints.yml +42 -27
  60. rasa/cli/project_templates/basic/prompts/rephraser_demo_personality_prompt.jinja2 +19 -0
  61. rasa/cli/project_templates/defaults.py +25 -3
  62. rasa/cli/project_templates/finance/actions/__init__.py +46 -0
  63. rasa/cli/project_templates/finance/actions/accounts/__init__.py +0 -0
  64. rasa/cli/project_templates/finance/actions/{action_ask_account.py → accounts/action_ask_account.py} +6 -9
  65. rasa/cli/project_templates/finance/actions/{action_check_balance.py → accounts/action_check_balance.py} +4 -4
  66. rasa/cli/project_templates/finance/actions/action_session_start.py +11 -6
  67. rasa/cli/project_templates/finance/actions/cards/__init__.py +0 -0
  68. rasa/cli/project_templates/finance/actions/{action_ask_card.py → cards/action_ask_card.py} +4 -3
  69. rasa/cli/project_templates/finance/actions/{action_check_card_existence.py → cards/action_check_card_existence.py} +4 -3
  70. rasa/cli/project_templates/finance/actions/{action_update_card_status.py → cards/action_update_card_status.py} +18 -9
  71. rasa/cli/project_templates/finance/actions/database.py +1 -0
  72. rasa/cli/project_templates/finance/actions/transfers/__init__.py +0 -0
  73. rasa/cli/project_templates/finance/actions/{action_add_payee.py → transfers/action_add_payee.py} +8 -3
  74. rasa/cli/project_templates/finance/actions/{action_ask_account_from.py → transfers/action_ask_account_from.py} +5 -4
  75. rasa/cli/project_templates/finance/actions/{action_check_payee_existence.py → transfers/action_check_payee_existence.py} +3 -3
  76. rasa/cli/project_templates/finance/actions/{action_check_sufficient_funds.py → transfers/action_check_sufficient_funds.py} +3 -4
  77. rasa/cli/project_templates/finance/actions/{action_list_payees.py → transfers/action_list_payees.py} +4 -3
  78. rasa/cli/project_templates/finance/actions/{action_remove_payee.py → transfers/action_remove_payee.py} +4 -4
  79. rasa/cli/project_templates/finance/config.yml +8 -19
  80. rasa/cli/project_templates/finance/credentials.yml +6 -7
  81. rasa/cli/project_templates/finance/csvs/cards.csv +10 -10
  82. rasa/cli/project_templates/finance/csvs/payees.csv +10 -9
  83. rasa/cli/project_templates/finance/data/{flows → accounts}/check_balance.yml +2 -1
  84. rasa/cli/project_templates/finance/data/general/bot_identity.yml +6 -0
  85. rasa/cli/project_templates/finance/data/general/feedback.yml +20 -0
  86. rasa/cli/project_templates/finance/data/general/goodbye.yml +6 -0
  87. rasa/cli/project_templates/finance/data/general/hello.yml +7 -0
  88. rasa/cli/project_templates/finance/data/{flows/welcome.yml → general/help.yml} +2 -7
  89. rasa/cli/project_templates/finance/data/general/human_handoff.yml +16 -0
  90. rasa/cli/project_templates/finance/data/general/welcome.yml +9 -0
  91. rasa/cli/project_templates/finance/data/{patterns → system/patterns}/pattern_chitchat.yml +0 -2
  92. rasa/cli/project_templates/finance/data/system/patterns/pattern_completed.yml +7 -0
  93. rasa/cli/project_templates/finance/data/system/patterns/pattern_correction.yml +7 -0
  94. rasa/cli/project_templates/finance/data/system/patterns/pattern_search.yml +8 -0
  95. rasa/cli/project_templates/finance/data/{patterns → system/patterns}/pattern_session_start.yml +0 -1
  96. rasa/cli/project_templates/finance/domain/{check_balance.yml → accounts/check_balance.yml} +2 -0
  97. rasa/cli/project_templates/finance/domain/general/assistant_details.yml +12 -0
  98. rasa/cli/project_templates/finance/domain/general/bot_identity.yml +5 -0
  99. rasa/cli/project_templates/finance/domain/general/cannot_handle.yml +5 -0
  100. rasa/cli/project_templates/finance/domain/general/defaults.yml +24 -0
  101. rasa/cli/project_templates/finance/domain/general/feedback.yml +28 -0
  102. rasa/cli/project_templates/finance/domain/general/goodbye.yml +7 -0
  103. rasa/cli/project_templates/finance/domain/general/help.yml +5 -0
  104. rasa/cli/project_templates/finance/domain/general/human_handoff.yml +30 -0
  105. rasa/cli/project_templates/finance/domain/general/utils.yml +13 -0
  106. rasa/cli/project_templates/finance/domain/general/welcome.yml +8 -0
  107. rasa/cli/project_templates/finance/endpoints.yml +1 -0
  108. rasa/cli/project_templates/finance/prompts/rephraser_demo_personality_prompt.jinja2 +3 -3
  109. rasa/cli/project_templates/telco/actions/actions_billing.py +24 -17
  110. rasa/cli/project_templates/telco/actions/actions_get_data_from_db.py +6 -1
  111. rasa/cli/project_templates/telco/actions/actions_run_diagnostics.py +6 -1
  112. rasa/cli/project_templates/telco/actions/actions_session_start.py +6 -1
  113. rasa/cli/project_templates/tutorial/config.yml +2 -1
  114. rasa/cli/scaffold.py +27 -2
  115. rasa/cli/train.py +8 -0
  116. rasa/cli/utils.py +31 -15
  117. rasa/core/actions/action.py +28 -41
  118. rasa/core/actions/action_run_slot_rejections.py +1 -1
  119. rasa/core/channels/development_inspector.py +47 -14
  120. rasa/core/channels/inspector/dist/assets/{arc-371401b1.js → arc-1ddec37b.js} +1 -1
  121. rasa/core/channels/inspector/dist/assets/{blockDiagram-38ab4fdb-3f126156.js → blockDiagram-38ab4fdb-18af387c.js} +1 -1
  122. rasa/core/channels/inspector/dist/assets/{c4Diagram-3d4e48cf-12f22eb7.js → c4Diagram-3d4e48cf-250127a3.js} +1 -1
  123. rasa/core/channels/inspector/dist/assets/channel-59f6d54b.js +1 -0
  124. rasa/core/channels/inspector/dist/assets/{classDiagram-70f12bd4-03b1d386.js → classDiagram-70f12bd4-c3388b34.js} +1 -1
  125. rasa/core/channels/inspector/dist/assets/{classDiagram-v2-f2320105-84f69d63.js → classDiagram-v2-f2320105-9c893a82.js} +1 -1
  126. rasa/core/channels/inspector/dist/assets/clone-26177ddb.js +1 -0
  127. rasa/core/channels/inspector/dist/assets/{createText-2e5e7dd3-ca47fd38.js → createText-2e5e7dd3-c111213b.js} +1 -1
  128. rasa/core/channels/inspector/dist/assets/{edges-e0da2a9e-f837ca8a.js → edges-e0da2a9e-812a729d.js} +1 -1
  129. rasa/core/channels/inspector/dist/assets/{erDiagram-9861fffd-8717ac54.js → erDiagram-9861fffd-fd5051bc.js} +1 -1
  130. rasa/core/channels/inspector/dist/assets/{flowDb-956e92f1-94f38b83.js → flowDb-956e92f1-3287ac02.js} +1 -1
  131. rasa/core/channels/inspector/dist/assets/{flowDiagram-66a62f08-b616f9fb.js → flowDiagram-66a62f08-692fb0b2.js} +1 -1
  132. rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-29c03f5a.js +1 -0
  133. rasa/core/channels/inspector/dist/assets/{flowchart-elk-definition-4a651766-f5d24bb8.js → flowchart-elk-definition-4a651766-008376f1.js} +1 -1
  134. rasa/core/channels/inspector/dist/assets/{ganttDiagram-c361ad54-b43ba8d9.js → ganttDiagram-c361ad54-df330a69.js} +1 -1
  135. rasa/core/channels/inspector/dist/assets/{gitGraphDiagram-72cf32ee-c3aafaa5.js → gitGraphDiagram-72cf32ee-e03676fb.js} +1 -1
  136. rasa/core/channels/inspector/dist/assets/{graph-0d0a2c10.js → graph-46fad2ba.js} +1 -1
  137. rasa/core/channels/inspector/dist/assets/{index-3862675e-58ea0305.js → index-3862675e-a484ac55.js} +1 -1
  138. rasa/core/channels/inspector/dist/assets/{index-cce6f8a1.js → index-a003633f.js} +179 -179
  139. rasa/core/channels/inspector/dist/assets/{infoDiagram-f8f76790-b8f60461.js → infoDiagram-f8f76790-3f9e6ec2.js} +1 -1
  140. rasa/core/channels/inspector/dist/assets/{journeyDiagram-49397b02-95be5545.js → journeyDiagram-49397b02-79f72383.js} +1 -1
  141. rasa/core/channels/inspector/dist/assets/{layout-da885b9b.js → layout-aad098e5.js} +1 -1
  142. rasa/core/channels/inspector/dist/assets/{line-f1c817d3.js → line-219ab7ae.js} +1 -1
  143. rasa/core/channels/inspector/dist/assets/{linear-d42801e6.js → linear-2cddbe62.js} +1 -1
  144. rasa/core/channels/inspector/dist/assets/{mindmap-definition-fc14e90a-a38923a6.js → mindmap-definition-fc14e90a-1d41ed99.js} +1 -1
  145. rasa/core/channels/inspector/dist/assets/{pieDiagram-8a3498a8-ca6e71e9.js → pieDiagram-8a3498a8-cc496ee8.js} +1 -1
  146. rasa/core/channels/inspector/dist/assets/{quadrantDiagram-120e2f19-b290dae9.js → quadrantDiagram-120e2f19-84d32884.js} +1 -1
  147. rasa/core/channels/inspector/dist/assets/{requirementDiagram-deff3bca-03f02ceb.js → requirementDiagram-deff3bca-c0deb984.js} +1 -1
  148. rasa/core/channels/inspector/dist/assets/{sankeyDiagram-04a897e0-c49eee40.js → sankeyDiagram-04a897e0-b9d7fd62.js} +1 -1
  149. rasa/core/channels/inspector/dist/assets/{sequenceDiagram-704730f1-b2cd6a3d.js → sequenceDiagram-704730f1-7d517565.js} +1 -1
  150. rasa/core/channels/inspector/dist/assets/{stateDiagram-587899a1-e53a2028.js → stateDiagram-587899a1-98ef9b27.js} +1 -1
  151. rasa/core/channels/inspector/dist/assets/{stateDiagram-v2-d93cdb3a-e1982a03.js → stateDiagram-v2-d93cdb3a-cee70748.js} +1 -1
  152. rasa/core/channels/inspector/dist/assets/{styles-6aaf32cf-d0226ca5.js → styles-6aaf32cf-3f9d1c96.js} +1 -1
  153. rasa/core/channels/inspector/dist/assets/{styles-9a916d00-0e21dc00.js → styles-9a916d00-67471923.js} +1 -1
  154. rasa/core/channels/inspector/dist/assets/{styles-c10674c1-9588494e.js → styles-c10674c1-bd093fb7.js} +1 -1
  155. rasa/core/channels/inspector/dist/assets/{svgDrawCommon-08f97a94-be478d4f.js → svgDrawCommon-08f97a94-675794e8.js} +1 -1
  156. rasa/core/channels/inspector/dist/assets/{timeline-definition-85554ec2-74631749.js → timeline-definition-85554ec2-0ac67617.js} +1 -1
  157. rasa/core/channels/inspector/dist/assets/{xychartDiagram-e933f94c-a043552f.js → xychartDiagram-e933f94c-c018dc37.js} +1 -1
  158. rasa/core/channels/inspector/dist/index.html +2 -2
  159. rasa/core/channels/inspector/index.html +1 -1
  160. rasa/core/channels/inspector/package.json +4 -3
  161. rasa/core/channels/inspector/src/App.tsx +53 -7
  162. rasa/core/channels/inspector/src/components/Chat.tsx +3 -2
  163. rasa/core/channels/inspector/src/components/DiagramFlow.tsx +1 -1
  164. rasa/core/channels/inspector/src/components/LatencyDisplay.tsx +268 -0
  165. rasa/core/channels/inspector/src/components/LoadingSpinner.tsx +6 -2
  166. rasa/core/channels/inspector/src/helpers/audio/audiostream.ts +8 -3
  167. rasa/core/channels/inspector/src/types.ts +8 -0
  168. rasa/core/channels/inspector/yarn.lock +12 -12
  169. rasa/core/channels/studio_chat.py +119 -34
  170. rasa/core/channels/voice_ready/twilio_voice.py +1 -1
  171. rasa/core/channels/voice_stream/asr/asr_engine.py +5 -1
  172. rasa/core/channels/voice_stream/asr/deepgram.py +5 -0
  173. rasa/core/channels/voice_stream/audiocodes.py +16 -8
  174. rasa/core/channels/voice_stream/browser_audio.py +39 -4
  175. rasa/core/channels/voice_stream/call_state.py +13 -2
  176. rasa/core/channels/voice_stream/genesys.py +16 -13
  177. rasa/core/channels/voice_stream/jambonz.py +14 -12
  178. rasa/core/channels/voice_stream/twilio_media_streams.py +14 -13
  179. rasa/core/channels/voice_stream/util.py +11 -1
  180. rasa/core/channels/voice_stream/voice_channel.py +108 -29
  181. rasa/core/nlg/callback.py +1 -1
  182. rasa/core/nlg/contextual_response_rephraser.py +19 -9
  183. rasa/core/nlg/generator.py +21 -5
  184. rasa/core/nlg/response.py +43 -6
  185. rasa/core/nlg/translate.py +8 -0
  186. rasa/core/policies/enterprise_search_policy.py +16 -21
  187. rasa/dialogue_understanding/commands/correct_slots_command.py +38 -10
  188. rasa/dialogue_understanding/generator/command_generator.py +5 -5
  189. rasa/dialogue_understanding/generator/command_parser.py +9 -13
  190. rasa/dialogue_understanding/processor/command_processor.py +149 -55
  191. rasa/dialogue_understanding/stack/utils.py +13 -3
  192. rasa/dialogue_understanding_test/du_test_schema.yml +3 -3
  193. rasa/dialogue_understanding_test/validation.py +9 -10
  194. rasa/e2e_test/e2e_config.py +18 -11
  195. rasa/e2e_test/e2e_test_schema.yml +3 -3
  196. rasa/e2e_test/utils/validation.py +17 -19
  197. rasa/engine/validation.py +86 -91
  198. rasa/exceptions.py +26 -1
  199. rasa/model_manager/model_api.py +2 -2
  200. rasa/model_manager/socket_bridge.py +8 -2
  201. rasa/shared/providers/_configs/default_litellm_client_config.py +3 -7
  202. rasa/shared/utils/cli.py +2 -0
  203. rasa/shared/utils/common.py +2 -1
  204. rasa/shared/utils/health_check/health_check.py +10 -14
  205. rasa/studio/upload.py +6 -2
  206. rasa/studio/utils.py +33 -22
  207. rasa/telemetry.py +95 -22
  208. rasa/utils/licensing.py +21 -10
  209. rasa/utils/log_utils.py +1 -1
  210. rasa/utils/tensorflow/transformer.py +3 -3
  211. rasa/validator.py +7 -5
  212. rasa/version.py +1 -1
  213. {rasa_pro-3.13.1a18.dist-info → rasa_pro-3.13.1a20.dist-info}/METADATA +7 -7
  214. {rasa_pro-3.13.1a18.dist-info → rasa_pro-3.13.1a20.dist-info}/RECORD +242 -203
  215. rasa/builder/create_openai_vector_store.py +0 -228
  216. rasa/builder/llm-helper-schema.json +0 -69
  217. rasa/builder/llm_context.py +0 -81
  218. rasa/builder/llm_helper_prompt.jinja2 +0 -245
  219. rasa/cli/project_templates/finance/data/nlu.yml +0 -29
  220. rasa/cli/project_templates/finance/data/patterns/pattern_search.yml +0 -5
  221. rasa/cli/project_templates/finance/domain/default_flows.yml +0 -33
  222. rasa/cli/project_templates/finance/prompts/command-generator.jinja2 +0 -57
  223. rasa/cli/project_templates/finance/tests/conversation_repair/cancellations.yml +0 -12
  224. rasa/cli/project_templates/finance/tests/conversation_repair/cannot_handle.yml +0 -7
  225. rasa/cli/project_templates/finance/tests/conversation_repair/chitchat.yml +0 -7
  226. rasa/cli/project_templates/finance/tests/conversation_repair/clarification.yml +0 -9
  227. rasa/cli/project_templates/finance/tests/conversation_repair/completion.yml +0 -18
  228. rasa/cli/project_templates/finance/tests/conversation_repair/corrections.yml +0 -17
  229. rasa/cli/project_templates/finance/tests/conversation_repair/digressions.yml +0 -32
  230. rasa/cli/project_templates/finance/tests/conversation_repair/human_handoff.yml +0 -21
  231. rasa/cli/project_templates/finance/tests/conversation_repair/skipping_collect_steps.yml +0 -16
  232. rasa/cli/project_templates/finance/tests/demo_scripts/main.yml +0 -16
  233. rasa/cli/project_templates/finance/tests/happy_paths/balance_verification.yml +0 -15
  234. rasa/cli/project_templates/finance/tests/happy_paths/banking_questions.yml +0 -12
  235. rasa/cli/project_templates/finance/tests/happy_paths/card_blocking.yml +0 -52
  236. rasa/cli/project_templates/finance/tests/happy_paths/money_transfer.yml +0 -136
  237. rasa/cli/project_templates/finance/tests/happy_paths/payee_management.yml +0 -27
  238. rasa/cli/project_templates/finance/tests/happy_paths/user_greeted.yml +0 -5
  239. rasa/cli/project_templates/plain/config.yml +0 -17
  240. rasa/cli/project_templates/plain/data/patterns/pattern_session_start.yml +0 -7
  241. rasa/cli/project_templates/plain/domain.yml +0 -5
  242. rasa/core/channels/inspector/dist/assets/channel-f1efda17.js +0 -1
  243. rasa/core/channels/inspector/dist/assets/clone-fdf164e2.js +0 -1
  244. rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-7d7a1629.js +0 -1
  245. rasa/shared/importers/static.py +0 -63
  246. /rasa/{cli/project_templates/plain/actions → builder/copilot}/__init__.py +0 -0
  247. /rasa/builder/{inkeep-rag-response-schema.json → document_retrieval/inkeep-rag-response-schema.json} +0 -0
  248. /rasa/cli/project_templates/finance/actions/{action_process_immediate_payment.py → transfers/action_process_immediate_payment.py} +0 -0
  249. /rasa/cli/project_templates/finance/actions/{action_schedule_payment.py → transfers/action_schedule_payment.py} +0 -0
  250. /rasa/cli/project_templates/finance/actions/{action_validate_payment_date.py → transfers/action_validate_payment_date.py} +0 -0
  251. /rasa/cli/project_templates/finance/data/{flows → cards}/block_card.yml +0 -0
  252. /rasa/cli/project_templates/finance/data/{flows → cards}/select_card.yml +0 -0
  253. /rasa/cli/project_templates/finance/data/{source → system/source}/accounts.json +0 -0
  254. /rasa/cli/project_templates/finance/data/{source → system/source}/advisors.json +0 -0
  255. /rasa/cli/project_templates/finance/data/{source → system/source}/appointments.json +0 -0
  256. /rasa/cli/project_templates/finance/data/{source → system/source}/branches.json +0 -0
  257. /rasa/cli/project_templates/finance/data/{source → system/source}/cards.json +0 -0
  258. /rasa/cli/project_templates/finance/data/{source → system/source}/payees.json +0 -0
  259. /rasa/cli/project_templates/finance/data/{source → system/source}/transactions.json +0 -0
  260. /rasa/cli/project_templates/finance/data/{source → system/source}/users.json +0 -0
  261. /rasa/cli/project_templates/finance/data/{flows → transfers}/add_payee.yml +0 -0
  262. /rasa/cli/project_templates/finance/data/{flows → transfers}/list_payees.yml +0 -0
  263. /rasa/cli/project_templates/finance/data/{flows → transfers}/remove_payee.yml +0 -0
  264. /rasa/cli/project_templates/finance/data/{flows → transfers}/transfer_money.yml +0 -0
  265. /rasa/cli/project_templates/finance/domain/{block_card.yml → cards/block_card.yml} +0 -0
  266. /rasa/cli/project_templates/finance/domain/{select_card.yml → cards/select_card.yml} +0 -0
  267. /rasa/cli/project_templates/finance/domain/{add_payee.yml → transfers/add_payee.yml} +0 -0
  268. /rasa/cli/project_templates/finance/domain/{list_payees.yml → transfers/list_payees.yml} +0 -0
  269. /rasa/cli/project_templates/finance/domain/{remove_payee.yml → transfers/remove_payee.yml} +0 -0
  270. /rasa/cli/project_templates/finance/domain/{transfer_money.yml → transfers/transfer_money.yml} +0 -0
  271. {rasa_pro-3.13.1a18.dist-info → rasa_pro-3.13.1a20.dist-info}/NOTICE +0 -0
  272. {rasa_pro-3.13.1a18.dist-info → rasa_pro-3.13.1a20.dist-info}/WHEEL +0 -0
  273. {rasa_pro-3.13.1a18.dist-info → rasa_pro-3.13.1a20.dist-info}/entry_points.txt +0 -0
@@ -1,57 +0,0 @@
1
- ## Task Description
2
- Your task is to analyze the current conversation context and generate a list of actions to start new business processes that we call flows, to extract slots, or respond to small talk and knowledge requests.
3
-
4
- ---
5
-
6
- ## Available Flows and Slots
7
- Use the following structured data:
8
- ```json
9
- {"flows":[{% for flow in available_flows %}{"name":"{{ flow.name }}","description":"{{ flow.description }}"{% if flow.slots %},"slots":[{% for slot in flow.slots %}{"name":"{{ slot.name }}"{% if slot.description %},"description":"{{ slot.description }}"{% endif %}{% if slot.allowed_values %},"allowed_values":{{ slot.allowed_values }}{% endif %}}{% if not loop.last %},{% endif %}{% endfor %}]{% endif %}}{% if not loop.last %},{% endif %}{% endfor %}]}
10
- ```
11
-
12
- ---
13
-
14
- ## Available Actions:
15
- * `start flow flow_name`: Starting a flow. For example, `start flow transfer_money` or `start flow list_contacts`.
16
- * `set slot slot_name slot_value`: Slot setting. For example, `set slot transfer_money_recipient Freddy`. Can be used to correct and change previously set values.
17
- * `cancel flow`: Cancelling the current flow.
18
- * `disambiguate flows flow_name1 flow_name2 ... flow_name_n`: Disambiguate which flow should be started when user input is ambiguous by listing the potential flows as options. For example, `disambiguate flows list_contacts add_contact remove_contact ...` if the user just wrote "contacts".
19
- * `provide info`: Responding to the user's questions by supplying relevant information, such as answering FAQs or explaining services.
20
- * `offtopic reply`: Responding to casual or social user messages that are unrelated to any flows, engaging in friendly conversation and addressing off-topic remarks.
21
- * `hand over`: Handing over to a human, in case the user seems frustrated or explicitly asks to speak to one.
22
-
23
- ---
24
-
25
- ## General Tips
26
- * Do not fill slots with abstract values or placeholders.
27
- * For categorical slots try to match the user message with allowed slot values. Use "other" if you cannot match it.
28
- * Set the boolean slots based on the user response. Map positive responses to `True`, and negative to `False`.
29
- * Extract text slot values exactly as provided by the user. Avoid assumptions, format changes, or partial extractions.
30
- * Only use information provided by the user.
31
- * Use clarification in ambiguous cases.
32
- * Multiple flows can be started. If a user wants to digress into a second flow, you do not need to cancel the current flow.
33
- * Do not cancel the flow unless the user explicitly requests it.
34
- * Strictly adhere to the provided action format.
35
- * Focus on the last message and take it one step at a time.
36
- * Use the previous conversation steps only to aid understanding.
37
-
38
- ---
39
-
40
- ## Current State
41
- {% if current_flow != None %}Use the following structured data:
42
- ```json
43
- {"active_flow":"{{ current_flow }}","current_step":{"requested_slot":"{{ current_slot }}","requested_slot_description":"{{ current_slot_description }}"},"slots":[{% for slot in flow_slots %}{"name":"{{ slot.name }}","value":"{{ slot.value }}","type":"{{ slot.type }}"{% if slot.description %},"description":"{{ slot.description }}"{% endif %}{% if slot.allowed_values %},"allowed_values":"{{ slot.allowed_values }}"{% endif %}}{% if not loop.last %},{% endif %}{% endfor %}]}
44
- ```{% else %}
45
- You are currently not inside any flow.{% endif %}
46
-
47
- ---
48
-
49
- ## Conversation History
50
- {{ current_conversation }}
51
-
52
- ---
53
-
54
- ## Task
55
- Create an action list with one action per line in response to the user's last message: """{{ user_message }}""".
56
-
57
- Your action list:
@@ -1,12 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_simple_cancellation
3
- steps:
4
- - user: "hello"
5
- - utter: utter_chitchat
6
- - user: "who are my payees"
7
- - bot: "You are authorised to transfer money to: Amy, Fitness Gym and William"
8
- - user: "I want to transfer 55 to Amy"
9
- - utter: utter_transfer_money_understand
10
- - bot: "Which account would you like to transfer money from?"
11
- - user: "sorry, I want to cancel that"
12
- - utter: utter_flow_cancelled_rasa
@@ -1,7 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_cannot_handle
3
- steps:
4
- - user: "hello"
5
- - utter: utter_chitchat
6
- - user: "I want to apply for a mortgage"
7
- - utter: utter_ask_rephrase
@@ -1,7 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_chitchat
3
- steps:
4
- - user: "hello,"
5
- - utter: utter_chitchat
6
- - user: "How can we solve world hunger?"
7
- - bot: "Based on the provided documents and the context of the recent conversation, the question about solving world hunger is not directly addressed. If you have any specific questions related to the documents or conversation context, feel free to ask for more information."
@@ -1,9 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_clarification
3
- steps:
4
- - user: "hello"
5
- - utter: utter_chitchat
6
- - user: "payee"
7
- - utter: utter_clarification_options_rasa
8
- - user: "view a list"
9
- - bot: "You are authorised to transfer money to: Robert, James and Food Market"
@@ -1,18 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_completion
3
- steps:
4
- - user: "hello"
5
- - utter: utter_chitchat
6
- - user: "Who are my payees"
7
- - bot: "You are authorised to transfer money to: Amy, Fitness Gym and William"
8
- - user: "I want to transfer money to William"
9
- - utter: utter_transfer_money_understand
10
- - bot: "Which account would you like to transfer money from?"
11
- - user: "78901234"
12
- - utter: utter_ask_amount
13
- - user: "120"
14
- - utter: utter_ask_timing
15
- - user: "/SetSlots(timing=now)"
16
- - utter: utter_ask_confirm_immediate_payment
17
- - user: "yes"
18
- - utter: utter_transfer_successful
@@ -1,17 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_corrections
3
- steps:
4
- - user: "who are my payees"
5
- - bot: "You are authorised to transfer money to: Amy, Fitness Gym and William"
6
- - user: "I want to transfer 55 to Amy"
7
- - utter: utter_transfer_money_understand
8
- - bot: "Which account would you like to transfer money from?"
9
- - user: "67890123"
10
- - utter: utter_ask_timing
11
- - user: "/SetSlots(timing=now)"
12
- - utter: utter_ask_confirm_immediate_payment
13
- - user: "Sorry, I meant 65 and from Current"
14
- - utter: utter_corrected_previous_input
15
- - utter: utter_ask_confirm_immediate_payment
16
- - user: "yes"
17
- - utter: utter_transfer_successful
@@ -1,32 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_digressions
3
- steps:
4
- - user: "I want to transfer money"
5
- - utter: utter_transfer_money_understand
6
- - bot: "Which account would you like to transfer money from?"
7
- - user: "who are my payees"
8
- - bot: "You are authorised to transfer money to: Richard, Susan and Electric Company"
9
- - utter: utter_flow_continue_interrupted
10
- - bot: "Which account would you like to transfer money from?"
11
- - user: "I would like to add Brad as a payee"
12
- - utter: utter_ask_account_number
13
- - user: "123456"
14
- - utter: utter_ask_payee_type
15
- - user: "/SetSlots(payee_type=person)"
16
- - utter: utter_ask_reference
17
- - user: "Facebook Marketplace"
18
- - utter: utter_ask_confirm_payee_details
19
- - user: "/SetSlots(confirm_payee_details=True)"
20
- - utter: utter_payee_added_success
21
- - utter: utter_flow_continue_interrupted
22
- - bot: "Which account would you like to transfer money from?"
23
- - user: "12345678"
24
- - utter: utter_ask_payee_name
25
- - user: "Brad"
26
- - utter: utter_ask_amount
27
- - user: "55.23"
28
- - utter: utter_ask_timing
29
- - user: "immediate"
30
- - utter: utter_ask_confirm_immediate_payment
31
- - user: "yup"
32
- - utter: utter_transfer_successful
@@ -1,21 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_human_handoff
3
- steps:
4
- - user: "hello"
5
- - utter: utter_chitchat
6
- - user: "i want to transfer 999 from savings"
7
- - utter: utter_transfer_money_understand
8
- - utter: utter_ask_payee_name
9
- - user: "who are my payees"
10
- - bot: "You are authorised to transfer money to: Amy, Fitness Gym and William"
11
- - utter: utter_flow_continue_interrupted
12
- - utter: utter_ask_payee_name
13
- - user: "Amy"
14
- - utter: utter_ask_timing
15
- - user: "/SetSlots(timing=now)"
16
- - utter: utter_ask_confirm_immediate_payment
17
- - user: "I want to talk to a human"
18
- - utter: utter_human_handoff_not_available
19
- - utter: utter_ask_confirm_immediate_payment
20
- - user: "no"
21
- - utter: utter_cancel_transfer
@@ -1,16 +0,0 @@
1
- test_cases:
2
- - test_case: conversation_repair_skipping_collect_step
3
- steps:
4
- - user: "I want to transfer 55 to Amy from savings right now"
5
- - utter: utter_transfer_money_understand
6
- - utter: utter_ask_confirm_immediate_payment
7
- - user: "sorry, I meant 65"
8
- - utter: utter_corrected_previous_input
9
- - utter: utter_ask_confirm_immediate_payment
10
- - user: "sorry, I meant in the future"
11
- - utter: utter_corrected_previous_input
12
- - utter: utter_ask_payment_date
13
- - user: "12/12/2025"
14
- - utter: utter_ask_confirm_future_payment
15
- - user: "yes"
16
- - utter: utter_payment_scheduled
@@ -1,16 +0,0 @@
1
- test_cases:
2
- - test_case: A simple test scripts used in standard demos for Starterpack - Financial Services (en)
3
- steps:
4
- - user: "I want to transfer money"
5
- - utter: utter_transfer_money_understand
6
- - bot: "Which account would you like to transfer money from?"
7
- - user: "56789012"
8
- - utter: utter_ask_payee_name
9
- - user: "Susan"
10
- - utter: utter_ask_amount
11
- - user: "55.10"
12
- - utter: utter_ask_timing
13
- - user: "/SetSlots(timing=now)"
14
- - utter: utter_ask_confirm_immediate_payment
15
- - user: "Yes"
16
- - utter: utter_transfer_successful
@@ -1,15 +0,0 @@
1
- test_cases:
2
- - test_case: various_tests_for_account_balance
3
- steps:
4
- - user: "I want to view my account balance"
5
- - bot: "Which account would you like the balance for?"
6
- - user: "12345678"
7
- - bot: "The balance is: $10123.45"
8
- - user: "I want to query the balance of my acccounts"
9
- - bot: "Which account would you like the balance for?"
10
- - user: "12345678"
11
- - bot: "The balance is: $10123.45"
12
- - user: "I want to know the balance of one of my accounts"
13
- - bot: "Which account would you like the balance for?"
14
- - user: "23456789"
15
- - bot: "The balance is: $4923.67"
@@ -1,12 +0,0 @@
1
- test_cases:
2
- - test_case: banking_questions - Happy paths no 1
3
- steps:
4
- - user: "Are there any fees to transfer money to my friends?"
5
- - bot: "Yes, there may be fees associated with transferring money, especially for international transfers. To avoid fees, consider using bank-to-bank transfers within the UK whenever possible. You will be notified of any applicable fees before confirming the transfer."
6
-
7
- - test_case: banking_questions - Happy paths no 2
8
- steps:
9
- - user: "I have a question on prepaid card"
10
- - utter: utter_help
11
- - user: "are there fees to transfer from or to prepaid cards"
12
- - bot: "Yes, there may be fees associated with transferring funds to or from prepaid cards. It is advisable to check your account details for specific charges related to these transactions."
@@ -1,52 +0,0 @@
1
- test_cases:
2
- - test_case: card_blocking - Happy paths no1
3
- steps:
4
- - user: "I want to block my card"
5
- - utter: utter_block_card_understand
6
- - bot: "Select the card you require assistance with:"
7
- - user: "Wait, Wait, what will happen to my pre-authorized payments"
8
- - bot: "When you block your card, any recurring payments linked to it will be interrupted until you update them with a new card number. You can request the merchants to cancel the hold on your pre-authorized payments if it is no longer necessary."
9
- - bot: "Select the card you require assistance with:"
10
- - user: "SetSlots(card_selection=3456789034567890)"
11
- - utter: utter_ask_reason_for_blocking
12
- - user: "/SetSlots(reason_for_blocking=lost)"
13
- - utter: utter_acknowledge_reason_fraud_stolen_lost
14
- - utter: utter_card_blocked
15
- - utter: utter_ask_confirm_issue_new_card
16
- - user: "/SetSlots(confirm_issue_new_card=true)"
17
- - utter: utter_ask_address_confirmed
18
- - user: "/SetSlots(address_confirmed=True)"
19
- - utter: utter_confirm_physical_address
20
-
21
- - test_case: card_blocking - Happy paths no2
22
- steps:
23
- - user: "I think I that I have lost my card"
24
- - utter: utter_block_card_understand
25
- - bot: "Select the card you require assistance with:"
26
- - user: "SetSlots(card_selection=5555666677778888)"
27
- - utter: utter_acknowledge_reason_fraud_stolen_lost
28
- - utter: utter_card_blocked
29
- - utter: utter_ask_confirm_issue_new_card
30
- - user: "/SetSlots(confirm_issue_new_card=false)"
31
-
32
- - test_case: card_blocking - Happy paths no3
33
- steps:
34
- - user: "I think I have lost my card"
35
- - utter: utter_block_card_understand
36
- - bot: "Select the card you require assistance with:"
37
- - user: "SetSlots(card_selection=1111222233334444)"
38
- - utter: utter_acknowledge_reason_fraud_stolen_lost
39
- - utter: utter_card_blocked
40
- - utter: utter_ask_confirm_issue_new_card
41
- - user: "sorry, i selected the wrong card"
42
- - utter: utter_corrected_previous_input
43
- - bot: "Select the card you require assistance with:"
44
- - user: "the second debit card"
45
- - utter: utter_corrected_previous_input
46
- - utter: utter_acknowledge_reason_fraud_stolen_lost
47
- - utter: utter_card_blocked
48
- - utter: utter_ask_confirm_issue_new_card
49
- - user: "/SetSlots(confirm_issue_new_card=true)"
50
- - utter: utter_ask_address_confirmed
51
- - user: "yes"
52
- - utter: utter_confirm_physical_address
@@ -1,136 +0,0 @@
1
- test_cases:
2
- - test_case: Money Transfer - Happy paths no1
3
- steps:
4
- - user: "I want to transfer money"
5
- - utter: utter_transfer_money_understand
6
- - bot: "Which account would you like to transfer money from?"
7
- - user: "12345678"
8
- - utter: utter_ask_payee_name
9
- - user: "Robert"
10
- - utter: utter_ask_amount
11
- - user: "55"
12
- - utter: utter_ask_timing
13
- - user: "immediate"
14
- - utter: utter_ask_confirm_immediate_payment
15
- - user: "Yes"
16
- - utter: utter_transfer_successful
17
-
18
- - test_case: Money Transfer - Happy paths no2
19
- steps:
20
- - user: "I want to transfer $55.55 to Amy from checking"
21
- - utter: utter_transfer_money_understand
22
- - utter: utter_ask_timing
23
- - user: "/SetSlots(timing=now)"
24
- - utter: utter_ask_confirm_immediate_payment
25
- - user: "yes"
26
- - utter: utter_transfer_successful
27
-
28
- - test_case: Money Transfer - Happy paths no3
29
- steps:
30
- - user: "I want to transfer $55.55 to Amy"
31
- - utter: utter_transfer_money_understand
32
- - bot: "Which account would you like to transfer money from?"
33
- - user: "78901234"
34
- - utter: utter_ask_timing
35
- - user: "/SetSlots(timing=now)"
36
- - utter: utter_ask_confirm_immediate_payment
37
- - user: "yes"
38
- - utter: utter_transfer_successful
39
-
40
- - test_case: Money Transfer - Happy paths no4
41
- steps:
42
- - user: "I would like to transfer $55.55 to Amy"
43
- - utter: utter_transfer_money_understand
44
- - bot: "Which account would you like to transfer money from?"
45
- - user: "78901234"
46
- - utter: utter_ask_timing
47
- - user: "/SetSlots(timing=future)"
48
- - utter: utter_ask_payment_date
49
- - user: "12-12-2025"
50
- - utter: utter_ask_confirm_future_payment
51
- - user: "yes"
52
- - utter: utter_payment_scheduled
53
-
54
- - test_case: Money Transfer - Happy paths no5
55
- steps:
56
- - user: "I want to transfer $55.55 to Amy from checking"
57
- - utter: utter_transfer_money_understand
58
- - utter: utter_ask_timing
59
- - user: "/SetSlots(timing=now)"
60
- - utter: utter_ask_confirm_immediate_payment
61
- - user: "yes"
62
- - utter: utter_transfer_successful
63
-
64
- - test_case: Money Transfer - Happy paths no6
65
- steps:
66
- - user: "I want to transfer 55.55$ to Amy"
67
- - utter: utter_transfer_money_understand
68
- - bot: "Which account would you like to transfer money from?"
69
- - user: "67890123"
70
- - utter: utter_ask_timing
71
- - user: "immediate"
72
- - utter: utter_ask_confirm_immediate_payment
73
- - user: "yes"
74
- - utter: utter_transfer_successful
75
-
76
- - test_case: Money Transfer - Happy paths no7
77
- steps:
78
- - user: "I want to transfer $55.55 to Amy from checking right now"
79
- - utter: utter_transfer_money_understand
80
- - utter: utter_ask_confirm_immediate_payment
81
- - user: "yes"
82
- - utter: utter_transfer_successful
83
-
84
- - test_case: Money Transfer - Happy paths no8
85
- steps:
86
- - user: "I want to transfer 100.24$ from my savings to Amy right now"
87
- - utter: utter_transfer_money_understand
88
- - utter: utter_ask_confirm_immediate_payment
89
- - user: "yes"
90
- - utter: utter_transfer_successful
91
-
92
- - test_case: Money Transfer - Happy paths no9
93
- steps:
94
- - user: "I want to transfer money"
95
- - utter: utter_transfer_money_understand
96
- - bot: "Which account would you like to transfer money from?"
97
- - user: "who are my payees"
98
- - bot: "You are authorised to transfer money to: Robert, James and Food Market"
99
- - utter: utter_flow_continue_interrupted
100
- - bot: "Which account would you like to transfer money from?"
101
- - user: "I would like to add Timmy as a payee"
102
- - utter: utter_ask_account_number
103
- - user: "56567"
104
- - utter: utter_ask_payee_type
105
- - user: "/SetSlots(payee_type=person)"
106
- - utter: utter_ask_reference
107
- - user: "Facebook Marketplace"
108
- - utter: utter_ask_confirm_payee_details
109
- - user: "/SetSlots(confirm_payee_details=True)"
110
- - utter: utter_payee_added_success
111
- - utter: utter_flow_continue_interrupted
112
- - bot: "Which account would you like to transfer money from?"
113
- - user: "12345678"
114
- - utter: utter_ask_amount
115
- - user: "$40.67"
116
- - utter: utter_ask_timing
117
- - user: "/SetSlots(timing=now)"
118
- - utter: utter_ask_confirm_immediate_payment
119
- - user: "yup"
120
- - utter: utter_transfer_successful
121
-
122
- - test_case: Money Transfer - Happy paths no10
123
- steps:
124
- - user: "I want to transfer 55 to Amy from savings right now"
125
- - utter: utter_transfer_money_understand
126
- - utter: utter_ask_confirm_immediate_payment
127
- - user: "sorry I meant 65"
128
- - utter: utter_corrected_previous_input
129
- - utter: utter_ask_confirm_immediate_payment
130
- - user: "sorry I meant in the future"
131
- - utter: utter_corrected_previous_input
132
- - utter: utter_ask_payment_date
133
- - user: "12/12/2025"
134
- - utter: utter_ask_confirm_future_payment
135
- - user: "Yes"
136
- - utter: utter_payment_scheduled
@@ -1,27 +0,0 @@
1
- test_cases:
2
- - test_case: payee_management - Happy paths no1
3
- steps:
4
- - user: "who are my payees"
5
- - bot: "You are authorised to transfer money to: Robert, James and Food Market"
6
-
7
- - test_case: payee_management - Happy paths no2
8
- steps:
9
- - user: "I want to add a payee"
10
- - utter: utter_ask_payee_name
11
- - user: "Sonia Smith"
12
- - utter: utter_ask_account_number
13
- - user: "123456"
14
- - utter: utter_ask_payee_type
15
- - user: "person"
16
- - utter: utter_ask_reference
17
- - user: "Facebook Marketplace"
18
- - utter: utter_ask_confirm_payee_details
19
- - user: "/SetSlots(confirm_payee_details=True)"
20
- - utter: utter_payee_added_success
21
-
22
- - test_case: payee_management - Happy paths no3
23
- steps:
24
- - user: "who are my payees"
25
- - bot: "You are authorised to transfer money to: Robert, James and Food Market"
26
- - user: "I want to remove a payee"
27
- - utter: utter_ask_rephrase
@@ -1,5 +0,0 @@
1
- test_cases:
2
- - test_case: user is greeted by the assistant
3
- steps:
4
- - user: /session_start
5
- - utter: utter_greeting
@@ -1,17 +0,0 @@
1
- # The config recipe.
2
- recipe: default.v1
3
-
4
- # The assistant project unique identifier
5
- # This default value must be replaced with a unique assistant name within your deployment
6
- assistant_id: placeholder_default
7
-
8
- language: en
9
- pipeline:
10
- - name: CompactLLMCommandGenerator
11
- llm:
12
- model_group: openai-gpt-4o
13
-
14
- # Configuration for Rasa Core.
15
- policies:
16
- - name: FlowPolicy
17
- - name: IntentlessPolicy
@@ -1,7 +0,0 @@
1
- flows:
2
- pattern_session_start:
3
- description: Custom session start to greet the user.
4
- nlu_trigger:
5
- - intent: session_start
6
- steps:
7
- - action: utter_greet
@@ -1,5 +0,0 @@
1
- version: "3.1"
2
-
3
- responses:
4
- utter_greet:
5
- - text: "Hello! Welcome to your assistant - currently, I can't help you with anything, but you can tailor me to your needs!"
@@ -1 +0,0 @@
1
- import{aI as o,aJ as r}from"./index-cce6f8a1.js";const s=(a,n)=>o.lang.round(r.parse(a)[n]),e=s;export{e as c};
@@ -1 +0,0 @@
1
- import{c as r}from"./graph-0d0a2c10.js";var e=4;function a(o){return r(o,e)}export{a as c};
@@ -1 +0,0 @@
1
- import{p as e,f as o}from"./flowDb-956e92f1-94f38b83.js";import{f as t,g as a}from"./styles-c10674c1-9588494e.js";import{u as i}from"./index-cce6f8a1.js";import"./graph-0d0a2c10.js";import"./layout-da885b9b.js";import"./index-3862675e-58ea0305.js";import"./clone-fdf164e2.js";import"./edges-e0da2a9e-f837ca8a.js";import"./createText-2e5e7dd3-ca47fd38.js";import"./line-f1c817d3.js";import"./array-9f3ba611.js";import"./path-53f90ab3.js";import"./channel-f1efda17.js";const M={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{M as diagram};
@@ -1,63 +0,0 @@
1
- import logging
2
- from typing import Dict, Optional, Text
3
-
4
- from rasa.shared.core.domain import Domain
5
- from rasa.shared.core.flows import FlowsList
6
- from rasa.shared.core.training_data.structures import StoryGraph
7
- from rasa.shared.importers.importer import TrainingDataImporter
8
- from rasa.shared.nlu.training_data.training_data import TrainingData
9
- from rasa.shared.utils.common import cached_method
10
-
11
- logger = logging.getLogger(__name__)
12
-
13
-
14
- class StaticTrainingDataImporter(TrainingDataImporter):
15
- """Static `TrainingFileImporter` implementation."""
16
-
17
- def __init__(
18
- self,
19
- domain: Domain,
20
- stories: Optional[StoryGraph] = None,
21
- flows: Optional[FlowsList] = None,
22
- nlu_data: Optional[TrainingData] = None,
23
- config: Optional[Dict] = None,
24
- ):
25
- self.domain = domain
26
- self.stories = stories or StoryGraph([])
27
- self.flows = flows or FlowsList(underlying_flows=[])
28
- self.nlu_data = nlu_data or TrainingData()
29
- self.config = config or {}
30
-
31
- @cached_method
32
- def get_config(self) -> Dict:
33
- """Retrieves model config (see parent class for full docstring)."""
34
- return self.config
35
-
36
- def get_config_file_for_auto_config(self) -> Optional[Text]:
37
- """Returns config file path for auto-config only if there is a single one."""
38
- return None
39
-
40
- @cached_method
41
- def get_stories(self, exclusion_percentage: Optional[int] = None) -> StoryGraph:
42
- """Retrieves training stories / rules (see parent class for full docstring)."""
43
- return self.stories
44
-
45
- @cached_method
46
- def get_flows(self) -> FlowsList:
47
- """Retrieves training stories / rules (see parent class for full docstring)."""
48
- return self.flows
49
-
50
- @cached_method
51
- def get_conversation_tests(self) -> StoryGraph:
52
- """Retrieves conversation test stories (see parent class for full docstring)."""
53
- return StoryGraph([])
54
-
55
- @cached_method
56
- def get_nlu_data(self, language: Optional[Text] = "en") -> TrainingData:
57
- """Retrieves NLU training data (see parent class for full docstring)."""
58
- return self.nlu_data
59
-
60
- @cached_method
61
- def get_domain(self) -> Domain:
62
- """Retrieves model domain (see parent class for full docstring)."""
63
- return self.domain