llama-cloud 0.1.34__py3-none-any.whl → 0.1.35__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 +34 -0
- llama_cloud/client.py +3 -0
- llama_cloud/resources/__init__.py +6 -0
- llama_cloud/resources/beta/client.py +211 -8
- llama_cloud/resources/files/client.py +226 -0
- llama_cloud/resources/llama_extract/__init__.py +4 -0
- llama_cloud/resources/llama_extract/client.py +179 -0
- llama_cloud/resources/llama_extract/types/__init__.py +4 -0
- llama_cloud/resources/llama_extract/types/extract_stateless_request_data_schema.py +9 -0
- llama_cloud/resources/llama_extract/types/extract_stateless_request_data_schema_zero_value.py +7 -0
- llama_cloud/resources/parsing/client.py +24 -0
- llama_cloud/resources/users/__init__.py +2 -0
- llama_cloud/resources/users/client.py +155 -0
- llama_cloud/types/__init__.py +28 -0
- llama_cloud/types/data_source_reader_version_metadata.py +2 -1
- llama_cloud/types/data_source_reader_version_metadata_reader_version.py +17 -0
- llama_cloud/types/extract_agent.py +3 -0
- llama_cloud/types/extract_config.py +4 -0
- llama_cloud/types/file_data.py +36 -0
- llama_cloud/types/legacy_parse_job_config.py +3 -0
- llama_cloud/types/llama_extract_settings.py +4 -0
- llama_cloud/types/llama_parse_parameters.py +3 -0
- llama_cloud/types/managed_open_ai_embedding.py +36 -0
- llama_cloud/types/managed_open_ai_embedding_config.py +34 -0
- llama_cloud/types/multimodal_parse_resolution.py +17 -0
- llama_cloud/types/paginated_response_quota_configuration.py +36 -0
- llama_cloud/types/parse_job_config.py +3 -0
- llama_cloud/types/pipeline_embedding_config.py +11 -0
- llama_cloud/types/quota_configuration.py +53 -0
- llama_cloud/types/quota_configuration_configuration_type.py +33 -0
- llama_cloud/types/quota_configuration_status.py +21 -0
- llama_cloud/types/quota_rate_limit_configuration_value.py +38 -0
- llama_cloud/types/quota_rate_limit_configuration_value_denominator_units.py +29 -0
- llama_cloud/types/update_user_response.py +33 -0
- llama_cloud/types/usage_response_active_alerts_item.py +4 -0
- llama_cloud/types/user_summary.py +38 -0
- llama_cloud/types/webhook_configuration_webhook_events_item.py +20 -0
- {llama_cloud-0.1.34.dist-info → llama_cloud-0.1.35.dist-info}/METADATA +1 -1
- {llama_cloud-0.1.34.dist-info → llama_cloud-0.1.35.dist-info}/RECORD +41 -24
- {llama_cloud-0.1.34.dist-info → llama_cloud-0.1.35.dist-info}/LICENSE +0 -0
- {llama_cloud-0.1.34.dist-info → llama_cloud-0.1.35.dist-info}/WHEEL +0 -0
llama_cloud/__init__.py
CHANGED
|
@@ -76,6 +76,7 @@ from .types import (
|
|
|
76
76
|
DataSourceCreateCustomMetadataValue,
|
|
77
77
|
DataSourceCustomMetadataValue,
|
|
78
78
|
DataSourceReaderVersionMetadata,
|
|
79
|
+
DataSourceReaderVersionMetadataReaderVersion,
|
|
79
80
|
DataSourceUpdateDispatcherConfig,
|
|
80
81
|
DeleteParams,
|
|
81
82
|
DocumentBlock,
|
|
@@ -133,6 +134,7 @@ from .types import (
|
|
|
133
134
|
FailPageMode,
|
|
134
135
|
File,
|
|
135
136
|
FileCountByStatusResponse,
|
|
137
|
+
FileData,
|
|
136
138
|
FileIdPresignedUrl,
|
|
137
139
|
FileParsePublic,
|
|
138
140
|
FilePermissionInfoValue,
|
|
@@ -188,12 +190,15 @@ from .types import (
|
|
|
188
190
|
LoadFilesJobConfig,
|
|
189
191
|
ManagedIngestionStatus,
|
|
190
192
|
ManagedIngestionStatusResponse,
|
|
193
|
+
ManagedOpenAiEmbedding,
|
|
194
|
+
ManagedOpenAiEmbeddingConfig,
|
|
191
195
|
MessageAnnotation,
|
|
192
196
|
MessageRole,
|
|
193
197
|
MetadataFilter,
|
|
194
198
|
MetadataFilterValue,
|
|
195
199
|
MetadataFilters,
|
|
196
200
|
MetadataFiltersFiltersItem,
|
|
201
|
+
MultimodalParseResolution,
|
|
197
202
|
NodeRelationship,
|
|
198
203
|
NoneChunkingConfig,
|
|
199
204
|
NoneSegmentationConfig,
|
|
@@ -214,6 +219,7 @@ from .types import (
|
|
|
214
219
|
PaginatedReportResponse,
|
|
215
220
|
PaginatedResponseAgentData,
|
|
216
221
|
PaginatedResponseAggregateGroup,
|
|
222
|
+
PaginatedResponseQuotaConfiguration,
|
|
217
223
|
ParseJobConfig,
|
|
218
224
|
ParseJobConfigPriority,
|
|
219
225
|
ParsePlanLevel,
|
|
@@ -254,6 +260,7 @@ from .types import (
|
|
|
254
260
|
PipelineEmbeddingConfig_CohereEmbedding,
|
|
255
261
|
PipelineEmbeddingConfig_GeminiEmbedding,
|
|
256
262
|
PipelineEmbeddingConfig_HuggingfaceApiEmbedding,
|
|
263
|
+
PipelineEmbeddingConfig_ManagedOpenaiEmbedding,
|
|
257
264
|
PipelineEmbeddingConfig_OpenaiEmbedding,
|
|
258
265
|
PipelineEmbeddingConfig_VertexaiEmbedding,
|
|
259
266
|
PipelineFile,
|
|
@@ -285,6 +292,11 @@ from .types import (
|
|
|
285
292
|
Project,
|
|
286
293
|
ProjectCreate,
|
|
287
294
|
PromptConf,
|
|
295
|
+
QuotaConfiguration,
|
|
296
|
+
QuotaConfigurationConfigurationType,
|
|
297
|
+
QuotaConfigurationStatus,
|
|
298
|
+
QuotaRateLimitConfigurationValue,
|
|
299
|
+
QuotaRateLimitConfigurationValueDenominatorUnits,
|
|
288
300
|
ReRankConfig,
|
|
289
301
|
ReRankerType,
|
|
290
302
|
RecurringCreditGrant,
|
|
@@ -328,6 +340,7 @@ from .types import (
|
|
|
328
340
|
TextNodeRelationshipsValue,
|
|
329
341
|
TextNodeWithScore,
|
|
330
342
|
TokenChunkingConfig,
|
|
343
|
+
UpdateUserResponse,
|
|
331
344
|
UsageAndPlan,
|
|
332
345
|
UsageMetricResponse,
|
|
333
346
|
UsageResponse,
|
|
@@ -337,6 +350,7 @@ from .types import (
|
|
|
337
350
|
UserOrganizationCreate,
|
|
338
351
|
UserOrganizationDelete,
|
|
339
352
|
UserOrganizationRole,
|
|
353
|
+
UserSummary,
|
|
340
354
|
ValidationError,
|
|
341
355
|
ValidationErrorLocItem,
|
|
342
356
|
VertexAiEmbeddingConfig,
|
|
@@ -366,6 +380,8 @@ from .resources import (
|
|
|
366
380
|
ExtractJobCreateBatchDataSchemaOverrideZeroValue,
|
|
367
381
|
ExtractSchemaValidateRequestDataSchema,
|
|
368
382
|
ExtractSchemaValidateRequestDataSchemaZeroValue,
|
|
383
|
+
ExtractStatelessRequestDataSchema,
|
|
384
|
+
ExtractStatelessRequestDataSchemaZeroValue,
|
|
369
385
|
FileCreateFromUrlResourceInfoValue,
|
|
370
386
|
FileCreatePermissionInfoValue,
|
|
371
387
|
FileCreateResourceInfoValue,
|
|
@@ -399,6 +415,7 @@ from .resources import (
|
|
|
399
415
|
projects,
|
|
400
416
|
reports,
|
|
401
417
|
retrievers,
|
|
418
|
+
users,
|
|
402
419
|
)
|
|
403
420
|
from .environment import LlamaCloudEnvironment
|
|
404
421
|
|
|
@@ -479,6 +496,7 @@ __all__ = [
|
|
|
479
496
|
"DataSourceCreateCustomMetadataValue",
|
|
480
497
|
"DataSourceCustomMetadataValue",
|
|
481
498
|
"DataSourceReaderVersionMetadata",
|
|
499
|
+
"DataSourceReaderVersionMetadataReaderVersion",
|
|
482
500
|
"DataSourceUpdateComponent",
|
|
483
501
|
"DataSourceUpdateCustomMetadataValue",
|
|
484
502
|
"DataSourceUpdateDispatcherConfig",
|
|
@@ -550,6 +568,8 @@ __all__ = [
|
|
|
550
568
|
"ExtractSchemaValidateResponse",
|
|
551
569
|
"ExtractSchemaValidateResponseDataSchemaValue",
|
|
552
570
|
"ExtractState",
|
|
571
|
+
"ExtractStatelessRequestDataSchema",
|
|
572
|
+
"ExtractStatelessRequestDataSchemaZeroValue",
|
|
553
573
|
"ExtractTarget",
|
|
554
574
|
"FailPageMode",
|
|
555
575
|
"File",
|
|
@@ -557,6 +577,7 @@ __all__ = [
|
|
|
557
577
|
"FileCreateFromUrlResourceInfoValue",
|
|
558
578
|
"FileCreatePermissionInfoValue",
|
|
559
579
|
"FileCreateResourceInfoValue",
|
|
580
|
+
"FileData",
|
|
560
581
|
"FileIdPresignedUrl",
|
|
561
582
|
"FileParsePublic",
|
|
562
583
|
"FilePermissionInfoValue",
|
|
@@ -613,12 +634,15 @@ __all__ = [
|
|
|
613
634
|
"LoadFilesJobConfig",
|
|
614
635
|
"ManagedIngestionStatus",
|
|
615
636
|
"ManagedIngestionStatusResponse",
|
|
637
|
+
"ManagedOpenAiEmbedding",
|
|
638
|
+
"ManagedOpenAiEmbeddingConfig",
|
|
616
639
|
"MessageAnnotation",
|
|
617
640
|
"MessageRole",
|
|
618
641
|
"MetadataFilter",
|
|
619
642
|
"MetadataFilterValue",
|
|
620
643
|
"MetadataFilters",
|
|
621
644
|
"MetadataFiltersFiltersItem",
|
|
645
|
+
"MultimodalParseResolution",
|
|
622
646
|
"NodeRelationship",
|
|
623
647
|
"NoneChunkingConfig",
|
|
624
648
|
"NoneSegmentationConfig",
|
|
@@ -639,6 +663,7 @@ __all__ = [
|
|
|
639
663
|
"PaginatedReportResponse",
|
|
640
664
|
"PaginatedResponseAgentData",
|
|
641
665
|
"PaginatedResponseAggregateGroup",
|
|
666
|
+
"PaginatedResponseQuotaConfiguration",
|
|
642
667
|
"ParseJobConfig",
|
|
643
668
|
"ParseJobConfigPriority",
|
|
644
669
|
"ParsePlanLevel",
|
|
@@ -679,6 +704,7 @@ __all__ = [
|
|
|
679
704
|
"PipelineEmbeddingConfig_CohereEmbedding",
|
|
680
705
|
"PipelineEmbeddingConfig_GeminiEmbedding",
|
|
681
706
|
"PipelineEmbeddingConfig_HuggingfaceApiEmbedding",
|
|
707
|
+
"PipelineEmbeddingConfig_ManagedOpenaiEmbedding",
|
|
682
708
|
"PipelineEmbeddingConfig_OpenaiEmbedding",
|
|
683
709
|
"PipelineEmbeddingConfig_VertexaiEmbedding",
|
|
684
710
|
"PipelineFile",
|
|
@@ -720,6 +746,11 @@ __all__ = [
|
|
|
720
746
|
"Project",
|
|
721
747
|
"ProjectCreate",
|
|
722
748
|
"PromptConf",
|
|
749
|
+
"QuotaConfiguration",
|
|
750
|
+
"QuotaConfigurationConfigurationType",
|
|
751
|
+
"QuotaConfigurationStatus",
|
|
752
|
+
"QuotaRateLimitConfigurationValue",
|
|
753
|
+
"QuotaRateLimitConfigurationValueDenominatorUnits",
|
|
723
754
|
"ReRankConfig",
|
|
724
755
|
"ReRankerType",
|
|
725
756
|
"RecurringCreditGrant",
|
|
@@ -766,6 +797,7 @@ __all__ = [
|
|
|
766
797
|
"TokenChunkingConfig",
|
|
767
798
|
"UnprocessableEntityError",
|
|
768
799
|
"UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
|
|
800
|
+
"UpdateUserResponse",
|
|
769
801
|
"UsageAndPlan",
|
|
770
802
|
"UsageMetricResponse",
|
|
771
803
|
"UsageResponse",
|
|
@@ -775,6 +807,7 @@ __all__ = [
|
|
|
775
807
|
"UserOrganizationCreate",
|
|
776
808
|
"UserOrganizationDelete",
|
|
777
809
|
"UserOrganizationRole",
|
|
810
|
+
"UserSummary",
|
|
778
811
|
"ValidationError",
|
|
779
812
|
"ValidationErrorLocItem",
|
|
780
813
|
"VertexAiEmbeddingConfig",
|
|
@@ -800,4 +833,5 @@ __all__ = [
|
|
|
800
833
|
"projects",
|
|
801
834
|
"reports",
|
|
802
835
|
"retrievers",
|
|
836
|
+
"users",
|
|
803
837
|
]
|
llama_cloud/client.py
CHANGED
|
@@ -24,6 +24,7 @@ from .resources.pipelines.client import AsyncPipelinesClient, PipelinesClient
|
|
|
24
24
|
from .resources.projects.client import AsyncProjectsClient, ProjectsClient
|
|
25
25
|
from .resources.reports.client import AsyncReportsClient, ReportsClient
|
|
26
26
|
from .resources.retrievers.client import AsyncRetrieversClient, RetrieversClient
|
|
27
|
+
from .resources.users.client import AsyncUsersClient, UsersClient
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
class LlamaCloud:
|
|
@@ -56,6 +57,7 @@ class LlamaCloud:
|
|
|
56
57
|
self.agent_deployments = AgentDeploymentsClient(client_wrapper=self._client_wrapper)
|
|
57
58
|
self.classifier = ClassifierClient(client_wrapper=self._client_wrapper)
|
|
58
59
|
self.admin = AdminClient(client_wrapper=self._client_wrapper)
|
|
60
|
+
self.users = UsersClient(client_wrapper=self._client_wrapper)
|
|
59
61
|
self.llama_extract = LlamaExtractClient(client_wrapper=self._client_wrapper)
|
|
60
62
|
self.reports = ReportsClient(client_wrapper=self._client_wrapper)
|
|
61
63
|
self.beta = BetaClient(client_wrapper=self._client_wrapper)
|
|
@@ -91,6 +93,7 @@ class AsyncLlamaCloud:
|
|
|
91
93
|
self.agent_deployments = AsyncAgentDeploymentsClient(client_wrapper=self._client_wrapper)
|
|
92
94
|
self.classifier = AsyncClassifierClient(client_wrapper=self._client_wrapper)
|
|
93
95
|
self.admin = AsyncAdminClient(client_wrapper=self._client_wrapper)
|
|
96
|
+
self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
|
|
94
97
|
self.llama_extract = AsyncLlamaExtractClient(client_wrapper=self._client_wrapper)
|
|
95
98
|
self.reports = AsyncReportsClient(client_wrapper=self._client_wrapper)
|
|
96
99
|
self.beta = AsyncBetaClient(client_wrapper=self._client_wrapper)
|
|
@@ -19,6 +19,7 @@ from . import (
|
|
|
19
19
|
projects,
|
|
20
20
|
reports,
|
|
21
21
|
retrievers,
|
|
22
|
+
users,
|
|
22
23
|
)
|
|
23
24
|
from .data_sinks import DataSinkUpdateComponent
|
|
24
25
|
from .data_sources import DataSourceUpdateComponent, DataSourceUpdateCustomMetadataValue
|
|
@@ -42,6 +43,8 @@ from .llama_extract import (
|
|
|
42
43
|
ExtractJobCreateBatchDataSchemaOverrideZeroValue,
|
|
43
44
|
ExtractSchemaValidateRequestDataSchema,
|
|
44
45
|
ExtractSchemaValidateRequestDataSchemaZeroValue,
|
|
46
|
+
ExtractStatelessRequestDataSchema,
|
|
47
|
+
ExtractStatelessRequestDataSchemaZeroValue,
|
|
45
48
|
)
|
|
46
49
|
from .pipelines import (
|
|
47
50
|
PipelineFileUpdateCustomMetadataValue,
|
|
@@ -78,6 +81,8 @@ __all__ = [
|
|
|
78
81
|
"ExtractJobCreateBatchDataSchemaOverrideZeroValue",
|
|
79
82
|
"ExtractSchemaValidateRequestDataSchema",
|
|
80
83
|
"ExtractSchemaValidateRequestDataSchemaZeroValue",
|
|
84
|
+
"ExtractStatelessRequestDataSchema",
|
|
85
|
+
"ExtractStatelessRequestDataSchemaZeroValue",
|
|
81
86
|
"FileCreateFromUrlResourceInfoValue",
|
|
82
87
|
"FileCreatePermissionInfoValue",
|
|
83
88
|
"FileCreateResourceInfoValue",
|
|
@@ -111,4 +116,5 @@ __all__ = [
|
|
|
111
116
|
"projects",
|
|
112
117
|
"reports",
|
|
113
118
|
"retrievers",
|
|
119
|
+
"users",
|
|
114
120
|
]
|