unique_toolkit 1.14.7__py3-none-any.whl → 1.14.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.
@@ -1,9 +1,10 @@
1
1
  import json
2
2
  from enum import StrEnum
3
- from typing import Any, Dict
3
+ from typing import Annotated, Any, Dict
4
4
 
5
5
  from pydantic import (
6
6
  BaseModel,
7
+ BeforeValidator,
7
8
  Field,
8
9
  ValidationInfo,
9
10
  model_validator,
@@ -33,6 +34,16 @@ class ToolSelectionPolicy(StrEnum):
33
34
  BY_USER = "ByUser"
34
35
 
35
36
 
37
+ def handle_undefinded_icon(value: Any) -> ToolIcon:
38
+ try:
39
+ if isinstance(value, str):
40
+ return ToolIcon(value)
41
+ else:
42
+ return ToolIcon.BOOK
43
+ except ValueError:
44
+ return ToolIcon.BOOK
45
+
46
+
36
47
  class ToolBuildConfig(BaseModel):
37
48
  model_config = get_configuration_dict()
38
49
  """Main tool configuration"""
@@ -40,7 +51,10 @@ class ToolBuildConfig(BaseModel):
40
51
  name: str
41
52
  configuration: BaseToolConfig
42
53
  display_name: str = ""
43
- icon: ToolIcon = ToolIcon.BOOK
54
+ icon: Annotated[ToolIcon, BeforeValidator(handle_undefinded_icon)] = Field(
55
+ default=ToolIcon.BOOK,
56
+ description="The icon name that will be used to display the tool in the user interface.",
57
+ )
44
58
  selection_policy: ToolSelectionPolicy = Field(
45
59
  default=ToolSelectionPolicy.BY_USER,
46
60
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 1.14.7
3
+ Version: 1.14.8
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Cedric Klinkert
@@ -118,6 +118,8 @@ All notable changes to this project will be documented in this file.
118
118
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
119
119
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
120
120
 
121
+ ## [1.14.8] - 2025-10-13
122
+ - Use default tool icon on validation error
121
123
 
122
124
  ## [1.14.7] - 2025-10-13
123
125
  - Update of token_limit parameters for Claude models
@@ -74,7 +74,7 @@ unique_toolkit/agentic/tools/a2a/tool/_schema.py,sha256=wMwyunViTnxaURvenkATEvyf
74
74
  unique_toolkit/agentic/tools/a2a/tool/config.py,sha256=07W8cZFc32yRvIeUFEQXi8R1cSGqlXL4pZb7UlB3Rvs,2490
75
75
  unique_toolkit/agentic/tools/a2a/tool/service.py,sha256=6Eru-jqlt13lIBVC26LhH0Oxb3qVdDQIUWRoChf8ysw,10525
76
76
  unique_toolkit/agentic/tools/agent_chunks_hanlder.py,sha256=x32Dp1Z8cVW5i-XzXbaMwX2KHPcNGmqEU-FB4AV9ZGo,1909
77
- unique_toolkit/agentic/tools/config.py,sha256=FryDAaTICBcJbkBE7RgTmTA3Yc_4A3ekdVuiixgZ0VI,4945
77
+ unique_toolkit/agentic/tools/config.py,sha256=gVqstCMkeBGT4U6D87Rvsesm8q3hHYaTVWw1-33OQtw,5389
78
78
  unique_toolkit/agentic/tools/factory.py,sha256=Wt0IGSbLg8ZTq5PU9p_JTW0LtNATWLpc3336irJKXlM,1277
79
79
  unique_toolkit/agentic/tools/mcp/__init__.py,sha256=RLF_p-LDRC7GhiB3fdCi4u3bh6V9PY_w26fg61BLyco,122
80
80
  unique_toolkit/agentic/tools/mcp/manager.py,sha256=DPYwwDe6RSZyuPaxn-je49fP_qOOs0ZV46EM6GZcV4c,2748
@@ -152,7 +152,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
152
152
  unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
153
153
  unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
154
154
  unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
155
- unique_toolkit-1.14.7.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
156
- unique_toolkit-1.14.7.dist-info/METADATA,sha256=Fceuecqokg-Z1Ytm31KKSKZWBHnG1iHgrw02UgNanzE,36916
157
- unique_toolkit-1.14.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
- unique_toolkit-1.14.7.dist-info/RECORD,,
155
+ unique_toolkit-1.14.8.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
156
+ unique_toolkit-1.14.8.dist-info/METADATA,sha256=mlJzRy6deKc1zvJAXK0r-fBejCBqf0ewEiTwb2ebdMc,36985
157
+ unique_toolkit-1.14.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
+ unique_toolkit-1.14.8.dist-info/RECORD,,