unique_toolkit 0.8.17__py3-none-any.whl → 0.8.18__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.
@@ -74,8 +74,7 @@ class EvaluationManager:
74
74
  The EvaluationManager serves as the central hub for managing and executing evaluations.
75
75
  """
76
76
  # a hashmap to hold evaluations by their names
77
- _evaluations: dict[EvaluationMetricName, Evaluation] = {}
78
- _evaluation_passed: bool = True
77
+
79
78
 
80
79
  def __init__(
81
80
  self,
@@ -86,6 +85,8 @@ class EvaluationManager:
86
85
  self._logger = logger
87
86
  self._chat_service = chat_service
88
87
  self._assistant_message_id = assistant_message_id
88
+ self._evaluations: dict[EvaluationMetricName, Evaluation] = {}
89
+ self._evaluation_passed: bool = True
89
90
 
90
91
  def add_evaluation(self, evaluation: Evaluation):
91
92
  self._evaluations[evaluation.get_name()] = evaluation
@@ -109,9 +109,7 @@ class HistoryManager:
109
109
 
110
110
  The HistoryManager serves as the backbone for managing and retrieving conversation history in a structured and efficient manner.
111
111
  """
112
- _tool_call_result_history: list[ToolCallResponse] = []
113
- _loop_history: list[LanguageModelMessage] = []
114
- _source_enumerator = 0
112
+
115
113
 
116
114
  def __init__(
117
115
  self,
@@ -132,6 +130,9 @@ class HistoryManager:
132
130
  language_model=self._language_model,
133
131
  reference_manager=reference_manager,
134
132
  )
133
+ self._tool_call_result_history: list[ToolCallResponse] = []
134
+ self._loop_history: list[LanguageModelMessage] = []
135
+ self._source_enumerator = 0
135
136
 
136
137
 
137
138
  def has_no_loop_messages(self) -> bool:
@@ -52,7 +52,7 @@ class PostprocessorManager:
52
52
  The PostprocessorManager serves as a centralized system for managing and applying postprocessing logic to enhance response quality and consistency.
