unique_toolkit 0.5.53__py3-none-any.whl → 0.5.54__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/chat/schemas.py +10 -4
- {unique_toolkit-0.5.53.dist-info → unique_toolkit-0.5.54.dist-info}/METADATA +4 -1
- {unique_toolkit-0.5.53.dist-info → unique_toolkit-0.5.54.dist-info}/RECORD +5 -5
- {unique_toolkit-0.5.53.dist-info → unique_toolkit-0.5.54.dist-info}/LICENSE +0 -0
- {unique_toolkit-0.5.53.dist-info → unique_toolkit-0.5.54.dist-info}/WHEEL +0 -0
unique_toolkit/chat/schemas.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
from datetime import datetime
|
2
2
|
from enum import StrEnum
|
3
|
-
from typing import Optional
|
4
3
|
|
5
4
|
from humps import camelize
|
6
5
|
from pydantic import (
|
@@ -39,15 +38,22 @@ class ToolCall(BaseModel):
|
|
39
38
|
|
40
39
|
|
41
40
|
class ChatMessage(BaseModel):
|
41
|
+
# This model should strictly meets https://github.com/Unique-AG/monorepo/blob/master/node/apps/node-chat/src/public-api/2023-12-06/dtos/message/public-message.dto.ts
|
42
42
|
model_config = model_config
|
43
43
|
|
44
44
|
id: str | None = None
|
45
|
+
chat_id: str
|
45
46
|
object: str | None = None
|
46
|
-
content: str = Field(alias="text")
|
47
|
+
content: str | None = Field(default=None, alias="text")
|
48
|
+
original_content: str | None = Field(default=None, alias="originalText")
|
47
49
|
role: ChatMessageRole
|
48
|
-
|
49
|
-
|
50
|
+
gpt_request: list[dict] | None = None
|
51
|
+
tool_calls: list[ToolCall] | None = None
|
52
|
+
tool_call_id: str | None = None
|
50
53
|
debug_info: dict | None = {}
|
54
|
+
created_at: datetime | None = None
|
55
|
+
completed_at: datetime | None = None
|
56
|
+
updated_at: datetime | None = None
|
51
57
|
|
52
58
|
# TODO make sdk return role consistently in lowercase
|
53
59
|
# Currently needed as sdk returns role in uppercase
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unique_toolkit
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.54
|
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.54] - 2025-02-10
|
104
|
+
- Add `created_at`, `completed_at`, `updated_at` and `gpt_request` to `ChatMessage` schema.
|
105
|
+
|
103
106
|
## [0.5.53] - 2025-02-01
|
104
107
|
- Correct `MessageAssessment` schemas
|
105
108
|
|
@@ -11,7 +11,7 @@ unique_toolkit/app/performance/async_wrapper.py,sha256=yVVcRDkcdyfjsxro-N29SBvi-
|
|
11
11
|
unique_toolkit/app/schemas.py,sha256=6RY7Ex-B3pOnFILlitHEi9sqJvupbpdxlN9xt33qRsM,1571
|
12
12
|
unique_toolkit/app/verification.py,sha256=mffa6wm0i4hJbwzofePrkaia46xumMzECwQ0T3eKAx0,1929
|
13
13
|
unique_toolkit/chat/__init__.py,sha256=4xS-Mcv7Oqdhprw1JEqD3nwGFflla4R2o7RNJyA5Wek,537
|
14
|
-
unique_toolkit/chat/schemas.py,sha256=
|
14
|
+
unique_toolkit/chat/schemas.py,sha256=PJ9Am-RKxUEo6o1jQ_DV100rt8rZD59GhWTPRgZuDow,2665
|
15
15
|
unique_toolkit/chat/service.py,sha256=9sQbfwgb2GoUuDL3xoG-7P9oOEj-TAssZleXwSZ3HiY,28121
|
16
16
|
unique_toolkit/chat/state.py,sha256=Cjgwv_2vhDFbV69xxsn7SefhaoIAEqLx3ferdVFCnOg,1445
|
17
17
|
unique_toolkit/chat/utils.py,sha256=ihm-wQykBWhB4liR3LnwPVPt_qGW6ETq21Mw4HY0THE,854
|
@@ -44,7 +44,7 @@ unique_toolkit/language_model/service.py,sha256=m4B4YD4wxfU8HNo_stqbfnlKXziYBAwq
|
|
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.54.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
|
48
|
+
unique_toolkit-0.5.54.dist-info/METADATA,sha256=fBDEMTvpTOsZcFG_BLkmTj9tv3O7fVNY67Gr7BIxFwM,16475
|
49
|
+
unique_toolkit-0.5.54.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
50
|
+
unique_toolkit-0.5.54.dist-info/RECORD,,
|
File without changes
|
File without changes
|