llama-cloud 0.1.11__tar.gz → 0.1.12__tar.gz
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-0.1.11 → llama_cloud-0.1.12}/PKG-INFO +2 -3
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/__init__.py +10 -2
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/files/client.py +12 -2
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/client.py +8 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/reports/client.py +22 -4
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/__init__.py +10 -2
- llama_cloud-0.1.12/llama_cloud/types/chunk_mode.py +25 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llama_extract_settings.py +9 -4
- llama_cloud-0.1.12/llama_cloud/types/prompt_conf.py +33 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_metadata.py +1 -2
- llama_cloud-0.1.12/llama_cloud/types/schema_relax_mode.py +25 -0
- llama_cloud-0.1.12/llama_cloud/types/struct_mode.py +29 -0
- llama_cloud-0.1.12/llama_cloud/types/struct_parse_conf.py +50 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/supported_llm_model_names.py +0 -4
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/pyproject.toml +2 -2
- llama_cloud-0.1.11/llama_cloud/types/report_file_info.py +0 -37
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/LICENSE +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/README.md +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/core/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/core/api_error.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/core/client_wrapper.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/core/datetime_utils.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/core/jsonable_encoder.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/core/remove_none_from_dict.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/environment.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/errors/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/errors/unprocessable_entity_error.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/chat_apps/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/chat_apps/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/component_definitions/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/component_definitions/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sinks/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sinks/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sinks/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sinks/types/data_sink_update_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sources/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sources/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sources/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sources/types/data_source_update_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/data_sources/types/data_source_update_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/embedding_model_configs/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/embedding_model_configs/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/embedding_model_configs/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/embedding_model_configs/types/embedding_model_config_create_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/evals/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/evals/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/files/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/files/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/files/types/file_create_from_url_resource_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/files/types/file_create_permission_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/files/types/file_create_resource_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/jobs/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/jobs/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_zero_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema_zero_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema_zero_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/organizations/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/organizations/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/parsing/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/parsing/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/pipelines/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/pipelines/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/pipelines/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/pipelines/types/pipeline_file_update_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/pipelines/types/pipeline_update_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/pipelines/types/pipeline_update_transform_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/projects/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/projects/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/reports/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/reports/types/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/retrievers/__init__.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/resources/retrievers/client.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/advanced_mode_transform_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/advanced_mode_transform_config_chunking_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/advanced_mode_transform_config_segmentation_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/app_schema_chat_chat_message.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/auto_transform_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/azure_open_ai_embedding.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/azure_open_ai_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/base.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/base_prompt_template.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/bedrock_embedding.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/bedrock_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/box_auth_mechanism.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/character_chunking_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/character_splitter.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/chat_app.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/chat_app_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/chat_data.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_az_storage_blob_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_azure_ai_search_vector_store.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_box_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_confluence_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_document.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_document_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_google_drive_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_jira_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_milvus_vector_store.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_mongo_db_atlas_vector_search.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_notion_page_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_one_drive_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_pinecone_vector_store.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_postgres_vector_store.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_qdrant_vector_store.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_s_3_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_sharepoint_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cloud_slack_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/code_splitter.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cohere_embedding.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/cohere_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/composite_retrieval_mode.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/composite_retrieval_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/composite_retrieved_text_node.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/composite_retrieved_text_node_with_score.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/configurable_data_sink_names.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/configurable_data_source_names.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/configurable_transformation_definition.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/configurable_transformation_names.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/configured_transformation_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/configured_transformation_item_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_sink.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_sink_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_sink_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_sink_create_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_sink_definition.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source_create_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source_create_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/data_source_definition.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/edit_suggestion.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/edit_suggestion_blocks_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/element_segmentation_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/embedding_model_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/embedding_model_config_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/embedding_model_config_update.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/embedding_model_config_update_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_dataset.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_dataset_job_params.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_dataset_job_record.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_execution_params.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_execution_params_override.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_metric.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_question.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_question_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/eval_question_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_agent.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_agent_data_schema_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_job.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_job_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_job_create_data_schema_override.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_job_create_data_schema_override_zero_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_mode.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_resultset.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_resultset_data.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_resultset_data_item_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_resultset_data_zero_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_resultset_extraction_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_run.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_run_data.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_run_data_item_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_run_data_schema_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_run_data_zero_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_run_extraction_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_schema_validate_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_schema_validate_response_data_schema_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_state.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/extract_target.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/file.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/file_permission_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/file_resource_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/filter_condition.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/filter_operator.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/gemini_embedding.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/gemini_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/http_validation_error.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/hugging_face_inference_api_embedding.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/hugging_face_inference_api_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/hugging_face_inference_api_embedding_token.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/image_block.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/ingestion_error_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/input_message.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/interval_usage_and_plan.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/job_name_mapping.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/job_names.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/job_record.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/job_record_with_usage_metrics.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llama_index_core_base_llms_types_chat_message.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llama_parse_parameters.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llama_parse_supported_file_extensions.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llm.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llm_model_data.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/llm_parameters.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/local_eval.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/local_eval_results.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/local_eval_sets.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/managed_ingestion_status.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/managed_ingestion_status_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/markdown_element_node_parser.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/markdown_node_parser.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/message_annotation.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/message_role.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/metadata_filter.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/metadata_filter_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/metadata_filters.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/metadata_filters_filters_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/metric_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/node_parser.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/node_relationship.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/none_chunking_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/none_segmentation_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/object_type.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/open_ai_embedding.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/open_ai_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/organization.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/organization_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/page_figure_metadata.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/page_screenshot_metadata.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/page_screenshot_node_with_score.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/page_segmentation_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/page_splitter_node_parser.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/paginated_jobs_history_with_metrics.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/paginated_list_pipeline_files_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/paginated_report_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parse_plan_level.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parser_languages.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_history_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_job.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_job_json_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_job_markdown_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_job_structured_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_job_text_result.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/parsing_usage.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/partition_names.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/permission.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_configuration_hashes.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_create_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_create_transform_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_data_source.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_data_source_component.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_data_source_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_data_source_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_deployment.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file_config_hash_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file_create_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file_custom_metadata_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file_permission_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_file_resource_info_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_transform_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pipeline_type.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/plan.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/playground_session.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pooling.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/preset_composite_retrieval_params.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/preset_retrieval_params.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/presigned_url.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/progress_event.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/progress_event_status.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/project.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/project_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/prompt_mixin_prompts.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/prompt_spec.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/pydantic_program_mode.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/related_node_info.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/related_node_info_node_type.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_block.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_block_dependency.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_create_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_event_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_event_item_event_data.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_event_type.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_plan.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_plan_block.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_query.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_state.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_state_event.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/report_update_event.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/retrieval_mode.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/retrieve_results.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/retriever.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/retriever_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/retriever_pipeline.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/role.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/semantic_chunking_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/sentence_chunking_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/sentence_splitter.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/status_enum.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/supported_llm_model.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/text_block.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/text_node.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/text_node_relationships_value.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/text_node_with_score.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/token_chunking_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/token_text_splitter.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/transformation_category_names.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/usage.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/usage_metric_response.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/user_job_record.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/user_organization.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/user_organization_create.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/user_organization_delete.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/user_organization_role.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/validation_error.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/validation_error_loc_item.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/vertex_ai_embedding_config.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/vertex_embedding_mode.py +0 -0
- {llama_cloud-0.1.11 → llama_cloud-0.1.12}/llama_cloud/types/vertex_text_embedding.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: llama-cloud
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.12
|
|
4
4
|
Summary:
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Logan Markewich
|
|
@@ -13,8 +13,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
|
|
17
|
-
Requires-Dist: certifi (>=2024.7.4,<2025.0.0)
|
|
16
|
+
Requires-Dist: certifi (>=2024.7.4)
|
|
18
17
|
Requires-Dist: httpx (>=0.20.0)
|
|
19
18
|
Requires-Dist: pydantic (>=1.10)
|
|
20
19
|
Description-Content-Type: text/markdown
|
|
@@ -26,6 +26,7 @@ from .types import (
|
|
|
26
26
|
ChatApp,
|
|
27
27
|
ChatAppResponse,
|
|
28
28
|
ChatData,
|
|
29
|
+
ChunkMode,
|
|
29
30
|
CloudAzStorageBlobDataSource,
|
|
30
31
|
CloudAzureAiSearchVectorStore,
|
|
31
32
|
CloudBoxDataSource,
|
|
@@ -239,6 +240,7 @@ from .types import (
|
|
|
239
240
|
ProgressEventStatus,
|
|
240
241
|
Project,
|
|
241
242
|
ProjectCreate,
|
|
243
|
+
PromptConf,
|
|
242
244
|
PromptMixinPrompts,
|
|
243
245
|
PromptSpec,
|
|
244
246
|
PydanticProgramMode,
|
|
@@ -254,7 +256,6 @@ from .types import (
|
|
|
254
256
|
ReportEventItemEventData_ReportBlockUpdate,
|
|
255
257
|
ReportEventItemEventData_ReportStateUpdate,
|
|
256
258
|
ReportEventType,
|
|
257
|
-
ReportFileInfo,
|
|
258
259
|
ReportMetadata,
|
|
259
260
|
ReportPlan,
|
|
260
261
|
ReportPlanBlock,
|
|
@@ -269,10 +270,13 @@ from .types import (
|
|
|
269
270
|
RetrieverCreate,
|
|
270
271
|
RetrieverPipeline,
|
|
271
272
|
Role,
|
|
273
|
+
SchemaRelaxMode,
|
|
272
274
|
SemanticChunkingConfig,
|
|
273
275
|
SentenceChunkingConfig,
|
|
274
276
|
SentenceSplitter,
|
|
275
277
|
StatusEnum,
|
|
278
|
+
StructMode,
|
|
279
|
+
StructParseConf,
|
|
276
280
|
SupportedLlmModel,
|
|
277
281
|
SupportedLlmModelNames,
|
|
278
282
|
TextBlock,
|
|
@@ -372,6 +376,7 @@ __all__ = [
|
|
|
372
376
|
"ChatApp",
|
|
373
377
|
"ChatAppResponse",
|
|
374
378
|
"ChatData",
|
|
379
|
+
"ChunkMode",
|
|
375
380
|
"CloudAzStorageBlobDataSource",
|
|
376
381
|
"CloudAzureAiSearchVectorStore",
|
|
377
382
|
"CloudBoxDataSource",
|
|
@@ -616,6 +621,7 @@ __all__ = [
|
|
|
616
621
|
"ProgressEventStatus",
|
|
617
622
|
"Project",
|
|
618
623
|
"ProjectCreate",
|
|
624
|
+
"PromptConf",
|
|
619
625
|
"PromptMixinPrompts",
|
|
620
626
|
"PromptSpec",
|
|
621
627
|
"PydanticProgramMode",
|
|
@@ -631,7 +637,6 @@ __all__ = [
|
|
|
631
637
|
"ReportEventItemEventData_ReportBlockUpdate",
|
|
632
638
|
"ReportEventItemEventData_ReportStateUpdate",
|
|
633
639
|
"ReportEventType",
|
|
634
|
-
"ReportFileInfo",
|
|
635
640
|
"ReportMetadata",
|
|
636
641
|
"ReportPlan",
|
|
637
642
|
"ReportPlanBlock",
|
|
@@ -646,10 +651,13 @@ __all__ = [
|
|
|
646
651
|
"RetrieverCreate",
|
|
647
652
|
"RetrieverPipeline",
|
|
648
653
|
"Role",
|
|
654
|
+
"SchemaRelaxMode",
|
|
649
655
|
"SemanticChunkingConfig",
|
|
650
656
|
"SentenceChunkingConfig",
|
|
651
657
|
"SentenceSplitter",
|
|
652
658
|
"StatusEnum",
|
|
659
|
+
"StructMode",
|
|
660
|
+
"StructParseConf",
|
|
653
661
|
"SupportedLlmModel",
|
|
654
662
|
"SupportedLlmModelNames",
|
|
655
663
|
"TextBlock",
|
|
@@ -151,6 +151,7 @@ class FilesClient:
|
|
|
151
151
|
def upload_file(
|
|
152
152
|
self,
|
|
153
153
|
*,
|
|
154
|
+
external_file_id: typing.Optional[str] = None,
|
|
154
155
|
project_id: typing.Optional[str] = None,
|
|
155
156
|
organization_id: typing.Optional[str] = None,
|
|
156
157
|
upload_file: typing.IO,
|
|
@@ -159,6 +160,8 @@ class FilesClient:
|
|
|
159
160
|
Upload a file to S3.
|
|
160
161
|
|
|
161
162
|
Parameters:
|
|
163
|
+
- external_file_id: typing.Optional[str].
|
|
164
|
+
|
|
162
165
|
- project_id: typing.Optional[str].
|
|
163
166
|
|
|
164
167
|
- organization_id: typing.Optional[str].
|
|
@@ -168,7 +171,9 @@ class FilesClient:
|
|
|
168
171
|
_response = self._client_wrapper.httpx_client.request(
|
|
169
172
|
"POST",
|
|
170
173
|
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/files"),
|
|
171
|
-
params=remove_none_from_dict(
|
|
174
|
+
params=remove_none_from_dict(
|
|
175
|
+
{"external_file_id": external_file_id, "project_id": project_id, "organization_id": organization_id}
|
|
176
|
+
),
|
|
172
177
|
data=jsonable_encoder({}),
|
|
173
178
|
files={"upload_file": upload_file},
|
|
174
179
|
headers=self._client_wrapper.get_headers(),
|
|
@@ -766,6 +771,7 @@ class AsyncFilesClient:
|
|
|
766
771
|
async def upload_file(
|
|
767
772
|
self,
|
|
768
773
|
*,
|
|
774
|
+
external_file_id: typing.Optional[str] = None,
|
|
769
775
|
project_id: typing.Optional[str] = None,
|
|
770
776
|
organization_id: typing.Optional[str] = None,
|
|
771
777
|
upload_file: typing.IO,
|
|
@@ -774,6 +780,8 @@ class AsyncFilesClient:
|
|
|
774
780
|
Upload a file to S3.
|
|
775
781
|
|
|
776
782
|
Parameters:
|
|
783
|
+
- external_file_id: typing.Optional[str].
|
|
784
|
+
|
|
777
785
|
- project_id: typing.Optional[str].
|
|
778
786
|
|
|
779
787
|
- organization_id: typing.Optional[str].
|
|
@@ -783,7 +791,9 @@ class AsyncFilesClient:
|
|
|
783
791
|
_response = await self._client_wrapper.httpx_client.request(
|
|
784
792
|
"POST",
|
|
785
793
|
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/v1/files"),
|
|
786
|
-
params=remove_none_from_dict(
|
|
794
|
+
params=remove_none_from_dict(
|
|
795
|
+
{"external_file_id": external_file_id, "project_id": project_id, "organization_id": organization_id}
|
|
796
|
+
),
|
|
787
797
|
data=jsonable_encoder({}),
|
|
788
798
|
files={"upload_file": upload_file},
|
|
789
799
|
headers=self._client_wrapper.get_headers(),
|
|
@@ -417,6 +417,7 @@ class LlamaExtractClient:
|
|
|
417
417
|
- extract_settings: typing.Optional[LlamaExtractSettings].
|
|
418
418
|
---
|
|
419
419
|
from llama_cloud import (
|
|
420
|
+
ChunkMode,
|
|
420
421
|
ExtractConfig,
|
|
421
422
|
ExtractJobCreate,
|
|
422
423
|
ExtractMode,
|
|
@@ -439,6 +440,7 @@ class LlamaExtractClient:
|
|
|
439
440
|
),
|
|
440
441
|
),
|
|
441
442
|
extract_settings=LlamaExtractSettings(
|
|
443
|
+
chunk_mode=ChunkMode.PAGE,
|
|
442
444
|
llama_parse_params=LlamaParseParameters(),
|
|
443
445
|
),
|
|
444
446
|
)
|
|
@@ -517,6 +519,7 @@ class LlamaExtractClient:
|
|
|
517
519
|
- extract_settings: typing.Optional[LlamaExtractSettings].
|
|
518
520
|
---
|
|
519
521
|
from llama_cloud import (
|
|
522
|
+
ChunkMode,
|
|
520
523
|
ExtractConfig,
|
|
521
524
|
ExtractJobCreate,
|
|
522
525
|
ExtractMode,
|
|
@@ -539,6 +542,7 @@ class LlamaExtractClient:
|
|
|
539
542
|
),
|
|
540
543
|
),
|
|
541
544
|
extract_settings=LlamaExtractSettings(
|
|
545
|
+
chunk_mode=ChunkMode.PAGE,
|
|
542
546
|
llama_parse_params=LlamaParseParameters(),
|
|
543
547
|
),
|
|
544
548
|
)
|
|
@@ -1072,6 +1076,7 @@ class AsyncLlamaExtractClient:
|
|
|
1072
1076
|
- extract_settings: typing.Optional[LlamaExtractSettings].
|
|
1073
1077
|
---
|
|
1074
1078
|
from llama_cloud import (
|
|
1079
|
+
ChunkMode,
|
|
1075
1080
|
ExtractConfig,
|
|
1076
1081
|
ExtractJobCreate,
|
|
1077
1082
|
ExtractMode,
|
|
@@ -1094,6 +1099,7 @@ class AsyncLlamaExtractClient:
|
|
|
1094
1099
|
),
|
|
1095
1100
|
),
|
|
1096
1101
|
extract_settings=LlamaExtractSettings(
|
|
1102
|
+
chunk_mode=ChunkMode.PAGE,
|
|
1097
1103
|
llama_parse_params=LlamaParseParameters(),
|
|
1098
1104
|
),
|
|
1099
1105
|
)
|
|
@@ -1172,6 +1178,7 @@ class AsyncLlamaExtractClient:
|
|
|
1172
1178
|
- extract_settings: typing.Optional[LlamaExtractSettings].
|
|
1173
1179
|
---
|
|
1174
1180
|
from llama_cloud import (
|
|
1181
|
+
ChunkMode,
|
|
1175
1182
|
ExtractConfig,
|
|
1176
1183
|
ExtractJobCreate,
|
|
1177
1184
|
ExtractMode,
|
|
@@ -1194,6 +1201,7 @@ class AsyncLlamaExtractClient:
|
|
|
1194
1201
|
),
|
|
1195
1202
|
),
|
|
1196
1203
|
extract_settings=LlamaExtractSettings(
|
|
1204
|
+
chunk_mode=ChunkMode.PAGE,
|
|
1197
1205
|
llama_parse_params=LlamaParseParameters(),
|
|
1198
1206
|
),
|
|
1199
1207
|
)
|
|
@@ -252,7 +252,12 @@ class ReportsClient:
|
|
|
252
252
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
253
253
|
|
|
254
254
|
def delete_report(
|
|
255
|
-
self,
|
|
255
|
+
self,
|
|
256
|
+
report_id: str,
|
|
257
|
+
*,
|
|
258
|
+
cascade_delete: typing.Optional[bool] = None,
|
|
259
|
+
project_id: typing.Optional[str] = None,
|
|
260
|
+
organization_id: typing.Optional[str] = None,
|
|
256
261
|
) -> typing.Any:
|
|
257
262
|
"""
|
|
258
263
|
Delete a report.
|
|
@@ -260,6 +265,8 @@ class ReportsClient:
|
|
|
260
265
|
Parameters:
|
|
261
266
|
- report_id: str.
|
|
262
267
|
|
|
268
|
+
- cascade_delete: typing.Optional[bool]. Whether to delete associated retriever and pipeline data
|
|
269
|
+
|
|
263
270
|
- project_id: typing.Optional[str].
|
|
264
271
|
|
|
265
272
|
- organization_id: typing.Optional[str].
|
|
@@ -276,7 +283,9 @@ class ReportsClient:
|
|
|
276
283
|
_response = self._client_wrapper.httpx_client.request(
|
|
277
284
|
"DELETE",
|
|
278
285
|
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"api/v1/reports/{report_id}"),
|
|
279
|
-
params=remove_none_from_dict(
|
|
286
|
+
params=remove_none_from_dict(
|
|
287
|
+
{"cascade_delete": cascade_delete, "project_id": project_id, "organization_id": organization_id}
|
|
288
|
+
),
|
|
280
289
|
headers=self._client_wrapper.get_headers(),
|
|
281
290
|
timeout=60,
|
|
282
291
|
)
|
|
@@ -835,7 +844,12 @@ class AsyncReportsClient:
|
|
|
835
844
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
836
845
|
|
|
837
846
|
async def delete_report(
|
|
838
|
-
self,
|
|
847
|
+
self,
|
|
848
|
+
report_id: str,
|
|
849
|
+
*,
|
|
850
|
+
cascade_delete: typing.Optional[bool] = None,
|
|
851
|
+
project_id: typing.Optional[str] = None,
|
|
852
|
+
organization_id: typing.Optional[str] = None,
|
|
839
853
|
) -> typing.Any:
|
|
840
854
|
"""
|
|
841
855
|
Delete a report.
|
|
@@ -843,6 +857,8 @@ class AsyncReportsClient:
|
|
|
843
857
|
Parameters:
|
|
844
858
|
- report_id: str.
|
|
845
859
|
|
|
860
|
+
- cascade_delete: typing.Optional[bool]. Whether to delete associated retriever and pipeline data
|
|
861
|
+
|
|
846
862
|
- project_id: typing.Optional[str].
|
|
847
863
|
|
|
848
864
|
- organization_id: typing.Optional[str].
|
|
@@ -859,7 +875,9 @@ class AsyncReportsClient:
|
|
|
859
875
|
_response = await self._client_wrapper.httpx_client.request(
|
|
860
876
|
"DELETE",
|
|
861
877
|
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"api/v1/reports/{report_id}"),
|
|
862
|
-
params=remove_none_from_dict(
|
|
878
|
+
params=remove_none_from_dict(
|
|
879
|
+
{"cascade_delete": cascade_delete, "project_id": project_id, "organization_id": organization_id}
|
|
880
|
+
),
|
|
863
881
|
headers=self._client_wrapper.get_headers(),
|
|
864
882
|
timeout=60,
|
|
865
883
|
)
|
|
@@ -29,6 +29,7 @@ from .character_splitter import CharacterSplitter
|
|
|
29
29
|
from .chat_app import ChatApp
|
|
30
30
|
from .chat_app_response import ChatAppResponse
|
|
31
31
|
from .chat_data import ChatData
|
|
32
|
+
from .chunk_mode import ChunkMode
|
|
32
33
|
from .cloud_az_storage_blob_data_source import CloudAzStorageBlobDataSource
|
|
33
34
|
from .cloud_azure_ai_search_vector_store import CloudAzureAiSearchVectorStore
|
|
34
35
|
from .cloud_box_data_source import CloudBoxDataSource
|
|
@@ -254,6 +255,7 @@ from .progress_event import ProgressEvent
|
|
|
254
255
|
from .progress_event_status import ProgressEventStatus
|
|
255
256
|
from .project import Project
|
|
256
257
|
from .project_create import ProjectCreate
|
|
258
|
+
from .prompt_conf import PromptConf
|
|
257
259
|
from .prompt_mixin_prompts import PromptMixinPrompts
|
|
258
260
|
from .prompt_spec import PromptSpec
|
|
259
261
|
from .pydantic_program_mode import PydanticProgramMode
|
|
@@ -271,7 +273,6 @@ from .report_event_item_event_data import (
|
|
|
271
273
|
ReportEventItemEventData_ReportStateUpdate,
|
|
272
274
|
)
|
|
273
275
|
from .report_event_type import ReportEventType
|
|
274
|
-
from .report_file_info import ReportFileInfo
|
|
275
276
|
from .report_metadata import ReportMetadata
|
|
276
277
|
from .report_plan import ReportPlan
|
|
277
278
|
from .report_plan_block import ReportPlanBlock
|
|
@@ -286,10 +287,13 @@ from .retriever import Retriever
|
|
|
286
287
|
from .retriever_create import RetrieverCreate
|
|
287
288
|
from .retriever_pipeline import RetrieverPipeline
|
|
288
289
|
from .role import Role
|
|
290
|
+
from .schema_relax_mode import SchemaRelaxMode
|
|
289
291
|
from .semantic_chunking_config import SemanticChunkingConfig
|
|
290
292
|
from .sentence_chunking_config import SentenceChunkingConfig
|
|
291
293
|
from .sentence_splitter import SentenceSplitter
|
|
292
294
|
from .status_enum import StatusEnum
|
|
295
|
+
from .struct_mode import StructMode
|
|
296
|
+
from .struct_parse_conf import StructParseConf
|
|
293
297
|
from .supported_llm_model import SupportedLlmModel
|
|
294
298
|
from .supported_llm_model_names import SupportedLlmModelNames
|
|
295
299
|
from .text_block import TextBlock
|
|
@@ -338,6 +342,7 @@ __all__ = [
|
|
|
338
342
|
"ChatApp",
|
|
339
343
|
"ChatAppResponse",
|
|
340
344
|
"ChatData",
|
|
345
|
+
"ChunkMode",
|
|
341
346
|
"CloudAzStorageBlobDataSource",
|
|
342
347
|
"CloudAzureAiSearchVectorStore",
|
|
343
348
|
"CloudBoxDataSource",
|
|
@@ -551,6 +556,7 @@ __all__ = [
|
|
|
551
556
|
"ProgressEventStatus",
|
|
552
557
|
"Project",
|
|
553
558
|
"ProjectCreate",
|
|
559
|
+
"PromptConf",
|
|
554
560
|
"PromptMixinPrompts",
|
|
555
561
|
"PromptSpec",
|
|
556
562
|
"PydanticProgramMode",
|
|
@@ -566,7 +572,6 @@ __all__ = [
|
|
|
566
572
|
"ReportEventItemEventData_ReportBlockUpdate",
|
|
567
573
|
"ReportEventItemEventData_ReportStateUpdate",
|
|
568
574
|
"ReportEventType",
|
|
569
|
-
"ReportFileInfo",
|
|
570
575
|
"ReportMetadata",
|
|
571
576
|
"ReportPlan",
|
|
572
577
|
"ReportPlanBlock",
|
|
@@ -581,10 +586,13 @@ __all__ = [
|
|
|
581
586
|
"RetrieverCreate",
|
|
582
587
|
"RetrieverPipeline",
|
|
583
588
|
"Role",
|
|
589
|
+
"SchemaRelaxMode",
|
|
584
590
|
"SemanticChunkingConfig",
|
|
585
591
|
"SentenceChunkingConfig",
|
|
586
592
|
"SentenceSplitter",
|
|
587
593
|
"StatusEnum",
|
|
594
|
+
"StructMode",
|
|
595
|
+
"StructParseConf",
|
|
588
596
|
"SupportedLlmModel",
|
|
589
597
|
"SupportedLlmModelNames",
|
|
590
598
|
"TextBlock",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChunkMode(str, enum.Enum):
|
|
10
|
+
PAGE = "PAGE"
|
|
11
|
+
DOCUMENT = "DOCUMENT"
|
|
12
|
+
SECTION = "SECTION"
|
|
13
|
+
|
|
14
|
+
def visit(
|
|
15
|
+
self,
|
|
16
|
+
page: typing.Callable[[], T_Result],
|
|
17
|
+
document: typing.Callable[[], T_Result],
|
|
18
|
+
section: typing.Callable[[], T_Result],
|
|
19
|
+
) -> T_Result:
|
|
20
|
+
if self is ChunkMode.PAGE:
|
|
21
|
+
return page()
|
|
22
|
+
if self is ChunkMode.DOCUMENT:
|
|
23
|
+
return document()
|
|
24
|
+
if self is ChunkMode.SECTION:
|
|
25
|
+
return section()
|
|
@@ -4,7 +4,9 @@ import datetime as dt
|
|
|
4
4
|
import typing
|
|
5
5
|
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
|
7
|
+
from .chunk_mode import ChunkMode
|
|
7
8
|
from .llama_parse_parameters import LlamaParseParameters
|
|
9
|
+
from .struct_parse_conf import StructParseConf
|
|
8
10
|
|
|
9
11
|
try:
|
|
10
12
|
import pydantic
|
|
@@ -21,8 +23,6 @@ class LlamaExtractSettings(pydantic.BaseModel):
|
|
|
21
23
|
are exposed to the user.
|
|
22
24
|
"""
|
|
23
25
|
|
|
24
|
-
model: typing.Optional[str] = pydantic.Field(description="The model to use for the extraction.")
|
|
25
|
-
temperature: typing.Optional[float] = pydantic.Field(description="The temperature to use for the extraction.")
|
|
26
26
|
max_file_size: typing.Optional[int] = pydantic.Field(
|
|
27
27
|
description="The maximum file size (in bytes) allowed for the document."
|
|
28
28
|
)
|
|
@@ -32,8 +32,13 @@ class LlamaExtractSettings(pydantic.BaseModel):
|
|
|
32
32
|
max_pages: typing.Optional[int] = pydantic.Field(
|
|
33
33
|
description="The maximum number of pages allowed for the document."
|
|
34
34
|
)
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
chunk_mode: typing.Optional[ChunkMode] = pydantic.Field(description="The mode to use for chunking the document.")
|
|
36
|
+
max_chunk_size: typing.Optional[int] = pydantic.Field(
|
|
37
|
+
description="The maximum size of the chunks (in tokens) to use for chunking the document."
|
|
38
|
+
)
|
|
39
|
+
extraction_agent_config: typing.Optional[typing.Dict[str, StructParseConf]] = pydantic.Field(
|
|
40
|
+
description="The configuration for the extraction agent."
|
|
41
|
+
)
|
|
37
42
|
llama_parse_params: typing.Optional[LlamaParseParameters] = pydantic.Field(
|
|
38
43
|
description="LlamaParse related settings."
|
|
39
44
|
)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
import pydantic
|
|
10
|
+
if pydantic.__version__.startswith("1."):
|
|
11
|
+
raise ImportError
|
|
12
|
+
import pydantic.v1 as pydantic # type: ignore
|
|
13
|
+
except ImportError:
|
|
14
|
+
import pydantic # type: ignore
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class PromptConf(pydantic.BaseModel):
|
|
18
|
+
system_prompt: typing.Optional[str] = pydantic.Field(description="The system prompt to use for the extraction.")
|
|
19
|
+
extraction_prompt: typing.Optional[str] = pydantic.Field(description="The prompt to use for the extraction.")
|
|
20
|
+
error_handling_prompt: typing.Optional[str] = pydantic.Field(description="The prompt to use for error handling.")
|
|
21
|
+
|
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
24
|
+
return super().json(**kwargs_with_defaults)
|
|
25
|
+
|
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
|
29
|
+
|
|
30
|
+
class Config:
|
|
31
|
+
frozen = True
|
|
32
|
+
smart_union = True
|
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
|
@@ -4,7 +4,6 @@ import datetime as dt
|
|
|
4
4
|
import typing
|
|
5
5
|
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
|
7
|
-
from .report_file_info import ReportFileInfo
|
|
8
7
|
from .report_state import ReportState
|
|
9
8
|
|
|
10
9
|
try:
|
|
@@ -26,7 +25,7 @@ class ReportMetadata(pydantic.BaseModel):
|
|
|
26
25
|
report_metadata: typing.Dict[str, typing.Any] = pydantic.Field(description="The metadata for the report")
|
|
27
26
|
state: ReportState = pydantic.Field(description="The state of the report")
|
|
28
27
|
input_files: typing.Optional[typing.List[str]]
|
|
29
|
-
template_file: typing.Optional[
|
|
28
|
+
template_file: typing.Optional[str]
|
|
30
29
|
template_text: typing.Optional[str]
|
|
31
30
|
template_instructions: typing.Optional[str]
|
|
32
31
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SchemaRelaxMode(str, enum.Enum):
|
|
10
|
+
FULL = "FULL"
|
|
11
|
+
TOP_LEVEL = "TOP_LEVEL"
|
|
12
|
+
LEAF = "LEAF"
|
|
13
|
+
|
|
14
|
+
def visit(
|
|
15
|
+
self,
|
|
16
|
+
full: typing.Callable[[], T_Result],
|
|
17
|
+
top_level: typing.Callable[[], T_Result],
|
|
18
|
+
leaf: typing.Callable[[], T_Result],
|
|
19
|
+
) -> T_Result:
|
|
20
|
+
if self is SchemaRelaxMode.FULL:
|
|
21
|
+
return full()
|
|
22
|
+
if self is SchemaRelaxMode.TOP_LEVEL:
|
|
23
|
+
return top_level()
|
|
24
|
+
if self is SchemaRelaxMode.LEAF:
|
|
25
|
+
return leaf()
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class StructMode(str, enum.Enum):
|
|
10
|
+
STRUCT_PARSE = "STRUCT_PARSE"
|
|
11
|
+
JSON_MODE = "JSON_MODE"
|
|
12
|
+
FUNC_CALL = "FUNC_CALL"
|
|
13
|
+
UNSTRUCTURED = "UNSTRUCTURED"
|
|
14
|
+
|
|
15
|
+
def visit(
|
|
16
|
+
self,
|
|
17
|
+
struct_parse: typing.Callable[[], T_Result],
|
|
18
|
+
json_mode: typing.Callable[[], T_Result],
|
|
19
|
+
func_call: typing.Callable[[], T_Result],
|
|
20
|
+
unstructured: typing.Callable[[], T_Result],
|
|
21
|
+
) -> T_Result:
|
|
22
|
+
if self is StructMode.STRUCT_PARSE:
|
|
23
|
+
return struct_parse()
|
|
24
|
+
if self is StructMode.JSON_MODE:
|
|
25
|
+
return json_mode()
|
|
26
|
+
if self is StructMode.FUNC_CALL:
|
|
27
|
+
return func_call()
|
|
28
|
+
if self is StructMode.UNSTRUCTURED:
|
|
29
|
+
return unstructured()
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
|
7
|
+
from .prompt_conf import PromptConf
|
|
8
|
+
from .schema_relax_mode import SchemaRelaxMode
|
|
9
|
+
from .struct_mode import StructMode
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
import pydantic
|
|
13
|
+
if pydantic.__version__.startswith("1."):
|
|
14
|
+
raise ImportError
|
|
15
|
+
import pydantic.v1 as pydantic # type: ignore
|
|
16
|
+
except ImportError:
|
|
17
|
+
import pydantic # type: ignore
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class StructParseConf(pydantic.BaseModel):
|
|
21
|
+
"""
|
|
22
|
+
Configuration for the structured parsing agent.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
model: typing.Optional[str] = pydantic.Field(description="The model to use for the structured parsing.")
|
|
26
|
+
temperature: typing.Optional[float] = pydantic.Field(
|
|
27
|
+
description="The temperature to use for the structured parsing."
|
|
28
|
+
)
|
|
29
|
+
relaxation_mode: typing.Optional[SchemaRelaxMode] = pydantic.Field(
|
|
30
|
+
description="The relaxation mode to use for the structured parsing."
|
|
31
|
+
)
|
|
32
|
+
struct_mode: typing.Optional[StructMode] = pydantic.Field(
|
|
33
|
+
description="The struct mode to use for the structured parsing."
|
|
34
|
+
)
|
|
35
|
+
prompt_conf: typing.Optional[PromptConf] = pydantic.Field(
|
|
36
|
+
description="The prompt configuration for the structured parsing."
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
def json(self, **kwargs: typing.Any) -> str:
|
|
40
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
41
|
+
return super().json(**kwargs_with_defaults)
|
|
42
|
+
|
|
43
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
44
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
45
|
+
return super().dict(**kwargs_with_defaults)
|
|
46
|
+
|
|
47
|
+
class Config:
|
|
48
|
+
frozen = True
|
|
49
|
+
smart_union = True
|
|
50
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
|
@@ -16,7 +16,6 @@ class SupportedLlmModelNames(str, enum.Enum):
|
|
|
16
16
|
AZURE_OPENAI_GPT_4_O = "AZURE_OPENAI_GPT_4O"
|
|
17
17
|
AZURE_OPENAI_GPT_4_O_MINI = "AZURE_OPENAI_GPT_4O_MINI"
|
|
18
18
|
AZURE_OPENAI_GPT_4 = "AZURE_OPENAI_GPT_4"
|
|
19
|
-
AZURE_OPENAI_TEXT_EMBEDDING_3_LARGE = "AZURE_OPENAI_TEXT_EMBEDDING_3_LARGE"
|
|
20
19
|
CLAUDE_3_5_SONNET = "CLAUDE_3_5_SONNET"
|
|
21
20
|
BEDROCK_CLAUDE_3_5_SONNET = "BEDROCK_CLAUDE_3_5_SONNET"
|
|
22
21
|
VERTEX_AI_CLAUDE_3_5_SONNET = "VERTEX_AI_CLAUDE_3_5_SONNET"
|
|
@@ -32,7 +31,6 @@ class SupportedLlmModelNames(str, enum.Enum):
|
|
|
32
31
|
azure_openai_gpt_4_o: typing.Callable[[], T_Result],
|
|
33
32
|
azure_openai_gpt_4_o_mini: typing.Callable[[], T_Result],
|
|
34
33
|
azure_openai_gpt_4: typing.Callable[[], T_Result],
|
|
35
|
-
azure_openai_text_embedding_3_large: typing.Callable[[], T_Result],
|
|
36
34
|
claude_3_5_sonnet: typing.Callable[[], T_Result],
|
|
37
35
|
bedrock_claude_3_5_sonnet: typing.Callable[[], T_Result],
|
|
38
36
|
vertex_ai_claude_3_5_sonnet: typing.Callable[[], T_Result],
|
|
@@ -55,8 +53,6 @@ class SupportedLlmModelNames(str, enum.Enum):
|
|
|
55
53
|
return azure_openai_gpt_4_o_mini()
|
|
56
54
|
if self is SupportedLlmModelNames.AZURE_OPENAI_GPT_4:
|
|
57
55
|
return azure_openai_gpt_4()
|
|
58
|
-
if self is SupportedLlmModelNames.AZURE_OPENAI_TEXT_EMBEDDING_3_LARGE:
|
|
59
|
-
return azure_openai_text_embedding_3_large()
|
|
60
56
|
if self is SupportedLlmModelNames.CLAUDE_3_5_SONNET:
|
|
61
57
|
return claude_3_5_sonnet()
|
|
62
58
|
if self is SupportedLlmModelNames.BEDROCK_CLAUDE_3_5_SONNET:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "llama-cloud"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.12"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["Logan Markewich <logan@runllama.ai>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -11,7 +11,7 @@ license = "MIT"
|
|
|
11
11
|
python = ">=3.8,<4"
|
|
12
12
|
pydantic = ">=1.10"
|
|
13
13
|
httpx = ">=0.20.0"
|
|
14
|
-
certifi = "
|
|
14
|
+
certifi = ">=2024.7.4"
|
|
15
15
|
|
|
16
16
|
[build-system]
|
|
17
17
|
requires = ["poetry-core"]
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import datetime as dt
|
|
4
|
-
import typing
|
|
5
|
-
|
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
|
7
|
-
|
|
8
|
-
try:
|
|
9
|
-
import pydantic
|
|
10
|
-
if pydantic.__version__.startswith("1."):
|
|
11
|
-
raise ImportError
|
|
12
|
-
import pydantic.v1 as pydantic # type: ignore
|
|
13
|
-
except ImportError:
|
|
14
|
-
import pydantic # type: ignore
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class ReportFileInfo(pydantic.BaseModel):
|
|
18
|
-
"""
|
|
19
|
-
Information about a file stored in S3
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
original_name: str = pydantic.Field(description="Original filename uploaded by user")
|
|
23
|
-
s_3_path: str = pydantic.Field(alias="s3_path", description="Path to file in S3")
|
|
24
|
-
|
|
25
|
-
def json(self, **kwargs: typing.Any) -> str:
|
|
26
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
27
|
-
return super().json(**kwargs_with_defaults)
|
|
28
|
-
|
|
29
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
|
30
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
|
31
|
-
return super().dict(**kwargs_with_defaults)
|
|
32
|
-
|
|
33
|
-
class Config:
|
|
34
|
-
frozen = True
|
|
35
|
-
smart_union = True
|
|
36
|
-
allow_population_by_field_name = True
|
|
37
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|