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

@@ -899,8 +899,8 @@ class RemoteAction(Action):
899
899
 
900
900
  # Avoid overwriting `draft` values with empty values
901
901
  response = {k: v for k, v in response.items() if v}
902
- draft.update(response)
903
- bot_messages.append(create_bot_utterance(draft))
902
+ response.update(draft)
903
+ bot_messages.append(create_bot_utterance(response))
904
904
 
905
905
  return bot_messages
906
906
 
@@ -48,13 +48,14 @@
48
48
  "ts-jest": "29.1.1",
49
49
  "ts-node": "10.9.1",
50
50
  "typescript": "5.0.2",
51
- "vite": "4.5.2"
51
+ "vite": "4.5.12"
52
52
  },
53
53
  "resolutions": {
54
54
  "cross-spawn": "7.0.5",
55
55
  "dompurify": "3.1.3",
56
56
  "braces": "3.0.3",
57
57
  "ws": "8.17.1",
58
- "rollup": "3.29.5"
58
+ "rollup": "3.29.5",
59
+ "@adobe/css-tools": "^4.3.2"
59
60
  }
60
61
  }
@@ -7,10 +7,10 @@
7
7
  resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf"
8
8
  integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==
9
9
 
10
- "@adobe/css-tools@^4.3.1":
11
- version "4.3.1"
12
- resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.1.tgz#abfccb8ca78075a2b6187345c26243c1a0842f28"
13
- integrity sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==
10
+ "@adobe/css-tools@^4.3.1", "@adobe/css-tools@^4.3.2":
11
+ version "4.4.3"
12
+ resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.4.3.tgz#beebbefb0264fdeb32d3052acae0e0d94315a9a2"
13
+ integrity sha512-VQKMkwriZbaOgVCby1UDY/LDk5fIjhQicCvVPFqfe+69fWaPWydbWJ3wRt59/YzIwda1I81loas3oCoHxnqvdA==
14
14
 
15
15
  "@ampproject/remapping@^2.2.0":
16
16
  version "2.2.1"
@@ -6059,10 +6059,10 @@ v8-to-istanbul@^9.0.1:
6059
6059
  "@types/istanbul-lib-coverage" "^2.0.1"
6060
6060
  convert-source-map "^2.0.0"
6061
6061
 
6062
- vite@4.5.2:
6063
- version "4.5.2"
6064
- resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.2.tgz#d6ea8610e099851dad8c7371599969e0f8b97e82"
6065
- integrity sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==
6062
+ vite@4.5.12:
6063
+ version "4.5.12"
6064
+ resolved "https://registry.yarnpkg.com/vite/-/vite-4.5.12.tgz#48f48dbcf789722765e91bc32a99cb66c628eadc"
6065
+ integrity sha512-qrMwavANtSz91nDy3zEiUHMtL09x0mniQsSMvDkNxuCBM1W5vriJ22hEmwTth6DhLSWsZnHBT0yHFAQXt6efGA==
6066
6066
  dependencies:
6067
6067
  esbuild "^0.18.10"
6068
6068
  postcss "^8.4.27"
