unique_toolkit 1.14.1__py3-none-any.whl → 1.14.2__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/test_utilities/events.py +10 -8
- {unique_toolkit-1.14.1.dist-info → unique_toolkit-1.14.2.dist-info}/METADATA +4 -1
- {unique_toolkit-1.14.1.dist-info → unique_toolkit-1.14.2.dist-info}/RECORD +5 -5
- {unique_toolkit-1.14.1.dist-info → unique_toolkit-1.14.2.dist-info}/LICENSE +0 -0
- {unique_toolkit-1.14.1.dist-info → unique_toolkit-1.14.2.dist-info}/WHEEL +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import random
|
2
2
|
import string
|
3
3
|
from datetime import datetime
|
4
|
-
from typing import
|
4
|
+
from typing import Any
|
5
5
|
|
6
6
|
from unique_toolkit.app.schemas import (
|
7
7
|
BaseEvent,
|
@@ -12,11 +12,7 @@ from unique_toolkit.app.schemas import (
|
|
12
12
|
ChatEventUserMessage,
|
13
13
|
EventName,
|
14
14
|
)
|
15
|
-
|
16
|
-
if TYPE_CHECKING:
|
17
|
-
from typing import Any
|
18
|
-
|
19
|
-
from unique_toolkit.app.unique_settings import UniqueSettings
|
15
|
+
from unique_toolkit.app.unique_settings import UniqueSettings
|
20
16
|
|
21
17
|
|
22
18
|
def generated_numeric_string(length: int) -> str:
|
@@ -166,12 +162,18 @@ class TestEventFactory:
|
|
166
162
|
user_message_original_text: str | None = None,
|
167
163
|
assistant_message_created_at: datetime | None = None,
|
168
164
|
configuration: dict[str, Any] | None = None,
|
169
|
-
chat_id: str =
|
170
|
-
assistant_id: str =
|
165
|
+
chat_id: str | None = None,
|
166
|
+
assistant_id: str | None = None,
|
171
167
|
user_id: str | None = None,
|
172
168
|
company_id: str | None = None,
|
173
169
|
version: str = "1.0",
|
174
170
|
) -> ChatEvent:
|
171
|
+
if chat_id is None:
|
172
|
+
chat_id = generated_chat_id()
|
173
|
+
|
174
|
+
if assistant_id is None:
|
175
|
+
assistant_id = generated_assistant_id()
|
176
|
+
|
175
177
|
payload = self.get_chat_event_payload(
|
176
178
|
name=name,
|
177
179
|
description=description,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 1.14.
|
3
|
+
Version: 1.14.2
|
4
4
|
Summary:
|
5
5
|
License: Proprietary
|
6
6
|
Author: Cedric Klinkert
|
@@ -118,6 +118,9 @@ 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.2] - 2025-10-08
|
122
|
+
- Add utilities for testing and fix external import issue
|
123
|
+
|
121
124
|
## [1.14.1] - 2025-10-08
|
122
125
|
- Add utilities for testing
|
123
126
|
|
@@ -149,8 +149,8 @@ unique_toolkit/short_term_memory/schemas.py,sha256=OhfcXyF6ACdwIXW45sKzjtZX_gkcJ
|
|
149
149
|
unique_toolkit/short_term_memory/service.py,sha256=5PeVBu1ZCAfyDb2HLVvlmqSbyzBBuE9sI2o9Aajqjxg,8884
|
150
150
|
unique_toolkit/smart_rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
151
151
|
unique_toolkit/smart_rules/compile.py,sha256=Ozhh70qCn2yOzRWr9d8WmJeTo7AQurwd3tStgBMPFLA,1246
|
152
|
-
unique_toolkit/test_utilities/events.py,sha256=
|
153
|
-
unique_toolkit-1.14.
|
154
|
-
unique_toolkit-1.14.
|
155
|
-
unique_toolkit-1.14.
|
156
|
-
unique_toolkit-1.14.
|
152
|
+
unique_toolkit/test_utilities/events.py,sha256=_mwV2bs5iLjxS1ynDCjaIq-gjjKhXYCK-iy3dRfvO3g,6410
|
153
|
+
unique_toolkit-1.14.2.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
154
|
+
unique_toolkit-1.14.2.dist-info/METADATA,sha256=eQ2eUEf5ZJGmkVM0ktzovm6CoLh_uTTnhGVQlHlsmII,36378
|
155
|
+
unique_toolkit-1.14.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
156
|
+
unique_toolkit-1.14.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|