graphlit-client 1.0.20250410001__py3-none-any.whl → 1.0.20250414001__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.
graphlit_api/__init__.py CHANGED
@@ -1026,6 +1026,16 @@ from .ingest_encoded_file import (
1026
1026
  IngestEncodedFileIngestEncodedFileObservationsOccurrencesBoundingBox,
1027
1027
  IngestEncodedFileIngestEncodedFileObservationsRelated,
1028
1028
  )
1029
+ from .ingest_memory import (
1030
+ IngestMemory,
1031
+ IngestMemoryIngestMemory,
1032
+ IngestMemoryIngestMemoryCollections,
1033
+ IngestMemoryIngestMemoryObservations,
1034
+ IngestMemoryIngestMemoryObservationsObservable,
1035
+ IngestMemoryIngestMemoryObservationsOccurrences,
1036
+ IngestMemoryIngestMemoryObservationsOccurrencesBoundingBox,
1037
+ IngestMemoryIngestMemoryObservationsRelated,
1038
+ )
1029
1039
  from .ingest_text import (
1030
1040
  IngestText,
1031
1041
  IngestTextIngestText,
@@ -1574,6 +1584,7 @@ from .operations import (
1574
1584
  GET_WORKFLOW_GQL,
1575
1585
  INGEST_BATCH_GQL,
1576
1586
  INGEST_ENCODED_FILE_GQL,
1587
+ INGEST_MEMORY_GQL,
1577
1588
  INGEST_TEXT_BATCH_GQL,
1578
1589
  INGEST_TEXT_GQL,
1579
1590
  INGEST_URI_GQL,
@@ -3637,6 +3648,7 @@ __all__ = [
3637
3648
  "H3ResolutionTypes",
3638
3649
  "INGEST_BATCH_GQL",
3639
3650
  "INGEST_ENCODED_FILE_GQL",
3651
+ "INGEST_MEMORY_GQL",
3640
3652
  "INGEST_TEXT_BATCH_GQL",
3641
3653
  "INGEST_TEXT_GQL",
3642
3654
  "INGEST_URI_GQL",
@@ -3662,6 +3674,14 @@ __all__ = [
3662
3674
  "IngestEncodedFileIngestEncodedFileObservationsOccurrences",
3663
3675
  "IngestEncodedFileIngestEncodedFileObservationsOccurrencesBoundingBox",
3664
3676
  "IngestEncodedFileIngestEncodedFileObservationsRelated",
3677
+ "IngestMemory",
3678
+ "IngestMemoryIngestMemory",
3679
+ "IngestMemoryIngestMemoryCollections",
3680
+ "IngestMemoryIngestMemoryObservations",
3681
+ "IngestMemoryIngestMemoryObservationsObservable",
3682
+ "IngestMemoryIngestMemoryObservationsOccurrences",
3683
+ "IngestMemoryIngestMemoryObservationsOccurrencesBoundingBox",
3684
+ "IngestMemoryIngestMemoryObservationsRelated",
3665
3685
  "IngestText",
3666
3686
  "IngestTextBatch",
3667
3687
  "IngestTextBatchIngestTextBatch",
graphlit_api/client.py CHANGED
@@ -195,6 +195,7 @@ from .get_user import GetUser
195
195
  from .get_workflow import GetWorkflow
196
196
  from .ingest_batch import IngestBatch
197
197
  from .ingest_encoded_file import IngestEncodedFile
198
+ from .ingest_memory import IngestMemory
198
199
  from .ingest_text import IngestText
199
200
  from .ingest_text_batch import IngestTextBatch
200
201
  from .ingest_uri import IngestUri
@@ -504,6 +505,7 @@ from .operations import (
504
505
  GET_WORKFLOW_GQL,
505
506
  INGEST_BATCH_GQL,
506
507
  INGEST_ENCODED_FILE_GQL,
508
+ INGEST_MEMORY_GQL,
507
509
  INGEST_TEXT_BATCH_GQL,
508
510
  INGEST_TEXT_GQL,
509
511
  INGEST_URI_GQL,
@@ -1412,10 +1414,35 @@ class Client(AsyncBaseClient):
1412
1414
  _data = self.get_data(response)
1413
1415
  return IngestEncodedFile.model_validate(_data)
1414
1416
 
1417
+ async def ingest_memory(
1418
+ self,
1419
+ text: str,
1420
+ name: Union[Optional[str], UnsetType] = UNSET,
1421
+ text_type: Union[Optional[TextTypes], UnsetType] = UNSET,
1422
+ collections: Union[Optional[List[EntityReferenceInput]], UnsetType] = UNSET,
1423
+ correlation_id: Union[Optional[str], UnsetType] = UNSET,
1424
+ **kwargs: Any
1425
+ ) -> IngestMemory:
1426
+ variables: Dict[str, object] = {
1427
+ "text": text,
1428
+ "name": name,
1429
+ "textType": text_type,
1430
+ "collections": collections,
1431
+ "correlationId": correlation_id,
1432
+ }
1433
+ response = await self.execute(
1434
+ query=INGEST_MEMORY_GQL,
1435
+ operation_name="IngestMemory",
1436
+ variables=variables,
1437
+ **kwargs
1438
+ )
1439
+ data = self.get_data(response)
1440
+ return IngestMemory.model_validate(data)
1441
+
1415
1442
  async def ingest_text(
1416
1443
  self,
1417
- name: str,
1418
1444
  text: str,
1445
+ name: Union[Optional[str], UnsetType] = UNSET,
1419
1446
  text_type: Union[Optional[TextTypes], UnsetType] = UNSET,
1420
1447
  uri: Union[Optional[Any], UnsetType] = UNSET,
1421
1448
  id: Union[Optional[str], UnsetType] = UNSET,
@@ -1429,8 +1456,8 @@ class Client(AsyncBaseClient):
1429
1456
  **kwargs: Any
1430
1457
  ) -> IngestText:
1431
1458
  variables: Dict[str, object] = {
1432
- "name": name,
1433
1459
  "text": text,
1460
+ "name": name,
1434
1461
  "textType": text_type,
1435
1462
  "uri": uri,
1436
1463
  "id": id,
graphlit_api/enums.py CHANGED
@@ -28,6 +28,12 @@ class OpenAIModels(str, Enum):
28
28
  GPT4O_MINI_128K_20240718 = "GPT4O_MINI_128K_20240718"
29
29
  GPT4O_MINI_128K = "GPT4O_MINI_128K"
30
30
  GPT4O_CHAT_128K = "GPT4O_CHAT_128K"
31
+ GPT41_NANO_1024K = "GPT41_NANO_1024K"
32
+ GPT41_NANO_1024K_20250414 = "GPT41_NANO_1024K_20250414"
33
+ GPT41_MINI_1024K = "GPT41_MINI_1024K"
34
+ GPT41_MINI_1024K_20250414 = "GPT41_MINI_1024K_20250414"
35
+ GPT41_1024K = "GPT41_1024K"
36
+ GPT41_1024K_20250414 = "GPT41_1024K_20250414"
31
37
  GPT45_PREVIEW_128K = "GPT45_PREVIEW_128K"
32
38
  GPT45_PREVIEW_128K_20250227 = "GPT45_PREVIEW_128K_20250227"
33
39
  O1_MINI_128K = "O1_MINI_128K"
@@ -179,6 +185,7 @@ class ContentTypes(str, Enum):
179
185
  EMAIL = "EMAIL"
180
186
  EVENT = "EVENT"
181
187
  ISSUE = "ISSUE"
188
+ MEMORY = "MEMORY"
182
189
 
183
190
 
184
191
  class CerebrasModels(str, Enum):
@@ -0,0 +1,83 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, List, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import (
10
+ ContentTypes,
11
+ EntityState,
12
+ FileTypes,
13
+ ObservableTypes,
14
+ OccurrenceTypes,
15
+ )
16
+
17
+
18
+ class IngestMemory(BaseModel):
19
+ ingest_memory: Optional["IngestMemoryIngestMemory"] = Field(alias="ingestMemory")
20
+
21
+
22
+ class IngestMemoryIngestMemory(BaseModel):
23
+ id: str
24
+ name: str
25
+ state: EntityState
26
+ type: Optional[ContentTypes]
27
+ file_type: Optional[FileTypes] = Field(alias="fileType")
28
+ mime_type: Optional[str] = Field(alias="mimeType")
29
+ uri: Optional[Any]
30
+ collections: Optional[List[Optional["IngestMemoryIngestMemoryCollections"]]]
31
+ observations: Optional[List[Optional["IngestMemoryIngestMemoryObservations"]]]
32
+
33
+
34
+ class IngestMemoryIngestMemoryCollections(BaseModel):
35
+ id: str
36
+ name: str
37
+
38
+
39
+ class IngestMemoryIngestMemoryObservations(BaseModel):
40
+ id: str
41
+ type: ObservableTypes
42
+ observable: "IngestMemoryIngestMemoryObservationsObservable"
43
+ related: Optional["IngestMemoryIngestMemoryObservationsRelated"]
44
+ related_type: Optional[ObservableTypes] = Field(alias="relatedType")
45
+ relation: Optional[str]
46
+ occurrences: Optional[
47
+ List[Optional["IngestMemoryIngestMemoryObservationsOccurrences"]]
48
+ ]
49
+ state: EntityState
50
+
51
+
52
+ class IngestMemoryIngestMemoryObservationsObservable(BaseModel):
53
+ id: str
54
+ name: Optional[str]
55
+
56
+
57
+ class IngestMemoryIngestMemoryObservationsRelated(BaseModel):
58
+ id: str
59
+ name: Optional[str]
60
+
61
+
62
+ class IngestMemoryIngestMemoryObservationsOccurrences(BaseModel):
63
+ type: Optional[OccurrenceTypes]
64
+ confidence: Optional[float]
65
+ start_time: Optional[Any] = Field(alias="startTime")
66
+ end_time: Optional[Any] = Field(alias="endTime")
67
+ page_index: Optional[int] = Field(alias="pageIndex")
68
+ bounding_box: Optional[
69
+ "IngestMemoryIngestMemoryObservationsOccurrencesBoundingBox"
70
+ ] = Field(alias="boundingBox")
71
+
72
+
73
+ class IngestMemoryIngestMemoryObservationsOccurrencesBoundingBox(BaseModel):
74
+ left: Optional[float]
75
+ top: Optional[float]
76
+ width: Optional[float]
77
+ height: Optional[float]
78
+
79
+
80
+ IngestMemory.model_rebuild()
81
+ IngestMemoryIngestMemory.model_rebuild()
82
+ IngestMemoryIngestMemoryObservations.model_rebuild()
83
+ IngestMemoryIngestMemoryObservationsOccurrences.model_rebuild()
@@ -191,6 +191,7 @@ __all__ = [
191
191
  "GET_WORKFLOW_GQL",
192
192
  "INGEST_BATCH_GQL",
193
193
  "INGEST_ENCODED_FILE_GQL",
194
+ "INGEST_MEMORY_GQL",
194
195
  "INGEST_TEXT_BATCH_GQL",
195
196
  "INGEST_TEXT_GQL",
196
197
  "INGEST_URI_GQL",
@@ -1591,8 +1592,60 @@ mutation IngestEncodedFile($name: String!, $data: String!, $mimeType: String!, $
1591
1592
  }
1592
1593
  """
1593
1594
 
1595
+ INGEST_MEMORY_GQL = """
1596
+ mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $collections: [EntityReferenceInput!], $correlationId: String) {
1597
+ ingestMemory(
1598
+ name: $name
1599
+ text: $text
1600
+ textType: $textType
1601
+ collections: $collections
1602
+ correlationId: $correlationId
1603
+ ) {
1604
+ id
1605
+ name
1606
+ state
1607
+ type
1608
+ fileType
1609
+ mimeType
1610
+ uri
1611
+ collections {
1612
+ id
1613
+ name
1614
+ }
1615
+ observations {
1616
+ id
1617
+ type
1618
+ observable {
1619
+ id
1620
+ name
1621
+ }
1622
+ related {
1623
+ id
1624
+ name
1625
+ }
1626
+ relatedType
1627
+ relation
1628
+ occurrences {
1629
+ type
1630
+ confidence
1631
+ startTime
1632
+ endTime
1633
+ pageIndex
1634
+ boundingBox {
1635
+ left
1636
+ top
1637
+ width
1638
+ height
1639
+ }
1640
+ }
1641
+ state
1642
+ }
1643
+ }
1644
+ }
1645
+ """
1646
+
1594
1647
  INGEST_TEXT_GQL = """
1595
- mutation IngestText($name: String!, $text: String!, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
1648
+ mutation IngestText($text: String!, $name: String, $textType: TextTypes, $uri: URL, $id: ID, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
1596
1649
  ingestText(
1597
1650
  name: $name
1598
1651
  text: $text
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphlit-client
3
- Version: 1.0.20250410001
3
+ Version: 1.0.20250414001
4
4
  Summary: Graphlit API Python Client
5
5
  Home-page: https://github.com/graphlit/graphlit-client-python
6
6
  Author: Unstruk Data Inc.
@@ -1,12 +1,12 @@
1
1
  graphlit/__init__.py,sha256=4AyigTlFQWP40lnaaQ1H1iRT_B1hIXW9bgPanbwmTvs,32
2
2
  graphlit/graphlit.py,sha256=56G5Am72og5QHIjEh9cy4vkfos7YVpGvzRuIPhPbCEU,1949
3
- graphlit_api/__init__.py,sha256=-1ZQyXGLQw3q1jxNQpdV4HuCR8HVGvt6b5uTeEbAX_I,187154
3
+ graphlit_api/__init__.py,sha256=bKiIjFGuDAcGHvPGsM9jJ4rNXtguE-gaaPM49CHxycY,187947
4
4
  graphlit_api/add_contents_to_collections.py,sha256=K7tNpLn8-lRVaVT39iKr-VtCKRWVONyL_h6cC0L606Y,888
5
5
  graphlit_api/ask_graphlit.py,sha256=F-mgXMfUqGYCOP4WFQXmZDp5RgK7Cej-nA1RkmRvp7o,6301
6
6
  graphlit_api/async_base_client.py,sha256=v0KUVwe2_RIQa8Mn7l_yD5McUe7B03vhclJ9SP4XGgw,12578
7
7
  graphlit_api/base_model.py,sha256=o2d-DixASFCGztr3rTiGX0AwgFu7Awr7EgD70FI8a-I,620
8
8
  graphlit_api/clear_conversation.py,sha256=5GOmc2wfupV-7EHWyi3v6LA0pSVLtFNCzxPJm42Dp6Y,531
9
- graphlit_api/client.py,sha256=8TyiLe0_zluZ_92ab5veKltZeodamiTgQAGBc6Ma58w,199849
9
+ graphlit_api/client.py,sha256=qEFAYuk-3ugdImWf5qkU22sW9Cz4pPjNbYQ9SJMf1-k,200821
10
10
  graphlit_api/close_conversation.py,sha256=HcIUUiNf7hnuLZ7Fy6IcgfuHMSyWyJ7uOEy1EEETy_4,531
11
11
  graphlit_api/complete_conversation.py,sha256=9YmZZ6Gs7MkApNP1eu8tXG4wqOd3FWgPMF6BiJOGo3o,16468
12
12
  graphlit_api/continue_conversation.py,sha256=wy_ARPwt_mmmwianxaHCNvK53p_Sbeqkwnoo9d2nTco,16468
@@ -157,7 +157,7 @@ graphlit_api/disable_user.py,sha256=qfFXMq691gPVdFjF-mYzjcx6DIvZnsp5Nny5pl0qI9Q,
157
157
  graphlit_api/enable_alert.py,sha256=KctjIbnyZDoDynbuD6IR2fHuNHKAtM07VVgKzTL479g,398
158
158
  graphlit_api/enable_feed.py,sha256=BhtLlEGV9p8ICodywdN9-sASWSX3w_4c3zYtf-bdaGE,390
159
159
  graphlit_api/enable_user.py,sha256=_0rQnpwVYhBrRcnpfqrKTOiANgOMe-ibUAHmS-XC0qo,390
160
- graphlit_api/enums.py,sha256=5qzUsuh3w28FXBdzNE9TU-bwaM7FcSivYZta2JCpK4o,26784
160
+ graphlit_api/enums.py,sha256=6uSO4hrV4So_qIKVSACZ1xvcO0qa5vdgLHnIdqYA0sE,27092
161
161
  graphlit_api/exceptions.py,sha256=33pJ_dDonmIx_D-43jvhuQYJAXz5HoaPf1DoxXmNsAw,2432
162
162
  graphlit_api/extract_contents.py,sha256=qsSy8UOJuqsUnCcuduaNPyaK2mZk_1noECT0Jgx3zRA,961
163
163
  graphlit_api/extract_text.py,sha256=jfkL6ep5wzXeoelZ5nRwNRT0t7oDCUt1xrigqkMj-7M,887
@@ -195,6 +195,7 @@ graphlit_api/get_user.py,sha256=pdfR920veI3hTBWqbIp8PP_1LCYi8KWTJ2Has8t8URM,2569
195
195
  graphlit_api/get_workflow.py,sha256=BWKzz03q51AmFnE0Cvxkm0WqIS2Es42x67r6KZxHuxo,14478
196
196
  graphlit_api/ingest_batch.py,sha256=pmO_rAZdG8dPid40h8lnTfKSa5r0EAOmFF7PIg3a_r4,2366
197
197
  graphlit_api/ingest_encoded_file.py,sha256=mKoEc5qziw8i-MDT8CrGCfmaupWnIVQkow7cRW_Y3Fw,2607
198
+ graphlit_api/ingest_memory.py,sha256=YF7sn_jvpk_iACg8encyp_gd0wrK0Om4blYzPDI-B8c,2374
198
199
  graphlit_api/ingest_text.py,sha256=D4lpV9LTC_u586_ILVrB2rVpHG0-8HivqeOA1GpQuFs,2286
199
200
  graphlit_api/ingest_text_batch.py,sha256=gSD1bH3mAPwJzy5TeMJ6UguEgI9yrPUXyz1soExSttM,2521
200
201
  graphlit_api/ingest_uri.py,sha256=f71kMRyMoAhef6sJU85ZgGz4aPq_5CDLaDvCeQnLY5A,2248
@@ -204,7 +205,7 @@ graphlit_api/is_feed_done.py,sha256=-FQS2vtDMnNW75K_9jR6IUutvpwLmtoS5yY8wD17CaM,
204
205
  graphlit_api/lookup_credits.py,sha256=xisQ4ExnjwWGbPZVU24bLF7pj4Dwp-d9q5GsHVBMoAM,1395
205
206
  graphlit_api/lookup_usage.py,sha256=D_cbO0KmXDqRYqQIhNwWXNFGjwNLEy2_5aVa-SYgRzw,1711
206
207
  graphlit_api/map_web.py,sha256=2rp4jFD1vDqcQ98mCVTeC0RzPqQxmmcRvHNRl8HJfFA,346
207
- graphlit_api/operations.py,sha256=2JgFjOWO1trZyVXV8z7GBmXqjZZHUZPr3fnUBgK0bnA,184033
208
+ graphlit_api/operations.py,sha256=BoNi9xxIIzNM-ZRB2J5LNENSkXCZgRZ8S5DStl5dJ4s,184882
208
209
  graphlit_api/prompt.py,sha256=4A0P-8hk98sNFNfRovzDBXXCHAGXOs2zThsXY07Q5KI,6015
209
210
  graphlit_api/prompt_conversation.py,sha256=zdVzHhZdF2CFL87_8EUcugWYzSFSWc0nCv4JFjhN7lI,16082
210
211
  graphlit_api/prompt_specifications.py,sha256=z8JQpfCUfgPeiuolLEGY83Pr32VaI2Ng1Wq0pG-gv2w,6902
@@ -301,8 +302,8 @@ graphlit_api/upsert_label.py,sha256=_bVWrISvyt4G4IcjAKqu8c5P6FDgaODdIGtSToJfNOY,
301
302
  graphlit_api/upsert_specification.py,sha256=23eLTL8OLAYE-j_nhjT5NgaCrSUs9Q40rGW_VhDrDoM,643
302
303
  graphlit_api/upsert_workflow.py,sha256=QL5Gi8jqF4wG9_qReoW8E5X7VsSIsLzgxIY1aAK0ebo,15692
303
304
  graphlit_api/workflow_exists.py,sha256=1XVcqCW_KZ3BwUFx08lwqQdf1ZpJ6Vmi8jBqcrMqYRI,397
304
- graphlit_client-1.0.20250410001.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
305
- graphlit_client-1.0.20250410001.dist-info/METADATA,sha256=0llo-GvUs9pJXqPwJzSk2GBm7wS1u8ZmBoGyTcyZx_I,3408
306
- graphlit_client-1.0.20250410001.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
307
- graphlit_client-1.0.20250410001.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
308
- graphlit_client-1.0.20250410001.dist-info/RECORD,,
305
+ graphlit_client-1.0.20250414001.dist-info/licenses/LICENSE,sha256=ivF8XnUYrNZFQ1wZFMrxWshDb1h7TdSK6Qk8_3WPkhM,1095
306
+ graphlit_client-1.0.20250414001.dist-info/METADATA,sha256=37pMsc-kbYVFbO1M2dACUwgQsb8Oc79vinvGKW50ZLk,3408
307
+ graphlit_client-1.0.20250414001.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
308
+ graphlit_client-1.0.20250414001.dist-info/top_level.txt,sha256=HUVfNzJrxWuHS-4M5I7XjLa8-mxYQwfx01A4YKJZSYM,22
309
+ graphlit_client-1.0.20250414001.dist-info/RECORD,,