unique_sdk 0.10.33__py3-none-any.whl → 0.10.34__py3-none-any.whl

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.
@@ -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["system", "user", "assistant"]
72
+ role: Literal["SYSTEM", "USER", "ASSISTANT"]
73
73
  debugInfo: Optional[Dict[str, Any]]
74
74
  completedAt: str | None
75
75
  createdAt: str | None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_sdk
3
- Version: 0.10.33
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
 
@@ -25,18 +25,18 @@ unique_sdk/api_resources/_integrated.py,sha256=O8e673z-RB7FRFMQYn_YEuHijebr5W7KJ
25
25
  unique_sdk/api_resources/_mcp.py,sha256=zKh0dyn0QnkKk57N2zlGVN_GQoxEp5T2CS38vVm6jQY,3341
26
26
  unique_sdk/api_resources/_message.py,sha256=WgdvVS6Gx3gXGlaSlCjE-qrlj3SbkF--EFG7HiSp6cM,9282
27
27
  unique_sdk/api_resources/_message_assessment.py,sha256=SSfx6eW7zb_GKe8cFJzCqW-t-_eWEXxKP5cnIb0DhIc,2276
28
- unique_sdk/api_resources/_message_execution.py,sha256=-381DGikWT2iSq1jLg37Axdm82xEsIg6iF8SlSueI_8,4544
28
+ unique_sdk/api_resources/_message_execution.py,sha256=7V_Qovu4vzoXDd2em0AgnAJC460RUX6AE4byztNPlvg,4556
29
29
  unique_sdk/api_resources/_message_log.py,sha256=vmNyXlgfALONNrhGi0qFpUWalcKxH6OkVoBSmJbsL2k,3658
30
30
  unique_sdk/api_resources/_search.py,sha256=GQItZKoGNOVZfkLLltBmsRZYBIreRKU0lGW8Kgpj1_Q,1959
31
31
  unique_sdk/api_resources/_search_string.py,sha256=LZz2_QPZXV1NXucRR06dnDC2miK7J8XBY7dXX2xoDY4,1610
32
32
  unique_sdk/api_resources/_short_term_memory.py,sha256=vPRN-Y0WPx74E6y-A3LocGc0TxJdzT-xGL66WzZwKRg,2820
33
- unique_sdk/api_resources/_space.py,sha256=Z84k8blttHS5OjHIahZdddTL-HvYZGBolfCANwETaDE,4994
33
+ unique_sdk/api_resources/_space.py,sha256=J7rS7Y62QQ7r_VpGLVb3UdhPtu9FxgrY2c515uxaypc,4994
34
34
  unique_sdk/utils/chat_history.py,sha256=5UqL9hF1O9pV7skbNOlEibF5rHdYsmG3m5-YEPUowOs,3037
35
35
  unique_sdk/utils/chat_in_space.py,sha256=cdjETBLnjv-OE8qsQpm626ks5yBdfQG_KBeG0WIzCbY,5994
36
36
  unique_sdk/utils/file_io.py,sha256=sJS-dJLjogG65mLukDO9pGDpKVTP4LhIgiZASnCvjNI,4330
37
37
  unique_sdk/utils/sources.py,sha256=DoxxhMLcLhmDfNarjXa41H4JD2GSSDywr71hiC-4pYc,4952
38
38
  unique_sdk/utils/token.py,sha256=AzKuAA1AwBtnvSFxGcsHLpxXr_wWE5Mj4jYBbOz2ljA,1740
39
- unique_sdk-0.10.33.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
40
- unique_sdk-0.10.33.dist-info/METADATA,sha256=zQ1DTduFemDcrnw8t4GuVyGiw5COzUbpuXMXJkTb7Lo,61771
41
- unique_sdk-0.10.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
42
- unique_sdk-0.10.33.dist-info/RECORD,,
39
+ unique_sdk-0.10.34.dist-info/LICENSE,sha256=EJCWoHgrXVBUb47PnjeV4MFIEOR71MAdCOIgv61J-4k,1065
40
+ unique_sdk-0.10.34.dist-info/METADATA,sha256=QIioH-WMisDdwNGhYEHqoWE25UDazCtSqEOTXwi6shw,67880
41
+ unique_sdk-0.10.34.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
42
+ unique_sdk-0.10.34.dist-info/RECORD,,