rasa/core/nlg/callback.py CHANGED
@@ -19,7 +19,7 @@ def nlg_response_format_spec() -> Dict[Text, Any]:
19
19
  return {
20
20
  "type": "object",
21
21
  "properties": {
22
- "text": {"type": "string"},
22
+ "text": {"type": ["string", "null"]},
23
23
  "id": {"type": ["string", "null"]},
24
24
  "buttons": {"type": ["array", "null"], "items": {"type": "object"}},
25
25
  "elements": {"type": ["array", "null"], "items": {"type": "object"}},
@@ -781,7 +781,7 @@ class EnterpriseSearchPolicy(LLMHealthCheckMixin, EmbeddingsHealthCheckMixin, Po
781
781
  )
782
782
  print_error_and_exit(error_message)
783
783
 
784
- docs = glob.glob(os.path.join(docs_folder, "*.txt"), recursive=True)
784
+ docs = glob.glob(os.path.join(docs_folder, "**", "*.txt"), recursive=True)
785
785
  if not docs or len(docs) < 1:
786
786
  error_message = (
787
787
  f"Document source directory is empty: '{docs_folder}'. "
@@ -67,26 +67,33 @@ class LLMJudgeConfig(BaseModel):
67
67
  @classmethod
68
68
  def from_dict(cls, config_data: Dict[str, Any]) -> LLMJudgeConfig:
69
69
  """Loads the configuration from a dictionary."""
70
- embeddings = config_data.pop(EMBEDDINGS_CONFIG_KEY, None)
70
+ embeddings = config_data.pop(EMBEDDINGS_CONFIG_KEY, {})
71
71
  llm_config = config_data.pop("llm", {})
72
72
 
73
73
  llm_config = resolve_model_client_config(llm_config)
74
- llm_config, extra_parameters = cls.extract_attributes(llm_config)
74
+ llm_config, llm_extra_parameters = cls.extract_attributes(llm_config)
75
75
  llm_config = combine_custom_and_default_config(
76
76
  llm_config, cls.get_default_llm_config()
77
77
  )
78
78
  embeddings_config = resolve_model_client_config(embeddings)
79
+ embeddings_config, embeddings_extra_parameters = cls.extract_attributes(
80
+ embeddings_config
81
+ )
79
82
 
80
83
  return LLMJudgeConfig(
81
- llm_config=BaseModelConfig(extra_parameters=extra_parameters, **llm_config),
82
- embeddings=BaseModelConfig(**embeddings_config)
84
+ llm_config=BaseModelConfig(
85
+ extra_parameters=llm_extra_parameters, **llm_config
86
+ ),
87
+ embeddings=BaseModelConfig(
88
+ extra_parameters=embeddings_extra_parameters, **embeddings_config
89
+ )
83
90
  if embeddings_config
84
91
  else None,
85
92
  )
86
93
 
87
94
  @classmethod
88
95
  def extract_attributes(
89
- cls, llm_config: Dict[str, Any]
96
+ cls, config: Dict[str, Any]
90
97
  ) -> Tuple[Dict[str, Any], Dict[str, Any]]:
91
98
  """Extract the expected fields from the configuration."""
92
99
  required_config = {}
@@ -96,22 +103,22 @@ class LLMJudgeConfig(BaseModel):
96
103
  MODEL_CONFIG_KEY,
97
104
  ]
98
105
 
99
- if PROVIDER_CONFIG_KEY in llm_config:
106
+ if PROVIDER_CONFIG_KEY in config:
100
107
  required_config = {
101
- expected_field: llm_config.pop(expected_field, None)
108
+ expected_field: config.pop(expected_field, None)
102
109
  for expected_field in expected_fields
103
110
  }
104
111
 
105
- elif MODELS_CONFIG_KEY in llm_config:
106
- llm_config = llm_config.pop(MODELS_CONFIG_KEY)[0]
112
+ elif MODELS_CONFIG_KEY in config:
113
+ config = config.pop(MODELS_CONFIG_KEY)[0]
107
114
 
108
115
  required_config = {
109
- expected_field: llm_config.pop(expected_field, None)
116
+ expected_field: config.pop(expected_field, None)
110
117
  for expected_field in expected_fields
111
118
  }
112
119
 
113
120
  clean_config = clean_up_config(required_config)
114
- return clean_config, llm_config
121
+ return clean_config, config
115
122
 
116
123
  @property
117
124
  def llm_config_as_dict(self) -> Dict[str, Any]:
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.25"
3
+ __version__ = "3.12.27"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rasa-pro
3
- Version: 3.12.25
3
+ Version: 3.12.27
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
@@ -92,7 +92,7 @@ rasa/cli/x.py,sha256=C7dLtYXAkD-uj7hNj7Pz5YbOupp2yRcMjQbsEVqXUJ8,6825
92
92
  rasa/constants.py,sha256=5OMUcJ_gjn8qglY37DeUS4g5xe2VZAiLIv8IKwIGWJ0,1364
93
93
  rasa/core/__init__.py,sha256=wTSmsFlgK0Ylvuyq20q9APwpT5xyVJYZfzhs4rrkciM,456
94
94
  rasa/core/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
95
- rasa/core/actions/action.py,sha256=2mDvSi1pSWipDWhprEFjDXf-X9yoID9DQEvmf0rQcJM,42664
95
+ rasa/core/actions/action.py,sha256=gsxIFNgSKeNV2yBaqwR4_K5-cvWCKapcFTeSFo0qA2c,42667
96
96
  rasa/core/actions/action_clean_stack.py,sha256=xUP-2ipPsPAnAiwP17c-ezmHPSrV4JSUZr-eSgPQwIs,2279
97
97
  rasa/core/actions/action_exceptions.py,sha256=hghzXYN6VeHC-O_O7WiPesCNV86ZTkHgG90ZnQcbai8,724
98
98
  rasa/core/actions/action_hangup.py,sha256=o5iklHG-F9IcRgWis5C6AumVXznxzAV3o9zdduhozEM,994
@@ -192,7 +192,7 @@ rasa/core/channels/inspector/dist/assets/xychartDiagram-e933f94c-5d7f4e96.js,sha
192
192
  rasa/core/channels/inspector/dist/index.html,sha256=3iZN0QvVNg-HvnmkgPthxk3K3KIb_33FujJQxqrD3Yg,2761
193
193
  rasa/core/channels/inspector/index.html,sha256=98zTIw3U5XkLiibL44Rc3jXS1E6VakgocW_Bk8O8IM0,1701
194
194
  rasa/core/channels/inspector/jest.config.ts,sha256=pDs-0q6gs0Jnm9mWKq5M1vC5wiX_Cnh4l6s--dBsskM,406
195
- rasa/core/channels/inspector/package.json,sha256=9BQLVVpktgIG3hp-BZmOp66vfagc2CmLtMQusvWHJ3w,1693
195
+ rasa/core/channels/inspector/package.json,sha256=VrYuIr7UX4TCpGW2cNZxWiY-GgSkWxri5vjQVecRpv4,1728
196
196
  rasa/core/channels/inspector/setupTests.ts,sha256=JaGsnR6noIcuD5kLjb9SiOkXwJARLV_gF0dULtlWPqk,75
197
197
  rasa/core/channels/inspector/src/App.tsx,sha256=tnrGxX90XO3sKlkF_gS2ZQTIp9JXUb5f_WEcTprqFls,7691
198
198
  rasa/core/channels/inspector/src/components/Chat.tsx,sha256=uJL16gzBLBICuLVbezI0RaQdKU5WbwZlyjoI0tZ6PGU,3311
@@ -256,7 +256,7 @@ rasa/core/channels/inspector/tests/renderWithProviders.tsx,sha256=FvXc55YCzN6msj
256
256
  rasa/core/channels/inspector/tsconfig.json,sha256=KbKb1kysO_6vnaZEHHKZtexAwr_NIJoOJMENQkEUAPQ,650
257
257
  rasa/core/channels/inspector/tsconfig.node.json,sha256=niq7Fp6oe3GQYTodTaV8pghGOkU71CMfo67uXjCDcN0,213
258
258
  rasa/core/channels/inspector/vite.config.ts,sha256=4PDEcd2hilx0kUkFqBLvOz997dNjDVgFWfVgbuaIDNo,180
259
- rasa/core/channels/inspector/yarn.lock,sha256=E_XbIZs1TtzWs1Lu52I3AaErfZ4enabIdYScnf92b8w,289222
259
+ rasa/core/channels/inspector/yarn.lock,sha256=kP5BUog7u1DMwtud-ksjB0WGpJQ1h9TcEEXfpaQzldQ,289252
260
260
  rasa/core/channels/mattermost.py,sha256=9d2OCw6nj0Y_f1zmzEWO4ZuTuEsicALwSInD6CosZYM,7743
261
261
  rasa/core/channels/rasa_chat.py,sha256=pf77s4onrE5AqjdmaJFsBIzakBJ_ysevj6DDart96XQ,4814
262
262
  rasa/core/channels/rest.py,sha256=ShKGmooXphhcDnHyV8TiQhDhj2r7hxTKNQ57FwFfyUA,7226
@@ -317,7 +317,7 @@ rasa/core/lock.py,sha256=KNrpWv_KYLFjQfwaDembrjO2i4HhoVHbllw6_BPYMrE,4718
317
317
  rasa/core/lock_store.py,sha256=weupfBiYMz-B_N-LAONCvp-po1uPRdie9imLYn7hFDU,12504
318
318
  rasa/core/migrate.py,sha256=h1dOpXxmVmZlbLVGy1yOU_Obp2KzRiOiL0iuEacA0Cg,14618
319
319
  rasa/core/nlg/__init__.py,sha256=jZuQAhOUcxO-KqqHGqICHSY3oDeXlUiGr2trQDYfG6o,240
320
- rasa/core/nlg/callback.py,sha256=0zDQsOa3uV66G3smCVQ9cUdvj-it8tFneIzqShM7NeI,5208
320
+ rasa/core/nlg/callback.py,sha256=lxBBZdjXHS54fn_pH_YUW8ApbFOBO-kYSY5bL4gR1p0,5218
321
321
  rasa/core/nlg/contextual_response_rephraser.py,sha256=kW4C54rWh17a011hMesR1AzYPOurDNdbUIh775O4qsQ,14567
322
322
  rasa/core/nlg/generator.py,sha256=iMTqt0sPRMc55ontZU1svQVPKixDojBXN-cFuOvLMGo,11647
323
323
  rasa/core/nlg/interpolator.py,sha256=hEOhqfMXrAqTZiqjg2t6ZfTK6DJQ5IiX4tJIz2b8Fbw,5190
@@ -327,7 +327,7 @@ rasa/core/nlg/translate.py,sha256=ZXRvysqXGdtHBJ7x3YkW6zfmnb9DuEGHCMTL41v-M8M,21
327
327
  rasa/core/persistor.py,sha256=7LCZHAwCM-xrUI38aaJ5dkxJvLdJXWI1TEUKsBo4_EE,21295
328
328
  rasa/core/policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
329
329
  rasa/core/policies/ensemble.py,sha256=XoHxU0jcb_io_LBOpjJffylzqtGEB7CH9ivhRyO8pDc,12960
330
- rasa/core/policies/enterprise_search_policy.py,sha256=QKN8mLEjDqVgLb78z3w_IJWanvaSacj4_-BxEUBNBKw,41961
330
+ rasa/core/policies/enterprise_search_policy.py,sha256=MxhZFTM7yUZgBOw4F3XJgL_0CGOSs6C780IJDjWJ1uQ,41967
331
331
  rasa/core/policies/enterprise_search_prompt_template.jinja2,sha256=dCS_seyBGxMQoMsOjjvPp0dd31OSzZCJSZeev1FJK5Q,1187
332
332
  rasa/core/policies/enterprise_search_prompt_with_citation_template.jinja2,sha256=va9rpP97dN3PKoJZOVfyuISt3cPBlb10Pqyz25RwO_Q,3294
333
333
  rasa/core/policies/flow_policy.py,sha256=597G62hrLF_CAMCvu-TPRldFnjMP2XEIkhcIaPWcQAc,7489
@@ -468,7 +468,7 @@ rasa/e2e_test/aggregate_test_stats_calculator.py,sha256=Ys2Zfc8OOPNN2KHtfKqRdyrW
468
468
  rasa/e2e_test/assertions.py,sha256=yATtyCRQpuBeQF-2Vhd5IYf4rQAeKlo72HAX0x9gS4M,46928
469
469
  rasa/e2e_test/assertions_schema.yml,sha256=NJ-3uuK2lHKKGn4GV3XsnNSvRRQFJznzknUSIBQZMws,3250
470
470
  rasa/e2e_test/constants.py,sha256=iQVJm2kFYj9Ex1SKSZEg2evEbg73bKQpn3Jzj1pRNQs,1496
471
- rasa/e2e_test/e2e_config.py,sha256=C1gZ_AGP3pe9xhtfB42dtMo7AjO8MI5D3hN1zWa7vZE,9198
471
+ rasa/e2e_test/e2e_config.py,sha256=i3D2MfoFahSq1SVNRTyJfpSjHhD4OczSvfjqunhc5h4,9399
472
472
  rasa/e2e_test/e2e_config_schema.yml,sha256=zQectcNvmNChdPMqO4O-CufqAF90AMBbP-Dmghaig_Q,837
473
473
  rasa/e2e_test/e2e_test_case.py,sha256=3fKan0GJOMKm-FKHjQaY9AVhI4ortQYuEsPh9GHwbio,20817
474
474
  rasa/e2e_test/e2e_test_converter.py,sha256=bcSg-hWKPGvZBip6PKPvYAcgvSUCU5uXmC9D7UTmJYY,12570
@@ -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=R_vbizCGchvmG3uuSiYUpfzRw8FIYlF4-pS1K7OtfUQ,118
826
- rasa_pro-3.12.25.dist-info/METADATA,sha256=WgYA-6DSTqkfvTfhG-FQTgqgvXw7MJNlvv4kiGJ7R30,10609
827
- rasa_pro-3.12.25.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
- rasa_pro-3.12.25.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
- rasa_pro-3.12.25.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
- rasa_pro-3.12.25.dist-info/RECORD,,
825
+ rasa/version.py,sha256=YhpGN8FvTd9UE1riHifUWwa92hv-SSE9TJwBCMqqSXQ,118
826
+ rasa_pro-3.12.27.dist-info/METADATA,sha256=Cxk5hTiE9QsN8K662WJ32upK3KpZUFeHljpWCRLWNQ0,10609
827
+ rasa_pro-3.12.27.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
828
+ rasa_pro-3.12.27.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
829
+ rasa_pro-3.12.27.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
830
+ rasa_pro-3.12.27.dist-info/RECORD,,