unique_toolkit 2026.36.0.dev2__py3-none-any.whl → 2026.36.0.dev3__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.
@@ -30,7 +30,6 @@ class FeatureFlagNames(StrEnum):
30
30
  enable_web_search_argument_screening_un_18741 = (
31
31
  "FEATURE_FLAG_ENABLE_WEB_SEARCH_ARGUMENT_SCREENING_UN_18741"
32
32
  )
33
- enable_new_answers_ui_un_14411 = "FEATURE_FLAG_ENABLE_NEW_ANSWERS_UI_UN_14411"
34
33
 
35
34
 
36
35
  @deprecated(
@@ -83,20 +82,25 @@ class FeatureFlags(BaseSettings):
83
82
  """Feature flags loaded from environment variables.
84
83
 
85
84
  Environment variables are automatically loaded based on field names.
86
- For example, `enable_new_answers_ui_un_14411` will be loaded from
87
- `FEATURE_FLAG_ENABLE_NEW_ANSWERS_UI_UN_14411` (with the env_prefix).
85
+ For example, `enable_html_rendering_un_15131` will be loaded from
86
+ `FEATURE_FLAG_ENABLE_HTML_RENDERING_UN_15131` (with the env_prefix).
88
87
 
89
88
  Usage:
90
89
  >>> flags = FeatureFlags()
91
90
  >>> # Check if feature is enabled for a company
92
- >>> flags.enable_new_answers_ui_un_14411.is_enabled("company123")
91
+ >>> flags.enable_html_rendering_un_15131.is_enabled("company123")
93
92
  >>> # Check global enablement
94
93
  >>> bool(flags.enable_elicitation_un_15809)
95
94
  """
96
95
 
97
96
  enable_new_answers_ui_un_14411: FeatureFlag = Field(
98
97
  default=FeatureFlag([]),
99
- description="Enable new answers UI (UN-14411)",
98
+ description=(
99
+ "Retired (UN-24507): the new answers UI is always on now, no code "
100
+ "reads this field. Kept only so removing it doesn't trip the "
101
+ "config-checker's breaking-change gate on this settings model; "
102
+ "delete once that checker allows field removal."
103
+ ),
100
104
  )
101
105
 
102
106
  enable_html_rendering_un_15131: FeatureFlag = Field(
@@ -22,7 +22,6 @@ from unique_toolkit._common.referencing import (
22
22
  )
23
23
  from unique_toolkit._common.utils.jinja.render import render_template
24
24
  from unique_toolkit.agentic.evaluation.schemas import EvaluationMetricName
25
- from unique_toolkit.agentic.feature_flags import FeatureFlagNames
26
25
  from unique_toolkit.agentic.tools.a2a.response_watcher import SubAgentResponseWatcher
27
26
  from unique_toolkit.agentic.tools.a2a.tool._memory import (
28
27
  get_sub_agent_short_term_memory_manager,
@@ -39,10 +38,7 @@ from unique_toolkit.agentic.tools.a2a.tool.config import (
39
38
  from unique_toolkit.agentic.tools.factory import ToolFactory
40
39
  from unique_toolkit.agentic.tools.schemas import ToolCallResponse
41
40
  from unique_toolkit.agentic.tools.tool import Tool
42
- from unique_toolkit.agentic.tools.tool_progress_reporter import (
43
- ProgressState,
44
- ToolProgressReporter,
45
- )
41
+ from unique_toolkit.agentic.tools.tool_progress_reporter import ToolProgressReporter
46
42
  from unique_toolkit.app import ChatEvent
47
43
  from unique_toolkit.chat.schemas import (
48
44
  ChatMessageAssessmentLabel,
@@ -53,7 +49,6 @@ from unique_toolkit.chat.schemas import (
53
49
  )
54
50
  from unique_toolkit.chat.service import ChatService
55
51
  from unique_toolkit.content import ContentChunk, ContentReference
56
- from unique_toolkit.experimental.resources.feature_flags import is_flag_enabled
57
52
  from unique_toolkit.language_model import (
58
53
  LanguageModelFunction,
59
54
  LanguageModelService,
@@ -196,12 +191,6 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
196
191
  timestamp = datetime.now()
197
192
 
198
193
  if self._lock.locked():
199
- await self._notify_progress(
200
- tool_call=tool_call,
201
- message=f"Waiting for another run of `{self.display_name()}` to finish",
202
- state=ProgressState.STARTED,
203
- )
204
-
205
194
  active_message_log = self._create_or_update_message_log(
206
195
  progress_message="_Waiting for another run of this sub agent to finish_",
207
196
  active_message_log=active_message_log,
@@ -215,12 +204,6 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
215
204
  sequence_number = self._sequence_number
216
205
  self._sequence_number += 1
217
206
 
218
- await self._notify_progress(
219
- tool_call=tool_call,
220
- message=tool_input,
221
- state=ProgressState.RUNNING,
222
- )
223
-
224
207
  active_message_log = self._create_or_update_message_log(
225
208
  progress_message=f"<em>Executing sub agent with input: {tool_input}</em>",
226
209
  active_message_log=active_message_log,
@@ -285,12 +268,6 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
285
268
  has_refs=has_refs,
286
269
  )
287
270
 
288
- await self._notify_progress(
289
- tool_call=tool_call,
290
- message=tool_input,
291
- state=ProgressState.FINISHED,
292
- )
293
-
294
271
  # Update message log entry to completed
295
272
  active_message_log = self._create_or_update_message_log(
296
273
  progress_message=f"<em>Completed sub agent with input: {tool_input}</em>",
@@ -329,11 +306,6 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
329
306
  except TimeoutError as e:
330
307
  raise e
331
308
  except Exception as e:
332
- await self._notify_progress(
333
- tool_call=tool_call,
334
- message="Error while running sub agent",
335
- state=ProgressState.FAILED,
336
- )
337
309
  active_message_log = self._create_or_update_message_log(
338
310
  progress_message="_Error while running sub agent_",
339
311
  status=MessageLogStatus.FAILED,
@@ -426,23 +398,6 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
426
398
  SubAgentShortTermMemorySchema(chat_id=chat_id)
427
399
  )
428
400
 
429
- async def _notify_progress(
430
- self,
431
- tool_call: LanguageModelFunction,
432
- message: str,
433
- state: ProgressState,
434
- ) -> None:
435
- if self._tool_progress_reporter is not None and not await is_flag_enabled(
436
- FeatureFlagNames.enable_new_answers_ui_un_14411,
437
- company_id=self._company_id or "",
438
- ):
439
- await self._tool_progress_reporter.notify_from_tool_call(
440
- tool_call=tool_call,
441
- name=self._display_name,
442
- message=message,
443
- state=state,
444
- )
445
-
446
401
  def _create_or_update_message_log(
447
402
  self,
448
403
  *,
@@ -511,11 +466,6 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
511
466
  wait_for_invocations=True,
512
467
  )
513
468
  except TimeoutError as e:
514
- await self._notify_progress(
515
- tool_call=tool_call,
516
- message="Timeout while waiting for response from sub agent.",
517
- state=ProgressState.FAILED,
518
- )
519
469
  active_message_log = self._create_or_update_message_log(
520
470
  progress_message="_Timeout while waiting for response from sub agent_",
521
471
  status=MessageLogStatus.FAILED,
@@ -10,20 +10,15 @@ import unique_sdk
10
10
  from pydantic import ValidationError
11
11
 
12
12
  from unique_toolkit.agentic.evaluation.schemas import EvaluationMetricName
13
- from unique_toolkit.agentic.feature_flags import FeatureFlagNames
14
13
  from unique_toolkit.agentic.tools.mcp.models import MCPToolConfig
15
14
  from unique_toolkit.agentic.tools.schemas import ToolCallResponse
16
15
  from unique_toolkit.agentic.tools.tool import Tool
17
- from unique_toolkit.agentic.tools.tool_progress_reporter import (
18
- ProgressState,
19
- ToolProgressReporter,
20
- )
16
+ from unique_toolkit.agentic.tools.tool_progress_reporter import ToolProgressReporter
21
17
  from unique_toolkit.app.schemas import ChatEvent, McpServer, McpTool
22
18
  from unique_toolkit.chat.schemas import MessageLog, MessageLogStatus
23
19
  from unique_toolkit.chat.service import ChatService
24
20
  from unique_toolkit.content.functions import upload_content_from_bytes
25
21
  from unique_toolkit.content.schemas import ContentChunk, ContentReference
26
- from unique_toolkit.experimental.resources.feature_flags import is_flag_enabled
27
22
  from unique_toolkit.language_model import LanguageModelService
28
23
  from unique_toolkit.language_model.schemas import (
29
24
  LanguageModelFunction,
@@ -137,18 +132,6 @@ class MCPToolWrapper(Tool[MCPToolConfig]):
137
132
  active_message_log=active_message_log,
138
133
  )
139
134
 
140
- # Notify progress if reporter is available
141
- if self._tool_progress_reporter and not await is_flag_enabled(
142
- FeatureFlagNames.enable_new_answers_ui_un_14411,
143
- company_id=self._event.company_id,
144
- ):
145
- await self._tool_progress_reporter.notify_from_tool_call(
146
- tool_call=tool_call,
147
- name=f"**{self.display_name()}**",
148
- message=f"Executing MCP tool: {self.display_name()}",
149
- state=ProgressState.RUNNING,
150
- )
151
-
152
135
  try:
153
136
  # Robust argument extraction and validation
154
137
  arguments = self._extract_and_validate_arguments(tool_call)
@@ -180,18 +163,6 @@ class MCPToolWrapper(Tool[MCPToolConfig]):
180
163
  image_data_urls=image_data_urls,
181
164
  )
182
165
 
183
- # Notify completion
184
- if self._tool_progress_reporter and not await is_flag_enabled(
185
- FeatureFlagNames.enable_new_answers_ui_un_14411,
186
- company_id=self._event.company_id,
187
- ):
188
- await self._tool_progress_reporter.notify_from_tool_call(
189
- tool_call=tool_call,
190
- name=f"**{self.display_name()}**",
191
- message=f"MCP tool completed: {self.display_name()}",
192
- state=ProgressState.FINISHED,
193
- )
194
-
195
166
  # Update message log entry to completed
196
167
  active_message_log = self._create_or_update_message_log(
197
168
  progress_message="_Completed MCP tool_",
@@ -205,18 +176,6 @@ class MCPToolWrapper(Tool[MCPToolConfig]):
205
176
  except Exception as e:
206
177
  self.logger.error(f"Error executing MCP tool {self.name}: {e}")
207
178
 
208
- # Notify failure
209
- if self._tool_progress_reporter and not await is_flag_enabled(
210
- FeatureFlagNames.enable_new_answers_ui_un_14411,
211
- company_id=self._event.company_id,
212
- ):
213
- await self._tool_progress_reporter.notify_from_tool_call(
214
- tool_call=tool_call,
215
- name=f"**{self.display_name()}**",
216
- message=f"MCP tool failed: {str(e)}",
217
- state=ProgressState.FAILED,
218
- )
219
-
220
179
  # Update message log entry to failed
221
180
  active_message_log = self._create_or_update_message_log(
222
181
  progress_message="_Failed executing MCP tool_",
@@ -22,7 +22,6 @@ from unique_toolkit._common.metadata_filter_scope import (
22
22
  merge_scope_clause_into_metadata_filter,
23
23
  )
24
24
  from unique_toolkit._common.utils.files import is_file_content, is_image_content
25
- from unique_toolkit.agentic.feature_flags import FeatureFlagNames
26
25
  from unique_toolkit.agentic.message_log_order import next_message_log_order
27
26
  from unique_toolkit.app.unique_settings import UniqueContext, UniqueSettings
28
27
  from unique_toolkit.chat.cancellation import CancellationWatcher
@@ -100,7 +99,6 @@ from unique_toolkit.content.schemas import (
100
99
  ContentSearchType,
101
100
  )
102
101
  from unique_toolkit.elicitation.service import ElicitationService
103
- from unique_toolkit.experimental.resources.feature_flags import is_flag_enabled
104
102
  from unique_toolkit.language_model.constants import (
105
103
  DEFAULT_COMPLETE_TEMPERATURE,
106
104
  DEFAULT_COMPLETE_TIMEOUT,
@@ -1806,11 +1804,6 @@ class ChatService(ChatServiceDeprecated):
1806
1804
 
1807
1805
  if not rate_limit_retry_config.log_message_on_retry:
1808
1806
  return
1809
- if not await is_flag_enabled(
1810
- FeatureFlagNames.enable_new_answers_ui_un_14411,
1811
- company_id=self._company_id,
1812
- ):
1813
- return
1814
1807
 
1815
1808
  await _cancel_ticker()
1816
1809
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-toolkit
3
- Version: 2026.36.0.dev2
3
+ Version: 2026.36.0.dev3
4
4
  Summary:
5
5
  Author: Cedric Klinkert, Martin Fadler, Sadique Sheik, Fabian Schläpfer, Pascal Hauri, Ejiroghene Oki-Peter, Rami Azouz, Ricardo Visini, Sanzio Monti
6
6
  Author-email: Cedric Klinkert <cedric.klinkert@unique.ch>, Martin Fadler <martin.fadler@unique.ch>, Sadique Sheik <sadique@unique.ch>, Fabian Schläpfer <fabian@unique.ch>, Pascal Hauri <pascal@unique.ch>, Ejiroghene Oki-Peter <oki-peter.ejiroghene@unique.ai>, Rami Azouz <rami.ext@unique.ch>, Ricardo Visini <ricardo.visini@unique.ch>, Sanzio Monti <sanzio.monti@unique.ai>
@@ -112,7 +112,7 @@ unique_toolkit/agentic/evaluation/tests/test_output_parser.py,sha256=KfltytmvqnP
112
112
  unique_toolkit/agentic/evaluation/tests/test_prompt_loaders.py,sha256=zBREdlKf5tdDyB8XSaNgpQv3-tuZJoYteeJrp6WMWDM,11897
113
113
  unique_toolkit/agentic/evaluation/utils.py,sha256=HmyPaDV8wdW-_gOjjW-wDaMKgdrsP5-SHP7OqTmGI_A,264
114
114
  unique_toolkit/agentic/feature_flags/__init__.py,sha256=fBR9FaLrc9e8sdYDe1LwP9aNJt5aLLtAq3nIphVWkIk,191
115
- unique_toolkit/agentic/feature_flags/feature_flags.py,sha256=IqJMvWEJ49gRuIKkLfg4ZBcEPjaXO1KBuJ-SnRfLakg,6756
115
+ unique_toolkit/agentic/feature_flags/feature_flags.py,sha256=vVmgbIp-c7uZdnoM9KFFTpaVIvbl7vrzHF8Nd0sMK_M,6943
116
116
  unique_toolkit/agentic/history_manager/history_construction_with_contents.py,sha256=70lm8pYmQpb0HRpqzPTb4ikh8vVbvhfGR5S-D4Ftbbc,25306
117
117
  unique_toolkit/agentic/history_manager/history_manager.py,sha256=PqSa87yzNIDRXqjh1KN7moeIpp_jWxj9qEPig4wv790,16062
118
118
  unique_toolkit/agentic/history_manager/loop_token_reducer.py,sha256=lgo5zAq6gYLo7FFTNWe5sc6o80vnadKsr-cgEDP6hM8,30754
@@ -173,7 +173,7 @@ unique_toolkit/agentic/tools/a2a/tool/__init__.py,sha256=9x8nGZsMcpF8ch0RKoelGPl
173
173
  unique_toolkit/agentic/tools/a2a/tool/_memory.py,sha256=w8bxjokrqHQZgApd55b5rHXF-DpgJwaKTg4CvLBLamc,1034
174
174
  unique_toolkit/agentic/tools/a2a/tool/_schema.py,sha256=wMwyunViTnxaURvenkATEvyfXn5LvLaP0HxbYqdZGls,158
175
175
  unique_toolkit/agentic/tools/a2a/tool/config.py,sha256=v4rZQU42RjUTC5Md-Cye1rUIWDlHpuhc3MzcyvpGQNw,9748
176
- unique_toolkit/agentic/tools/a2a/tool/service.py,sha256=_N6dxN3qsps77de4t3VhOxH5GLD5cGM83j4I8Pp2-3A,24257
176
+ unique_toolkit/agentic/tools/a2a/tool/service.py,sha256=LMAQ8MOZiMa4NQ-BLgM5JVnJOYFOpobQ4QbBdwVZhQo,22458
177
177
  unique_toolkit/agentic/tools/a2a/tool/test/test_service_utils.py,sha256=0w3721KiJot54PIy105DNiOGviLiiKNHi6kECDGvO1k,27199
178
178
  unique_toolkit/agentic/tools/agent_chunks_hanlder.py,sha256=eO0g46wZOQlmWqYYVGiszRVe8K2LX-9qW30ZCdGg5eE,1943
179
179
  unique_toolkit/agentic/tools/config.py,sha256=AOtBn2tL1rIoPPzl1csAHLD5aetYqPL-jAqkIoSBxyE,7468
@@ -201,7 +201,7 @@ unique_toolkit/agentic/tools/factory.py,sha256=YK9uh2EqotQFb9stsXs-A8lsNaxklTCd_
201
201
  unique_toolkit/agentic/tools/mcp/__init__.py,sha256=RLF_p-LDRC7GhiB3fdCi4u3bh6V9PY_w26fg61BLyco,122
202
202
  unique_toolkit/agentic/tools/mcp/manager.py,sha256=EfWbfNhB8Lnx2EqBgUXhK7klFLaBv2eezvYq8J0TXyo,3808
203
203
  unique_toolkit/agentic/tools/mcp/models.py,sha256=DaBVzwJ4dqtgzm8Mv0-NOGBU04zyVe-RgWntBhkpmnE,742
204
- unique_toolkit/agentic/tools/mcp/tool_wrapper.py,sha256=-WZaPjhbxozrPWgwZDD48hfYIp7s1cGAKU3IXqLXFVA,17575
204
+ unique_toolkit/agentic/tools/mcp/tool_wrapper.py,sha256=8zon1eHzeZ-uDl709pWyFplp4uO0h_N4EAdZeFVtQ-I,15791
205
205
  unique_toolkit/agentic/tools/names.py,sha256=MDF0ONLrxeC-iz--EtyrHAox_RN6zasxo5MSbXQYGyw,412
206
206
  unique_toolkit/agentic/tools/openai_builtin/__init__.py,sha256=Q6d9mhsLRVF3erT2yMxLld62D3FTZ8nbovI4vLv4Nso,701
207
207
  unique_toolkit/agentic/tools/openai_builtin/base.py,sha256=QWF-GL_fkJqzGPpxvtg69-TB_IjsrxokeJVQESzH-18,1415
@@ -409,7 +409,7 @@ unique_toolkit/monitoring/registry.py,sha256=De2Bx5QBBRJQY2MM3xtntiJ2JU2FoKkVT7r
409
409
  unique_toolkit/monitoring/tracing.py,sha256=0lmLuQjyyC3iFpNTw8rOyCpEZ6PTvp16nVbzcO9d2sQ,10043
410
410
  unique_toolkit/protocols/support.py,sha256=x5edzbBmKAUuvm3oLFh52gkgQsqR5LU7M0t8RHK0DZk,5161
411
411
  unique_toolkit/services/__init__.py,sha256=b9Wl7Wvz1JmZDbDexIZzBoXZ0wscXuczGAH8LoL-Qak,572
412
- unique_toolkit/services/chat_service.py,sha256=6lVMSwvi2ztPebK6meo9BVLOL_Wdje5wPSUBp5dMZIg,99268
412
+ unique_toolkit/services/chat_service.py,sha256=8BncFKNJK0zR8QM3oFzUNdiPq5I4OLYbmQWJ06rIFTg,98932
413
413
  unique_toolkit/services/factory.py,sha256=7gNeanyHkgX23Iz7RMCQTCkE9gI5asCI11nXxM0jjx4,9832
414
414
  unique_toolkit/services/knowledge_base.py,sha256=6dM4abcXR9y2VYoR6SK79gwjrzb83Wm8jMPPIt5z95o,43461
415
415
  unique_toolkit/short_term_memory/__init__.py,sha256=2mI3AUrffgH7Yt-xS57EGqnHf7jnn6xquoKEhJqk3Wg,185
@@ -420,6 +420,6 @@ unique_toolkit/short_term_memory/service.py,sha256=2JMBEBn6GoyK-a0xvdcWpPft-3C74
420
420
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
421
421
  unique_toolkit/smart_rules/compile.py,sha256=vRe0aMJWuVIK-VsqomgxQImzke7MDmwgSxxJfYCa7zw,1386
422
422
  unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
423
- unique_toolkit-2026.36.0.dev2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
424
- unique_toolkit-2026.36.0.dev2.dist-info/METADATA,sha256=Caxi8wvrymP225m-SxkPfSMbMQ4agwTI-81eGleVGXw,7821
425
- unique_toolkit-2026.36.0.dev2.dist-info/RECORD,,
423
+ unique_toolkit-2026.36.0.dev3.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
424
+ unique_toolkit-2026.36.0.dev3.dist-info/METADATA,sha256=N_GK3be7pU2tpG8QFDTk617VgXay6etkRsmYpX3qPsg,7821
425
+ unique_toolkit-2026.36.0.dev3.dist-info/RECORD,,