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.
- llama_cloud/__init__.py +138 -2
- llama_cloud/client.py +15 -0
- llama_cloud/resources/__init__.py +17 -1
- llama_cloud/resources/chat_apps/__init__.py +2 -0
- llama_cloud/resources/chat_apps/client.py +620 -0
- llama_cloud/resources/data_sinks/client.py +2 -2
- llama_cloud/resources/data_sources/client.py +2 -2
- llama_cloud/resources/embedding_model_configs/client.py +4 -4
- llama_cloud/resources/files/__init__.py +2 -2
- llama_cloud/resources/files/client.py +21 -0
- llama_cloud/resources/files/types/__init__.py +2 -1
- llama_cloud/resources/files/types/file_create_permission_info_value.py +7 -0
- llama_cloud/resources/jobs/__init__.py +2 -0
- llama_cloud/resources/jobs/client.py +148 -0
- llama_cloud/resources/llama_extract/__init__.py +5 -0
- llama_cloud/resources/llama_extract/client.py +1038 -0
- llama_cloud/resources/llama_extract/types/__init__.py +6 -0
- llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_value.py +7 -0
- llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema_value.py +7 -0
- llama_cloud/resources/organizations/client.py +14 -14
- llama_cloud/resources/parsing/client.py +480 -229
- llama_cloud/resources/pipelines/client.py +182 -126
- llama_cloud/resources/projects/client.py +210 -102
- llama_cloud/resources/reports/__init__.py +5 -0
- llama_cloud/resources/reports/client.py +1198 -0
- llama_cloud/resources/reports/types/__init__.py +7 -0
- llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py +25 -0
- llama_cloud/resources/retrievers/__init__.py +2 -0
- llama_cloud/resources/retrievers/client.py +654 -0
- llama_cloud/types/__init__.py +124 -2
- llama_cloud/types/{chat_message.py → app_schema_chat_chat_message.py} +2 -2
- llama_cloud/types/chat_app.py +44 -0
- llama_cloud/types/chat_app_response.py +41 -0
- llama_cloud/types/cloud_az_storage_blob_data_source.py +1 -0
- llama_cloud/types/cloud_box_data_source.py +1 -0
- llama_cloud/types/cloud_confluence_data_source.py +1 -0
- llama_cloud/types/cloud_google_drive_data_source.py +1 -0
- llama_cloud/types/cloud_jira_data_source.py +1 -0
- llama_cloud/types/cloud_notion_page_data_source.py +1 -0
- llama_cloud/types/cloud_one_drive_data_source.py +1 -0
- llama_cloud/types/cloud_postgres_vector_store.py +1 -0
- llama_cloud/types/cloud_s_3_data_source.py +1 -0
- llama_cloud/types/cloud_sharepoint_data_source.py +1 -0
- llama_cloud/types/cloud_slack_data_source.py +1 -0
- llama_cloud/types/composite_retrieval_mode.py +21 -0
- llama_cloud/types/composite_retrieval_result.py +38 -0
- llama_cloud/types/composite_retrieved_text_node.py +42 -0
- llama_cloud/types/data_sink.py +1 -1
- llama_cloud/types/data_sink_create.py +1 -1
- llama_cloud/types/data_source.py +1 -1
- llama_cloud/types/data_source_create.py +1 -1
- llama_cloud/types/edit_suggestion.py +39 -0
- llama_cloud/types/eval_dataset_job_record.py +1 -0
- llama_cloud/types/extract_agent.py +45 -0
- llama_cloud/types/extract_agent_data_schema_value.py +5 -0
- llama_cloud/types/extract_config.py +40 -0
- llama_cloud/types/extract_job.py +35 -0
- llama_cloud/types/extract_job_create.py +40 -0
- llama_cloud/types/extract_job_create_data_schema_override_value.py +7 -0
- llama_cloud/types/extract_mode.py +17 -0
- llama_cloud/types/extract_resultset.py +46 -0
- llama_cloud/types/extract_resultset_data.py +11 -0
- llama_cloud/types/extract_resultset_data_item_value.py +7 -0
- llama_cloud/types/extract_resultset_data_zero_value.py +7 -0
- llama_cloud/types/extract_resultset_extraction_metadata_value.py +7 -0
- llama_cloud/types/file.py +3 -0
- llama_cloud/types/file_permission_info_value.py +5 -0
- llama_cloud/types/filter_condition.py +9 -1
- llama_cloud/types/filter_operator.py +4 -0
- llama_cloud/types/image_block.py +35 -0
- llama_cloud/types/input_message.py +1 -1
- llama_cloud/types/job_name_mapping.py +4 -0
- llama_cloud/types/job_names.py +89 -0
- llama_cloud/types/job_record.py +57 -0
- llama_cloud/types/job_record_with_usage_metrics.py +36 -0
- llama_cloud/types/llama_index_core_base_llms_types_chat_message.py +39 -0
- llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +33 -0
- llama_cloud/types/llama_parse_parameters.py +15 -0
- llama_cloud/types/llm.py +1 -0
- llama_cloud/types/llm_model_data.py +1 -0
- llama_cloud/types/llm_parameters.py +1 -0
- llama_cloud/types/managed_ingestion_status.py +4 -0
- llama_cloud/types/managed_ingestion_status_response.py +1 -0
- llama_cloud/types/object_type.py +4 -0
- llama_cloud/types/organization.py +5 -0
- llama_cloud/types/paginated_jobs_history_with_metrics.py +35 -0
- llama_cloud/types/paginated_report_response.py +35 -0
- llama_cloud/types/parse_plan_level.py +21 -0
- llama_cloud/types/parsing_job_structured_result.py +32 -0
- llama_cloud/types/pipeline_create.py +3 -1
- llama_cloud/types/pipeline_data_source.py +1 -1
- llama_cloud/types/pipeline_file.py +3 -0
- llama_cloud/types/pipeline_file_permission_info_value.py +7 -0
- llama_cloud/types/playground_session.py +2 -2
- llama_cloud/types/preset_retrieval_params.py +1 -0
- llama_cloud/types/progress_event.py +44 -0
- llama_cloud/types/progress_event_status.py +33 -0
- llama_cloud/types/prompt_spec.py +2 -2
- llama_cloud/types/related_node_info.py +2 -2
- llama_cloud/types/related_node_info_node_type.py +7 -0
- llama_cloud/types/report.py +33 -0
- llama_cloud/types/report_block.py +34 -0
- llama_cloud/types/report_block_dependency.py +29 -0
- llama_cloud/types/report_create_response.py +31 -0
- llama_cloud/types/report_event_item.py +40 -0
- llama_cloud/types/report_event_item_event_data.py +45 -0
- llama_cloud/types/report_event_type.py +37 -0
- llama_cloud/types/report_metadata.py +39 -0
- llama_cloud/types/report_plan.py +36 -0
- llama_cloud/types/report_plan_block.py +36 -0
- llama_cloud/types/report_query.py +33 -0
- llama_cloud/types/report_response.py +41 -0
- llama_cloud/types/report_state.py +37 -0
- llama_cloud/types/report_state_event.py +38 -0
- llama_cloud/types/report_update_event.py +38 -0
- llama_cloud/types/retrieve_results.py +1 -1
- llama_cloud/types/retriever.py +45 -0
- llama_cloud/types/retriever_create.py +37 -0
- llama_cloud/types/retriever_pipeline.py +37 -0
- llama_cloud/types/status_enum.py +4 -0
- llama_cloud/types/supported_llm_model_names.py +4 -0
- llama_cloud/types/text_block.py +31 -0
- llama_cloud/types/text_node.py +13 -6
- llama_cloud/types/usage_metric_response.py +34 -0
- llama_cloud/types/user_job_record.py +32 -0
- {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/METADATA +3 -1
- {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/RECORD +129 -59
- {llama_cloud-0.1.5.dist-info → llama_cloud-0.1.7a1.dist-info}/WHEEL +1 -1
- {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"]
|
|
@@ -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(
|
|
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(
|
|
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(
|