unique_toolkit 1.20.0__py3-none-any.whl → 1.20.1__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.
Potentially problematic release.
This version of unique_toolkit might be problematic. Click here for more details.
- unique_toolkit/language_model/schemas.py +7 -8
- {unique_toolkit-1.20.0.dist-info → unique_toolkit-1.20.1.dist-info}/METADATA +4 -1
- {unique_toolkit-1.20.0.dist-info → unique_toolkit-1.20.1.dist-info}/RECORD +5 -5
- {unique_toolkit-1.20.0.dist-info → unique_toolkit-1.20.1.dist-info}/LICENSE +0 -0
- {unique_toolkit-1.20.0.dist-info → unique_toolkit-1.20.1.dist-info}/WHEEL +0 -0
|
@@ -83,22 +83,21 @@ class LanguageModelStreamResponseMessage(BaseModel):
|
|
|
83
83
|
class LanguageModelFunction(BaseModel):
|
|
84
84
|
model_config = model_config
|
|
85
85
|
|
|
86
|
-
id: str
|
|
86
|
+
id: str = Field(default_factory=lambda: uuid4().hex)
|
|
87
87
|
name: str
|
|
88
|
-
arguments: dict[str, Any] |
|
|
88
|
+
arguments: dict[str, Any] | None = None
|
|
89
89
|
|
|
90
90
|
@field_validator("arguments", mode="before")
|
|
91
|
-
def set_arguments(cls, value):
|
|
91
|
+
def set_arguments(cls, value: Any) -> Any:
|
|
92
92
|
if isinstance(value, str):
|
|
93
93
|
return json.loads(value)
|
|
94
94
|
return value
|
|
95
95
|
|
|
96
96
|
@field_validator("id", mode="before")
|
|
97
|
-
def randomize_id(cls, value):
|
|
98
|
-
if
|
|
97
|
+
def randomize_id(cls, value: Any) -> Any:
|
|
98
|
+
if value is None or value == "":
|
|
99
99
|
return uuid4().hex
|
|
100
|
-
|
|
101
|
-
return value
|
|
100
|
+
return value
|
|
102
101
|
|
|
103
102
|
@model_serializer()
|
|
104
103
|
def serialize_model(self):
|
|
@@ -108,7 +107,7 @@ class LanguageModelFunction(BaseModel):
|
|
|
108
107
|
seralization["arguments"] = json.dumps(self.arguments)
|
|
109
108
|
return seralization
|
|
110
109
|
|
|
111
|
-
def __eq__(self, other:
|
|
110
|
+
def __eq__(self, other: object) -> bool:
|
|
112
111
|
"""Compare two tool calls based on name and arguments."""
|
|
113
112
|
if not isinstance(other, LanguageModelFunction):
|
|
114
113
|
return False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_toolkit
|
|
3
|
-
Version: 1.20.
|
|
3
|
+
Version: 1.20.1
|
|
4
4
|
Summary:
|
|
5
5
|
License: Proprietary
|
|
6
6
|
Author: Cedric Klinkert
|
|
@@ -119,6 +119,9 @@ 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
121
|
|
|
122
|
+
## [1.20.1] - 2025-10-30
|
|
123
|
+
- Fix typing issues in `LanguageModelFunction`.
|
|
124
|
+
|
|
122
125
|
## [1.20.0] - 2025-10-30
|
|
123
126
|
- Fix bug where async tasks executed with `SafeTaskExecutor` did not log exceptions.
|
|
124
127
|
- Add option to customize sub agent response display title.
|
|
@@ -151,7 +151,7 @@ unique_toolkit/language_model/functions.py,sha256=LGX3rR-XjkB-R520jp4w_Azgqf7BsI
|
|
|
151
151
|
unique_toolkit/language_model/infos.py,sha256=oGbI9kA1jW9SdUUsWuSISD9O5Zm09PIzDIWXDyAnhzA,62649
|
|
152
152
|
unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
|
|
153
153
|
unique_toolkit/language_model/reference.py,sha256=nkX2VFz-IrUz8yqyc3G5jUMNwrNpxITBrMEKkbqqYoI,8583
|
|
154
|
-
unique_toolkit/language_model/schemas.py,sha256=
|
|
154
|
+
unique_toolkit/language_model/schemas.py,sha256=rXEc6lUd5T-32yKFsIM7WYzDdtObweHduR2dKjGCLko,23796
|
|
155
155
|
unique_toolkit/language_model/service.py,sha256=JkYGtCug8POQskTv_aoYkzTMOaPCWRM94y73o3bUttQ,12019
|
|
156
156
|
unique_toolkit/language_model/utils.py,sha256=bPQ4l6_YO71w-zaIPanUUmtbXC1_hCvLK0tAFc3VCRc,1902
|
|
157
157
|
unique_toolkit/protocols/support.py,sha256=ZEnbQL5w2-T_1AeM8OHycZJ3qbdfVI1nXe0nL9esQEw,5544
|
|
@@ -166,7 +166,7 @@ unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBu
|
|
|
166
166
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
167
167
|
unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
|
|
168
168
|
unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
|
|
169
|
-
unique_toolkit-1.20.
|
|
170
|
-
unique_toolkit-1.20.
|
|
171
|
-
unique_toolkit-1.20.
|
|
172
|
-
unique_toolkit-1.20.
|
|
169
|
+
unique_toolkit-1.20.1.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
|
170
|
+
unique_toolkit-1.20.1.dist-info/METADATA,sha256=CscyMf-zTg-Z4iZB6X6mmaqgMyBwGW55bGmVHYnSc7E,39566
|
|
171
|
+
unique_toolkit-1.20.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
172
|
+
unique_toolkit-1.20.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|