llama-cloud 0.1.19__py3-none-any.whl → 0.1.20__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.
Potentially problematic release.
This version of llama-cloud might be problematic. Click here for more details.
- llama_cloud/__init__.py +166 -26
- llama_cloud/resources/__init__.py +41 -2
- llama_cloud/resources/data_sinks/__init__.py +18 -2
- llama_cloud/resources/data_sinks/client.py +2 -94
- llama_cloud/resources/data_sinks/types/__init__.py +18 -2
- llama_cloud/resources/data_sinks/types/data_sink_update_component.py +65 -7
- llama_cloud/resources/data_sources/__init__.py +30 -2
- llama_cloud/resources/data_sources/types/__init__.py +28 -1
- llama_cloud/resources/data_sources/types/data_source_update_component.py +2 -23
- llama_cloud/resources/data_sources/types/data_source_update_component_one.py +122 -0
- llama_cloud/resources/files/client.py +18 -4
- llama_cloud/resources/parsing/client.py +8 -0
- llama_cloud/resources/pipelines/client.py +11 -11
- llama_cloud/types/__init__.py +146 -28
- llama_cloud/types/cloud_jira_data_source.py +0 -4
- llama_cloud/types/data_sink_component.py +65 -7
- llama_cloud/types/data_sink_create_component.py +65 -7
- llama_cloud/types/data_source_component.py +2 -23
- llama_cloud/types/data_source_component_one.py +122 -0
- llama_cloud/types/data_source_create_component.py +2 -23
- llama_cloud/types/data_source_create_component_one.py +122 -0
- llama_cloud/types/{base_prompt_template.py → data_source_update_dispatcher_config.py} +9 -7
- llama_cloud/types/{node_parser.py → delete_params.py} +7 -9
- llama_cloud/types/document_ingestion_job_params.py +43 -0
- llama_cloud/types/job_record.py +2 -2
- llama_cloud/types/job_record_parameters.py +111 -0
- llama_cloud/types/{page_splitter_node_parser.py → l_lama_parse_transform_config.py} +5 -10
- llama_cloud/types/legacy_parse_job_config.py +189 -0
- llama_cloud/types/llama_parse_parameters.py +1 -0
- llama_cloud/types/load_files_job_config.py +35 -0
- llama_cloud/types/parse_job_config.py +134 -0
- llama_cloud/types/pipeline.py +2 -4
- llama_cloud/types/pipeline_create.py +2 -2
- llama_cloud/types/pipeline_data_source_component.py +2 -23
- llama_cloud/types/pipeline_data_source_component_one.py +122 -0
- llama_cloud/types/pipeline_file_update_dispatcher_config.py +38 -0
- llama_cloud/types/{configured_transformation_item.py → pipeline_file_updater_config.py} +13 -12
- llama_cloud/types/pipeline_managed_ingestion_job_params.py +37 -0
- llama_cloud/types/pipeline_metadata_config.py +36 -0
- {llama_cloud-0.1.19.dist-info → llama_cloud-0.1.20.dist-info}/METADATA +4 -2
- {llama_cloud-0.1.19.dist-info → llama_cloud-0.1.20.dist-info}/RECORD +43 -40
- {llama_cloud-0.1.19.dist-info → llama_cloud-0.1.20.dist-info}/WHEEL +1 -1
- llama_cloud/types/character_splitter.py +0 -46
- llama_cloud/types/code_splitter.py +0 -50
- llama_cloud/types/configured_transformation_item_component.py +0 -22
- llama_cloud/types/llm.py +0 -60
- llama_cloud/types/markdown_element_node_parser.py +0 -51
- llama_cloud/types/markdown_node_parser.py +0 -52
- llama_cloud/types/pydantic_program_mode.py +0 -41
- llama_cloud/types/sentence_splitter.py +0 -50
- llama_cloud/types/token_text_splitter.py +0 -50
- {llama_cloud-0.1.19.dist-info → llama_cloud-0.1.20.dist-info}/LICENSE +0 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
3
5
|
import typing
|
|
4
6
|
|
|
7
|
+
import typing_extensions
|
|
8
|
+
|
|
5
9
|
from ....types.cloud_azure_ai_search_vector_store import CloudAzureAiSearchVectorStore
|
|
6
10
|
from ....types.cloud_milvus_vector_store import CloudMilvusVectorStore
|
|
7
11
|
from ....types.cloud_mongo_db_atlas_vector_search import CloudMongoDbAtlasVectorSearch
|
|
@@ -9,12 +13,66 @@ from ....types.cloud_pinecone_vector_store import CloudPineconeVectorStore
|
|
|
9
13
|
from ....types.cloud_postgres_vector_store import CloudPostgresVectorStore
|
|
10
14
|
from ....types.cloud_qdrant_vector_store import CloudQdrantVectorStore
|
|
11
15
|
|
|
16
|
+
|
|
17
|
+
class DataSinkUpdateComponent_AzureAiSearch(CloudAzureAiSearchVectorStore):
|
|
18
|
+
type: typing_extensions.Literal["azure_ai_search"]
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
allow_population_by_field_name = True
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DataSinkUpdateComponent_Milvus(CloudMilvusVectorStore):
|
|
27
|
+
type: typing_extensions.Literal["milvus"]
|
|
28
|
+
|
|
29
|
+
class Config:
|
|
30
|
+
frozen = True
|
|
31
|
+
smart_union = True
|
|
32
|
+
allow_population_by_field_name = True
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class DataSinkUpdateComponent_MongodbAtlas(CloudMongoDbAtlasVectorSearch):
|
|
36
|
+
type: typing_extensions.Literal["mongodb_atlas"]
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
allow_population_by_field_name = True
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class DataSinkUpdateComponent_Pinecone(CloudPineconeVectorStore):
|
|
45
|
+
type: typing_extensions.Literal["pinecone"]
|
|
46
|
+
|
|
47
|
+
class Config:
|
|
48
|
+
frozen = True
|
|
49
|
+
smart_union = True
|
|
50
|
+
allow_population_by_field_name = True
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class DataSinkUpdateComponent_Postgres(CloudPostgresVectorStore):
|
|
54
|
+
type: typing_extensions.Literal["postgres"]
|
|
55
|
+
|
|
56
|
+
class Config:
|
|
57
|
+
frozen = True
|
|
58
|
+
smart_union = True
|
|
59
|
+
allow_population_by_field_name = True
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class DataSinkUpdateComponent_Qdrant(CloudQdrantVectorStore):
|
|
63
|
+
type: typing_extensions.Literal["qdrant"]
|
|
64
|
+
|
|
65
|
+
class Config:
|
|
66
|
+
frozen = True
|
|
67
|
+
smart_union = True
|
|
68
|
+
allow_population_by_field_name = True
|
|
69
|
+
|
|
70
|
+
|
|
12
71
|
DataSinkUpdateComponent = typing.Union[
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
CloudMilvusVectorStore,
|
|
72
|
+
DataSinkUpdateComponent_AzureAiSearch,
|
|
73
|
+
DataSinkUpdateComponent_Milvus,
|
|
74
|
+
DataSinkUpdateComponent_MongodbAtlas,
|
|
75
|
+
DataSinkUpdateComponent_Pinecone,
|
|
76
|
+
DataSinkUpdateComponent_Postgres,
|
|
77
|
+
DataSinkUpdateComponent_Qdrant,
|
|
20
78
|
]
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .types import
|
|
3
|
+
from .types import (
|
|
4
|
+
DataSourceUpdateComponent,
|
|
5
|
+
DataSourceUpdateComponentOne,
|
|
6
|
+
DataSourceUpdateComponentOne_AzureStorageBlob,
|
|
7
|
+
DataSourceUpdateComponentOne_Box,
|
|
8
|
+
DataSourceUpdateComponentOne_Confluence,
|
|
9
|
+
DataSourceUpdateComponentOne_GoogleDrive,
|
|
10
|
+
DataSourceUpdateComponentOne_Jira,
|
|
11
|
+
DataSourceUpdateComponentOne_MicrosoftOnedrive,
|
|
12
|
+
DataSourceUpdateComponentOne_MicrosoftSharepoint,
|
|
13
|
+
DataSourceUpdateComponentOne_NotionPage,
|
|
14
|
+
DataSourceUpdateComponentOne_S3,
|
|
15
|
+
DataSourceUpdateComponentOne_Slack,
|
|
16
|
+
DataSourceUpdateCustomMetadataValue,
|
|
17
|
+
)
|
|
4
18
|
|
|
5
|
-
__all__ = [
|
|
19
|
+
__all__ = [
|
|
20
|
+
"DataSourceUpdateComponent",
|
|
21
|
+
"DataSourceUpdateComponentOne",
|
|
22
|
+
"DataSourceUpdateComponentOne_AzureStorageBlob",
|
|
23
|
+
"DataSourceUpdateComponentOne_Box",
|
|
24
|
+
"DataSourceUpdateComponentOne_Confluence",
|
|
25
|
+
"DataSourceUpdateComponentOne_GoogleDrive",
|
|
26
|
+
"DataSourceUpdateComponentOne_Jira",
|
|
27
|
+
"DataSourceUpdateComponentOne_MicrosoftOnedrive",
|
|
28
|
+
"DataSourceUpdateComponentOne_MicrosoftSharepoint",
|
|
29
|
+
"DataSourceUpdateComponentOne_NotionPage",
|
|
30
|
+
"DataSourceUpdateComponentOne_S3",
|
|
31
|
+
"DataSourceUpdateComponentOne_Slack",
|
|
32
|
+
"DataSourceUpdateCustomMetadataValue",
|
|
33
|
+
]
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from .data_source_update_component import DataSourceUpdateComponent
|
|
4
|
+
from .data_source_update_component_one import (
|
|
5
|
+
DataSourceUpdateComponentOne,
|
|
6
|
+
DataSourceUpdateComponentOne_AzureStorageBlob,
|
|
7
|
+
DataSourceUpdateComponentOne_Box,
|
|
8
|
+
DataSourceUpdateComponentOne_Confluence,
|
|
9
|
+
DataSourceUpdateComponentOne_GoogleDrive,
|
|
10
|
+
DataSourceUpdateComponentOne_Jira,
|
|
11
|
+
DataSourceUpdateComponentOne_MicrosoftOnedrive,
|
|
12
|
+
DataSourceUpdateComponentOne_MicrosoftSharepoint,
|
|
13
|
+
DataSourceUpdateComponentOne_NotionPage,
|
|
14
|
+
DataSourceUpdateComponentOne_S3,
|
|
15
|
+
DataSourceUpdateComponentOne_Slack,
|
|
16
|
+
)
|
|
4
17
|
from .data_source_update_custom_metadata_value import DataSourceUpdateCustomMetadataValue
|
|
5
18
|
|
|
6
|
-
__all__ = [
|
|
19
|
+
__all__ = [
|
|
20
|
+
"DataSourceUpdateComponent",
|
|
21
|
+
"DataSourceUpdateComponentOne",
|
|
22
|
+
"DataSourceUpdateComponentOne_AzureStorageBlob",
|
|
23
|
+
"DataSourceUpdateComponentOne_Box",
|
|
24
|
+
"DataSourceUpdateComponentOne_Confluence",
|
|
25
|
+
"DataSourceUpdateComponentOne_GoogleDrive",
|
|
26
|
+
"DataSourceUpdateComponentOne_Jira",
|
|
27
|
+
"DataSourceUpdateComponentOne_MicrosoftOnedrive",
|
|
28
|
+
"DataSourceUpdateComponentOne_MicrosoftSharepoint",
|
|
29
|
+
"DataSourceUpdateComponentOne_NotionPage",
|
|
30
|
+
"DataSourceUpdateComponentOne_S3",
|
|
31
|
+
"DataSourceUpdateComponentOne_Slack",
|
|
32
|
+
"DataSourceUpdateCustomMetadataValue",
|
|
33
|
+
]
|
|
@@ -2,27 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
|
-
from
|
|
6
|
-
from ....types.cloud_box_data_source import CloudBoxDataSource
|
|
7
|
-
from ....types.cloud_confluence_data_source import CloudConfluenceDataSource
|
|
8
|
-
from ....types.cloud_google_drive_data_source import CloudGoogleDriveDataSource
|
|
9
|
-
from ....types.cloud_jira_data_source import CloudJiraDataSource
|
|
10
|
-
from ....types.cloud_notion_page_data_source import CloudNotionPageDataSource
|
|
11
|
-
from ....types.cloud_one_drive_data_source import CloudOneDriveDataSource
|
|
12
|
-
from ....types.cloud_s_3_data_source import CloudS3DataSource
|
|
13
|
-
from ....types.cloud_sharepoint_data_source import CloudSharepointDataSource
|
|
14
|
-
from ....types.cloud_slack_data_source import CloudSlackDataSource
|
|
5
|
+
from .data_source_update_component_one import DataSourceUpdateComponentOne
|
|
15
6
|
|
|
16
|
-
DataSourceUpdateComponent = typing.Union[
|
|
17
|
-
typing.Dict[str, typing.Any],
|
|
18
|
-
CloudS3DataSource,
|
|
19
|
-
CloudAzStorageBlobDataSource,
|
|
20
|
-
CloudGoogleDriveDataSource,
|
|
21
|
-
CloudOneDriveDataSource,
|
|
22
|
-
CloudSharepointDataSource,
|
|
23
|
-
CloudSlackDataSource,
|
|
24
|
-
CloudNotionPageDataSource,
|
|
25
|
-
CloudConfluenceDataSource,
|
|
26
|
-
CloudJiraDataSource,
|
|
27
|
-
CloudBoxDataSource,
|
|
28
|
-
]
|
|
7
|
+
DataSourceUpdateComponent = typing.Union[typing.Dict[str, typing.Any], DataSourceUpdateComponentOne]
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
|
|
7
|
+
import typing_extensions
|
|
8
|
+
|
|
9
|
+
from ....types.cloud_az_storage_blob_data_source import CloudAzStorageBlobDataSource
|
|
10
|
+
from ....types.cloud_box_data_source import CloudBoxDataSource
|
|
11
|
+
from ....types.cloud_confluence_data_source import CloudConfluenceDataSource
|
|
12
|
+
from ....types.cloud_google_drive_data_source import CloudGoogleDriveDataSource
|
|
13
|
+
from ....types.cloud_jira_data_source import CloudJiraDataSource
|
|
14
|
+
from ....types.cloud_notion_page_data_source import CloudNotionPageDataSource
|
|
15
|
+
from ....types.cloud_one_drive_data_source import CloudOneDriveDataSource
|
|
16
|
+
from ....types.cloud_s_3_data_source import CloudS3DataSource
|
|
17
|
+
from ....types.cloud_sharepoint_data_source import CloudSharepointDataSource
|
|
18
|
+
from ....types.cloud_slack_data_source import CloudSlackDataSource
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class DataSourceUpdateComponentOne_AzureStorageBlob(CloudAzStorageBlobDataSource):
|
|
22
|
+
type: typing_extensions.Literal["AZURE_STORAGE_BLOB"]
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
allow_population_by_field_name = True
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class DataSourceUpdateComponentOne_Box(CloudBoxDataSource):
|
|
31
|
+
type: typing_extensions.Literal["BOX"]
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
allow_population_by_field_name = True
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class DataSourceUpdateComponentOne_Confluence(CloudConfluenceDataSource):
|
|
40
|
+
type: typing_extensions.Literal["CONFLUENCE"]
|
|
41
|
+
|
|
42
|
+
class Config:
|
|
43
|
+
frozen = True
|
|
44
|
+
smart_union = True
|
|
45
|
+
allow_population_by_field_name = True
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class DataSourceUpdateComponentOne_GoogleDrive(CloudGoogleDriveDataSource):
|
|
49
|
+
type: typing_extensions.Literal["GOOGLE_DRIVE"]
|
|
50
|
+
|
|
51
|
+
class Config:
|
|
52
|
+
frozen = True
|
|
53
|
+
smart_union = True
|
|
54
|
+
allow_population_by_field_name = True
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class DataSourceUpdateComponentOne_Jira(CloudJiraDataSource):
|
|
58
|
+
type: typing_extensions.Literal["JIRA"]
|
|
59
|
+
|
|
60
|
+
class Config:
|
|
61
|
+
frozen = True
|
|
62
|
+
smart_union = True
|
|
63
|
+
allow_population_by_field_name = True
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class DataSourceUpdateComponentOne_MicrosoftOnedrive(CloudOneDriveDataSource):
|
|
67
|
+
type: typing_extensions.Literal["MICROSOFT_ONEDRIVE"]
|
|
68
|
+
|
|
69
|
+
class Config:
|
|
70
|
+
frozen = True
|
|
71
|
+
smart_union = True
|
|
72
|
+
allow_population_by_field_name = True
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class DataSourceUpdateComponentOne_MicrosoftSharepoint(CloudSharepointDataSource):
|
|
76
|
+
type: typing_extensions.Literal["MICROSOFT_SHAREPOINT"]
|
|
77
|
+
|
|
78
|
+
class Config:
|
|
79
|
+
frozen = True
|
|
80
|
+
smart_union = True
|
|
81
|
+
allow_population_by_field_name = True
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class DataSourceUpdateComponentOne_NotionPage(CloudNotionPageDataSource):
|
|
85
|
+
type: typing_extensions.Literal["NOTION_PAGE"]
|
|
86
|
+
|
|
87
|
+
class Config:
|
|
88
|
+
frozen = True
|
|
89
|
+
smart_union = True
|
|
90
|
+
allow_population_by_field_name = True
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class DataSourceUpdateComponentOne_S3(CloudS3DataSource):
|
|
94
|
+
type: typing_extensions.Literal["S3"]
|
|
95
|
+
|
|
96
|
+
class Config:
|
|
97
|
+
frozen = True
|
|
98
|
+
smart_union = True
|
|
99
|
+
allow_population_by_field_name = True
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class DataSourceUpdateComponentOne_Slack(CloudSlackDataSource):
|
|
103
|
+
type: typing_extensions.Literal["SLACK"]
|
|
104
|
+
|
|
105
|
+
class Config:
|
|
106
|
+
frozen = True
|
|
107
|
+
smart_union = True
|
|
108
|
+
allow_population_by_field_name = True
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
DataSourceUpdateComponentOne = typing.Union[
|
|
112
|
+
DataSourceUpdateComponentOne_AzureStorageBlob,
|
|
113
|
+
DataSourceUpdateComponentOne_Box,
|
|
114
|
+
DataSourceUpdateComponentOne_Confluence,
|
|
115
|
+
DataSourceUpdateComponentOne_GoogleDrive,
|
|
116
|
+
DataSourceUpdateComponentOne_Jira,
|
|
117
|
+
DataSourceUpdateComponentOne_MicrosoftOnedrive,
|
|
118
|
+
DataSourceUpdateComponentOne_MicrosoftSharepoint,
|
|
119
|
+
DataSourceUpdateComponentOne_NotionPage,
|
|
120
|
+
DataSourceUpdateComponentOne_S3,
|
|
121
|
+
DataSourceUpdateComponentOne_Slack,
|
|
122
|
+
]
|
|
@@ -213,7 +213,7 @@ class FilesClient:
|
|
|
213
213
|
|
|
214
214
|
- organization_id: typing.Optional[str].
|
|
215
215
|
|
|
216
|
-
- name: str.
|
|
216
|
+
- name: str. Name that will be used for created file. If possible, always include the file extension in the name.
|
|
217
217
|
|
|
218
218
|
- external_file_id: typing.Optional[str].
|
|
219
219
|
|
|
@@ -318,7 +318,14 @@ class FilesClient:
|
|
|
318
318
|
resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]] = OMIT,
|
|
319
319
|
) -> File:
|
|
320
320
|
"""
|
|
321
|
-
Upload a file to
|
|
321
|
+
Upload a file to the project from a URL.
|
|
322
|
+
|
|
323
|
+
If name is ommitted in the request payload, the file name will be
|
|
324
|
+
extracted from the response Content-Disposition header if available
|
|
325
|
+
or otherwise it will be derived from the URL path.
|
|
326
|
+
|
|
327
|
+
If providing the name in the request payload, always suffix the
|
|
328
|
+
file extension in the name if available.
|
|
322
329
|
|
|
323
330
|
Parameters:
|
|
324
331
|
- project_id: typing.Optional[str].
|
|
@@ -833,7 +840,7 @@ class AsyncFilesClient:
|
|
|
833
840
|
|
|
834
841
|
- organization_id: typing.Optional[str].
|
|
835
842
|
|
|
836
|
-
- name: str.
|
|
843
|
+
- name: str. Name that will be used for created file. If possible, always include the file extension in the name.
|
|
837
844
|
|
|
838
845
|
- external_file_id: typing.Optional[str].
|
|
839
846
|
|
|
@@ -938,7 +945,14 @@ class AsyncFilesClient:
|
|
|
938
945
|
resource_info: typing.Optional[typing.Dict[str, typing.Optional[FileCreateFromUrlResourceInfoValue]]] = OMIT,
|
|
939
946
|
) -> File:
|
|
940
947
|
"""
|
|
941
|
-
Upload a file to
|
|
948
|
+
Upload a file to the project from a URL.
|
|
949
|
+
|
|
950
|
+
If name is ommitted in the request payload, the file name will be
|
|
951
|
+
extracted from the response Content-Disposition header if available
|
|
952
|
+
or otherwise it will be derived from the URL path.
|
|
953
|
+
|
|
954
|
+
If providing the name in the request payload, always suffix the
|
|
955
|
+
file extension in the name if available.
|
|
942
956
|
|
|
943
957
|
Parameters:
|
|
944
958
|
- project_id: typing.Optional[str].
|
|
@@ -204,6 +204,7 @@ class ParsingClient:
|
|
|
204
204
|
auto_mode_trigger_on_table_in_page: bool,
|
|
205
205
|
auto_mode_trigger_on_text_in_page: str,
|
|
206
206
|
auto_mode_trigger_on_regexp_in_page: str,
|
|
207
|
+
auto_mode_configuration_json: str,
|
|
207
208
|
azure_openai_api_version: str,
|
|
208
209
|
azure_openai_deployment_name: str,
|
|
209
210
|
azure_openai_endpoint: str,
|
|
@@ -303,6 +304,8 @@ class ParsingClient:
|
|
|
303
304
|
|
|
304
305
|
- auto_mode_trigger_on_regexp_in_page: str.
|
|
305
306
|
|
|
307
|
+
- auto_mode_configuration_json: str.
|
|
308
|
+
|
|
306
309
|
- azure_openai_api_version: str.
|
|
307
310
|
|
|
308
311
|
- azure_openai_deployment_name: str.
|
|
@@ -463,6 +466,7 @@ class ParsingClient:
|
|
|
463
466
|
"auto_mode_trigger_on_table_in_page": auto_mode_trigger_on_table_in_page,
|
|
464
467
|
"auto_mode_trigger_on_text_in_page": auto_mode_trigger_on_text_in_page,
|
|
465
468
|
"auto_mode_trigger_on_regexp_in_page": auto_mode_trigger_on_regexp_in_page,
|
|
469
|
+
"auto_mode_configuration_json": auto_mode_configuration_json,
|
|
466
470
|
"azure_openai_api_version": azure_openai_api_version,
|
|
467
471
|
"azure_openai_deployment_name": azure_openai_deployment_name,
|
|
468
472
|
"azure_openai_endpoint": azure_openai_endpoint,
|
|
@@ -1211,6 +1215,7 @@ class AsyncParsingClient:
|
|
|
1211
1215
|
auto_mode_trigger_on_table_in_page: bool,
|
|
1212
1216
|
auto_mode_trigger_on_text_in_page: str,
|
|
1213
1217
|
auto_mode_trigger_on_regexp_in_page: str,
|
|
1218
|
+
auto_mode_configuration_json: str,
|
|
1214
1219
|
azure_openai_api_version: str,
|
|
1215
1220
|
azure_openai_deployment_name: str,
|
|
1216
1221
|
azure_openai_endpoint: str,
|
|
@@ -1310,6 +1315,8 @@ class AsyncParsingClient:
|
|
|
1310
1315
|
|
|
1311
1316
|
- auto_mode_trigger_on_regexp_in_page: str.
|
|
1312
1317
|
|
|
1318
|
+
- auto_mode_configuration_json: str.
|
|
1319
|
+
|
|
1313
1320
|
- azure_openai_api_version: str.
|
|
1314
1321
|
|
|
1315
1322
|
- azure_openai_deployment_name: str.
|
|
@@ -1470,6 +1477,7 @@ class AsyncParsingClient:
|
|
|
1470
1477
|
"auto_mode_trigger_on_table_in_page": auto_mode_trigger_on_table_in_page,
|
|
1471
1478
|
"auto_mode_trigger_on_text_in_page": auto_mode_trigger_on_text_in_page,
|
|
1472
1479
|
"auto_mode_trigger_on_regexp_in_page": auto_mode_trigger_on_regexp_in_page,
|
|
1480
|
+
"auto_mode_configuration_json": auto_mode_configuration_json,
|
|
1473
1481
|
"azure_openai_api_version": azure_openai_api_version,
|
|
1474
1482
|
"azure_openai_deployment_name": azure_openai_deployment_name,
|
|
1475
1483
|
"azure_openai_endpoint": azure_openai_endpoint,
|
|
@@ -12,7 +12,6 @@ from ...errors.unprocessable_entity_error import UnprocessableEntityError
|
|
|
12
12
|
from ...types.chat_data import ChatData
|
|
13
13
|
from ...types.cloud_document import CloudDocument
|
|
14
14
|
from ...types.cloud_document_create import CloudDocumentCreate
|
|
15
|
-
from ...types.configured_transformation_item import ConfiguredTransformationItem
|
|
16
15
|
from ...types.data_sink_create import DataSinkCreate
|
|
17
16
|
from ...types.eval_execution_params import EvalExecutionParams
|
|
18
17
|
from ...types.file_count_by_status_response import FileCountByStatusResponse
|
|
@@ -30,6 +29,7 @@ from ...types.pipeline_data_source_create import PipelineDataSourceCreate
|
|
|
30
29
|
from ...types.pipeline_deployment import PipelineDeployment
|
|
31
30
|
from ...types.pipeline_file import PipelineFile
|
|
32
31
|
from ...types.pipeline_file_create import PipelineFileCreate
|
|
32
|
+
from ...types.pipeline_metadata_config import PipelineMetadataConfig
|
|
33
33
|
from ...types.pipeline_type import PipelineType
|
|
34
34
|
from ...types.playground_session import PlaygroundSession
|
|
35
35
|
from ...types.preset_retrieval_params import PresetRetrievalParams
|
|
@@ -210,7 +210,6 @@ class PipelinesClient:
|
|
|
210
210
|
*,
|
|
211
211
|
embedding_config: typing.Optional[PipelineUpdateEmbeddingConfig] = OMIT,
|
|
212
212
|
transform_config: typing.Optional[PipelineUpdateTransformConfig] = OMIT,
|
|
213
|
-
configured_transformations: typing.Optional[typing.List[ConfiguredTransformationItem]] = OMIT,
|
|
214
213
|
data_sink_id: typing.Optional[str] = OMIT,
|
|
215
214
|
embedding_model_config_id: typing.Optional[str] = OMIT,
|
|
216
215
|
data_sink: typing.Optional[DataSinkCreate] = OMIT,
|
|
@@ -218,6 +217,7 @@ class PipelinesClient:
|
|
|
218
217
|
eval_parameters: typing.Optional[EvalExecutionParams] = OMIT,
|
|
219
218
|
llama_parse_parameters: typing.Optional[LlamaParseParameters] = OMIT,
|
|
220
219
|
status: typing.Optional[str] = OMIT,
|
|
220
|
+
metadata_config: typing.Optional[PipelineMetadataConfig] = OMIT,
|
|
221
221
|
name: typing.Optional[str] = OMIT,
|
|
222
222
|
managed_pipeline_id: typing.Optional[str] = OMIT,
|
|
223
223
|
) -> Pipeline:
|
|
@@ -231,8 +231,6 @@ class PipelinesClient:
|
|
|
231
231
|
|
|
232
232
|
- transform_config: typing.Optional[PipelineUpdateTransformConfig]. Configuration for the transformation.
|
|
233
233
|
|
|
234
|
-
- configured_transformations: typing.Optional[typing.List[ConfiguredTransformationItem]].
|
|
235
|
-
|
|
236
234
|
- data_sink_id: typing.Optional[str].
|
|
237
235
|
|
|
238
236
|
- embedding_model_config_id: typing.Optional[str].
|
|
@@ -247,6 +245,8 @@ class PipelinesClient:
|
|
|
247
245
|
|
|
248
246
|
- status: typing.Optional[str].
|
|
249
247
|
|
|
248
|
+
- metadata_config: typing.Optional[PipelineMetadataConfig].
|
|
249
|
+
|
|
250
250
|
- name: typing.Optional[str].
|
|
251
251
|
|
|
252
252
|
- managed_pipeline_id: typing.Optional[str].
|
|
@@ -256,8 +256,6 @@ class PipelinesClient:
|
|
|
256
256
|
_request["embedding_config"] = embedding_config
|
|
257
257
|
if transform_config is not OMIT:
|
|
258
258
|
_request["transform_config"] = transform_config
|
|
259
|
-
if configured_transformations is not OMIT:
|
|
260
|
-
_request["configured_transformations"] = configured_transformations
|
|
261
259
|
if data_sink_id is not OMIT:
|
|
262
260
|
_request["data_sink_id"] = data_sink_id
|
|
263
261
|
if embedding_model_config_id is not OMIT:
|
|
@@ -272,6 +270,8 @@ class PipelinesClient:
|
|
|
272
270
|
_request["llama_parse_parameters"] = llama_parse_parameters
|
|
273
271
|
if status is not OMIT:
|
|
274
272
|
_request["status"] = status
|
|
273
|
+
if metadata_config is not OMIT:
|
|
274
|
+
_request["metadata_config"] = metadata_config
|
|
275
275
|
if name is not OMIT:
|
|
276
276
|
_request["name"] = name
|
|
277
277
|
if managed_pipeline_id is not OMIT:
|
|
@@ -1817,7 +1817,6 @@ class AsyncPipelinesClient:
|
|
|
1817
1817
|
*,
|
|
1818
1818
|
embedding_config: typing.Optional[PipelineUpdateEmbeddingConfig] = OMIT,
|
|
1819
1819
|
transform_config: typing.Optional[PipelineUpdateTransformConfig] = OMIT,
|
|
1820
|
-
configured_transformations: typing.Optional[typing.List[ConfiguredTransformationItem]] = OMIT,
|
|
1821
1820
|
data_sink_id: typing.Optional[str] = OMIT,
|
|
1822
1821
|
embedding_model_config_id: typing.Optional[str] = OMIT,
|
|
1823
1822
|
data_sink: typing.Optional[DataSinkCreate] = OMIT,
|
|
@@ -1825,6 +1824,7 @@ class AsyncPipelinesClient:
|
|
|
1825
1824
|
eval_parameters: typing.Optional[EvalExecutionParams] = OMIT,
|
|
1826
1825
|
llama_parse_parameters: typing.Optional[LlamaParseParameters] = OMIT,
|
|
1827
1826
|
status: typing.Optional[str] = OMIT,
|
|
1827
|
+
metadata_config: typing.Optional[PipelineMetadataConfig] = OMIT,
|
|
1828
1828
|
name: typing.Optional[str] = OMIT,
|
|
1829
1829
|
managed_pipeline_id: typing.Optional[str] = OMIT,
|
|
1830
1830
|
) -> Pipeline:
|
|
@@ -1838,8 +1838,6 @@ class AsyncPipelinesClient:
|
|
|
1838
1838
|
|
|
1839
1839
|
- transform_config: typing.Optional[PipelineUpdateTransformConfig]. Configuration for the transformation.
|
|
1840
1840
|
|
|
1841
|
-
- configured_transformations: typing.Optional[typing.List[ConfiguredTransformationItem]].
|
|
1842
|
-
|
|
1843
1841
|
- data_sink_id: typing.Optional[str].
|
|
1844
1842
|
|
|
1845
1843
|
- embedding_model_config_id: typing.Optional[str].
|
|
@@ -1854,6 +1852,8 @@ class AsyncPipelinesClient:
|
|
|
1854
1852
|
|
|
1855
1853
|
- status: typing.Optional[str].
|
|
1856
1854
|
|
|
1855
|
+
- metadata_config: typing.Optional[PipelineMetadataConfig].
|
|
1856
|
+
|
|
1857
1857
|
- name: typing.Optional[str].
|
|
1858
1858
|
|
|
1859
1859
|
- managed_pipeline_id: typing.Optional[str].
|
|
@@ -1863,8 +1863,6 @@ class AsyncPipelinesClient:
|
|
|
1863
1863
|
_request["embedding_config"] = embedding_config
|
|
1864
1864
|
if transform_config is not OMIT:
|
|
1865
1865
|
_request["transform_config"] = transform_config
|
|
1866
|
-
if configured_transformations is not OMIT:
|
|
1867
|
-
_request["configured_transformations"] = configured_transformations
|
|
1868
1866
|
if data_sink_id is not OMIT:
|
|
1869
1867
|
_request["data_sink_id"] = data_sink_id
|
|
1870
1868
|
if embedding_model_config_id is not OMIT:
|
|
@@ -1879,6 +1877,8 @@ class AsyncPipelinesClient:
|
|
|
1879
1877
|
_request["llama_parse_parameters"] = llama_parse_parameters
|
|
1880
1878
|
if status is not OMIT:
|
|
1881
1879
|
_request["status"] = status
|
|
1880
|
+
if metadata_config is not OMIT:
|
|
1881
|
+
_request["metadata_config"] = metadata_config
|
|
1882
1882
|
if name is not OMIT:
|
|
1883
1883
|
_request["name"] = name
|
|
1884
1884
|
if managed_pipeline_id is not OMIT:
|