unique_sdk 0.10.32__tar.gz → 0.10.33__tar.gz
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_sdk might be problematic. Click here for more details.
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/CHANGELOG.md +3 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/PKG-INFO +5 -5
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/README.md +1 -4
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/pyproject.toml +1 -1
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_message_execution.py +12 -10
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_message_log.py +9 -7
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/LICENSE +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/__init__.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_error.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_object_classes.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_util.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_version.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_agentic_table.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_chat_completion.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_content.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_folder.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_integrated.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_message.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_search_string.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/api_resources/_space.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/utils/chat_in_space.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/utils/file_io.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-0.10.32 → unique_sdk-0.10.33}/unique_sdk/utils/token.py +0 -0
|
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.10.33] - 2025-10-27
|
|
9
|
+
- Improve messagelog and message execution types.
|
|
10
|
+
|
|
8
11
|
## [0.10.32] - 2025-10-14
|
|
9
12
|
- Add function to stream to chat frontend.
|
|
10
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_sdk
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.33
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Fadler
|
|
@@ -890,10 +890,7 @@ msg_execution = unique_sdk.MessageExecution.create(
|
|
|
890
890
|
user_id=user_id,
|
|
891
891
|
company_id=company_id,
|
|
892
892
|
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
893
|
-
chatId="chat_nx21havszl1skchd7544oykh",
|
|
894
893
|
type="DEEP_RESEARCH",
|
|
895
|
-
secondsRemaining=None, # optional, number defining the seconds remaining
|
|
896
|
-
percentageCompleted=None, # optional, number defining the percentage completed
|
|
897
894
|
)
|
|
898
895
|
```
|
|
899
896
|
|
|
@@ -918,7 +915,7 @@ msg_execution = unique_sdk.MessageExecution.update(
|
|
|
918
915
|
user_id=user_id,
|
|
919
916
|
company_id=company_id,
|
|
920
917
|
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
921
|
-
status="COMPLETED", # one of: COMPLETED, FAILED
|
|
918
|
+
status="COMPLETED", # optional, one of: COMPLETED, FAILED - not specifying the status will have no effect over the status
|
|
922
919
|
secondsRemaining=55, # optional, number defining the seconds remaining
|
|
923
920
|
percentageCompleted=10, # optional, number defining the percentage completed
|
|
924
921
|
)
|
|
@@ -1769,6 +1766,9 @@ All notable changes to this project will be documented in this file.
|
|
|
1769
1766
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
1770
1767
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
1771
1768
|
|
|
1769
|
+
## [0.10.33] - 2025-10-27
|
|
1770
|
+
- Improve messagelog and message execution types.
|
|
1771
|
+
|
|
1772
1772
|
## [0.10.32] - 2025-10-14
|
|
1773
1773
|
- Add function to stream to chat frontend.
|
|
1774
1774
|
|
|
@@ -872,10 +872,7 @@ msg_execution = unique_sdk.MessageExecution.create(
|
|
|
872
872
|
user_id=user_id,
|
|
873
873
|
company_id=company_id,
|
|
874
874
|
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
875
|
-
chatId="chat_nx21havszl1skchd7544oykh",
|
|
876
875
|
type="DEEP_RESEARCH",
|
|
877
|
-
secondsRemaining=None, # optional, number defining the seconds remaining
|
|
878
|
-
percentageCompleted=None, # optional, number defining the percentage completed
|
|
879
876
|
)
|
|
880
877
|
```
|
|
881
878
|
|
|
@@ -900,7 +897,7 @@ msg_execution = unique_sdk.MessageExecution.update(
|
|
|
900
897
|
user_id=user_id,
|
|
901
898
|
company_id=company_id,
|
|
902
899
|
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
903
|
-
status="COMPLETED", # one of: COMPLETED, FAILED
|
|
900
|
+
status="COMPLETED", # optional, one of: COMPLETED, FAILED - not specifying the status will have no effect over the status
|
|
904
901
|
secondsRemaining=55, # optional, number defining the seconds remaining
|
|
905
902
|
percentageCompleted=10, # optional, number defining the percentage completed
|
|
906
903
|
)
|
|
@@ -8,16 +8,18 @@ class MessageExecution(APIResource["MessageExecution"]):
|
|
|
8
8
|
OBJECT_NAME: ClassVar[Literal["message_execution"]] = "message_execution"
|
|
9
9
|
RESOURCE_URL = "/message-execution"
|
|
10
10
|
|
|
11
|
+
TypeLiteral = Literal["DEEP_RESEARCH"]
|
|
12
|
+
StatusLiteral = Literal["PENDING", "RUNNING", "COMPLETED", "FAILED"]
|
|
13
|
+
# Only COMPLETED and FAILED statuses are allowed for update
|
|
14
|
+
UpdateStatusLiteral = Literal["COMPLETED", "FAILED"]
|
|
15
|
+
|
|
11
16
|
class CreateMessageExecutionParams(RequestOptions):
|
|
12
17
|
"""
|
|
13
18
|
Parameters for creating a message execution.
|
|
14
19
|
"""
|
|
15
20
|
|
|
16
21
|
messageId: str
|
|
17
|
-
|
|
18
|
-
type: Literal["DEEP_RESEARCH"]
|
|
19
|
-
secondsRemaining: NotRequired[int | None]
|
|
20
|
-
percentageCompleted: NotRequired[int | None]
|
|
22
|
+
type: "MessageExecution.TypeLiteral"
|
|
21
23
|
|
|
22
24
|
class GetMessageExecutionParams(RequestOptions):
|
|
23
25
|
"""
|
|
@@ -32,18 +34,18 @@ class MessageExecution(APIResource["MessageExecution"]):
|
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
messageId: str
|
|
35
|
-
status:
|
|
37
|
+
status: NotRequired["MessageExecution.UpdateStatusLiteral | None"]
|
|
36
38
|
secondsRemaining: NotRequired[int | None]
|
|
37
39
|
percentageCompleted: NotRequired[int | None]
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type: Literal["DEEP_RESEARCH"] = "DEEP_RESEARCH"
|
|
41
|
+
messageId: str
|
|
42
|
+
status: "MessageExecution.StatusLiteral"
|
|
43
|
+
type: "MessageExecution.TypeLiteral"
|
|
43
44
|
secondsRemaining: int | None
|
|
44
45
|
percentageCompleted: int | None
|
|
46
|
+
positionInQueue: int | None
|
|
45
47
|
createdAt: str
|
|
46
|
-
updatedAt: str
|
|
48
|
+
updatedAt: str
|
|
47
49
|
|
|
48
50
|
@classmethod
|
|
49
51
|
def create(
|
|
@@ -8,6 +8,8 @@ class MessageLog(APIResource["MessageLog"]):
|
|
|
8
8
|
OBJECT_NAME: ClassVar[Literal["message_log"]] = "message_log"
|
|
9
9
|
RESOURCE_URL = "/message-log"
|
|
10
10
|
|
|
11
|
+
StatusLiteral = Literal["RUNNING", "COMPLETED", "FAILED"]
|
|
12
|
+
|
|
11
13
|
class Reference(TypedDict):
|
|
12
14
|
name: str
|
|
13
15
|
url: str | None
|
|
@@ -23,7 +25,7 @@ class MessageLog(APIResource["MessageLog"]):
|
|
|
23
25
|
|
|
24
26
|
messageId: str
|
|
25
27
|
text: str
|
|
26
|
-
status:
|
|
28
|
+
status: "MessageLog.StatusLiteral"
|
|
27
29
|
order: int
|
|
28
30
|
details: NotRequired[dict | None]
|
|
29
31
|
uncitedReferences: NotRequired[dict | None]
|
|
@@ -35,21 +37,21 @@ class MessageLog(APIResource["MessageLog"]):
|
|
|
35
37
|
"""
|
|
36
38
|
|
|
37
39
|
text: NotRequired[str | None]
|
|
38
|
-
status: NotRequired[
|
|
40
|
+
status: NotRequired["MessageLog.StatusLiteral | None"]
|
|
39
41
|
order: NotRequired[int | None]
|
|
40
42
|
details: NotRequired[dict | None]
|
|
41
43
|
uncitedReferences: NotRequired[dict | None]
|
|
42
44
|
references: NotRequired[list["MessageLog.Reference"] | None]
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
messageId: str
|
|
46
|
-
status:
|
|
47
|
-
text: str
|
|
46
|
+
id: str
|
|
47
|
+
messageId: str
|
|
48
|
+
status: "MessageLog.StatusLiteral"
|
|
49
|
+
text: str
|
|
48
50
|
details: dict
|
|
49
51
|
uncitedReferences: dict
|
|
50
52
|
order: int
|
|
51
53
|
createdAt: str
|
|
52
|
-
updatedAt: str
|
|
54
|
+
updatedAt: str
|
|
53
55
|
|
|
54
56
|
@classmethod
|
|
55
57
|
def create(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|