llama-cloud 0.1.40__py3-none-any.whl → 0.1.41__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.
Files changed (48) hide show
  1. llama_cloud/__init__.py +12 -72
  2. llama_cloud/client.py +2 -5
  3. llama_cloud/resources/__init__.py +0 -4
  4. llama_cloud/resources/beta/client.py +1351 -335
  5. llama_cloud/resources/llama_extract/client.py +48 -0
  6. llama_cloud/types/__init__.py +12 -72
  7. llama_cloud/types/{src_app_schema_chat_chat_message.py → chat_message.py} +1 -1
  8. llama_cloud/types/extract_config.py +8 -2
  9. llama_cloud/types/extract_models.py +28 -28
  10. llama_cloud/types/llama_extract_mode_availability.py +4 -3
  11. llama_cloud/types/llama_extract_settings.py +1 -1
  12. llama_cloud/types/{progress_event.py → parse_configuration.py} +12 -12
  13. llama_cloud/types/{llama_index_core_base_llms_types_chat_message.py → parse_configuration_create.py} +9 -7
  14. llama_cloud/types/{edit_suggestion.py → parse_configuration_filter.py} +8 -6
  15. llama_cloud/types/{report_update_event.py → parse_configuration_query_response.py} +6 -6
  16. llama_cloud/types/pipeline_create.py +1 -1
  17. llama_cloud/types/playground_session.py +2 -2
  18. llama_cloud/types/public_model_name.py +97 -0
  19. {llama_cloud-0.1.40.dist-info → llama_cloud-0.1.41.dist-info}/METADATA +1 -1
  20. {llama_cloud-0.1.40.dist-info → llama_cloud-0.1.41.dist-info}/RECORD +22 -47
  21. {llama_cloud-0.1.40.dist-info → llama_cloud-0.1.41.dist-info}/WHEEL +1 -1
  22. llama_cloud/resources/reports/__init__.py +0 -5
  23. llama_cloud/resources/reports/client.py +0 -1230
  24. llama_cloud/resources/reports/types/__init__.py +0 -7
  25. llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py +0 -25
  26. llama_cloud/types/audio_block.py +0 -34
  27. llama_cloud/types/document_block.py +0 -35
  28. llama_cloud/types/edit_suggestion_blocks_item.py +0 -8
  29. llama_cloud/types/image_block.py +0 -35
  30. llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +0 -56
  31. llama_cloud/types/paginated_report_response.py +0 -35
  32. llama_cloud/types/progress_event_status.py +0 -33
  33. llama_cloud/types/report.py +0 -33
  34. llama_cloud/types/report_block.py +0 -35
  35. llama_cloud/types/report_block_dependency.py +0 -29
  36. llama_cloud/types/report_create_response.py +0 -31
  37. llama_cloud/types/report_event_item.py +0 -40
  38. llama_cloud/types/report_event_item_event_data.py +0 -45
  39. llama_cloud/types/report_event_type.py +0 -37
  40. llama_cloud/types/report_metadata.py +0 -43
  41. llama_cloud/types/report_plan.py +0 -36
  42. llama_cloud/types/report_plan_block.py +0 -36
  43. llama_cloud/types/report_query.py +0 -33
  44. llama_cloud/types/report_response.py +0 -41
  45. llama_cloud/types/report_state.py +0 -37
  46. llama_cloud/types/report_state_event.py +0 -38
  47. llama_cloud/types/text_block.py +0 -31
  48. {llama_cloud-0.1.40.dist-info → llama_cloud-0.1.41.dist-info}/LICENSE +0 -0
