unique_sdk 0.10.33__tar.gz → 0.10.34__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.33 → unique_sdk-0.10.34}/CHANGELOG.md +3 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/PKG-INFO +214 -1
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/README.md +210 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/pyproject.toml +1 -1
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_message_execution.py +1 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_space.py +1 -1
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/LICENSE +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/__init__.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_api_requestor.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_api_resource.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_api_version.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_error.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_http_client.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_list_object.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_object_classes.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_request_options.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_unique_object.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_unique_ql.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_unique_response.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_util.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_version.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/_webhook.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/__init__.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_acronyms.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_agentic_table.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_chat_completion.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_content.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_embedding.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_event.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_folder.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_integrated.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_mcp.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_message.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_message_assessment.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_message_log.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_search.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_search_string.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/api_resources/_short_term_memory.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/utils/chat_history.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/utils/chat_in_space.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/utils/file_io.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/unique_sdk/utils/sources.py +0 -0
- {unique_sdk-0.10.33 → unique_sdk-0.10.34}/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.34] - 2025-10-29
|
|
9
|
+
- Add documentation for agentic table.
|
|
10
|
+
|
|
8
11
|
## [0.10.33] - 2025-10-27
|
|
9
12
|
- Improve messagelog and message execution types.
|
|
10
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: unique_sdk
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.34
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Fadler
|
|
@@ -42,6 +42,7 @@ The Unique Python SDK provides access to the public API of Unique AI. It also en
|
|
|
42
42
|
- [Message Assessment](#message-assessment)
|
|
43
43
|
- [Folder](#folder)
|
|
44
44
|
- [Space](#space)
|
|
45
|
+
- [Agentic Table](#agentic-table)
|
|
45
46
|
6. [UniqueQL](#uniqueql)
|
|
46
47
|
- [Query Structure](#uniqueql-query-structure)
|
|
47
48
|
- [Metadata Filtering](#metadata-filtering)
|
|
@@ -259,6 +260,7 @@ unique_sdk.Message.modify(
|
|
|
259
260
|
- [Message Assessment](#message-assessment)
|
|
260
261
|
- [Folder](#folder)
|
|
261
262
|
- [Space](#space)
|
|
263
|
+
- [Agentic Table](#agentic-table)
|
|
262
264
|
|
|
263
265
|
Most of the API services provide an asynchronous version of the method. The async methods are suffixed with `_async`.
|
|
264
266
|
|
|
@@ -1369,6 +1371,214 @@ unique_sdk.Space.delete_chat(
|
|
|
1369
1371
|
)
|
|
1370
1372
|
```
|
|
1371
1373
|
|
|
1374
|
+
### Agentic Table
|
|
1375
|
+
|
|
1376
|
+
The Agentic Table (Magic Table) API provides functionality for managing interactive tables with AI-powered cells, activity tracking, and metadata management.
|
|
1377
|
+
|
|
1378
|
+
#### `unique_sdk.AgenticTable.set_cell`
|
|
1379
|
+
|
|
1380
|
+
Set the content of a specific cell in the magic table. This method allows you to update cell text and optionally add log entries to track changes.
|
|
1381
|
+
|
|
1382
|
+
```python
|
|
1383
|
+
cell = await unique_sdk.AgenticTable.set_cell(
|
|
1384
|
+
user_id=user_id,
|
|
1385
|
+
company_id=company_id,
|
|
1386
|
+
tableId="sheet_abc123",
|
|
1387
|
+
rowOrder=0,
|
|
1388
|
+
columnOrder=1,
|
|
1389
|
+
text="Updated cell content",
|
|
1390
|
+
logEntries=[ # optional
|
|
1391
|
+
{
|
|
1392
|
+
"text": "Cell updated by automation",
|
|
1393
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
1394
|
+
"actorType": "SYSTEM", # One of: "USER", "SYSTEM", "ASSISTANT", "TOOL"
|
|
1395
|
+
"messageId": "msg_123", # optional
|
|
1396
|
+
"details": [ # optional
|
|
1397
|
+
{
|
|
1398
|
+
"text": "Processing completed",
|
|
1399
|
+
"messageId": "msg_456" # optional
|
|
1400
|
+
}
|
|
1401
|
+
]
|
|
1402
|
+
}
|
|
1403
|
+
]
|
|
1404
|
+
)
|
|
1405
|
+
```
|
|
1406
|
+
|
|
1407
|
+
#### `unique_sdk.AgenticTable.get_cell`
|
|
1408
|
+
|
|
1409
|
+
Retrieve the content and metadata of a specific cell.
|
|
1410
|
+
|
|
1411
|
+
```python
|
|
1412
|
+
cell = await unique_sdk.AgenticTable.get_cell(
|
|
1413
|
+
user_id=user_id,
|
|
1414
|
+
company_id=company_id,
|
|
1415
|
+
tableId="sheet_abc123",
|
|
1416
|
+
rowOrder=0,
|
|
1417
|
+
columnOrder=1,
|
|
1418
|
+
)
|
|
1419
|
+
```
|
|
1420
|
+
|
|
1421
|
+
#### `unique_sdk.AgenticTable.set_multiple_cells`
|
|
1422
|
+
|
|
1423
|
+
Bulk update multiple cells in a single operation for better performance.
|
|
1424
|
+
|
|
1425
|
+
```python
|
|
1426
|
+
result = await unique_sdk.AgenticTable.set_multiple_cells(
|
|
1427
|
+
user_id=user_id,
|
|
1428
|
+
company_id=company_id,
|
|
1429
|
+
tableId="sheet_abc123",
|
|
1430
|
+
cells=[
|
|
1431
|
+
{
|
|
1432
|
+
"rowOrder": 0,
|
|
1433
|
+
"columnOrder": 0,
|
|
1434
|
+
"text": "Cell A1"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"rowOrder": 0,
|
|
1438
|
+
"columnOrder": 1,
|
|
1439
|
+
"text": "Cell B1"
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
"rowOrder": 1,
|
|
1443
|
+
"columnOrder": 0,
|
|
1444
|
+
"text": "Cell A2"
|
|
1445
|
+
}
|
|
1446
|
+
]
|
|
1447
|
+
)
|
|
1448
|
+
```
|
|
1449
|
+
|
|
1450
|
+
#### `unique_sdk.AgenticTable.get_sheet_data`
|
|
1451
|
+
|
|
1452
|
+
Retrieve comprehensive data about a magic table sheet, including cells, log history, and metadata.
|
|
1453
|
+
|
|
1454
|
+
```python
|
|
1455
|
+
sheet = await unique_sdk.AgenticTable.get_sheet_data(
|
|
1456
|
+
user_id=user_id,
|
|
1457
|
+
company_id=company_id,
|
|
1458
|
+
tableId="sheet_abc123",
|
|
1459
|
+
includeCells=True, # optional
|
|
1460
|
+
includeLogHistory=True, # optional
|
|
1461
|
+
includeRowCount=True, # optional
|
|
1462
|
+
includeCellMetaData=True, # optional
|
|
1463
|
+
startRow=0, # optional: specify row range
|
|
1464
|
+
endRow=10 # optional: specify row range
|
|
1465
|
+
)
|
|
1466
|
+
```
|
|
1467
|
+
|
|
1468
|
+
#### `unique_sdk.AgenticTable.get_sheet_state`
|
|
1469
|
+
|
|
1470
|
+
Get the current state of a magic table sheet.
|
|
1471
|
+
|
|
1472
|
+
```python
|
|
1473
|
+
state = await unique_sdk.AgenticTable.get_sheet_state(
|
|
1474
|
+
user_id=user_id,
|
|
1475
|
+
company_id=company_id,
|
|
1476
|
+
tableId="sheet_abc123"
|
|
1477
|
+
)
|
|
1478
|
+
# Returns: "PROCESSING", "IDLE", or "STOPPED_BY_USER"
|
|
1479
|
+
```
|
|
1480
|
+
|
|
1481
|
+
#### `unique_sdk.AgenticTable.update_sheet_state`
|
|
1482
|
+
|
|
1483
|
+
Update the name or state of a magic table sheet.
|
|
1484
|
+
|
|
1485
|
+
```python
|
|
1486
|
+
result = await unique_sdk.AgenticTable.update_sheet_state(
|
|
1487
|
+
user_id=user_id,
|
|
1488
|
+
company_id=company_id,
|
|
1489
|
+
tableId="sheet_abc123",
|
|
1490
|
+
name="Updated Sheet Name", # optional
|
|
1491
|
+
state="IDLE" # optional, one of: "PROCESSING", "IDLE", "STOPPED_BY_USER"
|
|
1492
|
+
)
|
|
1493
|
+
```
|
|
1494
|
+
|
|
1495
|
+
#### `unique_sdk.AgenticTable.set_activity`
|
|
1496
|
+
|
|
1497
|
+
Set the status of an activity on the magic table sheet. This is useful for tracking long-running operations.
|
|
1498
|
+
|
|
1499
|
+
```python
|
|
1500
|
+
result = await unique_sdk.AgenticTable.set_activity(
|
|
1501
|
+
user_id=user_id,
|
|
1502
|
+
company_id=company_id,
|
|
1503
|
+
tableId="sheet_abc123",
|
|
1504
|
+
activity="UpdateCell",
|
|
1505
|
+
# activity: one of "DeleteRow", "DeleteColumn", "UpdateCell", "AddQuestionText",
|
|
1506
|
+
# "AddMetaData", "GenerateArtifact", "SheetCompleted", "LibrarySheetRowVerified"
|
|
1507
|
+
status="IN_PROGRESS",
|
|
1508
|
+
# status: one of "IN_PROGRESS", "COMPLETED", "FAILED"
|
|
1509
|
+
text="Updating cells with AI-generated content"
|
|
1510
|
+
)
|
|
1511
|
+
```
|
|
1512
|
+
|
|
1513
|
+
#### `unique_sdk.AgenticTable.set_artifact`
|
|
1514
|
+
|
|
1515
|
+
Attach an artifact (such as a generated document) to the magic table sheet.
|
|
1516
|
+
|
|
1517
|
+
```python
|
|
1518
|
+
result = await unique_sdk.AgenticTable.set_artifact(
|
|
1519
|
+
user_id=user_id,
|
|
1520
|
+
company_id=company_id,
|
|
1521
|
+
tableId="sheet_abc123",
|
|
1522
|
+
name="Generated Report",
|
|
1523
|
+
contentId="cont_xyz789",
|
|
1524
|
+
mimeType="application/pdf",
|
|
1525
|
+
artifactType="FULL_REPORT" # One of: "QUESTIONS", "FULL_REPORT"
|
|
1526
|
+
)
|
|
1527
|
+
```
|
|
1528
|
+
|
|
1529
|
+
#### `unique_sdk.AgenticTable.set_column_metadata`
|
|
1530
|
+
|
|
1531
|
+
Configure metadata for a specific column, including width, filters, and cell renderers.
|
|
1532
|
+
|
|
1533
|
+
```python
|
|
1534
|
+
result = await unique_sdk.AgenticTable.set_column_metadata(
|
|
1535
|
+
user_id=user_id,
|
|
1536
|
+
company_id=company_id,
|
|
1537
|
+
tableId="sheet_abc123",
|
|
1538
|
+
columnOrder=2,
|
|
1539
|
+
columnWidth=200, # optional
|
|
1540
|
+
filter="ValueMatchFilter", # optional
|
|
1541
|
+
# filter: one of "ValueMatchFilter", "PartialMatchFilter", "ReferenceFilter",
|
|
1542
|
+
# "HallucinationFilter", "ReviewStatusFilter", "AssigneeFilter"
|
|
1543
|
+
cellRenderer="CheckboxLockCellRenderer", # optional
|
|
1544
|
+
# cellRenderer: one of "CheckboxLockCellRenderer", "CollaboratorDropdown",
|
|
1545
|
+
# "ReviewStatusDropdown", "CustomCellRenderer", "SelectableCellRenderer"
|
|
1546
|
+
editable=True # optional
|
|
1547
|
+
)
|
|
1548
|
+
```
|
|
1549
|
+
|
|
1550
|
+
#### `unique_sdk.AgenticTable.set_cell_metadata`
|
|
1551
|
+
|
|
1552
|
+
Set metadata for a specific cell, including selection status and agreement status.
|
|
1553
|
+
|
|
1554
|
+
```python
|
|
1555
|
+
result = await unique_sdk.AgenticTable.set_cell_metadata(
|
|
1556
|
+
user_id=user_id,
|
|
1557
|
+
company_id=company_id,
|
|
1558
|
+
tableId="sheet_abc123",
|
|
1559
|
+
rowOrder=0,
|
|
1560
|
+
columnOrder=1,
|
|
1561
|
+
selected=True, # optional
|
|
1562
|
+
selectionMethod="MANUAL", # optional, one of: "DEFAULT", "MANUAL"
|
|
1563
|
+
agreementStatus="MATCH" # optional, one of: "MATCH", "NO_MATCH"
|
|
1564
|
+
)
|
|
1565
|
+
```
|
|
1566
|
+
|
|
1567
|
+
#### `unique_sdk.AgenticTable.bulk_update_status`
|
|
1568
|
+
|
|
1569
|
+
Update the verification status of multiple rows at once.
|
|
1570
|
+
|
|
1571
|
+
```python
|
|
1572
|
+
result = await unique_sdk.AgenticTable.bulk_update_status(
|
|
1573
|
+
user_id=user_id,
|
|
1574
|
+
company_id=company_id,
|
|
1575
|
+
tableId="sheet_abc123",
|
|
1576
|
+
rowOrders=[0, 1, 2, 3, 4],
|
|
1577
|
+
status="VERIFIED"
|
|
1578
|
+
# status: one of "NEED_REVIEW", "READY_FOR_VERIFICATION", "VERIFIED"
|
|
1579
|
+
)
|
|
1580
|
+
```
|
|
1581
|
+
|
|
1372
1582
|
## UniqueQL
|
|
1373
1583
|
|
|
1374
1584
|
[UniqueQL](https://unique-ch.atlassian.net/wiki/x/coAXHQ) is an advanced query language designed to enhance search capabilities within various search modes such as Vector, Full-Text Search (FTS), and Combined. This query language enables users to perform detailed searches by filtering through metadata attributes like filenames, URLs, dates, and more. UniqueQL is versatile and can be translated into different query formats for various database systems, including PostgreSQL and Qdrant.
|
|
@@ -1766,6 +1976,9 @@ All notable changes to this project will be documented in this file.
|
|
|
1766
1976
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
1767
1977
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
1768
1978
|
|
|
1979
|
+
## [0.10.34] - 2025-10-29
|
|
1980
|
+
- Add documentation for agentic table.
|
|
1981
|
+
|
|
1769
1982
|
## [0.10.33] - 2025-10-27
|
|
1770
1983
|
- Improve messagelog and message execution types.
|
|
1771
1984
|
|
|
@@ -24,6 +24,7 @@ The Unique Python SDK provides access to the public API of Unique AI. It also en
|
|
|
24
24
|
- [Message Assessment](#message-assessment)
|
|
25
25
|
- [Folder](#folder)
|
|
26
26
|
- [Space](#space)
|
|
27
|
+
- [Agentic Table](#agentic-table)
|
|
27
28
|
6. [UniqueQL](#uniqueql)
|
|
28
29
|
- [Query Structure](#uniqueql-query-structure)
|
|
29
30
|
- [Metadata Filtering](#metadata-filtering)
|
|
@@ -241,6 +242,7 @@ unique_sdk.Message.modify(
|
|
|
241
242
|
- [Message Assessment](#message-assessment)
|
|
242
243
|
- [Folder](#folder)
|
|
243
244
|
- [Space](#space)
|
|
245
|
+
- [Agentic Table](#agentic-table)
|
|
244
246
|
|
|
245
247
|
Most of the API services provide an asynchronous version of the method. The async methods are suffixed with `_async`.
|
|
246
248
|
|
|
@@ -1351,6 +1353,214 @@ unique_sdk.Space.delete_chat(
|
|
|
1351
1353
|
)
|
|
1352
1354
|
```
|
|
1353
1355
|
|
|
1356
|
+
### Agentic Table
|
|
1357
|
+
|
|
1358
|
+
The Agentic Table (Magic Table) API provides functionality for managing interactive tables with AI-powered cells, activity tracking, and metadata management.
|
|
1359
|
+
|
|
1360
|
+
#### `unique_sdk.AgenticTable.set_cell`
|
|
1361
|
+
|
|
1362
|
+
Set the content of a specific cell in the magic table. This method allows you to update cell text and optionally add log entries to track changes.
|
|
1363
|
+
|
|
1364
|
+
```python
|
|
1365
|
+
cell = await unique_sdk.AgenticTable.set_cell(
|
|
1366
|
+
user_id=user_id,
|
|
1367
|
+
company_id=company_id,
|
|
1368
|
+
tableId="sheet_abc123",
|
|
1369
|
+
rowOrder=0,
|
|
1370
|
+
columnOrder=1,
|
|
1371
|
+
text="Updated cell content",
|
|
1372
|
+
logEntries=[ # optional
|
|
1373
|
+
{
|
|
1374
|
+
"text": "Cell updated by automation",
|
|
1375
|
+
"createdAt": "2024-01-01T00:00:00.000Z",
|
|
1376
|
+
"actorType": "SYSTEM", # One of: "USER", "SYSTEM", "ASSISTANT", "TOOL"
|
|
1377
|
+
"messageId": "msg_123", # optional
|
|
1378
|
+
"details": [ # optional
|
|
1379
|
+
{
|
|
1380
|
+
"text": "Processing completed",
|
|
1381
|
+
"messageId": "msg_456" # optional
|
|
1382
|
+
}
|
|
1383
|
+
]
|
|
1384
|
+
}
|
|
1385
|
+
]
|
|
1386
|
+
)
|
|
1387
|
+
```
|
|
1388
|
+
|
|
1389
|
+
#### `unique_sdk.AgenticTable.get_cell`
|
|
1390
|
+
|
|
1391
|
+
Retrieve the content and metadata of a specific cell.
|
|
1392
|
+
|
|
1393
|
+
```python
|
|
1394
|
+
cell = await unique_sdk.AgenticTable.get_cell(
|
|
1395
|
+
user_id=user_id,
|
|
1396
|
+
company_id=company_id,
|
|
1397
|
+
tableId="sheet_abc123",
|
|
1398
|
+
rowOrder=0,
|
|
1399
|
+
columnOrder=1,
|
|
1400
|
+
)
|
|
1401
|
+
```
|
|
1402
|
+
|
|
1403
|
+
#### `unique_sdk.AgenticTable.set_multiple_cells`
|
|
1404
|
+
|
|
1405
|
+
Bulk update multiple cells in a single operation for better performance.
|
|
1406
|
+
|
|
1407
|
+
```python
|
|
1408
|
+
result = await unique_sdk.AgenticTable.set_multiple_cells(
|
|
1409
|
+
user_id=user_id,
|
|
1410
|
+
company_id=company_id,
|
|
1411
|
+
tableId="sheet_abc123",
|
|
1412
|
+
cells=[
|
|
1413
|
+
{
|
|
1414
|
+
"rowOrder": 0,
|
|
1415
|
+
"columnOrder": 0,
|
|
1416
|
+
"text": "Cell A1"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"rowOrder": 0,
|
|
1420
|
+
"columnOrder": 1,
|
|
1421
|
+
"text": "Cell B1"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"rowOrder": 1,
|
|
1425
|
+
"columnOrder": 0,
|
|
1426
|
+
"text": "Cell A2"
|
|
1427
|
+
}
|
|
1428
|
+
]
|
|
1429
|
+
)
|
|
1430
|
+
```
|
|
1431
|
+
|
|
1432
|
+
#### `unique_sdk.AgenticTable.get_sheet_data`
|
|
1433
|
+
|
|
1434
|
+
Retrieve comprehensive data about a magic table sheet, including cells, log history, and metadata.
|
|
1435
|
+
|
|
1436
|
+
```python
|
|
1437
|
+
sheet = await unique_sdk.AgenticTable.get_sheet_data(
|
|
1438
|
+
user_id=user_id,
|
|
1439
|
+
company_id=company_id,
|
|
1440
|
+
tableId="sheet_abc123",
|
|
1441
|
+
includeCells=True, # optional
|
|
1442
|
+
includeLogHistory=True, # optional
|
|
1443
|
+
includeRowCount=True, # optional
|
|
1444
|
+
includeCellMetaData=True, # optional
|
|
1445
|
+
startRow=0, # optional: specify row range
|
|
1446
|
+
endRow=10 # optional: specify row range
|
|
1447
|
+
)
|
|
1448
|
+
```
|
|
1449
|
+
|
|
1450
|
+
#### `unique_sdk.AgenticTable.get_sheet_state`
|
|
1451
|
+
|
|
1452
|
+
Get the current state of a magic table sheet.
|
|
1453
|
+
|
|
1454
|
+
```python
|
|
1455
|
+
state = await unique_sdk.AgenticTable.get_sheet_state(
|
|
1456
|
+
user_id=user_id,
|
|
1457
|
+
company_id=company_id,
|
|
1458
|
+
tableId="sheet_abc123"
|
|
1459
|
+
)
|
|
1460
|
+
# Returns: "PROCESSING", "IDLE", or "STOPPED_BY_USER"
|
|
1461
|
+
```
|
|
1462
|
+
|
|
1463
|
+
#### `unique_sdk.AgenticTable.update_sheet_state`
|
|
1464
|
+
|
|
1465
|
+
Update the name or state of a magic table sheet.
|
|
1466
|
+
|
|
1467
|
+
```python
|
|
1468
|
+
result = await unique_sdk.AgenticTable.update_sheet_state(
|
|
1469
|
+
user_id=user_id,
|
|
1470
|
+
company_id=company_id,
|
|
1471
|
+
tableId="sheet_abc123",
|
|
1472
|
+
name="Updated Sheet Name", # optional
|
|
1473
|
+
state="IDLE" # optional, one of: "PROCESSING", "IDLE", "STOPPED_BY_USER"
|
|
1474
|
+
)
|
|
1475
|
+
```
|
|
1476
|
+
|
|
1477
|
+
#### `unique_sdk.AgenticTable.set_activity`
|
|
1478
|
+
|
|
1479
|
+
Set the status of an activity on the magic table sheet. This is useful for tracking long-running operations.
|
|
1480
|
+
|
|
1481
|
+
```python
|
|
1482
|
+
result = await unique_sdk.AgenticTable.set_activity(
|
|
1483
|
+
user_id=user_id,
|
|
1484
|
+
company_id=company_id,
|
|
1485
|
+
tableId="sheet_abc123",
|
|
1486
|
+
activity="UpdateCell",
|
|
1487
|
+
# activity: one of "DeleteRow", "DeleteColumn", "UpdateCell", "AddQuestionText",
|
|
1488
|
+
# "AddMetaData", "GenerateArtifact", "SheetCompleted", "LibrarySheetRowVerified"
|
|
1489
|
+
status="IN_PROGRESS",
|
|
1490
|
+
# status: one of "IN_PROGRESS", "COMPLETED", "FAILED"
|
|
1491
|
+
text="Updating cells with AI-generated content"
|
|
1492
|
+
)
|
|
1493
|
+
```
|
|
1494
|
+
|
|
1495
|
+
#### `unique_sdk.AgenticTable.set_artifact`
|
|
1496
|
+
|
|
1497
|
+
Attach an artifact (such as a generated document) to the magic table sheet.
|
|
1498
|
+
|
|
1499
|
+
```python
|
|
1500
|
+
result = await unique_sdk.AgenticTable.set_artifact(
|
|
1501
|
+
user_id=user_id,
|
|
1502
|
+
company_id=company_id,
|
|
1503
|
+
tableId="sheet_abc123",
|
|
1504
|
+
name="Generated Report",
|
|
1505
|
+
contentId="cont_xyz789",
|
|
1506
|
+
mimeType="application/pdf",
|
|
1507
|
+
artifactType="FULL_REPORT" # One of: "QUESTIONS", "FULL_REPORT"
|
|
1508
|
+
)
|
|
1509
|
+
```
|
|
1510
|
+
|
|
1511
|
+
#### `unique_sdk.AgenticTable.set_column_metadata`
|
|
1512
|
+
|
|
1513
|
+
Configure metadata for a specific column, including width, filters, and cell renderers.
|
|
1514
|
+
|
|
1515
|
+
```python
|
|
1516
|
+
result = await unique_sdk.AgenticTable.set_column_metadata(
|
|
1517
|
+
user_id=user_id,
|
|
1518
|
+
company_id=company_id,
|
|
1519
|
+
tableId="sheet_abc123",
|
|
1520
|
+
columnOrder=2,
|
|
1521
|
+
columnWidth=200, # optional
|
|
1522
|
+
filter="ValueMatchFilter", # optional
|
|
1523
|
+
# filter: one of "ValueMatchFilter", "PartialMatchFilter", "ReferenceFilter",
|
|
1524
|
+
# "HallucinationFilter", "ReviewStatusFilter", "AssigneeFilter"
|
|
1525
|
+
cellRenderer="CheckboxLockCellRenderer", # optional
|
|
1526
|
+
# cellRenderer: one of "CheckboxLockCellRenderer", "CollaboratorDropdown",
|
|
1527
|
+
# "ReviewStatusDropdown", "CustomCellRenderer", "SelectableCellRenderer"
|
|
1528
|
+
editable=True # optional
|
|
1529
|
+
)
|
|
1530
|
+
```
|
|
1531
|
+
|
|
1532
|
+
#### `unique_sdk.AgenticTable.set_cell_metadata`
|
|
1533
|
+
|
|
1534
|
+
Set metadata for a specific cell, including selection status and agreement status.
|
|
1535
|
+
|
|
1536
|
+
```python
|
|
1537
|
+
result = await unique_sdk.AgenticTable.set_cell_metadata(
|
|
1538
|
+
user_id=user_id,
|
|
1539
|
+
company_id=company_id,
|
|
1540
|
+
tableId="sheet_abc123",
|
|
1541
|
+
rowOrder=0,
|
|
1542
|
+
columnOrder=1,
|
|
1543
|
+
selected=True, # optional
|
|
1544
|
+
selectionMethod="MANUAL", # optional, one of: "DEFAULT", "MANUAL"
|
|
1545
|
+
agreementStatus="MATCH" # optional, one of: "MATCH", "NO_MATCH"
|
|
1546
|
+
)
|
|
1547
|
+
```
|
|
1548
|
+
|
|
1549
|
+
#### `unique_sdk.AgenticTable.bulk_update_status`
|
|
1550
|
+
|
|
1551
|
+
Update the verification status of multiple rows at once.
|
|
1552
|
+
|
|
1553
|
+
```python
|
|
1554
|
+
result = await unique_sdk.AgenticTable.bulk_update_status(
|
|
1555
|
+
user_id=user_id,
|
|
1556
|
+
company_id=company_id,
|
|
1557
|
+
tableId="sheet_abc123",
|
|
1558
|
+
rowOrders=[0, 1, 2, 3, 4],
|
|
1559
|
+
status="VERIFIED"
|
|
1560
|
+
# status: one of "NEED_REVIEW", "READY_FOR_VERIFICATION", "VERIFIED"
|
|
1561
|
+
)
|
|
1562
|
+
```
|
|
1563
|
+
|
|
1354
1564
|
## UniqueQL
|
|
1355
1565
|
|
|
1356
1566
|
[UniqueQL](https://unique-ch.atlassian.net/wiki/x/coAXHQ) is an advanced query language designed to enhance search capabilities within various search modes such as Vector, Full-Text Search (FTS), and Combined. This query language enables users to perform detailed searches by filtering through metadata attributes like filenames, URLs, dates, and more. UniqueQL is versatile and can be translated into different query formats for various database systems, including PostgreSQL and Qdrant.
|
|
@@ -38,6 +38,7 @@ class MessageExecution(APIResource["MessageExecution"]):
|
|
|
38
38
|
secondsRemaining: NotRequired[int | None]
|
|
39
39
|
percentageCompleted: NotRequired[int | None]
|
|
40
40
|
|
|
41
|
+
id: str
|
|
41
42
|
messageId: str
|
|
42
43
|
status: "MessageExecution.StatusLiteral"
|
|
43
44
|
type: "MessageExecution.TypeLiteral"
|
|
@@ -69,7 +69,7 @@ class Space(APIResource["Space"]):
|
|
|
69
69
|
chatId: str
|
|
70
70
|
text: str | None
|
|
71
71
|
originalText: str | None
|
|
72
|
-
role: Literal["
|
|
72
|
+
role: Literal["SYSTEM", "USER", "ASSISTANT"]
|
|
73
73
|
debugInfo: Optional[Dict[str, Any]]
|
|
74
74
|
completedAt: str | None
|
|
75
75
|
createdAt: str | None
|
|
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
|