graphlit-client 1.0.20250531003__py3-none-any.whl → 1.0.20250612001__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 +30 -0
- graphlit_api/ask_graphlit.py +1 -0
- graphlit_api/branch_conversation.py +25 -0
- graphlit_api/client.py +15 -0
- graphlit_api/complete_conversation.py +2 -0
- graphlit_api/continue_conversation.py +2 -0
- graphlit_api/create_workflow.py +14 -0
- graphlit_api/describe_encoded_image.py +1 -0
- graphlit_api/describe_image.py +1 -0
- graphlit_api/enums.py +27 -0
- graphlit_api/format_conversation.py +2 -0
- graphlit_api/get_content.py +24 -0
- graphlit_api/get_conversation.py +1 -0
- graphlit_api/get_workflow.py +14 -0
- graphlit_api/input_types.py +22 -0
- graphlit_api/operations.py +99 -1
- graphlit_api/prompt.py +1 -0
- graphlit_api/prompt_conversation.py +2 -0
- graphlit_api/prompt_specifications.py +1 -0
- graphlit_api/publish_contents.py +1 -0
- graphlit_api/publish_conversation.py +1 -0
- graphlit_api/publish_text.py +1 -0
- graphlit_api/query_alerts.py +1 -1
- graphlit_api/query_collections.py +1 -1
- graphlit_api/query_contents.py +1 -0
- graphlit_api/query_conversations.py +2 -1
- graphlit_api/query_feeds.py +1 -1
- graphlit_api/query_specifications.py +1 -1
- graphlit_api/query_users.py +1 -1
- graphlit_api/query_workflows.py +15 -1
- graphlit_api/revise_content.py +1 -0
- graphlit_api/revise_encoded_image.py +1 -0
- graphlit_api/revise_image.py +1 -0
- graphlit_api/revise_text.py +1 -0
- graphlit_api/update_workflow.py +14 -0
- graphlit_api/upsert_workflow.py +14 -0
- {graphlit_client-1.0.20250531003.dist-info → graphlit_client-1.0.20250612001.dist-info}/METADATA +1 -1
- {graphlit_client-1.0.20250531003.dist-info → graphlit_client-1.0.20250612001.dist-info}/RECORD +41 -40
- {graphlit_client-1.0.20250531003.dist-info → graphlit_client-1.0.20250612001.dist-info}/WHEEL +0 -0
- {graphlit_client-1.0.20250531003.dist-info → graphlit_client-1.0.20250612001.dist-info}/licenses/LICENSE +0 -0
- {graphlit_client-1.0.20250531003.dist-info → graphlit_client-1.0.20250612001.dist-info}/top_level.txt +0 -0
graphlit_api/__init__.py
CHANGED
@@ -20,6 +20,10 @@ from .ask_graphlit import (
|
|
20
20
|
)
|
21
21
|
from .async_base_client import AsyncBaseClient
|
22
22
|
from .base_model import BaseModel, Upload
|
23
|
+
from .branch_conversation import (
|
24
|
+
BranchConversation,
|
25
|
+
BranchConversationBranchConversation,
|
26
|
+
)
|
23
27
|
from .clear_conversation import ClearConversation, ClearConversationClearConversation
|
24
28
|
from .client import Client
|
25
29
|
from .close_conversation import CloseConversation, CloseConversationCloseConversation
|
@@ -259,6 +263,7 @@ from .create_workflow import (
|
|
259
263
|
CreateWorkflowCreateWorkflowPreparationJobsConnectorModelDocument,
|
260
264
|
CreateWorkflowCreateWorkflowPreparationJobsConnectorModelDocumentSpecification,
|
261
265
|
CreateWorkflowCreateWorkflowPreparationJobsConnectorPage,
|
266
|
+
CreateWorkflowCreateWorkflowPreparationJobsConnectorReducto,
|
262
267
|
CreateWorkflowCreateWorkflowPreparationSummarizations,
|
263
268
|
CreateWorkflowCreateWorkflowPreparationSummarizationsSpecification,
|
264
269
|
CreateWorkflowCreateWorkflowStorage,
|
@@ -597,6 +602,10 @@ from .enums import (
|
|
597
602
|
PolicyTimeTypes,
|
598
603
|
ProductFacetTypes,
|
599
604
|
PromptStrategyTypes,
|
605
|
+
ReductoEnrichmentModes,
|
606
|
+
ReductoExtractionModes,
|
607
|
+
ReductoOcrModes,
|
608
|
+
ReductoOcrSystems,
|
600
609
|
RegexSourceTypes,
|
601
610
|
RenditionTypes,
|
602
611
|
ReplicateModels,
|
@@ -737,6 +746,7 @@ from .get_content import (
|
|
737
746
|
GetContentContentEmailTo,
|
738
747
|
GetContentContentFeed,
|
739
748
|
GetContentContentFrames,
|
749
|
+
GetContentContentH3,
|
740
750
|
GetContentContentImage,
|
741
751
|
GetContentContentIssue,
|
742
752
|
GetContentContentLanguage,
|
@@ -1024,6 +1034,7 @@ from .get_workflow import (
|
|
1024
1034
|
GetWorkflowWorkflowPreparationJobsConnectorModelDocument,
|
1025
1035
|
GetWorkflowWorkflowPreparationJobsConnectorModelDocumentSpecification,
|
1026
1036
|
GetWorkflowWorkflowPreparationJobsConnectorPage,
|
1037
|
+
GetWorkflowWorkflowPreparationJobsConnectorReducto,
|
1027
1038
|
GetWorkflowWorkflowPreparationSummarizations,
|
1028
1039
|
GetWorkflowWorkflowPreparationSummarizationsSpecification,
|
1029
1040
|
GetWorkflowWorkflowStorage,
|
@@ -1361,6 +1372,7 @@ from .input_types import (
|
|
1361
1372
|
PromptStrategyUpdateInput,
|
1362
1373
|
RedditFeedPropertiesInput,
|
1363
1374
|
RedditFeedPropertiesUpdateInput,
|
1375
|
+
ReductoDocumentPreparationPropertiesInput,
|
1364
1376
|
RegexClassificationRuleInput,
|
1365
1377
|
RegexContentClassificationPropertiesInput,
|
1366
1378
|
ReplicateModelPropertiesInput,
|
@@ -1434,6 +1446,7 @@ from .map_web import MapWeb, MapWebMapWeb
|
|
1434
1446
|
from .operations import (
|
1435
1447
|
ADD_CONTENTS_TO_COLLECTIONS_GQL,
|
1436
1448
|
ASK_GRAPHLIT_GQL,
|
1449
|
+
BRANCH_CONVERSATION_GQL,
|
1437
1450
|
CLEAR_CONVERSATION_GQL,
|
1438
1451
|
CLOSE_CONVERSATION_GQL,
|
1439
1452
|
COMPLETE_CONVERSATION_GQL,
|
@@ -2258,6 +2271,7 @@ from .query_workflows import (
|
|
2258
2271
|
QueryWorkflowsWorkflowsResultsPreparationJobsConnectorModelDocument,
|
2259
2272
|
QueryWorkflowsWorkflowsResultsPreparationJobsConnectorModelDocumentSpecification,
|
2260
2273
|
QueryWorkflowsWorkflowsResultsPreparationJobsConnectorPage,
|
2274
|
+
QueryWorkflowsWorkflowsResultsPreparationJobsConnectorReducto,
|
2261
2275
|
QueryWorkflowsWorkflowsResultsPreparationSummarizations,
|
2262
2276
|
QueryWorkflowsWorkflowsResultsPreparationSummarizationsSpecification,
|
2263
2277
|
QueryWorkflowsWorkflowsResultsStorage,
|
@@ -2485,6 +2499,7 @@ from .update_workflow import (
|
|
2485
2499
|
UpdateWorkflowUpdateWorkflowPreparationJobsConnectorModelDocument,
|
2486
2500
|
UpdateWorkflowUpdateWorkflowPreparationJobsConnectorModelDocumentSpecification,
|
2487
2501
|
UpdateWorkflowUpdateWorkflowPreparationJobsConnectorPage,
|
2502
|
+
UpdateWorkflowUpdateWorkflowPreparationJobsConnectorReducto,
|
2488
2503
|
UpdateWorkflowUpdateWorkflowPreparationSummarizations,
|
2489
2504
|
UpdateWorkflowUpdateWorkflowPreparationSummarizationsSpecification,
|
2490
2505
|
UpdateWorkflowUpdateWorkflowStorage,
|
@@ -2547,6 +2562,7 @@ from .upsert_workflow import (
|
|
2547
2562
|
UpsertWorkflowUpsertWorkflowPreparationJobsConnectorModelDocument,
|
2548
2563
|
UpsertWorkflowUpsertWorkflowPreparationJobsConnectorModelDocumentSpecification,
|
2549
2564
|
UpsertWorkflowUpsertWorkflowPreparationJobsConnectorPage,
|
2565
|
+
UpsertWorkflowUpsertWorkflowPreparationJobsConnectorReducto,
|
2550
2566
|
UpsertWorkflowUpsertWorkflowPreparationSummarizations,
|
2551
2567
|
UpsertWorkflowUpsertWorkflowPreparationSummarizationsSpecification,
|
2552
2568
|
UpsertWorkflowUpsertWorkflowStorage,
|
@@ -2606,6 +2622,7 @@ __all__ = [
|
|
2606
2622
|
"AzureOpenAIModelPropertiesUpdateInput",
|
2607
2623
|
"AzureOpenAIModels",
|
2608
2624
|
"AzureTextExtractionPropertiesInput",
|
2625
|
+
"BRANCH_CONVERSATION_GQL",
|
2609
2626
|
"BaseModel",
|
2610
2627
|
"BedrockModelPropertiesInput",
|
2611
2628
|
"BedrockModelPropertiesUpdateInput",
|
@@ -2614,6 +2631,8 @@ __all__ = [
|
|
2614
2631
|
"BoundingBoxInput",
|
2615
2632
|
"BoxFeedPropertiesInput",
|
2616
2633
|
"BoxFeedPropertiesUpdateInput",
|
2634
|
+
"BranchConversation",
|
2635
|
+
"BranchConversationBranchConversation",
|
2617
2636
|
"CLEAR_CONVERSATION_GQL",
|
2618
2637
|
"CLOSE_CONVERSATION_GQL",
|
2619
2638
|
"COMPLETE_CONVERSATION_GQL",
|
@@ -2944,6 +2963,7 @@ __all__ = [
|
|
2944
2963
|
"CreateWorkflowCreateWorkflowPreparationJobsConnectorModelDocument",
|
2945
2964
|
"CreateWorkflowCreateWorkflowPreparationJobsConnectorModelDocumentSpecification",
|
2946
2965
|
"CreateWorkflowCreateWorkflowPreparationJobsConnectorPage",
|
2966
|
+
"CreateWorkflowCreateWorkflowPreparationJobsConnectorReducto",
|
2947
2967
|
"CreateWorkflowCreateWorkflowPreparationSummarizations",
|
2948
2968
|
"CreateWorkflowCreateWorkflowPreparationSummarizationsSpecification",
|
2949
2969
|
"CreateWorkflowCreateWorkflowStorage",
|
@@ -3422,6 +3442,7 @@ __all__ = [
|
|
3422
3442
|
"GetContentContentEmailTo",
|
3423
3443
|
"GetContentContentFeed",
|
3424
3444
|
"GetContentContentFrames",
|
3445
|
+
"GetContentContentH3",
|
3425
3446
|
"GetContentContentImage",
|
3426
3447
|
"GetContentContentIssue",
|
3427
3448
|
"GetContentContentLanguage",
|
@@ -3692,6 +3713,7 @@ __all__ = [
|
|
3692
3713
|
"GetWorkflowWorkflowPreparationJobsConnectorModelDocument",
|
3693
3714
|
"GetWorkflowWorkflowPreparationJobsConnectorModelDocumentSpecification",
|
3694
3715
|
"GetWorkflowWorkflowPreparationJobsConnectorPage",
|
3716
|
+
"GetWorkflowWorkflowPreparationJobsConnectorReducto",
|
3695
3717
|
"GetWorkflowWorkflowPreparationSummarizations",
|
3696
3718
|
"GetWorkflowWorkflowPreparationSummarizationsSpecification",
|
3697
3719
|
"GetWorkflowWorkflowStorage",
|
@@ -4481,6 +4503,7 @@ __all__ = [
|
|
4481
4503
|
"QueryWorkflowsWorkflowsResultsPreparationJobsConnectorModelDocument",
|
4482
4504
|
"QueryWorkflowsWorkflowsResultsPreparationJobsConnectorModelDocumentSpecification",
|
4483
4505
|
"QueryWorkflowsWorkflowsResultsPreparationJobsConnectorPage",
|
4506
|
+
"QueryWorkflowsWorkflowsResultsPreparationJobsConnectorReducto",
|
4484
4507
|
"QueryWorkflowsWorkflowsResultsPreparationSummarizations",
|
4485
4508
|
"QueryWorkflowsWorkflowsResultsPreparationSummarizationsSpecification",
|
4486
4509
|
"QueryWorkflowsWorkflowsResultsStorage",
|
@@ -4495,6 +4518,11 @@ __all__ = [
|
|
4495
4518
|
"RSSFeedPropertiesUpdateInput",
|
4496
4519
|
"RedditFeedPropertiesInput",
|
4497
4520
|
"RedditFeedPropertiesUpdateInput",
|
4521
|
+
"ReductoDocumentPreparationPropertiesInput",
|
4522
|
+
"ReductoEnrichmentModes",
|
4523
|
+
"ReductoExtractionModes",
|
4524
|
+
"ReductoOcrModes",
|
4525
|
+
"ReductoOcrSystems",
|
4498
4526
|
"RegexClassificationRuleInput",
|
4499
4527
|
"RegexContentClassificationPropertiesInput",
|
4500
4528
|
"RegexSourceTypes",
|
@@ -4797,6 +4825,7 @@ __all__ = [
|
|
4797
4825
|
"UpdateWorkflowUpdateWorkflowPreparationJobsConnectorModelDocument",
|
4798
4826
|
"UpdateWorkflowUpdateWorkflowPreparationJobsConnectorModelDocumentSpecification",
|
4799
4827
|
"UpdateWorkflowUpdateWorkflowPreparationJobsConnectorPage",
|
4828
|
+
"UpdateWorkflowUpdateWorkflowPreparationJobsConnectorReducto",
|
4800
4829
|
"UpdateWorkflowUpdateWorkflowPreparationSummarizations",
|
4801
4830
|
"UpdateWorkflowUpdateWorkflowPreparationSummarizationsSpecification",
|
4802
4831
|
"UpdateWorkflowUpdateWorkflowStorage",
|
@@ -4858,6 +4887,7 @@ __all__ = [
|
|
4858
4887
|
"UpsertWorkflowUpsertWorkflowPreparationJobsConnectorModelDocument",
|
4859
4888
|
"UpsertWorkflowUpsertWorkflowPreparationJobsConnectorModelDocumentSpecification",
|
4860
4889
|
"UpsertWorkflowUpsertWorkflowPreparationJobsConnectorPage",
|
4890
|
+
"UpsertWorkflowUpsertWorkflowPreparationJobsConnectorReducto",
|
4861
4891
|
"UpsertWorkflowUpsertWorkflowPreparationSummarizations",
|
4862
4892
|
"UpsertWorkflowUpsertWorkflowPreparationSummarizationsSpecification",
|
4863
4893
|
"UpsertWorkflowUpsertWorkflowStorage",
|
graphlit_api/ask_graphlit.py
CHANGED
@@ -89,6 +89,7 @@ class AskGraphlitAskGraphlitMessageCitationsContent(BaseModel):
|
|
89
89
|
posts: Optional[List[str]]
|
90
90
|
chapters: Optional[List[str]]
|
91
91
|
questions: Optional[List[str]]
|
92
|
+
quotes: Optional[List[str]]
|
92
93
|
video: Optional["AskGraphlitAskGraphlitMessageCitationsContentVideo"]
|
93
94
|
audio: Optional["AskGraphlitAskGraphlitMessageCitationsContentAudio"]
|
94
95
|
image: Optional["AskGraphlitAskGraphlitMessageCitationsContentImage"]
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: ./documents
|
3
|
+
|
4
|
+
from typing import Optional
|
5
|
+
|
6
|
+
from pydantic import Field
|
7
|
+
|
8
|
+
from .base_model import BaseModel
|
9
|
+
from .enums import ConversationTypes, EntityState
|
10
|
+
|
11
|
+
|
12
|
+
class BranchConversation(BaseModel):
|
13
|
+
branch_conversation: Optional["BranchConversationBranchConversation"] = Field(
|
14
|
+
alias="branchConversation"
|
15
|
+
)
|
16
|
+
|
17
|
+
|
18
|
+
class BranchConversationBranchConversation(BaseModel):
|
19
|
+
id: str
|
20
|
+
name: str
|
21
|
+
state: EntityState
|
22
|
+
type: Optional[ConversationTypes]
|
23
|
+
|
24
|
+
|
25
|
+
BranchConversation.model_rebuild()
|
graphlit_api/client.py
CHANGED
@@ -7,6 +7,7 @@ from .add_contents_to_collections import AddContentsToCollections
|
|
7
7
|
from .ask_graphlit import AskGraphlit
|
8
8
|
from .async_base_client import AsyncBaseClient
|
9
9
|
from .base_model import UNSET, UnsetType
|
10
|
+
from .branch_conversation import BranchConversation
|
10
11
|
from .clear_conversation import ClearConversation
|
11
12
|
from .close_conversation import CloseConversation
|
12
13
|
from .complete_conversation import CompleteConversation
|
@@ -320,6 +321,7 @@ from .map_web import MapWeb
|
|
320
321
|
from .operations import (
|
321
322
|
ADD_CONTENTS_TO_COLLECTIONS_GQL,
|
322
323
|
ASK_GRAPHLIT_GQL,
|
324
|
+
BRANCH_CONVERSATION_GQL,
|
323
325
|
CLEAR_CONVERSATION_GQL,
|
324
326
|
CLOSE_CONVERSATION_GQL,
|
325
327
|
COMPLETE_CONVERSATION_GQL,
|
@@ -1828,6 +1830,17 @@ class Client(AsyncBaseClient):
|
|
1828
1830
|
data = self.get_data(response)
|
1829
1831
|
return AskGraphlit.model_validate(data)
|
1830
1832
|
|
1833
|
+
async def branch_conversation(self, id: str, **kwargs: Any) -> BranchConversation:
|
1834
|
+
variables: Dict[str, object] = {"id": id}
|
1835
|
+
response = await self.execute(
|
1836
|
+
query=BRANCH_CONVERSATION_GQL,
|
1837
|
+
operation_name="BranchConversation",
|
1838
|
+
variables=variables,
|
1839
|
+
**kwargs
|
1840
|
+
)
|
1841
|
+
data = self.get_data(response)
|
1842
|
+
return BranchConversation.model_validate(data)
|
1843
|
+
|
1831
1844
|
async def clear_conversation(self, id: str, **kwargs: Any) -> ClearConversation:
|
1832
1845
|
variables: Dict[str, object] = {"id": id}
|
1833
1846
|
response = await self.execute(
|
@@ -1983,6 +1996,7 @@ class Client(AsyncBaseClient):
|
|
1983
1996
|
prompt: str,
|
1984
1997
|
id: Union[Optional[str], UnsetType] = UNSET,
|
1985
1998
|
specification: Union[Optional[EntityReferenceInput], UnsetType] = UNSET,
|
1999
|
+
tools: Union[Optional[List[ToolDefinitionInput]], UnsetType] = UNSET,
|
1986
2000
|
include_details: Union[Optional[bool], UnsetType] = UNSET,
|
1987
2001
|
correlation_id: Union[Optional[str], UnsetType] = UNSET,
|
1988
2002
|
**kwargs: Any
|
@@ -1991,6 +2005,7 @@ class Client(AsyncBaseClient):
|
|
1991
2005
|
"prompt": prompt,
|
1992
2006
|
"id": id,
|
1993
2007
|
"specification": specification,
|
2008
|
+
"tools": tools,
|
1994
2009
|
"includeDetails": include_details,
|
1995
2010
|
"correlationId": correlation_id,
|
1996
2011
|
}
|
@@ -100,6 +100,7 @@ class CompleteConversationCompleteConversationMessageCitationsContent(BaseModel)
|
|
100
100
|
posts: Optional[List[str]]
|
101
101
|
chapters: Optional[List[str]]
|
102
102
|
questions: Optional[List[str]]
|
103
|
+
quotes: Optional[List[str]]
|
103
104
|
video: Optional[
|
104
105
|
"CompleteConversationCompleteConversationMessageCitationsContentVideo"
|
105
106
|
]
|
@@ -336,6 +337,7 @@ class CompleteConversationCompleteConversationDetailsMessagesCitationsContent(
|
|
336
337
|
posts: Optional[List[str]]
|
337
338
|
chapters: Optional[List[str]]
|
338
339
|
questions: Optional[List[str]]
|
340
|
+
quotes: Optional[List[str]]
|
339
341
|
video: Optional[
|
340
342
|
"CompleteConversationCompleteConversationDetailsMessagesCitationsContentVideo"
|
341
343
|
]
|
@@ -100,6 +100,7 @@ class ContinueConversationContinueConversationMessageCitationsContent(BaseModel)
|
|
100
100
|
posts: Optional[List[str]]
|
101
101
|
chapters: Optional[List[str]]
|
102
102
|
questions: Optional[List[str]]
|
103
|
+
quotes: Optional[List[str]]
|
103
104
|
video: Optional[
|
104
105
|
"ContinueConversationContinueConversationMessageCitationsContentVideo"
|
105
106
|
]
|
@@ -336,6 +337,7 @@ class ContinueConversationContinueConversationDetailsMessagesCitationsContent(
|
|
336
337
|
posts: Optional[List[str]]
|
337
338
|
chapters: Optional[List[str]]
|
338
339
|
questions: Optional[List[str]]
|
340
|
+
quotes: Optional[List[str]]
|
339
341
|
video: Optional[
|
340
342
|
"ContinueConversationContinueConversationDetailsMessagesCitationsContentVideo"
|
341
343
|
]
|
graphlit_api/create_workflow.py
CHANGED
@@ -22,6 +22,10 @@ from .enums import (
|
|
22
22
|
IntegrationServiceTypes,
|
23
23
|
LinkTypes,
|
24
24
|
ObservableTypes,
|
25
|
+
ReductoEnrichmentModes,
|
26
|
+
ReductoExtractionModes,
|
27
|
+
ReductoOcrModes,
|
28
|
+
ReductoOcrSystems,
|
25
29
|
RegexSourceTypes,
|
26
30
|
StoragePolicyTypes,
|
27
31
|
SummarizationTypes,
|
@@ -139,6 +143,7 @@ class CreateWorkflowCreateWorkflowPreparationJobsConnector(BaseModel):
|
|
139
143
|
model_document: Optional[
|
140
144
|
"CreateWorkflowCreateWorkflowPreparationJobsConnectorModelDocument"
|
141
145
|
] = Field(alias="modelDocument")
|
146
|
+
reducto: Optional["CreateWorkflowCreateWorkflowPreparationJobsConnectorReducto"]
|
142
147
|
mistral: Optional["CreateWorkflowCreateWorkflowPreparationJobsConnectorMistral"]
|
143
148
|
|
144
149
|
|
@@ -191,6 +196,15 @@ class CreateWorkflowCreateWorkflowPreparationJobsConnectorModelDocumentSpecifica
|
|
191
196
|
id: str
|
192
197
|
|
193
198
|
|
199
|
+
class CreateWorkflowCreateWorkflowPreparationJobsConnectorReducto(BaseModel):
|
200
|
+
ocr_mode: Optional[ReductoOcrModes] = Field(alias="ocrMode")
|
201
|
+
ocr_system: Optional[ReductoOcrSystems] = Field(alias="ocrSystem")
|
202
|
+
extraction_mode: Optional[ReductoExtractionModes] = Field(alias="extractionMode")
|
203
|
+
enable_enrichment: Optional[bool] = Field(alias="enableEnrichment")
|
204
|
+
enrichment_mode: Optional[ReductoEnrichmentModes] = Field(alias="enrichmentMode")
|
205
|
+
key: Optional[str]
|
206
|
+
|
207
|
+
|
194
208
|
class CreateWorkflowCreateWorkflowPreparationJobsConnectorMistral(BaseModel):
|
195
209
|
key: Optional[str]
|
196
210
|
|
@@ -83,6 +83,7 @@ class DescribeEncodedImageDescribeEncodedImageCitationsContent(BaseModel):
|
|
83
83
|
posts: Optional[List[str]]
|
84
84
|
chapters: Optional[List[str]]
|
85
85
|
questions: Optional[List[str]]
|
86
|
+
quotes: Optional[List[str]]
|
86
87
|
video: Optional["DescribeEncodedImageDescribeEncodedImageCitationsContentVideo"]
|
87
88
|
audio: Optional["DescribeEncodedImageDescribeEncodedImageCitationsContentAudio"]
|
88
89
|
image: Optional["DescribeEncodedImageDescribeEncodedImageCitationsContentImage"]
|
graphlit_api/describe_image.py
CHANGED
@@ -81,6 +81,7 @@ class DescribeImageDescribeImageCitationsContent(BaseModel):
|
|
81
81
|
posts: Optional[List[str]]
|
82
82
|
chapters: Optional[List[str]]
|
83
83
|
questions: Optional[List[str]]
|
84
|
+
quotes: Optional[List[str]]
|
84
85
|
video: Optional["DescribeImageDescribeImageCitationsContentVideo"]
|
85
86
|
audio: Optional["DescribeImageDescribeImageCitationsContentAudio"]
|
86
87
|
image: Optional["DescribeImageDescribeImageCitationsContentImage"]
|
graphlit_api/enums.py
CHANGED
@@ -81,6 +81,8 @@ class SummarizationTypes(str, Enum):
|
|
81
81
|
POSTS = "POSTS"
|
82
82
|
CHAPTERS = "CHAPTERS"
|
83
83
|
QUESTIONS = "QUESTIONS"
|
84
|
+
QUOTES = "QUOTES"
|
85
|
+
GEOTAG = "GEOTAG"
|
84
86
|
CUSTOM = "CUSTOM"
|
85
87
|
|
86
88
|
|
@@ -357,6 +359,17 @@ class TwitterListingTypes(str, Enum):
|
|
357
359
|
RECENT_SEARCH = "RECENT_SEARCH"
|
358
360
|
|
359
361
|
|
362
|
+
class ReductoOcrSystems(str, Enum):
|
363
|
+
HIGHRES = "HIGHRES"
|
364
|
+
MULTILINGUAL = "MULTILINGUAL"
|
365
|
+
COMBINED = "COMBINED"
|
366
|
+
|
367
|
+
|
368
|
+
class ReductoOcrModes(str, Enum):
|
369
|
+
STANDARD = "STANDARD"
|
370
|
+
AGENTIC = "AGENTIC"
|
371
|
+
|
372
|
+
|
360
373
|
class ApplyPolicy(str, Enum):
|
361
374
|
BEFORE_RESOLVER = "BEFORE_RESOLVER"
|
362
375
|
AFTER_RESOLVER = "AFTER_RESOLVER"
|
@@ -369,6 +382,7 @@ class SpecificationTypes(str, Enum):
|
|
369
382
|
IMAGE_EMBEDDING = "IMAGE_EMBEDDING"
|
370
383
|
EXTRACTION = "EXTRACTION"
|
371
384
|
CLASSIFICATION = "CLASSIFICATION"
|
385
|
+
SUMMARIZATION = "SUMMARIZATION"
|
372
386
|
PREPARATION = "PREPARATION"
|
373
387
|
|
374
388
|
|
@@ -816,6 +830,7 @@ class FilePreparationServiceTypes(str, Enum):
|
|
816
830
|
DOCUMENT = "DOCUMENT"
|
817
831
|
EMAIL = "EMAIL"
|
818
832
|
PAGE = "PAGE"
|
833
|
+
REDUCTO_DOCUMENT = "REDUCTO_DOCUMENT"
|
819
834
|
MODEL_DOCUMENT = "MODEL_DOCUMENT"
|
820
835
|
ASSEMBLY_AI = "ASSEMBLY_AI"
|
821
836
|
MISTRAL_DOCUMENT = "MISTRAL_DOCUMENT"
|
@@ -994,6 +1009,12 @@ class GoogleModels(str, Enum):
|
|
994
1009
|
CUSTOM = "CUSTOM"
|
995
1010
|
|
996
1011
|
|
1012
|
+
class ReductoExtractionModes(str, Enum):
|
1013
|
+
OCR = "OCR"
|
1014
|
+
METADATA = "METADATA"
|
1015
|
+
HYBRID = "HYBRID"
|
1016
|
+
|
1017
|
+
|
997
1018
|
class UserTypes(str, Enum):
|
998
1019
|
HUMAN = "HUMAN"
|
999
1020
|
AGENT = "AGENT"
|
@@ -1021,6 +1042,12 @@ class RenditionTypes(str, Enum):
|
|
1021
1042
|
CONTENT = "CONTENT"
|
1022
1043
|
|
1023
1044
|
|
1045
|
+
class ReductoEnrichmentModes(str, Enum):
|
1046
|
+
STANDARD = "STANDARD"
|
1047
|
+
PAGE = "PAGE"
|
1048
|
+
TABLE = "TABLE"
|
1049
|
+
|
1050
|
+
|
1024
1051
|
class MistralModels(str, Enum):
|
1025
1052
|
MIXTRAL_8X7B_INSTRUCT = "MIXTRAL_8X7B_INSTRUCT"
|
1026
1053
|
MISTRAL_NEMO = "MISTRAL_NEMO"
|
@@ -100,6 +100,7 @@ class FormatConversationFormatConversationMessageCitationsContent(BaseModel):
|
|
100
100
|
posts: Optional[List[str]]
|
101
101
|
chapters: Optional[List[str]]
|
102
102
|
questions: Optional[List[str]]
|
103
|
+
quotes: Optional[List[str]]
|
103
104
|
video: Optional["FormatConversationFormatConversationMessageCitationsContentVideo"]
|
104
105
|
audio: Optional["FormatConversationFormatConversationMessageCitationsContentAudio"]
|
105
106
|
image: Optional["FormatConversationFormatConversationMessageCitationsContentImage"]
|
@@ -318,6 +319,7 @@ class FormatConversationFormatConversationDetailsMessagesCitationsContent(BaseMo
|
|
318
319
|
posts: Optional[List[str]]
|
319
320
|
chapters: Optional[List[str]]
|
320
321
|
questions: Optional[List[str]]
|
322
|
+
quotes: Optional[List[str]]
|
321
323
|
video: Optional[
|
322
324
|
"FormatConversationFormatConversationDetailsMessagesCitationsContentVideo"
|
323
325
|
]
|
graphlit_api/get_content.py
CHANGED
@@ -43,6 +43,11 @@ class GetContentContent(BaseModel):
|
|
43
43
|
markdown: Optional[str]
|
44
44
|
address: Optional["GetContentContentAddress"]
|
45
45
|
location: Optional["GetContentContentLocation"]
|
46
|
+
h_3: Optional["GetContentContentH3"] = Field(alias="h3")
|
47
|
+
boundary: Optional[str]
|
48
|
+
epsg_code: Optional[int] = Field(alias="epsgCode")
|
49
|
+
path: Optional[str]
|
50
|
+
features: Optional[str]
|
46
51
|
c_4_id: Optional[str] = Field(alias="c4id")
|
47
52
|
type: Optional[ContentTypes]
|
48
53
|
file_type: Optional[FileTypes] = Field(alias="fileType")
|
@@ -102,6 +107,25 @@ class GetContentContentLocation(BaseModel):
|
|
102
107
|
longitude: Optional[float]
|
103
108
|
|
104
109
|
|
110
|
+
class GetContentContentH3(BaseModel):
|
111
|
+
h_3_r_0: Optional[str] = Field(alias="h3r0")
|
112
|
+
h_3_r_1: Optional[str] = Field(alias="h3r1")
|
113
|
+
h_3_r_2: Optional[str] = Field(alias="h3r2")
|
114
|
+
h_3_r_3: Optional[str] = Field(alias="h3r3")
|
115
|
+
h_3_r_4: Optional[str] = Field(alias="h3r4")
|
116
|
+
h_3_r_5: Optional[str] = Field(alias="h3r5")
|
117
|
+
h_3_r_6: Optional[str] = Field(alias="h3r6")
|
118
|
+
h_3_r_7: Optional[str] = Field(alias="h3r7")
|
119
|
+
h_3_r_8: Optional[str] = Field(alias="h3r8")
|
120
|
+
h_3_r_9: Optional[str] = Field(alias="h3r9")
|
121
|
+
h_3_r_10: Optional[str] = Field(alias="h3r10")
|
122
|
+
h_3_r_11: Optional[str] = Field(alias="h3r11")
|
123
|
+
h_3_r_12: Optional[str] = Field(alias="h3r12")
|
124
|
+
h_3_r_13: Optional[str] = Field(alias="h3r13")
|
125
|
+
h_3_r_14: Optional[str] = Field(alias="h3r14")
|
126
|
+
h_3_r_15: Optional[str] = Field(alias="h3r15")
|
127
|
+
|
128
|
+
|
105
129
|
class GetContentContentVideo(BaseModel):
|
106
130
|
width: Optional[int]
|
107
131
|
height: Optional[int]
|
graphlit_api/get_conversation.py
CHANGED
@@ -103,6 +103,7 @@ class GetConversationConversationMessagesCitationsContent(BaseModel):
|
|
103
103
|
posts: Optional[List[str]]
|
104
104
|
chapters: Optional[List[str]]
|
105
105
|
questions: Optional[List[str]]
|
106
|
+
quotes: Optional[List[str]]
|
106
107
|
video: Optional["GetConversationConversationMessagesCitationsContentVideo"]
|
107
108
|
audio: Optional["GetConversationConversationMessagesCitationsContentAudio"]
|
108
109
|
image: Optional["GetConversationConversationMessagesCitationsContentImage"]
|
graphlit_api/get_workflow.py
CHANGED
@@ -22,6 +22,10 @@ from .enums import (
|
|
22
22
|
IntegrationServiceTypes,
|
23
23
|
LinkTypes,
|
24
24
|
ObservableTypes,
|
25
|
+
ReductoEnrichmentModes,
|
26
|
+
ReductoExtractionModes,
|
27
|
+
ReductoOcrModes,
|
28
|
+
ReductoOcrSystems,
|
25
29
|
RegexSourceTypes,
|
26
30
|
StoragePolicyTypes,
|
27
31
|
SummarizationTypes,
|
@@ -138,6 +142,7 @@ class GetWorkflowWorkflowPreparationJobsConnector(BaseModel):
|
|
138
142
|
model_document: Optional[
|
139
143
|
"GetWorkflowWorkflowPreparationJobsConnectorModelDocument"
|
140
144
|
] = Field(alias="modelDocument")
|
145
|
+
reducto: Optional["GetWorkflowWorkflowPreparationJobsConnectorReducto"]
|
141
146
|
mistral: Optional["GetWorkflowWorkflowPreparationJobsConnectorMistral"]
|
142
147
|
|
143
148
|
|
@@ -188,6 +193,15 @@ class GetWorkflowWorkflowPreparationJobsConnectorModelDocumentSpecification(Base
|
|
188
193
|
id: str
|
189
194
|
|
190
195
|
|
196
|
+
class GetWorkflowWorkflowPreparationJobsConnectorReducto(BaseModel):
|
197
|
+
ocr_mode: Optional[ReductoOcrModes] = Field(alias="ocrMode")
|
198
|
+
ocr_system: Optional[ReductoOcrSystems] = Field(alias="ocrSystem")
|
199
|
+
extraction_mode: Optional[ReductoExtractionModes] = Field(alias="extractionMode")
|
200
|
+
enable_enrichment: Optional[bool] = Field(alias="enableEnrichment")
|
201
|
+
enrichment_mode: Optional[ReductoEnrichmentModes] = Field(alias="enrichmentMode")
|
202
|
+
key: Optional[str]
|
203
|
+
|
204
|
+
|
191
205
|
class GetWorkflowWorkflowPreparationJobsConnectorMistral(BaseModel):
|
192
206
|
key: Optional[str]
|
193
207
|
|
graphlit_api/input_types.py
CHANGED
@@ -88,6 +88,10 @@ from .enums import (
|
|
88
88
|
PolicyTimeTypes,
|
89
89
|
ProductFacetTypes,
|
90
90
|
PromptStrategyTypes,
|
91
|
+
ReductoEnrichmentModes,
|
92
|
+
ReductoExtractionModes,
|
93
|
+
ReductoOcrModes,
|
94
|
+
ReductoOcrSystems,
|
91
95
|
RegexSourceTypes,
|
92
96
|
ReplicateModels,
|
93
97
|
RepoFacetTypes,
|
@@ -452,6 +456,7 @@ class ContentUpdateInput(BaseModel):
|
|
452
456
|
posts: Optional[List[str]] = None
|
453
457
|
chapters: Optional[List[str]] = None
|
454
458
|
questions: Optional[List[str]] = None
|
459
|
+
quotes: Optional[List[str]] = None
|
455
460
|
video: Optional["VideoMetadataInput"] = None
|
456
461
|
audio: Optional["AudioMetadataInput"] = None
|
457
462
|
image: Optional["ImageMetadataInput"] = None
|
@@ -1806,6 +1811,7 @@ class FilePreparationConnectorInput(BaseModel):
|
|
1806
1811
|
model_document: Optional["ModelDocumentPreparationPropertiesInput"] = Field(
|
1807
1812
|
alias="modelDocument", default=None
|
1808
1813
|
)
|
1814
|
+
reducto: Optional["ReductoDocumentPreparationPropertiesInput"] = None
|
1809
1815
|
|
1810
1816
|
|
1811
1817
|
class MedicalDrugFilter(BaseModel):
|
@@ -2452,6 +2458,7 @@ class ConversationInput(BaseModel):
|
|
2452
2458
|
name: str
|
2453
2459
|
type: Optional[ConversationTypes] = None
|
2454
2460
|
messages: Optional[List["ConversationMessageInput"]] = None
|
2461
|
+
tools: Optional[List["ToolDefinitionInput"]] = None
|
2455
2462
|
specification: Optional["EntityReferenceInput"] = None
|
2456
2463
|
fallbacks: Optional[List[Optional["EntityReferenceInput"]]] = None
|
2457
2464
|
filter: Optional["ContentCriteriaInput"] = None
|
@@ -2818,6 +2825,8 @@ class EmailIntegrationPropertiesInput(BaseModel):
|
|
2818
2825
|
class ConversationUpdateInput(BaseModel):
|
2819
2826
|
id: str
|
2820
2827
|
name: Optional[str] = None
|
2828
|
+
messages: Optional[List["ConversationMessageInput"]] = None
|
2829
|
+
tools: Optional[List["ToolDefinitionInput"]] = None
|
2821
2830
|
specification: Optional["EntityReferenceInput"] = None
|
2822
2831
|
fallbacks: Optional[List[Optional["EntityReferenceInput"]]] = None
|
2823
2832
|
filter: Optional["ContentCriteriaInput"] = None
|
@@ -3652,6 +3661,19 @@ class PlaceFilter(BaseModel):
|
|
3652
3661
|
)
|
3653
3662
|
|
3654
3663
|
|
3664
|
+
class ReductoDocumentPreparationPropertiesInput(BaseModel):
|
3665
|
+
ocr_mode: Optional[ReductoOcrModes] = Field(alias="ocrMode", default=None)
|
3666
|
+
ocr_system: Optional[ReductoOcrSystems] = Field(alias="ocrSystem", default=None)
|
3667
|
+
extraction_mode: Optional[ReductoExtractionModes] = Field(
|
3668
|
+
alias="extractionMode", default=None
|
3669
|
+
)
|
3670
|
+
enable_enrichment: Optional[bool] = Field(alias="enableEnrichment", default=None)
|
3671
|
+
enrichment_mode: Optional[ReductoEnrichmentModes] = Field(
|
3672
|
+
alias="enrichmentMode", default=None
|
3673
|
+
)
|
3674
|
+
key: Optional[str] = None
|
3675
|
+
|
3676
|
+
|
3655
3677
|
class H3Filter(BaseModel):
|
3656
3678
|
indexes: Optional[List["H3IndexFilter"]] = None
|
3657
3679
|
|