53
53
  """
54
54
 
55
- _postprocessors: list[Postprocessor] = []
55
+
56
56
 
57
57
  def __init__(
58
58
  self,
@@ -61,6 +61,7 @@ class PostprocessorManager:
61
61
  ):
62
62
  self._logger = logger
63
63
  self._chat_service = chat_service
64
+ self._postprocessors: list[Postprocessor] = []
64
65
 
65
66
  def add_postprocessor(self, postprocessor: Postprocessor):
66
67
  self._postprocessors.append(postprocessor)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.8.17
3
+ Version: 0.8.18
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -114,6 +114,9 @@ All notable changes to this project will be documented in this file.
114
114
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
115
115
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
116
116
 
117
+ ## [0.8.18] - 2025-08-22
118
+ - moved class variables into instance variables
119
+
117
120
  ## [0.8.17] - 2025-08-22
118
121
  - fixed circular dependencies in tools
119
122
 
@@ -40,7 +40,7 @@ unique_toolkit/evals/config.py,sha256=LtBcPVCNpyZ2fFAKjiT9dPGauDSH5f0d_Jt4KpuS5O
40
40
  unique_toolkit/evals/context_relevancy/prompts.py,sha256=EdHFUOB581yVxcOL8482KUv_LzaRjuiem71EF8udYMc,1331
41
41
  unique_toolkit/evals/context_relevancy/schema.py,sha256=xJeAHUwTTc-a090HhRYiK8Mob5Vt350lNfItz6w6Cq8,2958
42
42
  unique_toolkit/evals/context_relevancy/service.py,sha256=j7crX64kMEGTcbQoUwCeGCCVaGfoLvYHclXLVt-x3zA,8384
43
- unique_toolkit/evals/evaluation_manager.py,sha256=_4XF2JY8EZd8kRmaZzF1S5R0kNATKTzgpE0ZIQDqQLE,7711
43
+ unique_toolkit/evals/evaluation_manager.py,sha256=XezdwUbYvVK1TjDmtvrH3CHnqeT-uA5Bge3HgvPkt8A,7730
44
44
  unique_toolkit/evals/exception.py,sha256=7lcVbCyoN4Md1chNJDFxpUYyWbVrcr9dcc3TxWykJTc,115
45
45
  unique_toolkit/evals/hallucination/constants.py,sha256=-eA0e3QntllNJ1wLOx-zAnCUrvDT4pS5IRwmACoMICc,1998
46
46
  unique_toolkit/evals/hallucination/hallucination_evaluation.py,sha256=2zroBydl90xxB6Lcf2v6Wsg9PsQHZ6uHrHoSUUFo6VQ,3088
@@ -71,7 +71,7 @@ unique_toolkit/framework_utilities/openai/client.py,sha256=IasxPXlVJHIsZdXHin7yq
71
71
  unique_toolkit/framework_utilities/openai/message_builder.py,sha256=VU6mJm_upLcarJQKFft_t1RlLRncWDxDuLC5LIJ5lQQ,4339
72
72
  unique_toolkit/framework_utilities/utils.py,sha256=JK7g2yMfEx3eMprug26769xqNpS5WJcizf8n2zWMBng,789
73
73
  unique_toolkit/history_manager/history_construction_with_contents.py,sha256=0-xq8CPlqG_nAjmPu_sAXMbzau2TsG9j-6PSMo6tO6k,9109
74
- unique_toolkit/history_manager/history_manager.py,sha256=DL2RCTYAerqVy1V2z29WSNHfn3lH_z_4wc1sJS2oQ8I,8090
74
+ unique_toolkit/history_manager/history_manager.py,sha256=I5Fc8PJ9p-3r3MjUbhdW4XpEkUc3FzNyCWuHzr_XiXk,8118
75
75
  unique_toolkit/history_manager/loop_token_reducer.py,sha256=F5iFPS-m1qaYyi5xysky3nxCV4zyM8s21muyOxSquaQ,17725
76
76
  unique_toolkit/history_manager/utils.py,sha256=3GT53SfOQ7g-dN3PHFIPaAab74sUfV28hbUtGMdX-bY,5607
77
77
  unique_toolkit/language_model/__init__.py,sha256=lRQyLlbwHbNFf4-0foBU13UGb09lwEeodbVsfsSgaCk,1971
@@ -84,7 +84,7 @@ unique_toolkit/language_model/reference.py,sha256=nkX2VFz-IrUz8yqyc3G5jUMNwrNpxI
84
84
  unique_toolkit/language_model/schemas.py,sha256=ix5tCLUnlpAgc-WzV_54O_QpVI-shXOIUJVYVBRagpo,16498
85
85
  unique_toolkit/language_model/service.py,sha256=N_I3VtK5B0G8s5c6TcBVWM7CcLGqakDhEdHQ_z-Hcok,11676
86
86
  unique_toolkit/language_model/utils.py,sha256=bPQ4l6_YO71w-zaIPanUUmtbXC1_hCvLK0tAFc3VCRc,1902
87
- unique_toolkit/postprocessor/postprocessor_manager.py,sha256=fhTFto_t0FL5bacraGNMAky-AVVYJFJbIpXGRwSNpEE,4205
87
+ unique_toolkit/postprocessor/postprocessor_manager.py,sha256=f0t3DD7q7hUU97LTkgMVk7ekeFtkwH0MC-YRHnFEqJ8,4219
88
88
  unique_toolkit/protocols/support.py,sha256=V15WEIFKVMyF1QCnR8vIi4GrJy4dfTCB6d6JlqPZ58o,2341
89
89
  unique_toolkit/reference_manager/reference_manager.py,sha256=WIvZkRgQztkY0zNTM_KIPSqJFT22HIGNexJ4yG3aj5E,3993
90
90
  unique_toolkit/short_term_memory/__init__.py,sha256=2mI3AUrffgH7Yt-xS57EGqnHf7jnn6xquoKEhJqk3Wg,185
@@ -107,7 +107,7 @@ unique_toolkit/tools/utils/execution/execution.py,sha256=vjG2Y6awsGNtlvyQAGCTthQ
107
107
  unique_toolkit/tools/utils/source_handling/schema.py,sha256=pvNhtL2daDLpCVIQpfdn6R35GvKmITVLXjZNLAwpgUE,871
108
108
  unique_toolkit/tools/utils/source_handling/source_formatting.py,sha256=C7uayNbdkNVJdEARA5CENnHtNY1SU6etlaqbgHNyxaQ,9152
109
109
  unique_toolkit/tools/utils/source_handling/tests/test_source_formatting.py,sha256=zu3AJnYH9CMqZPrxKEH3IgI-fM3nlvIBuspJG6W6B18,6978
110
- unique_toolkit-0.8.17.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
111
- unique_toolkit-0.8.17.dist-info/METADATA,sha256=iFqwENwo_SlhPt0d_Dc6MnqAQgw3qPYmbP1ppLMkCvY,27862
112
- unique_toolkit-0.8.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
- unique_toolkit-0.8.17.dist-info/RECORD,,
110
+ unique_toolkit-0.8.18.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
111
+ unique_toolkit-0.8.18.dist-info/METADATA,sha256=1CvVQTzrkyL8gyCVAu5FkJlG360dwFbuhiyHuwX9sXQ,27936
112
+ unique_toolkit-0.8.18.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
113
+ unique_toolkit-0.8.18.dist-info/RECORD,,