unique_sdk 0.10.30__py3-none-any.whl → 0.10.31__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_sdk/api_resources/_message_log.py +1 -1
- {unique_sdk-0.10.30.dist-info → unique_sdk-0.10.31.dist-info}/METADATA +91 -1
- {unique_sdk-0.10.30.dist-info → unique_sdk-0.10.31.dist-info}/RECORD +5 -5
- {unique_sdk-0.10.30.dist-info → unique_sdk-0.10.31.dist-info}/LICENSE +0 -0
- {unique_sdk-0.10.30.dist-info → unique_sdk-0.10.31.dist-info}/WHEEL +0 -0
|
@@ -36,7 +36,7 @@ class MessageLog(APIResource["MessageLog"]):
|
|
|
36
36
|
|
|
37
37
|
text: NotRequired[str | None]
|
|
38
38
|
status: NotRequired[Literal["RUNNING", "COMPLETED", "FAILED"] | None]
|
|
39
|
-
order: int
|
|
39
|
+
order: NotRequired[int | None]
|
|
40
40
|
details: NotRequired[dict | None]
|
|
41
41
|
uncitedReferences: NotRequired[dict | None]
|
|
42
42
|
references: NotRequired[list["MessageLog.Reference"] | None]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_sdk
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.31
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Fadler
|
|
@@ -31,6 +31,8 @@ The Unique Python SDK provides access to the public API of Unique AI. It also en
|
|
|
31
31
|
5. [Available API Resources](#available-api-resources)
|
|
32
32
|
- [Content](#content)
|
|
33
33
|
- [Message](#message)
|
|
34
|
+
- [Message Log](#message-log)
|
|
35
|
+
- [Message Execution](#message-execution)
|
|
34
36
|
- [Chat Completion](#chat-completion)
|
|
35
37
|
- [Embeddings](#embeddings)
|
|
36
38
|
- [Acronyms](#acronyms)
|
|
@@ -246,6 +248,8 @@ unique_sdk.Message.modify(
|
|
|
246
248
|
|
|
247
249
|
- [Content](#content)
|
|
248
250
|
- [Message](#message)
|
|
251
|
+
- [Message Log](#message-log)
|
|
252
|
+
- [Message Execution](#message-execution)
|
|
249
253
|
- [Chat Completion](#chat-completion)
|
|
250
254
|
- [Embeddings](#embeddings)
|
|
251
255
|
- [Acronyms](#acronyms)
|
|
@@ -817,6 +821,89 @@ unique_sdk.Integrated.responses_stream(
|
|
|
817
821
|
|
|
818
822
|
**Warning:** Currently, the deletion of a chat message does not automatically sync with the user UI. Users must refresh the chat page to view the updated state. This issue will be addressed in a future update of our API.
|
|
819
823
|
|
|
824
|
+
### Message Log
|
|
825
|
+
|
|
826
|
+
#### `unique_sdk.MessageLog.create`
|
|
827
|
+
|
|
828
|
+
Create a message log for a provided `messageId`.
|
|
829
|
+
|
|
830
|
+
```python
|
|
831
|
+
msg_log = unique_sdk.MessageLog.create(
|
|
832
|
+
user_id=user_id,
|
|
833
|
+
company_id=company_id,
|
|
834
|
+
messageId="msg_a0jgnt1jrqv1d3uzr450waxw",
|
|
835
|
+
text="Create message log text",
|
|
836
|
+
order=1,
|
|
837
|
+
status="RUNNING", # one of "RUNNING", "COMPLETED", "FAILED"
|
|
838
|
+
details=None, # optional, details dictionary
|
|
839
|
+
uncitedReferences=None, # optional, references dictionary
|
|
840
|
+
references=None, # optional, list of references
|
|
841
|
+
)
|
|
842
|
+
```
|
|
843
|
+
|
|
844
|
+
#### `unique_sdk.MessageLog.update`
|
|
845
|
+
|
|
846
|
+
Update a message log for a provided `messageId`.
|
|
847
|
+
|
|
848
|
+
```python
|
|
849
|
+
msg_log = unique_sdk.MessageLog.update(
|
|
850
|
+
user_id=user_id,
|
|
851
|
+
company_id=company_id,
|
|
852
|
+
message_log_id="message_log_fd7z7gjljo1z2wu5g6l9q7r9",
|
|
853
|
+
text="Update a message log text", # optional
|
|
854
|
+
order=1, # optional
|
|
855
|
+
status="RUNNING", # one of "RUNNING", "COMPLETED", "FAILED"
|
|
856
|
+
details=None, # optional, details dictionary
|
|
857
|
+
uncitedReferences=None, # optional, references dictionary
|
|
858
|
+
references=None,
|
|
859
|
+
)
|
|
860
|
+
```
|
|
861
|
+
|
|
862
|
+
### Message Execution
|
|
863
|
+
|
|
864
|
+
#### `unique_sdk.MessageExecution.create`
|
|
865
|
+
|
|
866
|
+
Create a message execution for a provided `messageId` and `chatId`.
|
|
867
|
+
|
|
868
|
+
```python
|
|
869
|
+
msg_execution = unique_sdk.MessageExecution.create(
|
|
870
|
+
user_id=user_id,
|
|
871
|
+
company_id=company_id,
|
|
872
|
+
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
873
|
+
chatId="chat_nx21havszl1skchd7544oykh",
|
|
874
|
+
type="DEEP_RESEARCH"
|
|
875
|
+
secondsRemaining=None # optional, number defining the seconds remaining
|
|
876
|
+
percentageCompleted=None # optional, number defining the percentage completed
|
|
877
|
+
)
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
#### `unique_sdk.MessageExecution.get`
|
|
881
|
+
|
|
882
|
+
Get a message execution for a provided `messageId`.
|
|
883
|
+
|
|
884
|
+
```python
|
|
885
|
+
msg_execution = unique_sdk.MessageExecution.get(
|
|
886
|
+
user_id=user_id,
|
|
887
|
+
company_id=company_id,
|
|
888
|
+
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
889
|
+
)
|
|
890
|
+
```
|
|
891
|
+
|
|
892
|
+
#### `unique_sdk.MessageExecution.update`
|
|
893
|
+
|
|
894
|
+
Update a message execution for a provided `messageId`.
|
|
895
|
+
|
|
896
|
+
```python
|
|
897
|
+
msg_execution = unique_sdk.MessageExecution.update(
|
|
898
|
+
user_id=user_id,
|
|
899
|
+
company_id=company_id,
|
|
900
|
+
messageId="msg_a0jgnt1jrqv143uzr750waxw",
|
|
901
|
+
status="COMPLETED", # one of: COMPLETED, FAILED
|
|
902
|
+
secondsRemaining=55 # optional, number defining the seconds remaining
|
|
903
|
+
percentageCompleted=10 # optional, number defining the percentage completed
|
|
904
|
+
)
|
|
905
|
+
```
|
|
906
|
+
|
|
820
907
|
### Chat Completion
|
|
821
908
|
|
|
822
909
|
#### `unique_sdk.ChatCompletion.create`
|
|
@@ -1662,6 +1749,9 @@ All notable changes to this project will be documented in this file.
|
|
|
1662
1749
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
1663
1750
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
1664
1751
|
|
|
1752
|
+
## [0.10.31] - 2025-10-13
|
|
1753
|
+
- Add readme for message log and execution.
|
|
1754
|
+
|
|
1665
1755
|
## [0.10.30] - 2025-10-07
|
|
1666
1756
|
- Improve types for content get infos.
|
|
1667
1757
|
|
|
@@ -26,7 +26,7 @@ unique_sdk/api_resources/_mcp.py,sha256=zKh0dyn0QnkKk57N2zlGVN_GQoxEp5T2CS38vVm6
|
|
|
26
26
|
unique_sdk/api_resources/_message.py,sha256=gEDIzg3METZU2k7m69meAuf0IWmZxnYOjbBKPRMwPYE,7688
|
|
27
27
|
unique_sdk/api_resources/_message_assessment.py,sha256=SSfx6eW7zb_GKe8cFJzCqW-t-_eWEXxKP5cnIb0DhIc,2276
|
|
28
28
|
unique_sdk/api_resources/_message_execution.py,sha256=qQH9NS8sdWLr55Yzc8pvPpYdfpewtSh6fy2alJjEoZk,4444
|
|
29
|
-
unique_sdk/api_resources/_message_log.py,sha256
|
|
29
|
+
unique_sdk/api_resources/_message_log.py,sha256=-R8f_WDv7ug5PU4OPktlRlvKEPwsYPtfhf2oAc7zdww,3678
|
|
30
30
|
unique_sdk/api_resources/_search.py,sha256=GQItZKoGNOVZfkLLltBmsRZYBIreRKU0lGW8Kgpj1_Q,1959
|
|
31
31
|
unique_sdk/api_resources/_search_string.py,sha256=LZz2_QPZXV1NXucRR06dnDC2miK7J8XBY7dXX2xoDY4,1610
|
|
32
32
|
unique_sdk/api_resources/_short_term_memory.py,sha256=vPRN-Y0WPx74E6y-A3LocGc0TxJdzT-xGL66WzZwKRg,2820
|
|
@@ -36,7 +36,7 @@ unique_sdk/utils/chat_in_space.py,sha256=cdjETBLnjv-OE8qsQpm626ks5yBdfQG_KBeG0WI
|
|
|
36
36
|
unique_sdk/utils/file_io.py,sha256=sJS-dJLjogG65mLukDO9pGDpKVTP4LhIgiZASnCvjNI,4330
|
|
37
37
|
unique_sdk/utils/sources.py,sha256=DoxxhMLcLhmDfNarjXa41H4JD2GSSDywr71hiC-4pYc,4952
|
|
38
38
|
unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
|
|
39
|
-
unique_sdk-0.10.
|
|
40
|
-
unique_sdk-0.10.
|
|
41
|
-
unique_sdk-0.10.
|
|
42
|
-
unique_sdk-0.10.
|
|
39
|
+
unique_sdk-0.10.31.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
|
|
40
|
+
unique_sdk-0.10.31.dist-info/METADATA,sha256=7iQ373jDw7EOVisMDJfLbbC-88u52MkElCwkyETZC7s,60911
|
|
41
|
+
unique_sdk-0.10.31.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
42
|
+
unique_sdk-0.10.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|