unique_sdk 0.10.49__tar.gz → 0.10.60__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.49 → unique_sdk-0.10.60}/CHANGELOG.md +34 -0
- unique_sdk-0.10.60/PKG-INFO +351 -0
- unique_sdk-0.10.60/README.md +4 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/pyproject.toml +1 -1
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_agentic_table.py +32 -18
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_content.py +5 -2
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_folder.py +1 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_group.py +60 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_integrated.py +1 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_message.py +10 -11
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_space.py +122 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_user.py +58 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/utils/chat_in_space.py +22 -21
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/utils/file_io.py +33 -0
- unique_sdk-0.10.49/PKG-INFO +0 -2449
- unique_sdk-0.10.49/README.md +0 -2136
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/LICENSE +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/__init__.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_error.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_object_classes.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_util.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_version.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_chat_completion.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_llm_models.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_message_execution.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_message_log.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_search_string.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-0.10.49 → unique_sdk-0.10.60}/unique_sdk/utils/token.py +0 -0
|
@@ -5,6 +5,40 @@ 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.60] - 2025-12-19
|
|
9
|
+
- Expose startedStreamingAt and gptRequest fields
|
|
10
|
+
|
|
11
|
+
## [0.10.59] - 2025-12-19
|
|
12
|
+
- Add context field to MagicTableSheetIngestParams.
|
|
13
|
+
- Add rowMetadata and context fields to MagicTableRow.
|
|
14
|
+
|
|
15
|
+
## [0.10.58] - 2025-12-16
|
|
16
|
+
- chore(deps): Bump urllib3 from 2.5.0 to 2.6.2
|
|
17
|
+
|
|
18
|
+
## [0.10.57] - 2025-12-06
|
|
19
|
+
- Add description field on create chat completions params.
|
|
20
|
+
|
|
21
|
+
## [0.10.56] - 2025-12-05
|
|
22
|
+
- Add description field on create chat completions params.
|
|
23
|
+
|
|
24
|
+
## [0.10.55] - 2025-12-04
|
|
25
|
+
- Allow configuring inherit access on folder creation.
|
|
26
|
+
|
|
27
|
+
## [0.10.54] - 2025-12-02
|
|
28
|
+
- Add types for Agentic Table api methods.
|
|
29
|
+
|
|
30
|
+
## [0.10.53] - 2025-12-01
|
|
31
|
+
- Improve OpenAI Proxy docs https://unique-ag.github.io/ai/unique-sdk/
|
|
32
|
+
|
|
33
|
+
## [0.10.52] - 2025-11-21
|
|
34
|
+
- Centralized docs to https://unique-ag.github.io/ai/unique-sdk/
|
|
35
|
+
|
|
36
|
+
## [0.10.51] - 2025-11-21
|
|
37
|
+
- Add function to get a space.
|
|
38
|
+
|
|
39
|
+
## [0.10.50] - 2025-11-21
|
|
40
|
+
- Allow updating the configuration of a user and group.
|
|
41
|
+
|
|
8
42
|
## [0.10.49] - 2025-11-21
|
|
9
43
|
- Add get folder by scope id function
|
|
10
44
|
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: unique_sdk
|
|
3
|
+
Version: 0.10.60
|
|
4
|
+
Summary:
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: Martin Fadler
|
|
7
|
+
Author-email: martin.fadler@unique.ch
|
|
8
|
+
Requires-Python: >=3.11,<4.0
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Provides-Extra: openai
|
|
14
|
+
Requires-Dist: openai (>=1.105.0,<2.0.0) ; extra == "openai"
|
|
15
|
+
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
16
|
+
Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# Unique Python SDK
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Visit: [https://unique-ag.github.io/](https://unique-ag.github.io/ai/unique-sdk/) for the documentation.
|
|
23
|
+
|
|
24
|
+
# Changelog
|
|
25
|
+
|
|
26
|
+
All notable changes to this project will be documented in this file.
|
|
27
|
+
|
|
28
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
29
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
30
|
+
|
|
31
|
+
## [0.10.60] - 2025-12-19
|
|
32
|
+
- Expose startedStreamingAt and gptRequest fields
|
|
33
|
+
|
|
34
|
+
## [0.10.59] - 2025-12-19
|
|
35
|
+
- Add context field to MagicTableSheetIngestParams.
|
|
36
|
+
- Add rowMetadata and context fields to MagicTableRow.
|
|
37
|
+
|
|
38
|
+
## [0.10.58] - 2025-12-16
|
|
39
|
+
- chore(deps): Bump urllib3 from 2.5.0 to 2.6.2
|
|
40
|
+
|
|
41
|
+
## [0.10.57] - 2025-12-06
|
|
42
|
+
- Add description field on create chat completions params.
|
|
43
|
+
|
|
44
|
+
## [0.10.56] - 2025-12-05
|
|
45
|
+
- Add description field on create chat completions params.
|
|
46
|
+
|
|
47
|
+
## [0.10.55] - 2025-12-04
|
|
48
|
+
- Allow configuring inherit access on folder creation.
|
|
49
|
+
|
|
50
|
+
## [0.10.54] - 2025-12-02
|
|
51
|
+
- Add types for Agentic Table api methods.
|
|
52
|
+
|
|
53
|
+
## [0.10.53] - 2025-12-01
|
|
54
|
+
- Improve OpenAI Proxy docs https://unique-ag.github.io/ai/unique-sdk/
|
|
55
|
+
|
|
56
|
+
## [0.10.52] - 2025-11-21
|
|
57
|
+
- Centralized docs to https://unique-ag.github.io/ai/unique-sdk/
|
|
58
|
+
|
|
59
|
+
## [0.10.51] - 2025-11-21
|
|
60
|
+
- Add function to get a space.
|
|
61
|
+
|
|
62
|
+
## [0.10.50] - 2025-11-21
|
|
63
|
+
- Allow updating the configuration of a user and group.
|
|
64
|
+
|
|
65
|
+
## [0.10.49] - 2025-11-21
|
|
66
|
+
- Add get folder by scope id function
|
|
67
|
+
|
|
68
|
+
## [0.10.48] - 2025-11-20
|
|
69
|
+
- Update Agentic Table LogDetail and LogEntry types.
|
|
70
|
+
|
|
71
|
+
## [0.10.47] - 2025-11-19
|
|
72
|
+
- Add expired/s at fields on content search result.
|
|
73
|
+
|
|
74
|
+
## [0.10.46] - 2025-11-18
|
|
75
|
+
- chat_against_file function allows now a should_delete_chat flag.
|
|
76
|
+
|
|
77
|
+
## [0.10.45] - 2025-11-18
|
|
78
|
+
- Create group and manage users functions.
|
|
79
|
+
|
|
80
|
+
## [0.10.44] - 2025-11-18
|
|
81
|
+
- add function to get all messages in a chat.
|
|
82
|
+
|
|
83
|
+
## [0.10.43] - 2025-11-14
|
|
84
|
+
- Add get, delete and update groups functions.
|
|
85
|
+
|
|
86
|
+
## [0.10.42] - 2025-11-14
|
|
87
|
+
- Add get_users function.
|
|
88
|
+
|
|
89
|
+
## [0.10.41] - 2025-11-13
|
|
90
|
+
- Add create_message and get_latest_message.
|
|
91
|
+
|
|
92
|
+
## [0.10.40] - 2025-11-10
|
|
93
|
+
- Don't send description if not defined.
|
|
94
|
+
|
|
95
|
+
## [0.10.39] - 2025-11-07
|
|
96
|
+
- Add function to get llm models
|
|
97
|
+
|
|
98
|
+
## [0.10.38] - 2025-11-06
|
|
99
|
+
- Add description property to Reference and Content.
|
|
100
|
+
|
|
101
|
+
## [0.10.37] - 2025-11-04
|
|
102
|
+
- Introduce local integration tests for Content API Resource
|
|
103
|
+
|
|
104
|
+
## [0.10.36] - 2025-11-04
|
|
105
|
+
- Introduce local integration tests for Folder API Resource
|
|
106
|
+
|
|
107
|
+
## [0.10.35] - 2025-11-04
|
|
108
|
+
- Inmprove folder get infos types.
|
|
109
|
+
|
|
110
|
+
## [0.10.34] - 2025-10-29
|
|
111
|
+
- Add documentation for agentic table.
|
|
112
|
+
|
|
113
|
+
## [0.10.33] - 2025-10-27
|
|
114
|
+
- Improve messagelog and message execution types.
|
|
115
|
+
|
|
116
|
+
## [0.10.32] - 2025-10-14
|
|
117
|
+
- Add function to stream to chat frontend.
|
|
118
|
+
|
|
119
|
+
## [0.10.31] - 2025-10-13
|
|
120
|
+
- Add readme for message log and execution.
|
|
121
|
+
|
|
122
|
+
## [0.10.30] - 2025-10-07
|
|
123
|
+
- Improve types for content get infos.
|
|
124
|
+
|
|
125
|
+
## [0.10.29] - 2025-10-06
|
|
126
|
+
- Switch default model used from `GPT-3.5-turbo (0125)` to `GPT-4o (1120)`
|
|
127
|
+
|
|
128
|
+
## [0.10.28] - 2025-10-03
|
|
129
|
+
- Use non blocking versions of `Space.get_latest_message` and `Message.retrieve` in `send_message_and_wait_for_completion`.
|
|
130
|
+
|
|
131
|
+
## [0.10.27] - 2025-09-24
|
|
132
|
+
- Improve readme to use Unique AI.
|
|
133
|
+
|
|
134
|
+
## [0.10.26] - 2025-09-22
|
|
135
|
+
- Improve typing.
|
|
136
|
+
|
|
137
|
+
## [0.10.25] - 2025-09-18
|
|
138
|
+
- Add support for udpate and delete files by file or folder path.
|
|
139
|
+
|
|
140
|
+
## [0.10.24] - 2025-09-17
|
|
141
|
+
- Add function to update a folder.
|
|
142
|
+
|
|
143
|
+
## [0.10.23] - 2025-09-12
|
|
144
|
+
- Revert to using default reasoning effort.
|
|
145
|
+
|
|
146
|
+
## [0.10.22] - 2025-09-12
|
|
147
|
+
- Add support for metadata update of a file.
|
|
148
|
+
|
|
149
|
+
## [0.10.21] - 2025-09-04
|
|
150
|
+
- Update Chat Completions API types and add support for reasoning effort.
|
|
151
|
+
|
|
152
|
+
## [0.10.20] - 2025-09-04
|
|
153
|
+
- Update Responses API types
|
|
154
|
+
|
|
155
|
+
## [0.10.19] - 2025-09-02
|
|
156
|
+
- Improve `send_message_and_wait_for_completion`:
|
|
157
|
+
- Add option to select stop_condition `["stoppedStreamingAt", "completedAt"]`.
|
|
158
|
+
- Load `debugInfo` from `last_user_message` for better developer experience.
|
|
159
|
+
|
|
160
|
+
## [0.10.18] - 2025-09-02
|
|
161
|
+
- Temporarily remove support for update and delete files by filePath.
|
|
162
|
+
|
|
163
|
+
## [0.10.17] - 2025-09-01
|
|
164
|
+
- Add function to update a file
|
|
165
|
+
|
|
166
|
+
## [0.10.16] - 2025-08-31
|
|
167
|
+
- Add function to delete a content.
|
|
168
|
+
|
|
169
|
+
## [0.10.15] - 2025-08-28
|
|
170
|
+
- Add default values for message log types
|
|
171
|
+
|
|
172
|
+
## [0.10.14] - 2025-08-28
|
|
173
|
+
- Add function to delete folders and files recursively
|
|
174
|
+
|
|
175
|
+
## [0.10.13] - 2025-08-24
|
|
176
|
+
- Add functions to create, get and update a message eecution and create and update a message log.
|
|
177
|
+
|
|
178
|
+
## [0.10.12] - 2025-08-24
|
|
179
|
+
- Switch to using Content get info deprecated endpoint to make sure we support older release versions.
|
|
180
|
+
|
|
181
|
+
## [0.10.11] - 2025-08-24
|
|
182
|
+
- Enforce usage of ruff using pipeline
|
|
183
|
+
|
|
184
|
+
## [0.10.10] - 2025-08-18
|
|
185
|
+
- Fix wrong name of references in `Space.Message`.
|
|
186
|
+
- Fix wrong name of assessment in `Space.Message`.
|
|
187
|
+
- Remove default values for `text`, `originalText` and `debugInfo` in `Space.Message` as these don't have an effect.
|
|
188
|
+
|
|
189
|
+
## [0.10.9] - 2025-08-15
|
|
190
|
+
- Add script to wait for content ingestion finished.
|
|
191
|
+
|
|
192
|
+
## [0.10.8] - 2025-08-13
|
|
193
|
+
- Add support for Agentic Table.
|
|
194
|
+
|
|
195
|
+
## [0.10.7] - 2025-08-13
|
|
196
|
+
- Make metadata optional when uploading a file.
|
|
197
|
+
|
|
198
|
+
## [0.10.6] - 2025-08-06
|
|
199
|
+
- Make tools optional for running an agent.
|
|
200
|
+
|
|
201
|
+
## [0.10.5] - 2025-08-06
|
|
202
|
+
- Get paginated files and folders info.
|
|
203
|
+
|
|
204
|
+
## [0.10.4] - 2025-08-05
|
|
205
|
+
- Add support for reasoning API with streaming within a chat.
|
|
206
|
+
|
|
207
|
+
## [0.10.3] - 2025-08-05
|
|
208
|
+
- Expose scoreThreshold param for search.
|
|
209
|
+
|
|
210
|
+
## [0.10.2] - 2025-08-05
|
|
211
|
+
- Add script to chat against file.
|
|
212
|
+
|
|
213
|
+
## [0.10.1] - 2025-08-05
|
|
214
|
+
- Allow deletion of a space chat.
|
|
215
|
+
|
|
216
|
+
## [0.10.0] - 2025-08-04
|
|
217
|
+
- Add MCP support
|
|
218
|
+
|
|
219
|
+
## [0.9.42] - 2025-07-31
|
|
220
|
+
- Fix wrong chat in space example.
|
|
221
|
+
|
|
222
|
+
## [0.9.41] - 2025-07-31
|
|
223
|
+
- Fix double-slash error in open ai proxy script.
|
|
224
|
+
|
|
225
|
+
## [0.9.40] - 2025-07-22
|
|
226
|
+
- Fixed bug where get requests send body with the request. This is not allowed by WAF policies.
|
|
227
|
+
|
|
228
|
+
## [0.9.39] - 2025-07-18
|
|
229
|
+
- Add script to chat in a space.
|
|
230
|
+
|
|
231
|
+
## [0.9.38] - 2025-07-18
|
|
232
|
+
- [Experimental] Add support for Unique OpenAI proxy. You can now use the OpenAI SDK directly through Unique. Checkout how to do this and a few examples here: `tutorials/unique_basics/sdk_examples/openai_scripts.py`.
|
|
233
|
+
|
|
234
|
+
## [0.9.37] - 2025-07-10
|
|
235
|
+
- Add `sheetName` property to the `MagicTableSheetIngestParams` object used by function that ingests magic table sheets.
|
|
236
|
+
|
|
237
|
+
## [0.9.36] - 2025-06-23
|
|
238
|
+
- Allow passing a user id when creating chat completions. This is optional and it does not impact the current behaviour.
|
|
239
|
+
|
|
240
|
+
## [0.9.35] - 2025-06-18
|
|
241
|
+
- Allow scope access updates (add/remove) on folder based on scope id or path.
|
|
242
|
+
|
|
243
|
+
## [0.9.34] - 2025-06-17
|
|
244
|
+
- Allow ingestion config updates on folder based on scope id or path.
|
|
245
|
+
|
|
246
|
+
## [0.9.33] - 2025-06-11
|
|
247
|
+
- Add function to get a folder by id or by path.
|
|
248
|
+
|
|
249
|
+
## [0.9.32] - 2025-06-11
|
|
250
|
+
- Add function to ingest magic table sheets.
|
|
251
|
+
|
|
252
|
+
## [0.9.31] - 2025-05-21
|
|
253
|
+
- Add function to update folder access (add or remove).
|
|
254
|
+
|
|
255
|
+
## [0.9.30] - 2025-05-21
|
|
256
|
+
- Add function to update folder ingestion config.
|
|
257
|
+
|
|
258
|
+
## [0.9.29] - 2025-05-20
|
|
259
|
+
- Add function to create folder paths if they do not exist.
|
|
260
|
+
|
|
261
|
+
## [0.9.28] - 2025-05-20
|
|
262
|
+
- Add function to search content info. This also allows filtering content info by metadata info.
|
|
263
|
+
|
|
264
|
+
## [0.9.27] - 2025-05-14
|
|
265
|
+
- Add the possibility to specify metadata when creating or updating a Content.
|
|
266
|
+
|
|
267
|
+
## [0.9.26] - 2025-05-13
|
|
268
|
+
- Add the possibility to specify ingestionConfig when creating or updating a Content.
|
|
269
|
+
|
|
270
|
+
## [0.9.25] - 2025-05-02
|
|
271
|
+
- Fixed typos in `README.md`, including incorrect `sdk.utils` imports and code example errors.
|
|
272
|
+
|
|
273
|
+
## [0.9.24] - 2025-04-23
|
|
274
|
+
- Make `chatId` property in `Search.CreateParams` optional
|
|
275
|
+
|
|
276
|
+
## [0.9.23] - 2025-03-25
|
|
277
|
+
- Define programming language classifier explicitly for python 3.11
|
|
278
|
+
|
|
279
|
+
## [0.9.22] - 2025-02-25
|
|
280
|
+
- update the retry_on_error to only `APIError` and `APIConnectionError` update the `resp["error"]` to be `resp.get("error")` to avoid key error
|
|
281
|
+
|
|
282
|
+
## [0.9.21] - 2025-02-21
|
|
283
|
+
- Add title parameter and change labels in `MessageAssessment`
|
|
284
|
+
|
|
285
|
+
## [0.9.20] - 2025-02-01
|
|
286
|
+
- Add url parameter to `MessageAssessment.create_async` and `MessageAssessment.modify_async`
|
|
287
|
+
|
|
288
|
+
## [0.9.19] - 2025-01-31
|
|
289
|
+
- Add `MessageAssessment` resource
|
|
290
|
+
|
|
291
|
+
## [0.9.18] - 2025-01-22
|
|
292
|
+
- Removed `Invalid response body from API` from `retry_dict` as it's our own artificail error.
|
|
293
|
+
|
|
294
|
+
## [0.9.17] - 2025-01-03
|
|
295
|
+
- BREAKING CHANGE!! Removed unused `id` from `ShortTermMemory` create and find methods.
|
|
296
|
+
|
|
297
|
+
## [0.9.16] - 2024-12-19
|
|
298
|
+
- Corrected return type of `Search.create` and `Search.create_async` to `List[Search]`
|
|
299
|
+
- Retry on `Connection aborted` error
|
|
300
|
+
|
|
301
|
+
## [0.9.15] - 2024-12-06
|
|
302
|
+
- Add `Internal server error` and `You can retry your request` to the retry logic
|
|
303
|
+
|
|
304
|
+
## [0.9.14] - 2024-12-06
|
|
305
|
+
- Add `contentIds` to `Search.create` and `Search.create_async`
|
|
306
|
+
|
|
307
|
+
## [0.9.13] - 2024-10-23
|
|
308
|
+
- Add retry for `5xx` errors, add additional error message.
|
|
309
|
+
|
|
310
|
+
## [0.9.12] - 2024-11-21
|
|
311
|
+
- Include original error message in returned exceptions
|
|
312
|
+
|
|
313
|
+
## [0.9.11] - 2024-11-18
|
|
314
|
+
- Add `ingestionConfig` to `UpsertParams.Input` parameters
|
|
315
|
+
|
|
316
|
+
## [0.9.10] - 2024-10-23
|
|
317
|
+
- Remove `temperature` parameter from `Integrated.chat_stream_completion`, `Integrated.chat_stream_completion_async`, `ChatCompletion.create` and `ChatCompletion.create_async` methods. To use `temperature` parameter, set the attribute in `options` parameter instead.
|
|
318
|
+
|
|
319
|
+
## [0.9.9] - 2024-10-23
|
|
320
|
+
- Revert deletion of `Message.retrieve` method
|
|
321
|
+
|
|
322
|
+
## [0.9.8] - 2024-10-16
|
|
323
|
+
- Add `retries` for `_static_request` and `_static_request_async` in `APIResource` - When the error messages contains either `"problem proxying the request"`,
|
|
324
|
+
or `"Upstream service reached a hard timeout"`,
|
|
325
|
+
## [0.9.7] - 2024-09-23
|
|
326
|
+
- Add `completedAt` to `CreateParams` of `Message`
|
|
327
|
+
|
|
328
|
+
## [0.9.6] - 2024-09-03
|
|
329
|
+
- Added `metaDataFilter` to `Search` parameters.
|
|
330
|
+
|
|
331
|
+
## [0.9.5] - 2024-08-07
|
|
332
|
+
- Add `completedAt` to `ModifyParams`
|
|
333
|
+
|
|
334
|
+
## [0.9.4] - 2024-07-31
|
|
335
|
+
- Add `close` and `close_async` to `http_client`
|
|
336
|
+
- Make `httpx` the default client for async requests
|
|
337
|
+
|
|
338
|
+
## [0.9.3] - 2024-07-31
|
|
339
|
+
- `Search.create`, `Message`, `ChatCompletion` parameters that were marked `NotRequired` are now also `Optional`
|
|
340
|
+
|
|
341
|
+
## [0.9.2] - 2024-07-30
|
|
342
|
+
- Bug fix in `Search.create`: langugage -> language
|
|
343
|
+
|
|
344
|
+
## [0.9.1] - 2024-07-30
|
|
345
|
+
- Added parameters to `Search.create` and `Search.create_async`
|
|
346
|
+
- `language` for full text search
|
|
347
|
+
- `reranker` to reranker search results
|
|
348
|
+
|
|
349
|
+
## [0.9.0] - 2024-07-29
|
|
350
|
+
- Added the possibility to make async requests to the unique APIs using either aiohttp or httpx as client
|
|
351
|
+
|
|
@@ -27,7 +27,7 @@ class LogEntry(TypedDict):
|
|
|
27
27
|
createdAt: str
|
|
28
28
|
actorType: Literal["USER", "SYSTEM", "ASSISTANT", "TOOL"]
|
|
29
29
|
messageId: NotRequired[str]
|
|
30
|
-
details: NotRequired[
|
|
30
|
+
details: NotRequired[LogDetail]
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
class AgenticTableCell(TypedDict, total=False):
|
|
@@ -36,7 +36,7 @@ class AgenticTableCell(TypedDict, total=False):
|
|
|
36
36
|
columnOrder: int
|
|
37
37
|
rowLocked: bool
|
|
38
38
|
text: str
|
|
39
|
-
logEntries: list[LogEntry]
|
|
39
|
+
logEntries: list[LogEntry] | None
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
class ColumnMetadataUpdateStatus(TypedDict, total=False):
|
|
@@ -73,6 +73,29 @@ class CellRendererTypes(StrEnum):
|
|
|
73
73
|
SELECTABLE_CELL_RENDERER = "SelectableCellRenderer"
|
|
74
74
|
|
|
75
75
|
|
|
76
|
+
class MagicTableAction(StrEnum):
|
|
77
|
+
DELETE_ROW = "DeleteRow"
|
|
78
|
+
DELETE_COLUMN = "DeleteColumn"
|
|
79
|
+
UPDATE_CELL = "UpdateCell"
|
|
80
|
+
ADD_QUESTION_TEXT = "AddQuestionText"
|
|
81
|
+
ADD_META_DATA = "AddMetaData"
|
|
82
|
+
GENERATE_ARTIFACT = "GenerateArtifact"
|
|
83
|
+
SHEET_COMPLETED = "SheetCompleted"
|
|
84
|
+
LIBRARY_SHEET_ROW_VERIFIED = "LibrarySheetRowVerified"
|
|
85
|
+
SHEET_CREATED = "SheetCreated"
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class ActivityStatus(StrEnum):
|
|
89
|
+
IN_PROGRESS = "IN_PROGRESS"
|
|
90
|
+
COMPLETED = "COMPLETED"
|
|
91
|
+
FAILED = "FAILED"
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class SheetType(StrEnum):
|
|
95
|
+
DEFAULT = "DEFAULT"
|
|
96
|
+
LIBRARY = "LIBRARY"
|
|
97
|
+
|
|
98
|
+
|
|
76
99
|
class SelectionMethod(StrEnum):
|
|
77
100
|
DEFAULT = "DEFAULT"
|
|
78
101
|
MANUAL = "MANUAL"
|
|
@@ -105,24 +128,12 @@ class AgenticTable(APIResource["AgenticTable"]):
|
|
|
105
128
|
tableId: str
|
|
106
129
|
rowOrder: int
|
|
107
130
|
columnOrder: int
|
|
131
|
+
includeRowMetadata: NotRequired[bool]
|
|
108
132
|
|
|
109
133
|
class SetActivityStatus(RequestOptions):
|
|
110
134
|
tableId: str
|
|
111
|
-
activity:
|
|
112
|
-
|
|
113
|
-
"DeleteColumn",
|
|
114
|
-
"UpdateCell",
|
|
115
|
-
"AddQuestionText",
|
|
116
|
-
"AddMetaData",
|
|
117
|
-
"GenerateArtifact",
|
|
118
|
-
"SheetCompleted",
|
|
119
|
-
"LibrarySheetRowVerified",
|
|
120
|
-
]
|
|
121
|
-
status: Literal[
|
|
122
|
-
"IN_PROGRESS",
|
|
123
|
-
"COMPLETED",
|
|
124
|
-
"FAILED",
|
|
125
|
-
]
|
|
135
|
+
activity: MagicTableAction
|
|
136
|
+
status: ActivityStatus
|
|
126
137
|
text: str
|
|
127
138
|
|
|
128
139
|
class SetArtifact(RequestOptions):
|
|
@@ -200,6 +211,9 @@ class AgenticTable(APIResource["AgenticTable"]):
|
|
|
200
211
|
) -> "AgenticTableCell":
|
|
201
212
|
""" """
|
|
202
213
|
url = f"/magic-table/{params['tableId']}/cell?rowOrder={params['rowOrder']}&columnOrder={params['columnOrder']}"
|
|
214
|
+
params.pop("tableId")
|
|
215
|
+
params.pop("rowOrder")
|
|
216
|
+
params.pop("columnOrder")
|
|
203
217
|
return cast(
|
|
204
218
|
"AgenticTableCell",
|
|
205
219
|
await cls._static_request_async(
|
|
@@ -207,7 +221,7 @@ class AgenticTable(APIResource["AgenticTable"]):
|
|
|
207
221
|
url,
|
|
208
222
|
user_id,
|
|
209
223
|
company_id,
|
|
210
|
-
params=
|
|
224
|
+
params=params,
|
|
211
225
|
),
|
|
212
226
|
)
|
|
213
227
|
|
|
@@ -210,20 +210,23 @@ class Content(APIResource["Content"]):
|
|
|
210
210
|
columnName: str
|
|
211
211
|
content: str
|
|
212
212
|
|
|
213
|
-
class
|
|
213
|
+
class MagicTableRow(TypedDict):
|
|
214
214
|
rowId: str
|
|
215
215
|
columns: List["Content.MagicTableSheetTableColumn"]
|
|
216
|
+
context: NotRequired[str]
|
|
217
|
+
rowMetadata: NotRequired[str]
|
|
216
218
|
|
|
217
219
|
class MagicTableSheetIngestionConfiguration(TypedDict):
|
|
218
220
|
columnIdsInMetadata: List[str]
|
|
219
221
|
columnIdsInChunkText: List[str]
|
|
220
222
|
|
|
221
223
|
class MagicTableSheetIngestParams(TypedDict):
|
|
222
|
-
data: List["Content.
|
|
224
|
+
data: List["Content.MagicTableRow"]
|
|
223
225
|
ingestionConfiguration: "Content.MagicTableSheetIngestionConfiguration"
|
|
224
226
|
metadata: Dict[str, Optional[str]]
|
|
225
227
|
scopeId: str
|
|
226
228
|
sheetName: str
|
|
229
|
+
context: NotRequired[str]
|
|
227
230
|
|
|
228
231
|
class MagicTableSheetRowIdToContentId(TypedDict):
|
|
229
232
|
rowId: str
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from typing import (
|
|
2
|
+
Any,
|
|
2
3
|
ClassVar,
|
|
4
|
+
Dict,
|
|
3
5
|
List,
|
|
4
6
|
Literal,
|
|
5
7
|
NotRequired,
|
|
@@ -55,6 +57,13 @@ class Group(APIResource["Group"]):
|
|
|
55
57
|
|
|
56
58
|
userIds: List[str]
|
|
57
59
|
|
|
60
|
+
class UpdateGroupConfigurationParams(RequestOptions):
|
|
61
|
+
"""
|
|
62
|
+
Parameters for updating group configuration.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
configuration: Dict[str, Any]
|
|
66
|
+
|
|
58
67
|
class GroupMember(TypedDict):
|
|
59
68
|
"""
|
|
60
69
|
Represents a member of a group.
|
|
@@ -84,6 +93,13 @@ class Group(APIResource["Group"]):
|
|
|
84
93
|
createdAt: str
|
|
85
94
|
updatedAt: str
|
|
86
95
|
|
|
96
|
+
class GroupWithConfiguration(Group):
|
|
97
|
+
"""
|
|
98
|
+
Represents a group in the company with configuration.
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
configuration: Dict[str, Any]
|
|
102
|
+
|
|
87
103
|
class Groups(TypedDict):
|
|
88
104
|
"""
|
|
89
105
|
Response for getting groups.
|
|
@@ -367,3 +383,47 @@ class Group(APIResource["Group"]):
|
|
|
367
383
|
params=params,
|
|
368
384
|
),
|
|
369
385
|
)
|
|
386
|
+
|
|
387
|
+
@classmethod
|
|
388
|
+
def update_group_configuration(
|
|
389
|
+
cls,
|
|
390
|
+
user_id: str,
|
|
391
|
+
company_id: str,
|
|
392
|
+
group_id: str,
|
|
393
|
+
**params: Unpack["Group.UpdateGroupConfigurationParams"],
|
|
394
|
+
) -> "Group.GroupWithConfiguration":
|
|
395
|
+
"""
|
|
396
|
+
Update group configuration for the specified group.
|
|
397
|
+
"""
|
|
398
|
+
return cast(
|
|
399
|
+
"Group.GroupWithConfiguration",
|
|
400
|
+
cls._static_request(
|
|
401
|
+
"patch",
|
|
402
|
+
f"/groups/{group_id}/configuration",
|
|
403
|
+
user_id,
|
|
404
|
+
company_id,
|
|
405
|
+
params=params,
|
|
406
|
+
),
|
|
407
|
+
)
|
|
408
|
+
|
|
409
|
+
@classmethod
|
|
410
|
+
async def update_group_configuration_async(
|
|
411
|
+
cls,
|
|
412
|
+
user_id: str,
|
|
413
|
+
company_id: str,
|
|
414
|
+
group_id: str,
|
|
415
|
+
**params: Unpack["Group.UpdateGroupConfigurationParams"],
|
|
416
|
+
) -> "Group.GroupWithConfiguration":
|
|
417
|
+
"""
|
|
418
|
+
Async update group configuration for the specified group.
|
|
419
|
+
"""
|
|
420
|
+
return cast(
|
|
421
|
+
"Group.GroupWithConfiguration",
|
|
422
|
+
await cls._static_request_async(
|
|
423
|
+
"patch",
|
|
424
|
+
f"/groups/{group_id}/configuration",
|
|
425
|
+
user_id,
|
|
426
|
+
company_id,
|
|
427
|
+
params=params,
|
|
428
|
+
),
|
|
429
|
+
)
|
|
@@ -47,10 +47,14 @@ class Message(APIResource["Message"]):
|
|
|
47
47
|
|
|
48
48
|
class ModifyParams(RequestOptions):
|
|
49
49
|
chatId: str
|
|
50
|
+
originalText: NotRequired[str | None]
|
|
50
51
|
text: NotRequired[Optional["str"]]
|
|
51
|
-
references:
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
references: NotRequired[List["Message.Reference"] | None]
|
|
53
|
+
gptRequest: NotRequired[Dict[str, Any] | None]
|
|
54
|
+
debugInfo: NotRequired[Dict[str, Any] | None]
|
|
55
|
+
startedStreamingAt: NotRequired[datetime | None]
|
|
56
|
+
stoppedStreamingAt: NotRequired[datetime | None]
|
|
57
|
+
completedAt: NotRequired[datetime | None]
|
|
54
58
|
|
|
55
59
|
class DeleteParams(RequestOptions):
|
|
56
60
|
chatId: str
|
|
@@ -61,21 +65,16 @@ class Message(APIResource["Message"]):
|
|
|
61
65
|
class RetrieveParams(RequestOptions):
|
|
62
66
|
chatId: str
|
|
63
67
|
|
|
64
|
-
class CreateEventParams(
|
|
68
|
+
class CreateEventParams(ModifyParams):
|
|
65
69
|
messageId: str
|
|
66
|
-
chatId: str
|
|
67
|
-
originalText: NotRequired[str | None]
|
|
68
|
-
text: NotRequired[str | None]
|
|
69
|
-
references: NotRequired[List["Message.Reference"] | None]
|
|
70
|
-
gptRequest: NotRequired[Dict[str, Any] | None]
|
|
71
|
-
debugInfo: NotRequired[Dict[str, Any] | None]
|
|
72
|
-
completedAt: NotRequired[datetime | None]
|
|
73
70
|
|
|
74
71
|
chatId: str
|
|
75
72
|
text: Optional[str]
|
|
76
73
|
role: Literal["SYSTEM", "USER", "ASSISTANT"]
|
|
77
74
|
gptRequest: Optional[Dict[str, Any]]
|
|
78
75
|
debugInfo: Optional[Dict[str, Any]]
|
|
76
|
+
startedStreamingAt: Optional[datetime]
|
|
77
|
+
stoppedStreamingAt: Optional[datetime]
|
|
79
78
|
|
|
80
79
|
@classmethod
|
|
81
80
|
def list(
|