llama-cloud 0.1.5__py3-none-any.whl → 0.1.7a1__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.

Files changed (129) hide show
  1. llama_cloud/__init__.py +138 -2
  2. llama_cloud/client.py +15 -0
  3. llama_cloud/resources/__init__.py +17 -1
  4. llama_cloud/resources/chat_apps/__init__.py +2 -0
  5. llama_cloud/resources/chat_apps/client.py +620 -0
  6. llama_cloud/resources/data_sinks/client.py +2 -2
  7. llama_cloud/resources/data_sources/client.py +2 -2
  8. llama_cloud/resources/embedding_model_configs/client.py +4 -4
  9. llama_cloud/resources/files/__init__.py +2 -2
  10. llama_cloud/resources/files/client.py +21 -0
  11. llama_cloud/resources/files/types/__init__.py +2 -1
  12. llama_cloud/resources/files/types/file_create_permission_info_value.py +7 -0
  13. llama_cloud/resources/jobs/__init__.py +2 -0
  14. llama_cloud/resources/jobs/client.py +148 -0
  15. llama_cloud/resources/llama_extract/__init__.py +5 -0
  16. llama_cloud/resources/llama_extract/client.py +1038 -0
  17. llama_cloud/resources/llama_extract/types/__init__.py +6 -0
  18. llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_value.py +7 -0
  19. llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema_value.py +7 -0
  20. llama_cloud/resources/organizations/client.py +14 -14
  21. llama_cloud/resources/parsing/client.py +480 -229
  22. llama_cloud/resources/pipelines/client.py +182 -126
  23. llama_cloud/resources/projects/client.py +210 -102
  24. llama_cloud/resources/reports/__init__.py +5 -0
  25. llama_cloud/resources/reports/client.py +1198 -0
  26. llama_cloud/resources/reports/types/__init__.py +7 -0
  27. llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py +25 -0
  28. llama_cloud/resources/retrievers/__init__.py +2 -0
  29. llama_cloud/resources/retrievers/client.py +654 -0
  30. llama_cloud/types/__init__.py +124 -2
  31. llama_cloud/types/{chat_message.py → app_schema_chat_chat_message.py} +2 -2
  32. llama_cloud/types/chat_app.py +44 -0
  33. llama_cloud/types/chat_app_response.py +41 -0
  34. llama_cloud/types/cloud_az_storage_blob_data_source.py +1 -0
  35. llama_cloud/types/cloud_box_data_source.py +1 -0
  36. llama_cloud/types/cloud_confluence_data_source.py +1 -0
  37. llama_cloud/types/cloud_google_drive_data_source.py +1 -0
  38. llama_cloud/types/cloud_jira_data_source.py +1 -0
  39. llama_cloud/types/cloud_notion_page_data_source.py +1 -0
  40. llama_cloud/types/cloud_one_drive_data_source.py +1 -0
  41. llama_cloud/types/cloud_postgres_vector_store.py +1 -0
  42. llama_cloud/types/cloud_s_3_data_source.py +1 -0
  43. llama_cloud/types/cloud_sharepoint_data_source.py +1 -0
  44. llama_cloud/types/cloud_slack_data_source.py +1 -0
  45. llama_cloud/types/composite_retrieval_mode.py +21 -0
  46. llama_cloud/types/composite_retrieval_result.py +38 -0
  47. llama_cloud/types/composite_retrieved_text_node.py +42 -0
  48. llama_cloud/types/data_sink.py +1 -1
  49. llama_cloud/types/data_sink_create.py +1 -1
  50. llama_cloud/types/data_source.py +1 -1
  51. llama_cloud/types/data_source_create.py +1 -1
  52. llama_cloud/types/edit_suggestion.py +39 -0
  53. llama_cloud/types/eval_dataset_job_record.py +1 -0
  54. llama_cloud/types/extract_agent.py +45 -0
  55. llama_cloud/types/extract_agent_data_schema_value.py +5 -0
  56. llama_cloud/types/extract_config.py +40 -0
  57. llama_cloud/types/extract_job.py +35 -0
  58. llama_cloud/types/extract_job_create.py +40 -0
  59. llama_cloud/types/extract_job_create_data_schema_override_value.py +7 -0
  60. llama_cloud/types/extract_mode.py +17 -0
  61. llama_cloud/types/extract_resultset.py +46 -0
  62. llama_cloud/types/extract_resultset_data.py +11 -0
  63. llama_cloud/types/extract_resultset_data_item_value.py +7 -0
  64. llama_cloud/types/extract_resultset_data_zero_value.py +7 -0
  65. llama_cloud/types/extract_resultset_extraction_metadata_value.py +7 -0
  66. llama_cloud/types/file.py +3 -0
  67. llama_cloud/types/file_permission_info_value.py +5 -0
  68. llama_cloud/types/filter_condition.py +9 -1
  69. llama_cloud/types/filter_operator.py +4 -0
  70. llama_cloud/types/image_block.py +35 -0
  71. llama_cloud/types/input_message.py +1 -1
  72. llama_cloud/types/job_name_mapping.py +4 -0
  73. llama_cloud/types/job_names.py +89 -0
  74. llama_cloud/types/job_record.py +57 -0
  75. llama_cloud/types/job_record_with_usage_metrics.py +36 -0
  76. llama_cloud/types/llama_index_core_base_llms_types_chat_message.py +39 -0
  77. llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +33 -0
  78. llama_cloud/types/llama_parse_parameters.py +15 -0
  79. llama_cloud/types/llm.py +1 -0
  80. llama_cloud/types/llm_model_data.py +1 -0
  81. llama_cloud/types/llm_parameters.py +1 -0
  82. llama_cloud/types/managed_ingestion_status.py +4 -0
  83. llama_cloud/types/managed_ingestion_status_response.py +1 -0
  84. llama_cloud/types/object_type.py +4 -0
  85. llama_cloud/types/organization.py +5 -0
  86. llama_cloud/types/paginated_jobs_history_with_metrics.py +35 -0
  87. llama_cloud/types/paginated_report_response.py +35 -0
  88. llama_cloud/types/parse_plan_level.py +21 -0
  89. llama_cloud/types/parsing_job_structured_result.py +32 -0
  90. llama_cloud/types/pipeline_create.py +3 -1
  91. llama_cloud/types/pipeline_data_source.py +1 -1
  92. llama_cloud/types/pipeline_file.py +3 -0
  93. llama_cloud/types/pipeline_file_permission_info_value.py +7 -0
  94. llama_cloud/types/playground_session.py +2 -2
  95. llama_cloud/types/preset_retrieval_params.py +1 -0
  96. llama_cloud/types/progress_event.py +44 -0
  97. llama_cloud/types/progress_event_status.py +33 -0
  98. llama_cloud/types/prompt_spec.py +2 -2
  99. llama_cloud/types/related_node_info.py +2 -2
  100. llama_cloud/types/related_node_info_node_type.py +7 -0
  101. llama_cloud/types/report.py +33 -0
  102. llama_cloud/types/report_block.py +34 -0
  103. llama_cloud/types/report_block_dependency.py +29 -0
  104. llama_cloud/types/report_create_response.py +31 -0
  105. llama_cloud/types/report_event_item.py +40 -0
  106. llama_cloud/types/report_event_item_event_data.py +45 -0
  107. llama_cloud/types/report_event_type.py +37 -0
  108. llama_cloud/types/report_metadata.py +39 -0
  109. llama_cloud/types/report_plan.py +36 -0
  110. llama_cloud/types/report_plan_block.py +36 -0
  111. llama_cloud/types/report_query.py +33 -0
  112. llama_cloud/types/report_response.py +41 -0
  113. llama_cloud/types/report_state.py +37 -0
  114. llama_cloud/types/report_state_event.py +38 -0
  115. llama_cloud/types/report_update_event.py +38 -0
  116. llama_cloud/types/retrieve_results.py +1 -1
  117. llama_cloud/types/retriever.py +45 -0
  118. llama_cloud/types/retriever_create.py +37 -0
  119. llama_cloud/types/retriever_pipeline.py +37 -0
  120. llama_cloud/types/status_enum.py +4 -0
  121. llama_cloud/types/supported_llm_model_names.py +4 -0
  122. llama_cloud/types/text_block.py +31 -0
  123. llama_cloud/types/text_node.py +13 -6
  124. llama_cloud/types/usage_metric_response.py +34 -0
  125. llama_cloud/types/user_job_record.py +32 -0
  126. {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/METADATA +3 -1
  127. {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/RECORD +129 -59
  128. {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/WHEEL +1 -1
  129. {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/LICENSE +0 -0
@@ -0,0 +1,6 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from .extract_agent_create_data_schema_value import ExtractAgentCreateDataSchemaValue
4
+ from .extract_agent_update_data_schema_value import ExtractAgentUpdateDataSchemaValue
5
+
6
+ __all__ = ["ExtractAgentCreateDataSchemaValue", "ExtractAgentUpdateDataSchemaValue"]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ ExtractAgentCreateDataSchemaValue = typing.Union[
6
+ typing.Dict[str, typing.Any], typing.List[typing.Any], str, int, float, bool
7
+ ]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ ExtractAgentUpdateDataSchemaValue = typing.Union[
6
+ typing.Dict[str, typing.Any], typing.List[typing.Any], str, int, float, bool
7
+ ]
@@ -517,7 +517,7 @@ class OrganizationsClient:
517
517
  raise ApiError(status_code=_response.status_code, body=_response.text)
518
518
  raise ApiError(status_code=_response.status_code, body=_response_json)
519
519
 
520
- def get_user_role(self, organization_id: str) -> UserOrganizationRole:
520
+ def get_user_role(self, organization_id: str) -> typing.Optional[UserOrganizationRole]:
521
521
  """
522
522
  Get the role of a user in an organization.
523
523
 
@@ -542,7 +542,7 @@ class OrganizationsClient:
542
542
  timeout=60,
543
543
  )
544
544
  if 200 <= _response.status_code < 300:
545
- return pydantic.parse_obj_as(UserOrganizationRole, _response.json()) # type: ignore
545
+ return pydantic.parse_obj_as(typing.Optional[UserOrganizationRole], _response.json()) # type: ignore
546
546
  if _response.status_code == 422:
547
547
  raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
548
548
  try:
@@ -641,16 +641,18 @@ class OrganizationsClient:
641
641
  raise ApiError(status_code=_response.status_code, body=_response.text)
642
642
  raise ApiError(status_code=_response.status_code, body=_response_json)
643
643
 
644
- def add_user_to_project(self, organization_id: str, user_id: str, *, project_id: str) -> typing.Any:
644
+ def add_user_to_project(
645
+ self, organization_id: typing.Optional[str], user_id: str, *, project_id: typing.Optional[str] = None
646
+ ) -> typing.Any:
645
647
  """
646
648
  Add a user to a project.
647
649
 
648
650
  Parameters:
649
- - organization_id: str.
651
+ - organization_id: typing.Optional[str].
650
652
 
651
653
  - user_id: str.
652
654
 
653
- - project_id: str.
655
+ - project_id: typing.Optional[str].
654
656
  ---
655
657
  from llama_cloud.client import LlamaCloud
656
658
 
@@ -658,9 +660,7 @@ class OrganizationsClient:
658
660
  token="YOUR_TOKEN",
659
661
  )
660
662
  client.organizations.add_user_to_project(
661
- organization_id="string",
662
663
  user_id="string",
663
- project_id="string",
664
664
  )
665
665
  """
666
666
  _response = self._client_wrapper.httpx_client.request(
@@ -1210,7 +1210,7 @@ class AsyncOrganizationsClient:
1210
1210
  raise ApiError(status_code=_response.status_code, body=_response.text)
1211
1211
  raise ApiError(status_code=_response.status_code, body=_response_json)
1212
1212
 
1213
- async def get_user_role(self, organization_id: str) -> UserOrganizationRole:
1213
+ async def get_user_role(self, organization_id: str) -> typing.Optional[UserOrganizationRole]:
1214
1214
  """
1215
1215
  Get the role of a user in an organization.
1216
1216
 
@@ -1235,7 +1235,7 @@ class AsyncOrganizationsClient:
1235
1235
  timeout=60,
1236
1236
  )
1237
1237
  if 200 <= _response.status_code < 300:
1238
- return pydantic.parse_obj_as(UserOrganizationRole, _response.json()) # type: ignore
1238
+ return pydantic.parse_obj_as(typing.Optional[UserOrganizationRole], _response.json()) # type: ignore
1239
1239
  if _response.status_code == 422:
1240
1240
  raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
1241
1241
  try:
@@ -1334,16 +1334,18 @@ class AsyncOrganizationsClient:
1334
1334
  raise ApiError(status_code=_response.status_code, body=_response.text)
1335
1335
  raise ApiError(status_code=_response.status_code, body=_response_json)
1336
1336
 
1337
- async def add_user_to_project(self, organization_id: str, user_id: str, *, project_id: str) -> typing.Any:
1337
+ async def add_user_to_project(
1338
+ self, organization_id: typing.Optional[str], user_id: str, *, project_id: typing.Optional[str] = None
1339
+ ) -> typing.Any:
1338
1340
  """
1339
1341
  Add a user to a project.
1340
1342
 
1341
1343
  Parameters:
1342
- - organization_id: str.
1344
+ - organization_id: typing.Optional[str].
1343
1345
 
1344
1346
  - user_id: str.
1345
1347
 
1346
- - project_id: str.
1348
+ - project_id: typing.Optional[str].
1347
1349
  ---
1348
1350
  from llama_cloud.client import AsyncLlamaCloud
1349
1351
 
@@ -1351,9 +1353,7 @@ class AsyncOrganizationsClient:
1351
1353
  token="YOUR_TOKEN",
1352
1354
  )
1353
1355
  await client.organizations.add_user_to_project(
1354
- organization_id="string",
1355
1356
  user_id="string",
1356
- project_id="string",
1357
1357
  )
1358
1358
  """
1359
1359
  _response = await self._client_wrapper.httpx_client.request(