unique_toolkit 1.45.7__py3-none-any.whl → 1.45.8__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.
@@ -34,10 +34,10 @@ class HallucinationPromptsConfig(EvaluationMetricPromptsConfig):
34
34
 
35
35
 
36
36
  class HallucinationConfig(EvaluationMetricConfig):
37
- source_selection_mode: SourceSelectionMode = Field(
37
+ source_selection_mode: SkipJsonSchema[SourceSelectionMode] = Field(
38
38
  default=SourceSelectionMode.FROM_ORIGINAL_RESPONSE
39
39
  )
40
- reference_pattern: str = Field(default=r"[\[<]?source(\d+)[>\]]?")
40
+ reference_pattern: SkipJsonSchema[str] = Field(default=r"[\[<]?source(\d+)[>\]]?")
41
41
  enabled: SkipJsonSchema[bool] = False
42
42
  name: SkipJsonSchema[EvaluationMetricName] = EvaluationMetricName.HALLUCINATION
43
43
  language_model: LMI = LanguageModelInfo.from_name(
@@ -598,3 +598,37 @@ def test_hallucination_required_input_fields__contains_only_valid_enum_values__f
598
598
  # Act & Assert
599
599
  for field in hallucination_required_input_fields:
600
600
  assert isinstance(field, EvaluationMetricInputFieldName)
601
+
602
+
603
+ @pytest.mark.ai
604
+ def test_hallucination_config__excludes_source_selection_mode__from_json_schema() -> (
605
+ None
606
+ ):
607
+ """
608
+ Purpose: Verify that source_selection_mode is not included in JSON schema.
609
+ Why this matters: SkipJsonSchema annotation should exclude internal fields from schema.
610
+ Setup summary: Generate JSON schema, assert source_selection_mode is not present.
611
+ """
612
+ # Arrange - No setup needed
613
+
614
+ # Act
615
+ schema: dict = HallucinationConfig.model_json_schema()
616
+
617
+ # Assert
618
+ assert "source_selection_mode" not in schema.get("properties", {})
619
+
620
+
621
+ @pytest.mark.ai
622
+ def test_hallucination_config__excludes_reference_pattern__from_json_schema() -> None:
623
+ """
624
+ Purpose: Verify that reference_pattern is not included in JSON schema.
625
+ Why this matters: SkipJsonSchema annotation should exclude internal fields from schema.
626
+ Setup summary: Generate JSON schema, assert reference_pattern is not present.
627
+ """
628
+ # Arrange - No setup needed
629
+
630
+ # Act
631
+ schema: dict = HallucinationConfig.model_json_schema()
632
+
633
+ # Assert
634
+ assert "reference_pattern" not in schema.get("properties", {})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.45.7
3
+ Version: 1.45.8
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -125,6 +125,9 @@ All notable changes to this project will be documented in this file.
125
125
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
126
126
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
127
127
 
128
+ ## [1.45.8] - 2026-02-02
129
+ - Hallucination: Hide Source Selection Mode and Reference pattern from schema
130
+
128
131
  ## [1.45.7] - 2026-01-30
129
132
  - Add JSON string parsing support for reasoning and text parameters in responses API (UI compatibility)
130
133
  - Fix variable name bug in `_attempt_extract_verbosity_from_options` function
@@ -77,7 +77,7 @@ unique_toolkit/agentic/evaluation/context_relevancy/schema.py,sha256=lZd0TPzH43i
77
77
  unique_toolkit/agentic/evaluation/context_relevancy/service.py,sha256=dsgpfKRSg9B4kjLhHJD_Kath4GVhHE-ZOVAGRkiCz20,8729
78
78
  unique_toolkit/agentic/evaluation/evaluation_manager.py,sha256=wDN_Uuut9kEGek8JY3QeInKpF-ukbvOSKOVd7DHFT3Q,8121
79
79
  unique_toolkit/agentic/evaluation/exception.py,sha256=7lcVbCyoN4Md1chNJDFxpUYyWbVrcr9dcc3TxWykJTc,115
80
- unique_toolkit/agentic/evaluation/hallucination/constants.py,sha256=-PnZ3N9VpwgbIe6hcUye40nvJa-JIRuTidCZAQwZ3GA,2473
80
+ unique_toolkit/agentic/evaluation/hallucination/constants.py,sha256=Ed08BS6BUzxwP4ezpqk5Fu3YxbnoinCJc28Bh5MghI4,2505
81
81
  unique_toolkit/agentic/evaluation/hallucination/hallucination_evaluation.py,sha256=x5ta2Fum4fE5ySgIXPKlnbTtmV140z0IazSATd0-REg,4092
82
82
  unique_toolkit/agentic/evaluation/hallucination/prompts/__init__.py,sha256=4KFYMZsB3fJUKzoiUJE1npZ0gueWgvceB32EUrN-v7A,343
83
83
  unique_toolkit/agentic/evaluation/hallucination/prompts/system_prompt.j2,sha256=sDUX6G645Ba40D_qKu4cUI8g-sJOfG8JpZreTNFgf7M,2616
@@ -89,7 +89,7 @@ unique_toolkit/agentic/evaluation/schemas.py,sha256=m9JMCUmeqP8KhsJOVEzsz6dRXUe1
89
89
  unique_toolkit/agentic/evaluation/tests/fixtures.py,sha256=Q-ughTfDiAdsMKbBVGzFiBucFdAx-FXgJ9iqp5xMyPs,2801
90
90
  unique_toolkit/agentic/evaluation/tests/test_config.py,sha256=p7xFQ7KE_yU8jGpqYA7ntAYe5Vln33wd6nwv3FM9XfI,8327
91
91
  unique_toolkit/agentic/evaluation/tests/test_context_relevancy_service.py,sha256=NcSOyBJ_lqYehtlraZPo9RLutCitTP76kvkuyogSD2A,9477
92
- unique_toolkit/agentic/evaluation/tests/test_hallucination_constants.py,sha256=jT61WxKic-jDUJT1BeVjzhck02EnaMi1ng2H82-Aq_Q,19348
92
+ unique_toolkit/agentic/evaluation/tests/test_hallucination_constants.py,sha256=A77nRcniI7hUf640f1sTvCAibQbJE30ikbz1RX4fltw,20478
93
93
  unique_toolkit/agentic/evaluation/tests/test_hallucination_utils.py,sha256=PKyGR073HxT0J_g8626kCURbMSlrMgkg-xPP7dPHD-0,31838
94
94
  unique_toolkit/agentic/evaluation/tests/test_output_parser.py,sha256=KfltytmvqnPWLhmZpBXqcRmnlYorw_USwM5rkLVv8so,5179
95
95
  unique_toolkit/agentic/evaluation/tests/test_prompt_loaders.py,sha256=zBREdlKf5tdDyB8XSaNgpQv3-tuZJoYteeJrp6WMWDM,11897
@@ -254,7 +254,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
254
254
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
255
255
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
256
256
  unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
257
- unique_toolkit-1.45.7.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
258
- unique_toolkit-1.45.7.dist-info/METADATA,sha256=XahMDmU86Br2OPEJtdcQ6-6y65jFGzFj7QuD2SZGbSE,49534
259
- unique_toolkit-1.45.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
260
- unique_toolkit-1.45.7.dist-info/RECORD,,
257
+ unique_toolkit-1.45.8.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
258
+ unique_toolkit-1.45.8.dist-info/METADATA,sha256=y8-QbF2LcCdVQbM40ldn9IaBWwOoUdhGxhnYfYEhcyQ,49638
259
+ unique_toolkit-1.45.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
260
+ unique_toolkit-1.45.8.dist-info/RECORD,,