llama-cloud 0.1.22__py3-none-any.whl → 0.1.24__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 +6 -66
- llama_cloud/client.py +0 -3
- llama_cloud/resources/__init__.py +1 -18
- llama_cloud/resources/data_sources/__init__.py +2 -2
- llama_cloud/resources/data_sources/client.py +5 -5
- llama_cloud/resources/data_sources/types/__init__.py +1 -2
- llama_cloud/resources/files/__init__.py +0 -3
- llama_cloud/resources/files/client.py +18 -19
- llama_cloud/resources/jobs/client.py +8 -0
- llama_cloud/resources/llama_extract/__init__.py +0 -8
- llama_cloud/resources/llama_extract/client.py +92 -24
- llama_cloud/resources/llama_extract/types/__init__.py +0 -8
- llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema.py +2 -4
- llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema.py +2 -4
- llama_cloud/resources/llama_extract/types/extract_job_create_batch_data_schema_override.py +2 -4
- llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema.py +2 -4
- llama_cloud/resources/organizations/client.py +14 -4
- llama_cloud/resources/parsing/client.py +8 -0
- llama_cloud/resources/pipelines/__init__.py +0 -2
- llama_cloud/resources/pipelines/client.py +43 -9
- llama_cloud/resources/pipelines/types/__init__.py +0 -2
- llama_cloud/types/__init__.py +6 -46
- llama_cloud/types/composite_retrieval_result.py +5 -1
- llama_cloud/types/data_source.py +2 -2
- llama_cloud/types/data_source_create.py +2 -2
- llama_cloud/types/extract_agent.py +2 -4
- llama_cloud/types/extract_job_create_data_schema_override.py +2 -4
- llama_cloud/types/extract_models.py +20 -8
- llama_cloud/types/extract_resultset.py +2 -2
- llama_cloud/types/extract_resultset_data.py +2 -4
- llama_cloud/types/extract_run.py +3 -4
- llama_cloud/types/extract_run_data.py +2 -4
- llama_cloud/types/extract_schema_validate_response.py +2 -2
- llama_cloud/types/file.py +3 -4
- llama_cloud/types/{llm_config_result.py → file_id_presigned_url.py} +9 -6
- llama_cloud/types/json_type.py +9 -0
- llama_cloud/types/legacy_parse_job_config.py +1 -0
- llama_cloud/types/llama_extract_settings.py +3 -1
- llama_cloud/types/llama_parse_parameters.py +1 -0
- llama_cloud/types/page_figure_metadata.py +1 -0
- llama_cloud/types/{llm_configs_response.py → page_figure_node_with_score.py} +9 -4
- llama_cloud/types/parse_job_config.py +1 -0
- llama_cloud/types/pipeline_data_source.py +2 -2
- llama_cloud/types/pipeline_file.py +5 -8
- llama_cloud/types/pipeline_file_create.py +2 -2
- llama_cloud/types/preset_retrieval_params.py +8 -0
- llama_cloud/types/retrieve_results.py +7 -1
- llama_cloud/types/supported_llm_model_names.py +20 -12
- llama_cloud/types/user_organization.py +1 -1
- llama_cloud/types/user_organization_delete.py +1 -0
- {llama_cloud-0.1.22.dist-info → llama_cloud-0.1.24.dist-info}/METADATA +2 -3
- {llama_cloud-0.1.22.dist-info → llama_cloud-0.1.24.dist-info}/RECORD +54 -86
- {llama_cloud-0.1.22.dist-info → llama_cloud-0.1.24.dist-info}/WHEEL +1 -1
- llama_cloud/resources/admin/__init__.py +0 -2
- llama_cloud/resources/admin/client.py +0 -78
- llama_cloud/resources/data_sources/types/data_source_update_custom_metadata_value.py +0 -7
- llama_cloud/resources/files/types/__init__.py +0 -7
- llama_cloud/resources/files/types/file_create_from_url_resource_info_value.py +0 -7
- llama_cloud/resources/files/types/file_create_permission_info_value.py +0 -7
- llama_cloud/resources/files/types/file_create_resource_info_value.py +0 -5
- llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_zero_value.py +0 -7
- llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema_zero_value.py +0 -7
- llama_cloud/resources/llama_extract/types/extract_job_create_batch_data_schema_override_zero_value.py +0 -7
- llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema_zero_value.py +0 -7
- llama_cloud/resources/pipelines/types/pipeline_file_update_custom_metadata_value.py +0 -7
- llama_cloud/types/data_source_create_custom_metadata_value.py +0 -7
- llama_cloud/types/data_source_custom_metadata_value.py +0 -7
- llama_cloud/types/extract_agent_data_schema_value.py +0 -5
- llama_cloud/types/extract_job_create_data_schema_override_zero_value.py +0 -7
- llama_cloud/types/extract_resultset_data_item_value.py +0 -7
- llama_cloud/types/extract_resultset_data_zero_value.py +0 -7
- llama_cloud/types/extract_resultset_extraction_metadata_value.py +0 -7
- llama_cloud/types/extract_run_data_item_value.py +0 -5
- llama_cloud/types/extract_run_data_schema_value.py +0 -5
- llama_cloud/types/extract_run_data_zero_value.py +0 -5
- llama_cloud/types/extract_run_extraction_metadata_value.py +0 -7
- llama_cloud/types/extract_schema_validate_response_data_schema_value.py +0 -7
- llama_cloud/types/file_permission_info_value.py +0 -5
- llama_cloud/types/file_resource_info_value.py +0 -5
- llama_cloud/types/llm_config_result_llm_type.py +0 -33
- llama_cloud/types/pipeline_data_source_custom_metadata_value.py +0 -7
- llama_cloud/types/pipeline_file_config_hash_value.py +0 -5
- llama_cloud/types/pipeline_file_create_custom_metadata_value.py +0 -7
- llama_cloud/types/pipeline_file_custom_metadata_value.py +0 -7
- llama_cloud/types/pipeline_file_permission_info_value.py +0 -7
- llama_cloud/types/pipeline_file_resource_info_value.py +0 -7
- {llama_cloud-0.1.22.dist-info → llama_cloud-0.1.24.dist-info}/LICENSE +0 -0
llama_cloud/__init__.py
CHANGED
|
@@ -69,8 +69,6 @@ from .types import (
|
|
|
69
69
|
DataSourceComponent,
|
|
70
70
|
DataSourceCreate,
|
|
71
71
|
DataSourceCreateComponent,
|
|
72
|
-
DataSourceCreateCustomMetadataValue,
|
|
73
|
-
DataSourceCustomMetadataValue,
|
|
74
72
|
DataSourceUpdateDispatcherConfig,
|
|
75
73
|
DeleteParams,
|
|
76
74
|
DocumentBlock,
|
|
@@ -99,35 +97,24 @@ from .types import (
|
|
|
99
97
|
EmbeddingModelConfigUpdateEmbeddingConfig_VertexaiEmbedding,
|
|
100
98
|
EvalExecutionParams,
|
|
101
99
|
ExtractAgent,
|
|
102
|
-
ExtractAgentDataSchemaValue,
|
|
103
100
|
ExtractConfig,
|
|
104
101
|
ExtractJob,
|
|
105
102
|
ExtractJobCreate,
|
|
106
103
|
ExtractJobCreateDataSchemaOverride,
|
|
107
|
-
ExtractJobCreateDataSchemaOverrideZeroValue,
|
|
108
104
|
ExtractMode,
|
|
109
105
|
ExtractModels,
|
|
110
106
|
ExtractResultset,
|
|
111
107
|
ExtractResultsetData,
|
|
112
|
-
ExtractResultsetDataItemValue,
|
|
113
|
-
ExtractResultsetDataZeroValue,
|
|
114
|
-
ExtractResultsetExtractionMetadataValue,
|
|
115
108
|
ExtractRun,
|
|
116
109
|
ExtractRunData,
|
|
117
|
-
ExtractRunDataItemValue,
|
|
118
|
-
ExtractRunDataSchemaValue,
|
|
119
|
-
ExtractRunDataZeroValue,
|
|
120
|
-
ExtractRunExtractionMetadataValue,
|
|
121
110
|
ExtractSchemaValidateResponse,
|
|
122
|
-
ExtractSchemaValidateResponseDataSchemaValue,
|
|
123
111
|
ExtractState,
|
|
124
112
|
ExtractTarget,
|
|
125
113
|
FailPageMode,
|
|
126
114
|
File,
|
|
127
115
|
FileCountByStatusResponse,
|
|
116
|
+
FileIdPresignedUrl,
|
|
128
117
|
FileParsePublic,
|
|
129
|
-
FilePermissionInfoValue,
|
|
130
|
-
FileResourceInfoValue,
|
|
131
118
|
FilterCondition,
|
|
132
119
|
FilterOperator,
|
|
133
120
|
FreeCreditsUsage,
|
|
@@ -154,6 +141,7 @@ from .types import (
|
|
|
154
141
|
JobRecordParameters_PipelineFileUpdater,
|
|
155
142
|
JobRecordParameters_PipelineManagedIngestion,
|
|
156
143
|
JobRecordWithUsageMetrics,
|
|
144
|
+
JsonType,
|
|
157
145
|
LLamaParseTransformConfig,
|
|
158
146
|
LegacyParseJobConfig,
|
|
159
147
|
LlamaExtractSettings,
|
|
@@ -165,9 +153,6 @@ from .types import (
|
|
|
165
153
|
LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text,
|
|
166
154
|
LlamaParseParameters,
|
|
167
155
|
LlamaParseSupportedFileExtensions,
|
|
168
|
-
LlmConfigResult,
|
|
169
|
-
LlmConfigResultLlmType,
|
|
170
|
-
LlmConfigsResponse,
|
|
171
156
|
LlmModelData,
|
|
172
157
|
LlmParameters,
|
|
173
158
|
LoadFilesJobConfig,
|
|
@@ -188,6 +173,7 @@ from .types import (
|
|
|
188
173
|
Organization,
|
|
189
174
|
OrganizationCreate,
|
|
190
175
|
PageFigureMetadata,
|
|
176
|
+
PageFigureNodeWithScore,
|
|
191
177
|
PageScreenshotMetadata,
|
|
192
178
|
PageScreenshotNodeWithScore,
|
|
193
179
|
PageSegmentationConfig,
|
|
@@ -226,7 +212,6 @@ from .types import (
|
|
|
226
212
|
PipelineDataSource,
|
|
227
213
|
PipelineDataSourceComponent,
|
|
228
214
|
PipelineDataSourceCreate,
|
|
229
|
-
PipelineDataSourceCustomMetadataValue,
|
|
230
215
|
PipelineDataSourceStatus,
|
|
231
216
|
PipelineDeployment,
|
|
232
217
|
PipelineEmbeddingConfig,
|
|
@@ -238,12 +223,7 @@ from .types import (
|
|
|
238
223
|
PipelineEmbeddingConfig_OpenaiEmbedding,
|
|
239
224
|
PipelineEmbeddingConfig_VertexaiEmbedding,
|
|
240
225
|
PipelineFile,
|
|
241
|
-
PipelineFileConfigHashValue,
|
|
242
226
|
PipelineFileCreate,
|
|
243
|
-
PipelineFileCreateCustomMetadataValue,
|
|
244
|
-
PipelineFileCustomMetadataValue,
|
|
245
|
-
PipelineFilePermissionInfoValue,
|
|
246
|
-
PipelineFileResourceInfoValue,
|
|
247
227
|
PipelineFileStatus,
|
|
248
228
|
PipelineFileUpdateDispatcherConfig,
|
|
249
229
|
PipelineFileUpdaterConfig,
|
|
@@ -326,7 +306,6 @@ from .errors import UnprocessableEntityError
|
|
|
326
306
|
from .resources import (
|
|
327
307
|
DataSinkUpdateComponent,
|
|
328
308
|
DataSourceUpdateComponent,
|
|
329
|
-
DataSourceUpdateCustomMetadataValue,
|
|
330
309
|
EmbeddingModelConfigCreateEmbeddingConfig,
|
|
331
310
|
EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
|
|
332
311
|
EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding,
|
|
@@ -336,17 +315,9 @@ from .resources import (
|
|
|
336
315
|
EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
|
|
337
316
|
EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
|
|
338
317
|
ExtractAgentCreateDataSchema,
|
|
339
|
-
ExtractAgentCreateDataSchemaZeroValue,
|
|
340
318
|
ExtractAgentUpdateDataSchema,
|
|
341
|
-
ExtractAgentUpdateDataSchemaZeroValue,
|
|
342
319
|
ExtractJobCreateBatchDataSchemaOverride,
|
|
343
|
-
ExtractJobCreateBatchDataSchemaOverrideZeroValue,
|
|
344
320
|
ExtractSchemaValidateRequestDataSchema,
|
|
345
|
-
ExtractSchemaValidateRequestDataSchemaZeroValue,
|
|
346
|
-
FileCreateFromUrlResourceInfoValue,
|
|
347
|
-
FileCreatePermissionInfoValue,
|
|
348
|
-
FileCreateResourceInfoValue,
|
|
349
|
-
PipelineFileUpdateCustomMetadataValue,
|
|
350
321
|
PipelineUpdateEmbeddingConfig,
|
|
351
322
|
PipelineUpdateEmbeddingConfig_AzureEmbedding,
|
|
352
323
|
PipelineUpdateEmbeddingConfig_BedrockEmbedding,
|
|
@@ -357,7 +328,6 @@ from .resources import (
|
|
|
357
328
|
PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
|
|
358
329
|
PipelineUpdateTransformConfig,
|
|
359
330
|
UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction,
|
|
360
|
-
admin,
|
|
361
331
|
beta,
|
|
362
332
|
chat_apps,
|
|
363
333
|
data_sinks,
|
|
@@ -446,10 +416,7 @@ __all__ = [
|
|
|
446
416
|
"DataSourceComponent",
|
|
447
417
|
"DataSourceCreate",
|
|
448
418
|
"DataSourceCreateComponent",
|
|
449
|
-
"DataSourceCreateCustomMetadataValue",
|
|
450
|
-
"DataSourceCustomMetadataValue",
|
|
451
419
|
"DataSourceUpdateComponent",
|
|
452
|
-
"DataSourceUpdateCustomMetadataValue",
|
|
453
420
|
"DataSourceUpdateDispatcherConfig",
|
|
454
421
|
"DeleteParams",
|
|
455
422
|
"DocumentBlock",
|
|
@@ -487,45 +454,27 @@ __all__ = [
|
|
|
487
454
|
"EvalExecutionParams",
|
|
488
455
|
"ExtractAgent",
|
|
489
456
|
"ExtractAgentCreateDataSchema",
|
|
490
|
-
"ExtractAgentCreateDataSchemaZeroValue",
|
|
491
|
-
"ExtractAgentDataSchemaValue",
|
|
492
457
|
"ExtractAgentUpdateDataSchema",
|
|
493
|
-
"ExtractAgentUpdateDataSchemaZeroValue",
|
|
494
458
|
"ExtractConfig",
|
|
495
459
|
"ExtractJob",
|
|
496
460
|
"ExtractJobCreate",
|
|
497
461
|
"ExtractJobCreateBatchDataSchemaOverride",
|
|
498
|
-
"ExtractJobCreateBatchDataSchemaOverrideZeroValue",
|
|
499
462
|
"ExtractJobCreateDataSchemaOverride",
|
|
500
|
-
"ExtractJobCreateDataSchemaOverrideZeroValue",
|
|
501
463
|
"ExtractMode",
|
|
502
464
|
"ExtractModels",
|
|
503
465
|
"ExtractResultset",
|
|
504
466
|
"ExtractResultsetData",
|
|
505
|
-
"ExtractResultsetDataItemValue",
|
|
506
|
-
"ExtractResultsetDataZeroValue",
|
|
507
|
-
"ExtractResultsetExtractionMetadataValue",
|
|
508
467
|
"ExtractRun",
|
|
509
468
|
"ExtractRunData",
|
|
510
|
-
"ExtractRunDataItemValue",
|
|
511
|
-
"ExtractRunDataSchemaValue",
|
|
512
|
-
"ExtractRunDataZeroValue",
|
|
513
|
-
"ExtractRunExtractionMetadataValue",
|
|
514
469
|
"ExtractSchemaValidateRequestDataSchema",
|
|
515
|
-
"ExtractSchemaValidateRequestDataSchemaZeroValue",
|
|
516
470
|
"ExtractSchemaValidateResponse",
|
|
517
|
-
"ExtractSchemaValidateResponseDataSchemaValue",
|
|
518
471
|
"ExtractState",
|
|
519
472
|
"ExtractTarget",
|
|
520
473
|
"FailPageMode",
|
|
521
474
|
"File",
|
|
522
475
|
"FileCountByStatusResponse",
|
|
523
|
-
"
|
|
524
|
-
"FileCreatePermissionInfoValue",
|
|
525
|
-
"FileCreateResourceInfoValue",
|
|
476
|
+
"FileIdPresignedUrl",
|
|
526
477
|
"FileParsePublic",
|
|
527
|
-
"FilePermissionInfoValue",
|
|
528
|
-
"FileResourceInfoValue",
|
|
529
478
|
"FilterCondition",
|
|
530
479
|
"FilterOperator",
|
|
531
480
|
"FreeCreditsUsage",
|
|
@@ -552,6 +501,7 @@ __all__ = [
|
|
|
552
501
|
"JobRecordParameters_PipelineFileUpdater",
|
|
553
502
|
"JobRecordParameters_PipelineManagedIngestion",
|
|
554
503
|
"JobRecordWithUsageMetrics",
|
|
504
|
+
"JsonType",
|
|
555
505
|
"LLamaParseTransformConfig",
|
|
556
506
|
"LegacyParseJobConfig",
|
|
557
507
|
"LlamaCloudEnvironment",
|
|
@@ -564,9 +514,6 @@ __all__ = [
|
|
|
564
514
|
"LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text",
|
|
565
515
|
"LlamaParseParameters",
|
|
566
516
|
"LlamaParseSupportedFileExtensions",
|
|
567
|
-
"LlmConfigResult",
|
|
568
|
-
"LlmConfigResultLlmType",
|
|
569
|
-
"LlmConfigsResponse",
|
|
570
517
|
"LlmModelData",
|
|
571
518
|
"LlmParameters",
|
|
572
519
|
"LoadFilesJobConfig",
|
|
@@ -587,6 +534,7 @@ __all__ = [
|
|
|
587
534
|
"Organization",
|
|
588
535
|
"OrganizationCreate",
|
|
589
536
|
"PageFigureMetadata",
|
|
537
|
+
"PageFigureNodeWithScore",
|
|
590
538
|
"PageScreenshotMetadata",
|
|
591
539
|
"PageScreenshotNodeWithScore",
|
|
592
540
|
"PageSegmentationConfig",
|
|
@@ -625,7 +573,6 @@ __all__ = [
|
|
|
625
573
|
"PipelineDataSource",
|
|
626
574
|
"PipelineDataSourceComponent",
|
|
627
575
|
"PipelineDataSourceCreate",
|
|
628
|
-
"PipelineDataSourceCustomMetadataValue",
|
|
629
576
|
"PipelineDataSourceStatus",
|
|
630
577
|
"PipelineDeployment",
|
|
631
578
|
"PipelineEmbeddingConfig",
|
|
@@ -637,14 +584,8 @@ __all__ = [
|
|
|
637
584
|
"PipelineEmbeddingConfig_OpenaiEmbedding",
|
|
638
585
|
"PipelineEmbeddingConfig_VertexaiEmbedding",
|
|
639
586
|
"PipelineFile",
|
|
640
|
-
"PipelineFileConfigHashValue",
|
|
641
587
|
"PipelineFileCreate",
|
|
642
|
-
"PipelineFileCreateCustomMetadataValue",
|
|
643
|
-
"PipelineFileCustomMetadataValue",
|
|
644
|
-
"PipelineFilePermissionInfoValue",
|
|
645
|
-
"PipelineFileResourceInfoValue",
|
|
646
588
|
"PipelineFileStatus",
|
|
647
|
-
"PipelineFileUpdateCustomMetadataValue",
|
|
648
589
|
"PipelineFileUpdateDispatcherConfig",
|
|
649
590
|
"PipelineFileUpdaterConfig",
|
|
650
591
|
"PipelineManagedIngestionJobParams",
|
|
@@ -732,7 +673,6 @@ __all__ = [
|
|
|
732
673
|
"VertexAiEmbeddingConfig",
|
|
733
674
|
"VertexEmbeddingMode",
|
|
734
675
|
"VertexTextEmbedding",
|
|
735
|
-
"admin",
|
|
736
676
|
"beta",
|
|
737
677
|
"chat_apps",
|
|
738
678
|
"data_sinks",
|
llama_cloud/client.py
CHANGED
|
@@ -6,7 +6,6 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
8
8
|
from .environment import LlamaCloudEnvironment
|
|
9
|
-
from .resources.admin.client import AdminClient, AsyncAdminClient
|
|
10
9
|
from .resources.beta.client import AsyncBetaClient, BetaClient
|
|
11
10
|
from .resources.chat_apps.client import AsyncChatAppsClient, ChatAppsClient
|
|
12
11
|
from .resources.data_sinks.client import AsyncDataSinksClient, DataSinksClient
|
|
@@ -51,7 +50,6 @@ class LlamaCloud:
|
|
|
51
50
|
self.evals = EvalsClient(client_wrapper=self._client_wrapper)
|
|
52
51
|
self.parsing = ParsingClient(client_wrapper=self._client_wrapper)
|
|
53
52
|
self.chat_apps = ChatAppsClient(client_wrapper=self._client_wrapper)
|
|
54
|
-
self.admin = AdminClient(client_wrapper=self._client_wrapper)
|
|
55
53
|
self.llama_extract = LlamaExtractClient(client_wrapper=self._client_wrapper)
|
|
56
54
|
self.reports = ReportsClient(client_wrapper=self._client_wrapper)
|
|
57
55
|
self.beta = BetaClient(client_wrapper=self._client_wrapper)
|
|
@@ -84,7 +82,6 @@ class AsyncLlamaCloud:
|
|
|
84
82
|
self.evals = AsyncEvalsClient(client_wrapper=self._client_wrapper)
|
|
85
83
|
self.parsing = AsyncParsingClient(client_wrapper=self._client_wrapper)
|
|
86
84
|
self.chat_apps = AsyncChatAppsClient(client_wrapper=self._client_wrapper)
|
|
87
|
-
self.admin = AsyncAdminClient(client_wrapper=self._client_wrapper)
|
|
88
85
|
self.llama_extract = AsyncLlamaExtractClient(client_wrapper=self._client_wrapper)
|
|
89
86
|
self.reports = AsyncReportsClient(client_wrapper=self._client_wrapper)
|
|
90
87
|
self.beta = AsyncBetaClient(client_wrapper=self._client_wrapper)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from . import (
|
|
4
|
-
admin,
|
|
5
4
|
beta,
|
|
6
5
|
chat_apps,
|
|
7
6
|
data_sinks,
|
|
@@ -19,7 +18,7 @@ from . import (
|
|
|
19
18
|
retrievers,
|
|
20
19
|
)
|
|
21
20
|
from .data_sinks import DataSinkUpdateComponent
|
|
22
|
-
from .data_sources import DataSourceUpdateComponent
|
|
21
|
+
from .data_sources import DataSourceUpdateComponent
|
|
23
22
|
from .embedding_model_configs import (
|
|
24
23
|
EmbeddingModelConfigCreateEmbeddingConfig,
|
|
25
24
|
EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding,
|
|
@@ -30,19 +29,13 @@ from .embedding_model_configs import (
|
|
|
30
29
|
EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
|
|
31
30
|
EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
|
|
32
31
|
)
|
|
33
|
-
from .files import FileCreateFromUrlResourceInfoValue, FileCreatePermissionInfoValue, FileCreateResourceInfoValue
|
|
34
32
|
from .llama_extract import (
|
|
35
33
|
ExtractAgentCreateDataSchema,
|
|
36
|
-
ExtractAgentCreateDataSchemaZeroValue,
|
|
37
34
|
ExtractAgentUpdateDataSchema,
|
|
38
|
-
ExtractAgentUpdateDataSchemaZeroValue,
|
|
39
35
|
ExtractJobCreateBatchDataSchemaOverride,
|
|
40
|
-
ExtractJobCreateBatchDataSchemaOverrideZeroValue,
|
|
41
36
|
ExtractSchemaValidateRequestDataSchema,
|
|
42
|
-
ExtractSchemaValidateRequestDataSchemaZeroValue,
|
|
43
37
|
)
|
|
44
38
|
from .pipelines import (
|
|
45
|
-
PipelineFileUpdateCustomMetadataValue,
|
|
46
39
|
PipelineUpdateEmbeddingConfig,
|
|
47
40
|
PipelineUpdateEmbeddingConfig_AzureEmbedding,
|
|
48
41
|
PipelineUpdateEmbeddingConfig_BedrockEmbedding,
|
|
@@ -58,7 +51,6 @@ from .reports import UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction
|
|
|
58
51
|
__all__ = [
|
|
59
52
|
"DataSinkUpdateComponent",
|
|
60
53
|
"DataSourceUpdateComponent",
|
|
61
|
-
"DataSourceUpdateCustomMetadataValue",
|
|
62
54
|
"EmbeddingModelConfigCreateEmbeddingConfig",
|
|
63
55
|
"EmbeddingModelConfigCreateEmbeddingConfig_AzureEmbedding",
|
|
64
56
|
"EmbeddingModelConfigCreateEmbeddingConfig_BedrockEmbedding",
|
|
@@ -68,17 +60,9 @@ __all__ = [
|
|
|
68
60
|
"EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding",
|
|
69
61
|
"EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding",
|
|
70
62
|
"ExtractAgentCreateDataSchema",
|
|
71
|
-
"ExtractAgentCreateDataSchemaZeroValue",
|
|
72
63
|
"ExtractAgentUpdateDataSchema",
|
|
73
|
-
"ExtractAgentUpdateDataSchemaZeroValue",
|
|
74
64
|
"ExtractJobCreateBatchDataSchemaOverride",
|
|
75
|
-
"ExtractJobCreateBatchDataSchemaOverrideZeroValue",
|
|
76
65
|
"ExtractSchemaValidateRequestDataSchema",
|
|
77
|
-
"ExtractSchemaValidateRequestDataSchemaZeroValue",
|
|
78
|
-
"FileCreateFromUrlResourceInfoValue",
|
|
79
|
-
"FileCreatePermissionInfoValue",
|
|
80
|
-
"FileCreateResourceInfoValue",
|
|
81
|
-
"PipelineFileUpdateCustomMetadataValue",
|
|
82
66
|
"PipelineUpdateEmbeddingConfig",
|
|
83
67
|
"PipelineUpdateEmbeddingConfig_AzureEmbedding",
|
|
84
68
|
"PipelineUpdateEmbeddingConfig_BedrockEmbedding",
|
|
@@ -89,7 +73,6 @@ __all__ = [
|
|
|
89
73
|
"PipelineUpdateEmbeddingConfig_VertexaiEmbedding",
|
|
90
74
|
"PipelineUpdateTransformConfig",
|
|
91
75
|
"UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
|
|
92
|
-
"admin",
|
|
93
76
|
"beta",
|
|
94
77
|
"chat_apps",
|
|
95
78
|
"data_sinks",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .types import DataSourceUpdateComponent
|
|
3
|
+
from .types import DataSourceUpdateComponent
|
|
4
4
|
|
|
5
|
-
__all__ = ["DataSourceUpdateComponent"
|
|
5
|
+
__all__ = ["DataSourceUpdateComponent"]
|
|
@@ -13,8 +13,8 @@ from ...types.configurable_data_source_names import ConfigurableDataSourceNames
|
|
|
13
13
|
from ...types.data_source import DataSource
|
|
14
14
|
from ...types.data_source_create import DataSourceCreate
|
|
15
15
|
from ...types.http_validation_error import HttpValidationError
|
|
16
|
+
from ...types.json_type import JsonType
|
|
16
17
|
from .types.data_source_update_component import DataSourceUpdateComponent
|
|
17
|
-
from .types.data_source_update_custom_metadata_value import DataSourceUpdateCustomMetadataValue
|
|
18
18
|
|
|
19
19
|
try:
|
|
20
20
|
import pydantic
|
|
@@ -203,7 +203,7 @@ class DataSourcesClient:
|
|
|
203
203
|
*,
|
|
204
204
|
name: typing.Optional[str] = OMIT,
|
|
205
205
|
source_type: ConfigurableDataSourceNames,
|
|
206
|
-
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[
|
|
206
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
207
207
|
component: typing.Optional[DataSourceUpdateComponent] = OMIT,
|
|
208
208
|
) -> DataSource:
|
|
209
209
|
"""
|
|
@@ -216,7 +216,7 @@ class DataSourcesClient:
|
|
|
216
216
|
|
|
217
217
|
- source_type: ConfigurableDataSourceNames.
|
|
218
218
|
|
|
219
|
-
- custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[
|
|
219
|
+
- custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
220
220
|
|
|
221
221
|
- component: typing.Optional[DataSourceUpdateComponent]. Component that implements the data source
|
|
222
222
|
---
|
|
@@ -463,7 +463,7 @@ class AsyncDataSourcesClient:
|
|
|
463
463
|
*,
|
|
464
464
|
name: typing.Optional[str] = OMIT,
|
|
465
465
|
source_type: ConfigurableDataSourceNames,
|
|
466
|
-
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[
|
|
466
|
+
custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
467
467
|
component: typing.Optional[DataSourceUpdateComponent] = OMIT,
|
|
468
468
|
) -> DataSource:
|
|
469
469
|
"""
|
|
@@ -476,7 +476,7 @@ class AsyncDataSourcesClient:
|
|
|
476
476
|
|
|
477
477
|
- source_type: ConfigurableDataSourceNames.
|
|
478
478
|
|
|
479
|
-
- custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[
|
|
479
|
+
- custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
480
480
|
|
|
481
481
|
- component: typing.Optional[DataSourceUpdateComponent]. Component that implements the data source
|
|
482
482
|
---
|
|
@@ -1,6 +1,5 @@
|
|
|
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_custom_metadata_value import DataSourceUpdateCustomMetadataValue
|
|
5
4
|
|
|
6
|
-
__all__ = ["DataSourceUpdateComponent"
|
|
5
|
+
__all__ = ["DataSourceUpdateComponent"]
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .types import FileCreateFromUrlResourceInfoValue, FileCreatePermissionInfoValue, FileCreateResourceInfoValue
|
|
4
|
-
|
|
5
|
-
__all__ = ["FileCreateFromUrlResourceInfoValue", "FileCreatePermissionInfoValue", "FileCreateResourceInfoValue"]
|
|
@@ -11,13 +11,12 @@ from ...core.jsonable_encoder import jsonable_encoder
|
|
|
11
11
|
from ...core.remove_none_from_dict import remove_none_from_dict
|
|
12
12
|
from ...errors.unprocessable_entity_error import UnprocessableEntityError
|
|
13
13
|
from ...types.file import File
|
|
14
|
+
from ...types.file_id_presigned_url import FileIdPresignedUrl
|
|
14
15
|
from ...types.http_validation_error import HttpValidationError
|
|
16
|
+
from ...types.json_type import JsonType
|
|
15
17
|
from ...types.page_figure_metadata import PageFigureMetadata
|
|
16
18
|
from ...types.page_screenshot_metadata import PageScreenshotMetadata
|
|
17
19
|
from ...types.presigned_url import PresignedUrl
|
|
18
|
-
from .types.file_create_from_url_resource_info_value import FileCreateFromUrlResourceInfoValue
|
|
19
|
-
from .types.file_create_permission_info_value import FileCreatePermissionInfoValue
|
|
20
|
-
from .types.file_create_resource_info_value import FileCreateResourceInfoValue
|
|
21
20
|
|
|
22
21
|
try:
|
|
23
22
|
import pydantic
|
|
@@ -199,10 +198,10 @@ class FilesClient:
|
|
|
199
198
|
external_file_id: typing.Optional[str] = OMIT,
|
|
200
199
|
file_size: typing.Optional[int] = OMIT,
|
|
201
200
|
last_modified_at: typing.Optional[dt.datetime] = OMIT,
|
|
202
|
-
resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
203
|
-
permission_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
201
|
+
resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
202
|
+
permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
204
203
|
data_source_id: typing.Optional[str] = OMIT,
|
|
205
|
-
) ->
|
|
204
|
+
) -> FileIdPresignedUrl:
|
|
206
205
|
"""
|
|
207
206
|
Create a presigned url for uploading a file.
|
|
208
207
|
|
|
@@ -221,9 +220,9 @@ class FilesClient:
|
|
|
221
220
|
|
|
222
221
|
- last_modified_at: typing.Optional[dt.datetime].
|
|
223
222
|
|
|
224
|
-
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
223
|
+
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
225
224
|
|
|
226
|
-
- permission_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
225
|
+
- permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
227
226
|
|
|
228
227
|
- data_source_id: typing.Optional[str].
|
|
229
228
|
---
|
|
@@ -260,7 +259,7 @@ class FilesClient:
|
|
|
260
259
|
timeout=60,
|
|
261
260
|
)
|
|
262
261
|
if 200 <= _response.status_code < 300:
|
|
263
|
-
return pydantic.parse_obj_as(
|
|
262
|
+
return pydantic.parse_obj_as(FileIdPresignedUrl, _response.json()) # type: ignore
|
|
264
263
|
if _response.status_code == 422:
|
|
265
264
|
raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
|
|
266
265
|
try:
|
|
@@ -315,7 +314,7 @@ class FilesClient:
|
|
|
315
314
|
request_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
316
315
|
verify_ssl: typing.Optional[bool] = OMIT,
|
|
317
316
|
follow_redirects: typing.Optional[bool] = OMIT,
|
|
318
|
-
resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
317
|
+
resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
319
318
|
) -> File:
|
|
320
319
|
"""
|
|
321
320
|
Upload a file to the project from a URL.
|
|
@@ -344,7 +343,7 @@ class FilesClient:
|
|
|
344
343
|
|
|
345
344
|
- follow_redirects: typing.Optional[bool]. Whether to follow redirects when downloading the file
|
|
346
345
|
|
|
347
|
-
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
346
|
+
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
348
347
|
---
|
|
349
348
|
from llama_cloud.client import LlamaCloud
|
|
350
349
|
|
|
@@ -826,10 +825,10 @@ class AsyncFilesClient:
|
|
|
826
825
|
external_file_id: typing.Optional[str] = OMIT,
|
|
827
826
|
file_size: typing.Optional[int] = OMIT,
|
|
828
827
|
last_modified_at: typing.Optional[dt.datetime] = OMIT,
|
|
829
|
-
resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
830
|
-
permission_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
828
|
+
resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
829
|
+
permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
831
830
|
data_source_id: typing.Optional[str] = OMIT,
|
|
832
|
-
) ->
|
|
831
|
+
) -> FileIdPresignedUrl:
|
|
833
832
|
"""
|
|
834
833
|
Create a presigned url for uploading a file.
|
|
835
834
|
|
|
@@ -848,9 +847,9 @@ class AsyncFilesClient:
|
|
|
848
847
|
|
|
849
848
|
- last_modified_at: typing.Optional[dt.datetime].
|
|
850
849
|
|
|
851
|
-
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
850
|
+
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
852
851
|
|
|
853
|
-
- permission_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
852
|
+
- permission_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
854
853
|
|
|
855
854
|
- data_source_id: typing.Optional[str].
|
|
856
855
|
---
|
|
@@ -887,7 +886,7 @@ class AsyncFilesClient:
|
|
|
887
886
|
timeout=60,
|
|
888
887
|
)
|
|
889
888
|
if 200 <= _response.status_code < 300:
|
|
890
|
-
return pydantic.parse_obj_as(
|
|
889
|
+
return pydantic.parse_obj_as(FileIdPresignedUrl, _response.json()) # type: ignore
|
|
891
890
|
if _response.status_code == 422:
|
|
892
891
|
raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
|
|
893
892
|
try:
|
|
@@ -942,7 +941,7 @@ class AsyncFilesClient:
|
|
|
942
941
|
request_headers: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
943
942
|
verify_ssl: typing.Optional[bool] = OMIT,
|
|
944
943
|
follow_redirects: typing.Optional[bool] = OMIT,
|
|
945
|
-
resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
944
|
+
resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]] = OMIT,
|
|
946
945
|
) -> File:
|
|
947
946
|
"""
|
|
948
947
|
Upload a file to the project from a URL.
|
|
@@ -971,7 +970,7 @@ class AsyncFilesClient:
|
|
|
971
970
|
|
|
972
971
|
- follow_redirects: typing.Optional[bool]. Whether to follow redirects when downloading the file
|
|
973
972
|
|
|
974
|
-
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[
|
|
973
|
+
- resource_info: typing.Optional[typing.Dict[str, typing.Optional[JsonType]]].
|
|
975
974
|
---
|
|
976
975
|
from llama_cloud.client import AsyncLlamaCloud
|
|
977
976
|
|
|
@@ -30,6 +30,7 @@ class JobsClient:
|
|
|
30
30
|
job_name: typing.Optional[str] = None,
|
|
31
31
|
limit: typing.Optional[int] = None,
|
|
32
32
|
offset: typing.Optional[int] = None,
|
|
33
|
+
sort: typing.Optional[str] = None,
|
|
33
34
|
include_usage_metrics: typing.Optional[bool] = None,
|
|
34
35
|
project_id: typing.Optional[str] = None,
|
|
35
36
|
organization_id: typing.Optional[str] = None,
|
|
@@ -48,6 +49,8 @@ class JobsClient:
|
|
|
48
49
|
|
|
49
50
|
- offset: typing.Optional[int].
|
|
50
51
|
|
|
52
|
+
- sort: typing.Optional[str].
|
|
53
|
+
|
|
51
54
|
- include_usage_metrics: typing.Optional[bool]. Deprecated: This parameter is no longer supported as we've moved to usage v2. It will be removed in a future version.
|
|
52
55
|
|
|
53
56
|
- project_id: typing.Optional[str].
|
|
@@ -69,6 +72,7 @@ class JobsClient:
|
|
|
69
72
|
"job_name": job_name,
|
|
70
73
|
"limit": limit,
|
|
71
74
|
"offset": offset,
|
|
75
|
+
"sort": sort,
|
|
72
76
|
"include_usage_metrics": include_usage_metrics,
|
|
73
77
|
"project_id": project_id,
|
|
74
78
|
"organization_id": organization_id,
|
|
@@ -98,6 +102,7 @@ class AsyncJobsClient:
|
|
|
98
102
|
job_name: typing.Optional[str] = None,
|
|
99
103
|
limit: typing.Optional[int] = None,
|
|
100
104
|
offset: typing.Optional[int] = None,
|
|
105
|
+
sort: typing.Optional[str] = None,
|
|
101
106
|
include_usage_metrics: typing.Optional[bool] = None,
|
|
102
107
|
project_id: typing.Optional[str] = None,
|
|
103
108
|
organization_id: typing.Optional[str] = None,
|
|
@@ -116,6 +121,8 @@ class AsyncJobsClient:
|
|
|
116
121
|
|
|
117
122
|
- offset: typing.Optional[int].
|
|
118
123
|
|
|
124
|
+
- sort: typing.Optional[str].
|
|
125
|
+
|
|
119
126
|
- include_usage_metrics: typing.Optional[bool]. Deprecated: This parameter is no longer supported as we've moved to usage v2. It will be removed in a future version.
|
|
120
127
|
|
|
121
128
|
- project_id: typing.Optional[str].
|
|
@@ -137,6 +144,7 @@ class AsyncJobsClient:
|
|
|
137
144
|
"job_name": job_name,
|
|
138
145
|
"limit": limit,
|
|
139
146
|
"offset": offset,
|
|
147
|
+
"sort": sort,
|
|
140
148
|
"include_usage_metrics": include_usage_metrics,
|
|
141
149
|
"project_id": project_id,
|
|
142
150
|
"organization_id": organization_id,
|
|
@@ -2,22 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from .types import (
|
|
4
4
|
ExtractAgentCreateDataSchema,
|
|
5
|
-
ExtractAgentCreateDataSchemaZeroValue,
|
|
6
5
|
ExtractAgentUpdateDataSchema,
|
|
7
|
-
ExtractAgentUpdateDataSchemaZeroValue,
|
|
8
6
|
ExtractJobCreateBatchDataSchemaOverride,
|
|
9
|
-
ExtractJobCreateBatchDataSchemaOverrideZeroValue,
|
|
10
7
|
ExtractSchemaValidateRequestDataSchema,
|
|
11
|
-
ExtractSchemaValidateRequestDataSchemaZeroValue,
|
|
12
8
|
)
|
|
13
9
|
|
|
14
10
|
__all__ = [
|
|
15
11
|
"ExtractAgentCreateDataSchema",
|
|
16
|
-
"ExtractAgentCreateDataSchemaZeroValue",
|
|
17
12
|
"ExtractAgentUpdateDataSchema",
|
|
18
|
-
"ExtractAgentUpdateDataSchemaZeroValue",
|
|
19
13
|
"ExtractJobCreateBatchDataSchemaOverride",
|
|
20
|
-
"ExtractJobCreateBatchDataSchemaOverrideZeroValue",
|
|
21
14
|
"ExtractSchemaValidateRequestDataSchema",
|
|
22
|
-
"ExtractSchemaValidateRequestDataSchemaZeroValue",
|
|
23
15
|
]
|