llama_cloud/__init__.py CHANGED
@@ -16,7 +16,6 @@ from .types import (
16
16
  AgentDeploymentList,
17
17
  AgentDeploymentSummary,
18
18
  AggregateGroup,
19
- AudioBlock,
20
19
  AutoTransformConfig,
21
20
  AzureOpenAiEmbedding,
22
21
  AzureOpenAiEmbeddingConfig,
@@ -36,6 +35,7 @@ from .types import (
36
35
  ChatApp,
37
36
  ChatAppResponse,
38
37
  ChatData,
38
+ ChatMessage,
39
39
  ChunkMode,
40
40
  ClassificationResult,
41
41
  ClassifierRule,
@@ -85,11 +85,8 @@ from .types import (
85
85
  DataSourceReaderVersionMetadataReaderVersion,
86
86
  DataSourceUpdateDispatcherConfig,
87
87
  DeleteParams,
88
- DocumentBlock,
89
88
  DocumentChunkMode,
90
89
  DocumentIngestionJobParams,
91
- EditSuggestion,
92
- EditSuggestionBlocksItem,
93
90
  ElementSegmentationConfig,
94
91
  EmbeddingModelConfig,
95
92
  EmbeddingModelConfigEmbeddingConfig,
@@ -171,7 +168,6 @@ from .types import (
171
168
  HuggingFaceInferenceApiEmbedding,
172
169
  HuggingFaceInferenceApiEmbeddingConfig,
173
170
  HuggingFaceInferenceApiEmbeddingToken,
174
- ImageBlock,
175
171
  IngestionErrorResponse,
176
172
  InputMessage,
177
173
  JobNameMapping,
@@ -195,12 +191,6 @@ from .types import (
195
191
  LlamaExtractModeAvailability,
196
192
  LlamaExtractModeAvailabilityStatus,
197
193
  LlamaExtractSettings,
198
- LlamaIndexCoreBaseLlmsTypesChatMessage,
199
- LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem,
200
- LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Audio,
201
- LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Document,
202
- LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Image,
203
- LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text,
204
194
  LlamaParseParameters,
205
195
  LlamaParseParametersPriority,
206
196
  LlamaParseSupportedFileExtensions,
@@ -235,11 +225,14 @@ from .types import (
235
225
  PaginatedJobsHistoryWithMetrics,
236
226
  PaginatedListCloudDocumentsResponse,
237
227
  PaginatedListPipelineFilesResponse,
238
- PaginatedReportResponse,
239
228
  PaginatedResponseAgentData,
240
229
  PaginatedResponseAggregateGroup,
241
230
  PaginatedResponseClassifyJob,
242
231
  PaginatedResponseQuotaConfiguration,
232
+ ParseConfiguration,
233
+ ParseConfigurationCreate,
234
+ ParseConfigurationFilter,
235
+ ParseConfigurationQueryResponse,
243
236
  ParseJobConfig,
244
237
  ParseJobConfigPriority,
245
238
  ParsePlanLevel,
@@ -307,11 +300,10 @@ from .types import (
307
300
  PresetRetrievalParams,
308
301
  PresetRetrievalParamsSearchFiltersInferenceSchemaValue,
309
302
  PresignedUrl,
310
- ProgressEvent,
311
- ProgressEventStatus,
312
303
  Project,
313
304
  ProjectCreate,
314
305
  PromptConf,
306
+ PublicModelName,
315
307
  QuotaConfiguration,
316
308
  QuotaConfigurationConfigurationType,
317
309
  QuotaConfigurationStatus,
@@ -322,24 +314,6 @@ from .types import (
322
314
  RecurringCreditGrant,
323
315
  RelatedNodeInfo,
324
316
  RelatedNodeInfoNodeType,
325
- Report,
326
- ReportBlock,
327
- ReportBlockDependency,
328
- ReportCreateResponse,
329
- ReportEventItem,
330
- ReportEventItemEventData,
331
- ReportEventItemEventData_Progress,
332
- ReportEventItemEventData_ReportBlockUpdate,
333
- ReportEventItemEventData_ReportStateUpdate,
334
- ReportEventType,
335
- ReportMetadata,
336
- ReportPlan,
337
- ReportPlanBlock,
338
- ReportQuery,
339
- ReportResponse,
340
- ReportState,
341
- ReportStateEvent,
342
- ReportUpdateEvent,
343
317
  RetrievalMode,
344
318
  RetrieveResults,
345
319
  Retriever,
@@ -353,13 +327,11 @@ from .types import (
353
327
  SentenceChunkingConfig,
354
328
  SparseModelConfig,
355
329
  SparseModelType,
356
- SrcAppSchemaChatChatMessage,
357
330
  StatusEnum,
358
331
  StructMode,
359
332
  StructParseConf,
360
333
  SupportedLlmModel,
361
334
  SupportedLlmModelNames,
362
- TextBlock,
363
335
  TextNode,
364
336
  TextNodeRelationshipsValue,
365
337
  TextNodeWithScore,
@@ -418,7 +390,6 @@ from .resources import (
418
390
  PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
419
391
  PipelineUpdateTransformConfig,
420
392
  RetrievalParamsSearchFiltersInferenceSchemaValue,
421
- UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction,
422
393
  admin,
423
394
  agent_deployments,
424
395
  alpha,
@@ -436,7 +407,6 @@ from .resources import (
436
407
  parsing,
437
408
  pipelines,
438
409
  projects,
439
- reports,
440
410
  retrievers,
441
411
  users,
442
412
  )
@@ -458,7 +428,6 @@ __all__ = [
458
428
  "AgentDeploymentList",
459
429
  "AgentDeploymentSummary",
460
430
  "AggregateGroup",
461
- "AudioBlock",
462
431
  "AutoTransformConfig",
463
432
  "AzureOpenAiEmbedding",
464
433
  "AzureOpenAiEmbeddingConfig",
@@ -478,6 +447,7 @@ __all__ = [
478
447
  "ChatApp",
479
448
  "ChatAppResponse",
480
449
  "ChatData",
450
+ "ChatMessage",
481
451
  "ChunkMode",
482
452
  "ClassificationResult",
483
453
  "ClassifierRule",
@@ -530,11 +500,8 @@ __all__ = [
530
500
  "DataSourceUpdateCustomMetadataValue",
531
501
  "DataSourceUpdateDispatcherConfig",
532
502
  "DeleteParams",
533
- "DocumentBlock",
534
503
  "DocumentChunkMode",
535
504
  "DocumentIngestionJobParams",
536
- "EditSuggestion",
537
- "EditSuggestionBlocksItem",
538
505
  "ElementSegmentationConfig",
539
506
  "EmbeddingModelConfig",
540
507
  "EmbeddingModelConfigCreateEmbeddingConfig",
@@ -635,7 +602,6 @@ __all__ = [
635
602
  "HuggingFaceInferenceApiEmbedding",
636
603
  "HuggingFaceInferenceApiEmbeddingConfig",
637
604
  "HuggingFaceInferenceApiEmbeddingToken",
638
- "ImageBlock",
639
605
  "IngestionErrorResponse",
640
606
  "InputMessage",
641
607
  "JobNameMapping",
@@ -660,12 +626,6 @@ __all__ = [
660
626
  "LlamaExtractModeAvailability",
661
627
  "LlamaExtractModeAvailabilityStatus",
662
628
  "LlamaExtractSettings",
663
- "LlamaIndexCoreBaseLlmsTypesChatMessage",
664
- "LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem",
665
- "LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Audio",
666
- "LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Document",
667
- "LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Image",
668
- "LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text",
669
629
  "LlamaParseParameters",
670
630
  "LlamaParseParametersPriority",
671
631
  "LlamaParseSupportedFileExtensions",
@@ -700,11 +660,14 @@ __all__ = [
700
660
  "PaginatedJobsHistoryWithMetrics",
701
661
  "PaginatedListCloudDocumentsResponse",
702
662
  "PaginatedListPipelineFilesResponse",
703
- "PaginatedReportResponse",
704
663
  "PaginatedResponseAgentData",
705
664
  "PaginatedResponseAggregateGroup",
706
665
  "PaginatedResponseClassifyJob",
707
666
  "PaginatedResponseQuotaConfiguration",
667
+ "ParseConfiguration",
668
+ "ParseConfigurationCreate",
669
+ "ParseConfigurationFilter",
670
+ "ParseConfigurationQueryResponse",
708
671
  "ParseJobConfig",
709
672
  "ParseJobConfigPriority",
710
673
  "ParsePlanLevel",
@@ -782,11 +745,10 @@ __all__ = [
782
745
  "PresetRetrievalParams",
783
746
  "PresetRetrievalParamsSearchFiltersInferenceSchemaValue",
784
747
  "PresignedUrl",
785
- "ProgressEvent",
786
- "ProgressEventStatus",
787
748
  "Project",
788
749
  "ProjectCreate",
789
750
  "PromptConf",
751
+ "PublicModelName",
790
752
  "QuotaConfiguration",
791
753
  "QuotaConfigurationConfigurationType",
792
754
  "QuotaConfigurationStatus",
@@ -797,24 +759,6 @@ __all__ = [
797
759
  "RecurringCreditGrant",
798
760
  "RelatedNodeInfo",
799
761
  "RelatedNodeInfoNodeType",
800
- "Report",
801
- "ReportBlock",
802
- "ReportBlockDependency",
803
- "ReportCreateResponse",
804
- "ReportEventItem",
805
- "ReportEventItemEventData",
806
- "ReportEventItemEventData_Progress",
807
- "ReportEventItemEventData_ReportBlockUpdate",
808
- "ReportEventItemEventData_ReportStateUpdate",
809
- "ReportEventType",
810
- "ReportMetadata",
811
- "ReportPlan",
812
- "ReportPlanBlock",
813
- "ReportQuery",
814
- "ReportResponse",
815
- "ReportState",
816
- "ReportStateEvent",
817
- "ReportUpdateEvent",
818
762
  "RetrievalMode",
819
763
  "RetrievalParamsSearchFiltersInferenceSchemaValue",
820
764
  "RetrieveResults",
@@ -829,19 +773,16 @@ __all__ = [
829
773
  "SentenceChunkingConfig",
830
774
  "SparseModelConfig",
831
775
  "SparseModelType",
832
- "SrcAppSchemaChatChatMessage",
833
776
  "StatusEnum",
834
777
  "StructMode",
835
778
  "StructParseConf",
836
779
  "SupportedLlmModel",
837
780
  "SupportedLlmModelNames",
838
- "TextBlock",
839
781
  "TextNode",
840
782
  "TextNodeRelationshipsValue",
841
783
  "TextNodeWithScore",
842
784
  "TokenChunkingConfig",
843
785
  "UnprocessableEntityError",
844
- "UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
845
786
  "UpdateUserResponse",
846
787
  "UsageAndPlan",
847
788
  "UsageMetricResponse",
@@ -877,7 +818,6 @@ __all__ = [
877
818
  "parsing",
878
819
  "pipelines",
879
820
  "projects",
880
- "reports",
881
821
  "retrievers",
882
822
  "users",
883
823
  ]
llama_cloud/client.py CHANGED
@@ -23,7 +23,6 @@ from .resources.organizations.client import AsyncOrganizationsClient, Organizati
23
23
  from .resources.parsing.client import AsyncParsingClient, ParsingClient
24
24
  from .resources.pipelines.client import AsyncPipelinesClient, PipelinesClient
25
25
  from .resources.projects.client import AsyncProjectsClient, ProjectsClient
26
- from .resources.reports.client import AsyncReportsClient, ReportsClient
27
26
  from .resources.retrievers.client import AsyncRetrieversClient, RetrieversClient
28
27
  from .resources.users.client import AsyncUsersClient, UsersClient
29
28
 
@@ -43,6 +42,7 @@ class LlamaCloud:
43
42
  token=token,
44
43
  httpx_client=httpx.Client(timeout=timeout) if httpx_client is None else httpx_client,
45
44
  )
45
+ self.agent_deployments = AgentDeploymentsClient(client_wrapper=self._client_wrapper)
46
46
  self.data_sinks = DataSinksClient(client_wrapper=self._client_wrapper)
47
47
  self.data_sources = DataSourcesClient(client_wrapper=self._client_wrapper)
48
48
  self.embedding_model_configs = EmbeddingModelConfigsClient(client_wrapper=self._client_wrapper)
@@ -55,12 +55,10 @@ class LlamaCloud:
55
55
  self.evals = EvalsClient(client_wrapper=self._client_wrapper)
56
56
  self.parsing = ParsingClient(client_wrapper=self._client_wrapper)
57
57
  self.chat_apps = ChatAppsClient(client_wrapper=self._client_wrapper)
58
- self.agent_deployments = AgentDeploymentsClient(client_wrapper=self._client_wrapper)
59
58
  self.classifier = ClassifierClient(client_wrapper=self._client_wrapper)
60
59
  self.admin = AdminClient(client_wrapper=self._client_wrapper)
61
60
  self.users = UsersClient(client_wrapper=self._client_wrapper)
62
61
  self.llama_extract = LlamaExtractClient(client_wrapper=self._client_wrapper)
63
- self.reports = ReportsClient(client_wrapper=self._client_wrapper)
64
62
  self.beta = BetaClient(client_wrapper=self._client_wrapper)
65
63
  self.alpha = AlphaClient(client_wrapper=self._client_wrapper)
66
64
 
@@ -80,6 +78,7 @@ class AsyncLlamaCloud:
80
78
  token=token,
81
79
  httpx_client=httpx.AsyncClient(timeout=timeout) if httpx_client is None else httpx_client,
82
80
  )
81
+ self.agent_deployments = AsyncAgentDeploymentsClient(client_wrapper=self._client_wrapper)
83
82
  self.data_sinks = AsyncDataSinksClient(client_wrapper=self._client_wrapper)
84
83
  self.data_sources = AsyncDataSourcesClient(client_wrapper=self._client_wrapper)
85
84
  self.embedding_model_configs = AsyncEmbeddingModelConfigsClient(client_wrapper=self._client_wrapper)
@@ -92,12 +91,10 @@ class AsyncLlamaCloud:
92
91
  self.evals = AsyncEvalsClient(client_wrapper=self._client_wrapper)
93
92
  self.parsing = AsyncParsingClient(client_wrapper=self._client_wrapper)
94
93
  self.chat_apps = AsyncChatAppsClient(client_wrapper=self._client_wrapper)
95
- self.agent_deployments = AsyncAgentDeploymentsClient(client_wrapper=self._client_wrapper)
96
94
  self.classifier = AsyncClassifierClient(client_wrapper=self._client_wrapper)
97
95
  self.admin = AsyncAdminClient(client_wrapper=self._client_wrapper)
98
96
  self.users = AsyncUsersClient(client_wrapper=self._client_wrapper)
99
97
  self.llama_extract = AsyncLlamaExtractClient(client_wrapper=self._client_wrapper)
100
- self.reports = AsyncReportsClient(client_wrapper=self._client_wrapper)
101
98
  self.beta = AsyncBetaClient(client_wrapper=self._client_wrapper)
102
99
  self.alpha = AsyncAlphaClient(client_wrapper=self._client_wrapper)
103
100
 
@@ -18,7 +18,6 @@ from . import (
18
18
  parsing,
19
19
  pipelines,
20
20
  projects,
21
- reports,
22
21
  retrievers,
23
22
  users,
24
23
  )
@@ -60,7 +59,6 @@ from .pipelines import (
60
59
  PipelineUpdateTransformConfig,
61
60
  RetrievalParamsSearchFiltersInferenceSchemaValue,
62
61
  )
63
- from .reports import UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction
64
62
 
65
63
  __all__ = [
66
64
  "DataSinkUpdateComponent",
@@ -96,7 +94,6 @@ __all__ = [
96
94
  "PipelineUpdateEmbeddingConfig_VertexaiEmbedding",
97
95
  "PipelineUpdateTransformConfig",
98
96
  "RetrievalParamsSearchFiltersInferenceSchemaValue",
99
- "UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
100
97
  "admin",
101
98
  "agent_deployments",
102
99
  "alpha",
@@ -114,7 +111,6 @@ __all__ = [
114
111
  "parsing",
115
112
  "pipelines",
116
113
  "projects",
117
- "reports",
118
114
  "retrievers",
119
115
  "users",
120
116
  ]