unique_toolkit 1.14.6__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.
- unique_toolkit/agentic/tools/config.py +16 -2
- unique_toolkit/language_model/infos.py +5 -4
- {unique_toolkit-1.14.6.dist-info → unique_toolkit-1.14.8.dist-info}/METADATA +7 -2
- {unique_toolkit-1.14.6.dist-info → unique_toolkit-1.14.8.dist-info}/RECORD +6 -6
- {unique_toolkit-1.14.6.dist-info → unique_toolkit-1.14.8.dist-info}/LICENSE +0 -0
- {unique_toolkit-1.14.6.dist-info → unique_toolkit-1.14.8.dist-info}/WHEEL +0 -0
@@ -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 =
|
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
|
)
|
@@ -620,7 +620,7 @@ class LanguageModelInfo(BaseModel):
|
|
620
620
|
token_limits=LanguageModelTokenLimits(
|
621
621
|
# Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
|
622
622
|
token_limit_input=180_000,
|
623
|
-
token_limit_output=
|
623
|
+
token_limit_output=64_000,
|
624
624
|
),
|
625
625
|
info_cutoff_at=date(2024, 10, 31),
|
626
626
|
published_at=date(2025, 2, 24),
|
@@ -640,7 +640,7 @@ class LanguageModelInfo(BaseModel):
|
|
640
640
|
token_limits=LanguageModelTokenLimits(
|
641
641
|
# Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
|
642
642
|
token_limit_input=180_000,
|
643
|
-
token_limit_output=
|
643
|
+
token_limit_output=64_000,
|
644
644
|
),
|
645
645
|
info_cutoff_at=date(2024, 10, 31),
|
646
646
|
published_at=date(2025, 2, 24),
|
@@ -679,7 +679,7 @@ class LanguageModelInfo(BaseModel):
|
|
679
679
|
encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
|
680
680
|
token_limits=LanguageModelTokenLimits(
|
681
681
|
# Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
|
682
|
-
token_limit_input=
|
682
|
+
token_limit_input=180_000,
|
683
683
|
token_limit_output=64_000,
|
684
684
|
),
|
685
685
|
info_cutoff_at=date(2025, 7, 1),
|
@@ -718,7 +718,8 @@ class LanguageModelInfo(BaseModel):
|
|
718
718
|
version="claude-opus-4",
|
719
719
|
encoder_name=EncoderName.O200K_BASE, # TODO: Update encoder with litellm
|
720
720
|
token_limits=LanguageModelTokenLimits(
|
721
|
-
|
721
|
+
# Input limit is 200_000, we leave 20_000 tokens as buffer due to tokenizer mismatch
|
722
|
+
token_limit_input=180_000,
|
722
723
|
token_limit_output=32_000,
|
723
724
|
),
|
724
725
|
info_cutoff_at=date(2025, 3, 1),
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 1.14.
|
3
|
+
Version: 1.14.8
|
4
4
|
Summary:
|
5
5
|
License: Proprietary
|
6
6
|
Author: Cedric Klinkert
|
@@ -118,8 +118,13 @@ 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
|
-
## [1.14.
|
124
|
+
## [1.14.7] - 2025-10-13
|
125
|
+
- Update of token_limit parameters for Claude models
|
126
|
+
|
127
|
+
## [1.14.6] - 2025-10-10
|
123
128
|
- Fix circular import appearing in orchestrator
|
124
129
|
|
125
130
|
## [1.14.5] - 2025-10-09
|
@@ -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=
|
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
|
@@ -135,7 +135,7 @@ unique_toolkit/language_model/builder.py,sha256=4OKfwJfj3TrgO1ezc_ewIue6W7BCQ2ZY
|
|
135
135
|
unique_toolkit/language_model/constants.py,sha256=B-topqW0r83dkC_25DeQfnPk3n53qzIHUCBS7YJ0-1U,119
|
136
136
|
unique_toolkit/language_model/default_language_model.py,sha256=-_DBsJhLCsFdaU4ynAkyW0jYIl2lhrPybZm1K-GgVJs,125
|
137
137
|
unique_toolkit/language_model/functions.py,sha256=PNCmbYovhgMSkY89p7-3DunG6jIekaZPvhh3iplG1Vg,16720
|
138
|
-
unique_toolkit/language_model/infos.py,sha256=
|
138
|
+
unique_toolkit/language_model/infos.py,sha256=pGd4I7fAuy8D8iqEgKC7-grQZe4AIMebonkBBv1k37Q,59363
|
139
139
|
unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
|
140
140
|
unique_toolkit/language_model/reference.py,sha256=nkX2VFz-IrUz8yqyc3G5jUMNwrNpxITBrMEKkbqqYoI,8583
|
141
141
|
unique_toolkit/language_model/schemas.py,sha256=w23zH2OAYkTsS-wAqelUdhO9TCgis0TbFa8PszmhZYY,16501
|
@@ -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.
|
156
|
-
unique_toolkit-1.14.
|
157
|
-
unique_toolkit-1.14.
|
158
|
-
unique_toolkit-1.14.
|
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,,
|
File without changes
|
File without changes
|