unique_sdk 0.10.26__tar.gz → 0.10.28__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.26 → unique_sdk-0.10.28}/CHANGELOG.md +6 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/PKG-INFO +13 -7
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/README.md +6 -6
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/pyproject.toml +1 -1
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/utils/chat_in_space.py +2 -2
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/LICENSE +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/__init__.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_error.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_object_classes.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_util.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_version.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_agentic_table.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_chat_completion.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_content.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_folder.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_integrated.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_message.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_message_execution.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_message_log.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_search_string.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/api_resources/_space.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/utils/file_io.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-0.10.26 → unique_sdk-0.10.28}/unique_sdk/utils/token.py +0 -0
|
@@ -5,6 +5,12 @@ 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.28] - 2025-10-03
|
|
9
|
+
- Use non blocking versions of `Space.get_latest_message` and `Message.retrieve` in `send_message_and_wait_for_completion`.
|
|
10
|
+
|
|
11
|
+
## [0.10.27] - 2025-09-24
|
|
12
|
+
- Improve readme to use Unique AI.
|
|
13
|
+
|
|
8
14
|
## [0.10.26] - 2025-09-22
|
|
9
15
|
- Improve typing.
|
|
10
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_sdk
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.28
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Fadler
|
|
@@ -18,9 +18,9 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
|
|
19
19
|
# Unique Python SDK
|
|
20
20
|
|
|
21
|
-
Unique
|
|
21
|
+
Unique Unique AI is a tailored solution for the financial industry, designed to increase productivity by automating manual workloads through AI and ChatGPT solutions.
|
|
22
22
|
|
|
23
|
-
The Unique Python SDK provides access to the public API of Unique
|
|
23
|
+
The Unique Python SDK provides access to the public API of Unique Unique AI. It also enables verification of Webhook signatures to ensure the authenticity of incoming Webhook requests.
|
|
24
24
|
|
|
25
25
|
## Table of Contents
|
|
26
26
|
|
|
@@ -112,7 +112,7 @@ print(messages.data[0].text)
|
|
|
112
112
|
|
|
113
113
|
## Webhook Triggers
|
|
114
114
|
|
|
115
|
-
A core functionality of
|
|
115
|
+
A core functionality of Unique AI is the ability for users to engage in an interactive chat feature. SDK developers can hook into this chat to provide new functionalities.
|
|
116
116
|
|
|
117
117
|
Your App (refer to `app-id` in [Requirements](#requirements)) must be subscribed to each individual Unique event in order to receive a webhook.
|
|
118
118
|
|
|
@@ -226,7 +226,7 @@ This trigger can be used in combination with assistants marked as `external`. Th
|
|
|
226
226
|
}
|
|
227
227
|
```
|
|
228
228
|
|
|
229
|
-
This Webhook is triggered when the Unique
|
|
229
|
+
This Webhook is triggered when the Unique Unique AI AI selects an external module as the best response to a user message. The module must be marked as `external` and available for the assistant used in the chat to be selected by the AI.
|
|
230
230
|
|
|
231
231
|
Unique's UI will create an empty `assistantMessage` below the user message and update this message with status updates.
|
|
232
232
|
|
|
@@ -821,7 +821,7 @@ unique_sdk.Integrated.responses_stream(
|
|
|
821
821
|
|
|
822
822
|
#### `unique_sdk.ChatCompletion.create`
|
|
823
823
|
|
|
824
|
-
Send a prompt to an AI model supported by Unique
|
|
824
|
+
Send a prompt to an AI model supported by Unique Unique AI and receive a result. The `messages` attribute must follow the [OpenAI API format](https://platform.openai.com/docs/api-reference/chat).
|
|
825
825
|
|
|
826
826
|
```python
|
|
827
827
|
chat_completion = unique_sdk.ChatCompletion.create(
|
|
@@ -871,7 +871,7 @@ print(result)
|
|
|
871
871
|
|
|
872
872
|
#### `unique_sdk.Search.create`
|
|
873
873
|
|
|
874
|
-
Search the Unique
|
|
874
|
+
Search the Unique Unique AI Knowledge database for RAG (Retrieval-Augmented Generation). The API supports vector search and a `searchType` that combines vector and full-text search, enhancing the precision of search results.
|
|
875
875
|
|
|
876
876
|
These are the options are available for `searchType`:
|
|
877
877
|
|
|
@@ -1662,6 +1662,12 @@ All notable changes to this project will be documented in this file.
|
|
|
1662
1662
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
1663
1663
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
1664
1664
|
|
|
1665
|
+
## [0.10.28] - 2025-10-03
|
|
1666
|
+
- Use non blocking versions of `Space.get_latest_message` and `Message.retrieve` in `send_message_and_wait_for_completion`.
|
|
1667
|
+
|
|
1668
|
+
## [0.10.27] - 2025-09-24
|
|
1669
|
+
- Improve readme to use Unique AI.
|
|
1670
|
+
|
|
1665
1671
|
## [0.10.26] - 2025-09-22
|
|
1666
1672
|
- Improve typing.
|
|
1667
1673
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Unique Python SDK
|
|
2
2
|
|
|
3
|
-
Unique
|
|
3
|
+
Unique Unique AI is a tailored solution for the financial industry, designed to increase productivity by automating manual workloads through AI and ChatGPT solutions.
|
|
4
4
|
|
|
5
|
-
The Unique Python SDK provides access to the public API of Unique
|
|
5
|
+
The Unique Python SDK provides access to the public API of Unique Unique AI. It also enables verification of Webhook signatures to ensure the authenticity of incoming Webhook requests.
|
|
6
6
|
|
|
7
7
|
## Table of Contents
|
|
8
8
|
|
|
@@ -94,7 +94,7 @@ print(messages.data[0].text)
|
|
|
94
94
|
|
|
95
95
|
## Webhook Triggers
|
|
96
96
|
|
|
97
|
-
A core functionality of
|
|
97
|
+
A core functionality of Unique AI is the ability for users to engage in an interactive chat feature. SDK developers can hook into this chat to provide new functionalities.
|
|
98
98
|
|
|
99
99
|
Your App (refer to `app-id` in [Requirements](#requirements)) must be subscribed to each individual Unique event in order to receive a webhook.
|
|
100
100
|
|
|
@@ -208,7 +208,7 @@ This trigger can be used in combination with assistants marked as `external`. Th
|
|
|
208
208
|
}
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
This Webhook is triggered when the Unique
|
|
211
|
+
This Webhook is triggered when the Unique Unique AI AI selects an external module as the best response to a user message. The module must be marked as `external` and available for the assistant used in the chat to be selected by the AI.
|
|
212
212
|
|
|
213
213
|
Unique's UI will create an empty `assistantMessage` below the user message and update this message with status updates.
|
|
214
214
|
|
|
@@ -803,7 +803,7 @@ unique_sdk.Integrated.responses_stream(
|
|
|
803
803
|
|
|
804
804
|
#### `unique_sdk.ChatCompletion.create`
|
|
805
805
|
|
|
806
|
-
Send a prompt to an AI model supported by Unique
|
|
806
|
+
Send a prompt to an AI model supported by Unique Unique AI and receive a result. The `messages` attribute must follow the [OpenAI API format](https://platform.openai.com/docs/api-reference/chat).
|
|
807
807
|
|
|
808
808
|
```python
|
|
809
809
|
chat_completion = unique_sdk.ChatCompletion.create(
|
|
@@ -853,7 +853,7 @@ print(result)
|
|
|
853
853
|
|
|
854
854
|
#### `unique_sdk.Search.create`
|
|
855
855
|
|
|
856
|
-
Search the Unique
|
|
856
|
+
Search the Unique Unique AI Knowledge database for RAG (Retrieval-Augmented Generation). The API supports vector search and a `searchType` that combines vector and full-text search, enhancing the precision of search results.
|
|
857
857
|
|
|
858
858
|
These are the options are available for `searchType`:
|
|
859
859
|
|
|
@@ -49,10 +49,10 @@ async def send_message_and_wait_for_completion(
|
|
|
49
49
|
|
|
50
50
|
max_attempts = int(max_wait // poll_interval)
|
|
51
51
|
for _ in range(max_attempts):
|
|
52
|
-
answer = Space.
|
|
52
|
+
answer = await Space.get_latest_message_async(user_id, company_id, chat_id)
|
|
53
53
|
if answer.get(stop_condition) is not None:
|
|
54
54
|
try:
|
|
55
|
-
user_message = Message.
|
|
55
|
+
user_message = await Message.retrieve_async(
|
|
56
56
|
user_id, company_id, message_id, chatId=chat_id
|
|
57
57
|
)
|
|
58
58
|
debug_info = user_message.get("debugInfo")
|
|
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
|
|
File without changes
|