unique_toolkit 1.1.1__py3-none-any.whl → 1.1.3__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/_common/validators.py +8 -1
- unique_toolkit/agentic/tools/test/test_mcp_manager.py +2 -2
- unique_toolkit/agentic/tools/tool_manager.py +12 -3
- {unique_toolkit-1.1.1.dist-info → unique_toolkit-1.1.3.dist-info}/METADATA +7 -1
- {unique_toolkit-1.1.1.dist-info → unique_toolkit-1.1.3.dist-info}/RECORD +7 -7
- {unique_toolkit-1.1.1.dist-info → unique_toolkit-1.1.3.dist-info}/LICENSE +0 -0
- {unique_toolkit-1.1.1.dist-info → unique_toolkit-1.1.3.dist-info}/WHEEL +0 -0
@@ -17,7 +17,14 @@ LMI = Annotated[
|
|
17
17
|
LanguageModelInfo,
|
18
18
|
BeforeValidator(
|
19
19
|
lambda v: validate_and_init_language_model_info(v),
|
20
|
-
json_schema_input_type=
|
20
|
+
json_schema_input_type=LanguageModelName
|
21
|
+
| Annotated[
|
22
|
+
str,
|
23
|
+
Field(
|
24
|
+
title="Language Model String",
|
25
|
+
),
|
26
|
+
]
|
27
|
+
| LanguageModelInfo,
|
21
28
|
),
|
22
29
|
PlainSerializer(
|
23
30
|
lambda v: serialize_lmi(v),
|
@@ -402,8 +402,8 @@ class TestMCPManager:
|
|
402
402
|
# Should only have the exclusive tool, MCP tools should be ignored
|
403
403
|
tools = tool_manager.get_tools()
|
404
404
|
tool_names = [tool.name for tool in tools]
|
405
|
-
assert "internal_search" in tool_names
|
406
|
-
assert "mcp_test_tool"
|
405
|
+
assert "internal_search" not in tool_names
|
406
|
+
assert "mcp_test_tool" in tool_names
|
407
407
|
assert len(tools) == 1
|
408
408
|
|
409
409
|
def test_init_tools_with_disabled_tool_config(
|
@@ -118,15 +118,24 @@ class ToolManager:
|
|
118
118
|
self.available_tools = internal_tools + mcp_tools + sub_agents
|
119
119
|
|
120
120
|
for t in self.available_tools:
|
121
|
-
if t.is_exclusive():
|
122
|
-
self._tools = [t]
|
123
|
-
return
|
124
121
|
if not t.is_enabled():
|
125
122
|
continue
|
126
123
|
if t.name in self._disabled_tools:
|
127
124
|
continue
|
125
|
+
# if tool choices are given, only include those tools
|
128
126
|
if len(self._tool_choices) > 0 and t.name not in self._tool_choices:
|
129
127
|
continue
|
128
|
+
# is the tool exclusive and has been choosen by the user?
|
129
|
+
if (
|
130
|
+
t.is_exclusive()
|
131
|
+
and len(tool_choices) > 0
|
132
|
+
and t.name not in tool_choices
|
133
|
+
):
|
134
|
+
self._tools = [t] # override all other tools
|
135
|
+
break
|
136
|
+
# if the tool is exclusive but no tool choices are given, skip it
|
137
|
+
if t.is_exclusive():
|
138
|
+
continue
|
130
139
|
|
131
140
|
self._tools.append(t)
|
132
141
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.3
|
4
4
|
Summary:
|
5
5
|
License: Proprietary
|
6
6
|
Author: Cedric Klinkert
|
@@ -118,6 +118,12 @@ 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.1.3] - 2025-09-23
|
122
|
+
- Updated LMI JSON schema input type to include annotated string field with title
|
123
|
+
|
124
|
+
## [1.1.2] - 2025-09-22
|
125
|
+
- Fixed bug tool selection for exclusive tools
|
126
|
+
|
121
127
|
## [1.1.1] - 2025-09-18
|
122
128
|
- Fixed bug on tool config added icon name
|
123
129
|
|
@@ -18,7 +18,7 @@ unique_toolkit/_common/token/token_counting.py,sha256=gM4B_aUqKqEPvmStFNcvCWNMNN
|
|
18
18
|
unique_toolkit/_common/utils/structured_output/schema.py,sha256=Tp7kDYcmKtnUhcuRkH86TSYhylRff0ZZJYb2dLkISts,131
|
19
19
|
unique_toolkit/_common/utils/write_configuration.py,sha256=fzvr4C-XBL3OSM3Od9TbqIxeeDS9_d9CLEyTq6DDknY,1409
|
20
20
|
unique_toolkit/_common/validate_required_values.py,sha256=Y_M1ub9gIKP9qZ45F6Zq3ZHtuIqhmOjl8Z2Vd3avg8w,588
|
21
|
-
unique_toolkit/_common/validators.py,sha256=
|
21
|
+
unique_toolkit/_common/validators.py,sha256=LFZmAalNa886EXm1VYamFvfBuUZjYKwDdT_HOYU0BtE,2934
|
22
22
|
unique_toolkit/agentic/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
23
23
|
unique_toolkit/agentic/debug_info_manager/debug_info_manager.py,sha256=8u3_oxcln7y2zOsfiGh5YOm1zYAlV5QxZ5YAsbEJG0c,584
|
24
24
|
unique_toolkit/agentic/evaluation/config.py,sha256=ywHIrJs5SFdKr1WXfrofWuFfzb0iPQw8iZDpq5oEug4,953
|
@@ -59,10 +59,10 @@ unique_toolkit/agentic/tools/mcp/manager.py,sha256=DPYwwDe6RSZyuPaxn-je49fP_qOOs
|
|
59
59
|
unique_toolkit/agentic/tools/mcp/models.py,sha256=OyCCb7Vwv1ftzC_OCpFkf3TX9Aeb74ZZagG-qK5peIU,722
|
60
60
|
unique_toolkit/agentic/tools/mcp/tool_wrapper.py,sha256=5UdtqFtZ0aqjae2eL3zVacDMfr1hu5KiQkaoI7VkhqA,9972
|
61
61
|
unique_toolkit/agentic/tools/schemas.py,sha256=Nk2U2WEK9WEuxyoDQ0gjegoHPHUrt_Ozck4HfFQZJAM,4833
|
62
|
-
unique_toolkit/agentic/tools/test/test_mcp_manager.py,sha256=
|
62
|
+
unique_toolkit/agentic/tools/test/test_mcp_manager.py,sha256=9F7FjpYKeOkg2Z4bt2H1WGaxu9fzB-1iiE-b7g3KzQk,15724
|
63
63
|
unique_toolkit/agentic/tools/test/test_tool_progress_reporter.py,sha256=dod5QPqgGUInVAGXAbsAKNTEypIi6pUEWhDbJr9YfUU,6307
|
64
64
|
unique_toolkit/agentic/tools/tool.py,sha256=8ExasfdLrdyOXWrcKi8dtvR1vYbdFV0UcS4UDf-5XXs,6369
|
65
|
-
unique_toolkit/agentic/tools/tool_manager.py,sha256=
|
65
|
+
unique_toolkit/agentic/tools/tool_manager.py,sha256=RWz6hKzuTTqzry5KpaeSfsO84zMp6RqVfX59YWFYblc,11034
|
66
66
|
unique_toolkit/agentic/tools/tool_progress_reporter.py,sha256=ixud9VoHey1vlU1t86cW0-WTvyTwMxNSWBon8I11SUk,7955
|
67
67
|
unique_toolkit/agentic/tools/utils/__init__.py,sha256=iD1YYzf9LcJFv95Z8BqCAFSewNBabybZRZyvPKGfvro,27
|
68
68
|
unique_toolkit/agentic/tools/utils/execution/__init__.py,sha256=OHiKpqBnfhBiEQagKVWJsZlHv8smPp5OI4dFIexzibw,37
|
@@ -124,7 +124,7 @@ unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJ
|
|
124
124
|
unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBuE9sI2o9Aajqjxg,8884
|
125
125
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
126
126
|
unique_toolkit/smart_rules/compile.py,sha256=cxWjb2dxEI2HGsakKdVCkSNi7VK9mr08w5sDcFCQyWI,9553
|
127
|
-
unique_toolkit-1.1.
|
128
|
-
unique_toolkit-1.1.
|
129
|
-
unique_toolkit-1.1.
|
130
|
-
unique_toolkit-1.1.
|
127
|
+
unique_toolkit-1.1.3.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
128
|
+
unique_toolkit-1.1.3.dist-info/METADATA,sha256=tLg_V6wkMak2Jw3dNtwYnxbn_Jxu9zCllXgGH7rJFA8,32648
|
129
|
+
unique_toolkit-1.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
130
|
+
unique_toolkit-1.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|