unique_toolkit 0.5.47__py3-none-any.whl → 0.5.48__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/language_model/schemas.py +6 -2
- {unique_toolkit-0.5.47.dist-info → unique_toolkit-0.5.48.dist-info}/METADATA +4 -1
- {unique_toolkit-0.5.47.dist-info → unique_toolkit-0.5.48.dist-info}/RECORD +5 -5
- {unique_toolkit-0.5.47.dist-info → unique_toolkit-0.5.48.dist-info}/LICENSE +0 -0
- {unique_toolkit-0.5.47.dist-info → unique_toolkit-0.5.48.dist-info}/WHEEL +0 -0
@@ -173,7 +173,9 @@ class LanguageModelStreamResponseMessage(BaseModel):
|
|
173
173
|
model_config = model_config
|
174
174
|
|
175
175
|
id: str
|
176
|
-
previous_message_id:
|
176
|
+
previous_message_id: (
|
177
|
+
str | None
|
178
|
+
) # Stream response can return a null previous_message_id if an assisstant message is manually added
|
177
179
|
role: LanguageModelMessageRole
|
178
180
|
text: str
|
179
181
|
original_text: Optional[str] = None
|
@@ -244,7 +246,9 @@ class LanguageModelTool(BaseModel):
|
|
244
246
|
description="Name must adhere to the pattern ^[a-zA-Z_-]+$",
|
245
247
|
)
|
246
248
|
description: str
|
247
|
-
parameters:
|
249
|
+
parameters: (
|
250
|
+
LanguageModelToolParameters | dict
|
251
|
+
) # dict represents json schema dumped from pydantic
|
248
252
|
returns: LanguageModelToolParameterProperty | LanguageModelToolParameters | None = (
|
249
253
|
None
|
250
254
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.48
|
4
4
|
Summary:
|
5
5
|
License: Proprietary
|
6
6
|
Author: Martin Fadler
|
@@ -100,6 +100,9 @@ All notable changes to this project will be documented in this file.
|
|
100
100
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
101
101
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
102
102
|
|
103
|
+
## [0.5.48] - 2025-01-19
|
104
|
+
- Added the possibility define tool parameters with a json schema (Useful when generating tool parameters from a pydantic object)
|
105
|
+
|
103
106
|
## [0.5.47] - 2025-01-07
|
104
107
|
- Added a message builder to build language model messages conveniently without importing all different messages.
|
105
108
|
- Move tool_calls to assistant message as not needed anywhere else.
|
@@ -39,12 +39,12 @@ unique_toolkit/language_model/__init__.py,sha256=hgk5yiFF4SpIcE2QSoki9YknFxmcKnq
|
|
39
39
|
unique_toolkit/language_model/builder.py,sha256=nsRqWO_2dgFehK5CgtqR5aqXgYUU0QL6mR0lALPrQXM,1898
|
40
40
|
unique_toolkit/language_model/infos.py,sha256=NgoV05ausVWMqrYqgH6i3s7tYG7mejupROIF_bwEGZo,13050
|
41
41
|
unique_toolkit/language_model/prompt.py,sha256=JSawaLjQg3VR-E2fK8engFyJnNdk21zaO8pPIodzN4Q,3991
|
42
|
-
unique_toolkit/language_model/schemas.py,sha256=
|
42
|
+
unique_toolkit/language_model/schemas.py,sha256=DHGUWRITtYV1phwuc4MyOwIZA78hHxfw0C-g-iRVLBw,7198
|
43
43
|
unique_toolkit/language_model/service.py,sha256=brNCPRA0XxgqHi2rI5i2lyFCkUiw4MNMe1VaR3UgWmY,15500
|
44
44
|
unique_toolkit/language_model/utils.py,sha256=bPQ4l6_YO71w-zaIPanUUmtbXC1_hCvLK0tAFc3VCRc,1902
|
45
45
|
unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJs8FEZXcgQTNenw,1406
|
46
46
|
unique_toolkit/short_term_memory/service.py,sha256=Jd9P72-VvJy7hnqNrjmrmB5BHmsKuOpTiT0Jr-dBbsQ,1682
|
47
|
-
unique_toolkit-0.5.
|
48
|
-
unique_toolkit-0.5.
|
49
|
-
unique_toolkit-0.5.
|
50
|
-
unique_toolkit-0.5.
|
47
|
+
unique_toolkit-0.5.48.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
48
|
+
unique_toolkit-0.5.48.dist-info/METADATA,sha256=P27b6NvkO1GUEnYi486DsECbpXch7kjRrwo-j_e5HVA,15700
|
49
|
+
unique_toolkit-0.5.48.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
50
|
+
unique_toolkit-0.5.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|