unique_toolkit 2026.28.0.dev13__py3-none-any.whl → 2026.28.0.dev14__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.
@@ -106,23 +106,15 @@ class ToolBuildConfig(BaseModel, Generic[T]):
106
106
  ) -> Any:
107
107
  """Validate and resolve tool configuration based on tool type and name.
108
108
 
109
- Disabled tools skip validation entirely.
110
- Enabled tools that fail validation are demoted to disabled.
109
+ Both enabled and disabled tools resolve to their concrete config type when
110
+ the stored configuration is valid, so downstream consumers that key off the
111
+ tool name keep seeing the expected config type regardless of the enabled
112
+ flag. A tool whose configuration is invalid is demoted to disabled with a
113
+ BaseToolConfig fallback instead of raising.
111
114
  """
112
115
  if not isinstance(value, dict):
113
116
  return value
114
117
 
115
- if "isEnabled" in value:
116
- is_enabled = bool(value["isEnabled"])
117
- elif "is_enabled" in value:
118
- is_enabled = bool(value["is_enabled"])
119
- else:
120
- is_enabled = True
121
-
122
- if not is_enabled:
123
- _ensure_base_tool_config(value)
124
- return value
125
-
126
118
  is_mcp_tool = _is_mcp_tool_payload(value)
127
119
  mcp_configuration = value.get("configuration", {})
128
120
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: unique-toolkit
3
- Version: 2026.28.0.dev13
3
+ Version: 2026.28.0.dev14
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>
@@ -176,7 +176,7 @@ unique_toolkit/agentic/tools/a2a/tool/config.py,sha256=v4rZQU42RjUTC5Md-Cye1rUIW
176
176
  unique_toolkit/agentic/tools/a2a/tool/service.py,sha256=mRrDYBEMYgk36xqLwtolRh9ravIiXJDTgadietHXb7g,21920
177
177
  unique_toolkit/agentic/tools/a2a/tool/test/test_service_utils.py,sha256=x4leRxnGgqD-XyXPkW2z1ekv4Ja7EStXd-24LGadPZA,24858
178
178
  unique_toolkit/agentic/tools/agent_chunks_hanlder.py,sha256=eO0g46wZOQlmWqYYVGiszRVe8K2LX-9qW30ZCdGg5eE,1943
179
- unique_toolkit/agentic/tools/config.py,sha256=1Vksow2fiHftOIv6d0j7YQIXRIDn4YfM-zpb4LLSd9o,5773
179
+ unique_toolkit/agentic/tools/config.py,sha256=g_NKV94pq6cZ8nH-C69_BNScyQ-tjRjzYE8IKKqqDag,5726
180
180
  unique_toolkit/agentic/tools/experimental/__init__.py,sha256=ArEcXHGPtMRNsDnsyo9v1fev0EZWdJ6D7NWdPEFLQKM,956
181
181
  unique_toolkit/agentic/tools/experimental/ask_user_tool/__init__.py,sha256=B8srRVw4vMLa4dZE5yoF1Bqpjlv8moh_m-dP2BVRjDc,375
182
182
  unique_toolkit/agentic/tools/experimental/ask_user_tool/config.py,sha256=z95ZaxkMvsmjVaUYWWZrvpD21-Us1KNUrMgXzpF4uo4,5923
@@ -406,6 +406,6 @@ unique_toolkit/short_term_memory/service.py,sha256=2JMBEBn6GoyK-a0xvdcWpPft-3C74
406
406
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
407
407
  unique_toolkit/smart_rules/compile.py,sha256=vRe0aMJWuVIK-VsqomgxQImzke7MDmwgSxxJfYCa7zw,1386
408
408
  unique_toolkit/test_utilities/events.py,sha256=FLrhMh0A_mQutAUjoD0FdMcVQ4Gq31r35OVGzRjvLro,6760
409
- unique_toolkit-2026.28.0.dev13.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
410
- unique_toolkit-2026.28.0.dev13.dist-info/METADATA,sha256=3GO4imErS87ri_TnhfikP6QJOyFRay45yb5VXB-Er1s,7428
411
- unique_toolkit-2026.28.0.dev13.dist-info/RECORD,,
409
+ unique_toolkit-2026.28.0.dev14.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
410
+ unique_toolkit-2026.28.0.dev14.dist-info/METADATA,sha256=VN2GxWJFsLFiyMmGcbQkPf2kaliE9orIBt2gILMZVgU,7428
411
+ unique_toolkit-2026.28.0.dev14.dist-info/RECORD,,