unique_sdk 0.10.29__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.
Files changed (43) hide show
  1. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/CHANGELOG.md +3 -0
  2. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/PKG-INFO +10 -7
  3. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/README.md +6 -6
  4. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/pyproject.toml +1 -1
  5. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_content.py +15 -2
  6. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/LICENSE +0 -0
  7. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/__init__.py +0 -0
  8. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_api_requestor.py +0 -0
  9. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_api_resource.py +0 -0
  10. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_api_version.py +0 -0
  11. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_error.py +0 -0
  12. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_http_client.py +0 -0
  13. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_list_object.py +0 -0
  14. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_object_classes.py +0 -0
  15. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_request_options.py +0 -0
  16. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_unique_object.py +0 -0
  17. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_unique_ql.py +0 -0
  18. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_unique_response.py +0 -0
  19. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_util.py +0 -0
  20. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_version.py +0 -0
  21. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/_webhook.py +0 -0
  22. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/__init__.py +0 -0
  23. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_acronyms.py +0 -0
  24. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_agentic_table.py +0 -0
  25. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_chat_completion.py +0 -0
  26. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_embedding.py +0 -0
  27. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_event.py +0 -0
  28. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_folder.py +0 -0
  29. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_integrated.py +0 -0
  30. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_mcp.py +0 -0
  31. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message.py +0 -0
  32. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message_assessment.py +0 -0
  33. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message_execution.py +0 -0
  34. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_message_log.py +0 -0
  35. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_search.py +0 -0
  36. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_search_string.py +0 -0
  37. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_short_term_memory.py +0 -0
  38. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/api_resources/_space.py +0 -0
  39. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/utils/chat_history.py +0 -0
  40. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/utils/chat_in_space.py +0 -0
  41. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/utils/file_io.py +0 -0
  42. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/unique_sdk/utils/sources.py +0 -0
  43. {unique_sdk-0.10.29 → unique_sdk-0.10.30}/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.30] - 2025-10-07
9
+ - Improve types for content get infos.
10
+
8
11
  ## [0.10.29] - 2025-10-06
9
12
  - Switch default model used from `GPT-3.5-turbo (0125)` to `GPT-4o (1120)`
10
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.29
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 Unique AI is a tailored solution for the financial industry, designed to increase productivity by automating manual workloads through AI and ChatGPT solutions.
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 Unique AI. It also enables verification of Webhook signatures to ensure the authenticity of incoming Webhook requests.
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 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.
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 ovrriden. (Available with release >.40)
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,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 Unique AI and receive a result. The `messages` attribute must follow the [OpenAI API format](https://platform.openai.com/docs/api-reference/chat).
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(
@@ -871,7 +871,7 @@ print(result)
871
871
 
872
872
  #### `unique_sdk.Search.create`
873
873
 
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.
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,9 @@ 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
+
1665
1668
  ## [0.10.29] - 2025-10-06
1666
1669
  - Switch default model used from `GPT-3.5-turbo (0125)` to `GPT-4o (1120)`
1667
1670
 
@@ -1,8 +1,8 @@
1
1
  # Unique Python SDK
2
2
 
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.
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 Unique AI. It also enables verification of Webhook signatures to ensure the authenticity of incoming Webhook requests.
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 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.
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 ovrriden. (Available with release >.40)
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,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 Unique AI and receive a result. The `messages` attribute must follow the [OpenAI API format](https://platform.openai.com/docs/api-reference/chat).
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(
@@ -853,7 +853,7 @@ print(result)
853
853
 
854
854
  #### `unique_sdk.Search.create`
855
855
 
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.
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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_sdk"
3
- version = "0.10.29"
3
+ version = "0.10.30"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -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.ContentInfoParams"],
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.ContentInfoParams"],
327
+ **params: Unpack["Content.ContentInfosParams"],
315
328
  ) -> "Content.PaginatedContentInfos":
316
329
  return cast(
317
330
  Content.PaginatedContentInfos,
File without changes