unique_sdk 0.10.28__tar.gz → 0.10.30__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.
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/CHANGELOG.md +6 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/PKG-INFO +14 -8
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/README.md +7 -7
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/pyproject.toml +1 -1
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_content.py +15 -2
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_search_string.py +0 -1
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/LICENSE +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/__init__.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_error.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_object_classes.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_util.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_version.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_agentic_table.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_chat_completion.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_folder.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_integrated.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message_execution.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message_log.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/api_resources/_space.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/utils/chat_in_space.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/utils/file_io.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-0.10.28 → unique_sdk-0.10.30}/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.30] - 2025-10-07
|
|
9
|
+
- Improve types for content get infos.
|
|
10
|
+
|
|
11
|
+
## [0.10.29] - 2025-10-06
|
|
12
|
+
- Switch default model used from `GPT-3.5-turbo (0125)` to `GPT-4o (1120)`
|
|
13
|
+
|
|
8
14
|
## [0.10.28] - 2025-10-03
|
|
9
15
|
- Use non blocking versions of `Space.get_latest_message` and `Message.retrieve` in `send_message_and_wait_for_completion`.
|
|
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.30
|
|
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 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 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
|
|
|
@@ -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 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
|
|
|
@@ -573,7 +573,7 @@ Move the file to a different folder. This can be done by specifying either the `
|
|
|
573
573
|
- `parentFolderPath` optional, allows moving the file to a different folder. Represents the path new folder for the file.
|
|
574
574
|
|
|
575
575
|
Metadata update:
|
|
576
|
-
- `metadata` optional, allows updating the metadata of the file. Default metadata can not be
|
|
576
|
+
- `metadata` optional, allows updating the metadata of the file. Default metadata can not be overridden. (Available with release >.40)
|
|
577
577
|
|
|
578
578
|
Example of updating the title of a file specified by its path.
|
|
579
579
|
|
|
@@ -821,13 +821,13 @@ 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 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(
|
|
828
828
|
company_id=company_id,
|
|
829
829
|
user_id=user_id
|
|
830
|
-
model="
|
|
830
|
+
model="AZURE_GPT_4o_2024_1120",
|
|
831
831
|
messages=[
|
|
832
832
|
{"role": "system", "content": "You are a helpful assistant."},
|
|
833
833
|
{"role": "user", "content": "Hello!"},
|
|
@@ -871,7 +871,7 @@ print(result)
|
|
|
871
871
|
|
|
872
872
|
#### `unique_sdk.Search.create`
|
|
873
873
|
|
|
874
|
-
Search the Unique
|
|
874
|
+
Search the 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.30] - 2025-10-07
|
|
1666
|
+
- Improve types for content get infos.
|
|
1667
|
+
|
|
1668
|
+
## [0.10.29] - 2025-10-06
|
|
1669
|
+
- Switch default model used from `GPT-3.5-turbo (0125)` to `GPT-4o (1120)`
|
|
1670
|
+
|
|
1665
1671
|
## [0.10.28] - 2025-10-03
|
|
1666
1672
|
- Use non blocking versions of `Space.get_latest_message` and `Message.retrieve` in `send_message_and_wait_for_completion`.
|
|
1667
1673
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Unique Python SDK
|
|
2
2
|
|
|
3
|
-
Unique
|
|
3
|
+
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 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
|
|
|
@@ -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 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
|
|
|
@@ -555,7 +555,7 @@ Move the file to a different folder. This can be done by specifying either the `
|
|
|
555
555
|
- `parentFolderPath` optional, allows moving the file to a different folder. Represents the path new folder for the file.
|
|
556
556
|
|
|
557
557
|
Metadata update:
|
|
558
|
-
- `metadata` optional, allows updating the metadata of the file. Default metadata can not be
|
|
558
|
+
- `metadata` optional, allows updating the metadata of the file. Default metadata can not be overridden. (Available with release >.40)
|
|
559
559
|
|
|
560
560
|
Example of updating the title of a file specified by its path.
|
|
561
561
|
|
|
@@ -803,13 +803,13 @@ 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 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(
|
|
810
810
|
company_id=company_id,
|
|
811
811
|
user_id=user_id
|
|
812
|
-
model="
|
|
812
|
+
model="AZURE_GPT_4o_2024_1120",
|
|
813
813
|
messages=[
|
|
814
814
|
{"role": "system", "content": "You are a helpful assistant."},
|
|
815
815
|
{"role": "user", "content": "Hello!"},
|
|
@@ -853,7 +853,7 @@ print(result)
|
|
|
853
853
|
|
|
854
854
|
#### `unique_sdk.Search.create`
|
|
855
855
|
|
|
856
|
-
Search the Unique
|
|
856
|
+
Search the 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
|
|
|
@@ -86,6 +86,19 @@ class Content(APIResource["Content"]):
|
|
|
86
86
|
skip: NotRequired[int | None]
|
|
87
87
|
take: NotRequired[int | None]
|
|
88
88
|
filePath: NotRequired[str | None]
|
|
89
|
+
contentId: NotRequired[str | None]
|
|
90
|
+
chatId: NotRequired[str | None]
|
|
91
|
+
|
|
92
|
+
class ContentInfosParams(TypedDict):
|
|
93
|
+
"""
|
|
94
|
+
Parameters for the content infos endpoint.
|
|
95
|
+
This is used to retrieve information about contents based on various filters.
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
metadataFilter: NotRequired[dict[str, Any] | None]
|
|
99
|
+
skip: NotRequired[int | None]
|
|
100
|
+
take: NotRequired[int | None]
|
|
101
|
+
parentId: NotRequired[str | None]
|
|
89
102
|
|
|
90
103
|
class CustomApiOptions(TypedDict):
|
|
91
104
|
apiIdentifier: str
|
|
@@ -293,7 +306,7 @@ class Content(APIResource["Content"]):
|
|
|
293
306
|
cls,
|
|
294
307
|
user_id: str,
|
|
295
308
|
company_id: str,
|
|
296
|
-
**params: Unpack["Content.
|
|
309
|
+
**params: Unpack["Content.ContentInfosParams"],
|
|
297
310
|
) -> "Content.PaginatedContentInfos":
|
|
298
311
|
return cast(
|
|
299
312
|
Content.PaginatedContentInfos,
|
|
@@ -311,7 +324,7 @@ class Content(APIResource["Content"]):
|
|
|
311
324
|
cls,
|
|
312
325
|
user_id: str,
|
|
313
326
|
company_id: str,
|
|
314
|
-
**params: Unpack["Content.
|
|
327
|
+
**params: Unpack["Content.ContentInfosParams"],
|
|
315
328
|
) -> "Content.PaginatedContentInfos":
|
|
316
329
|
return cast(
|
|
317
330
|
Content.PaginatedContentInfos,
|
|
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
|