llama-cloud 0.0.2__tar.gz → 0.0.4__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.
Files changed (174) hide show
  1. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/PKG-INFO +1 -1
  2. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/__init__.py +2 -0
  3. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/client.py +16 -4
  4. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/core/jsonable_encoder.py +3 -0
  5. llama_cloud-0.0.4/llama_cloud/environment.py +7 -0
  6. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/api_keys/client.py +11 -16
  7. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/billing/client.py +9 -12
  8. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/component_definitions/client.py +9 -12
  9. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sinks/client.py +21 -30
  10. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sources/client.py +21 -30
  11. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/deprecated/client.py +27 -48
  12. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/evals/client.py +27 -44
  13. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/files/client.py +15 -24
  14. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/parsing/client.py +27 -48
  15. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/pipelines/client.py +73 -128
  16. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/projects/client.py +43 -72
  17. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/api_key.py +3 -0
  18. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/azure_open_ai_embedding.py +3 -0
  19. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/base.py +3 -0
  20. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/base_prompt_template.py +3 -0
  21. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/bedrock_embedding.py +3 -0
  22. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/chat_message.py +3 -0
  23. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_az_storage_blob_data_source.py +3 -0
  24. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_chroma_vector_store.py +3 -0
  25. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_document.py +3 -0
  26. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_document_create.py +3 -0
  27. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_gcs_data_source.py +3 -0
  28. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_google_drive_data_source.py +3 -0
  29. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_one_drive_data_source.py +3 -0
  30. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_pinecone_vector_store.py +3 -0
  31. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_postgres_vector_store.py +3 -0
  32. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_qdrant_vector_store.py +3 -0
  33. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_s_3_data_source.py +3 -0
  34. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_sharepoint_data_source.py +3 -0
  35. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cloud_weaviate_vector_store.py +3 -0
  36. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/code_splitter.py +3 -0
  37. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/cohere_embedding.py +3 -0
  38. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configurable_transformation_definition.py +3 -0
  39. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configured_transformation_item.py +3 -0
  40. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink.py +3 -0
  41. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink_create.py +3 -0
  42. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink_definition.py +3 -0
  43. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source.py +3 -0
  44. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_create.py +3 -0
  45. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_definition.py +3 -0
  46. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_dataset.py +3 -0
  47. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_dataset_job_params.py +3 -0
  48. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_dataset_job_record.py +3 -0
  49. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_execution_params.py +3 -0
  50. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_execution_params_override.py +3 -0
  51. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_llm_model_data.py +3 -0
  52. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_question.py +3 -0
  53. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_question_create.py +3 -0
  54. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/eval_question_result.py +3 -0
  55. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/file.py +3 -0
  56. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/gemini_embedding.py +3 -0
  57. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/html_node_parser.py +3 -0
  58. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/http_validation_error.py +3 -0
  59. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/hugging_face_inference_api_embedding.py +3 -0
  60. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/json_node_parser.py +3 -0
  61. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/llm.py +3 -0
  62. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/local_eval.py +3 -0
  63. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/local_eval_results.py +3 -0
  64. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/local_eval_sets.py +3 -0
  65. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/markdown_element_node_parser.py +3 -0
  66. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/markdown_node_parser.py +3 -0
  67. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/metadata_filter.py +3 -0
  68. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/metadata_filters.py +3 -0
  69. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/metric_result.py +3 -0
  70. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/node_parser.py +3 -0
  71. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/open_ai_embedding.py +3 -0
  72. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parsing_history_item.py +3 -0
  73. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parsing_job.py +3 -0
  74. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parsing_job_json_result.py +3 -0
  75. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parsing_job_markdown_result.py +3 -0
  76. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parsing_job_text_result.py +3 -0
  77. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parsing_usage.py +3 -0
  78. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline.py +3 -0
  79. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_create.py +3 -0
  80. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_data_source.py +3 -0
  81. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_data_source_create.py +3 -0
  82. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_deployment.py +3 -0
  83. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_file.py +3 -0
  84. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_file_create.py +3 -0
  85. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_file_status_response.py +3 -0
  86. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/preset_retrieval_params.py +3 -0
  87. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/presigned_url.py +3 -0
  88. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/project.py +3 -0
  89. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/project_create.py +3 -0
  90. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/prompt_mixin_prompts.py +3 -0
  91. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/prompt_spec.py +3 -0
  92. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/related_node_info.py +3 -0
  93. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/retrieve_results.py +3 -0
  94. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/sentence_splitter.py +3 -0
  95. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/simple_file_node_parser.py +3 -0
  96. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/supported_eval_llm_model.py +3 -0
  97. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/text_node.py +3 -0
  98. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/text_node_with_score.py +3 -0
  99. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/token_text_splitter.py +3 -0
  100. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/validation_error.py +3 -0
  101. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/pyproject.toml +1 -1
  102. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/LICENSE +0 -0
  103. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/README.md +0 -0
  104. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/core/__init__.py +0 -0
  105. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/core/api_error.py +0 -0
  106. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/core/client_wrapper.py +0 -0
  107. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/core/datetime_utils.py +0 -0
  108. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/core/remove_none_from_dict.py +0 -0
  109. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/errors/__init__.py +0 -0
  110. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/errors/unprocessable_entity_error.py +0 -0
  111. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/__init__.py +0 -0
  112. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/api_keys/__init__.py +0 -0
  113. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/billing/__init__.py +0 -0
  114. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/component_definitions/__init__.py +0 -0
  115. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sinks/__init__.py +0 -0
  116. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sinks/types/__init__.py +0 -0
  117. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sinks/types/data_sink_update_component.py +0 -0
  118. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sinks/types/data_sink_update_component_one.py +0 -0
  119. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sources/__init__.py +0 -0
  120. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sources/types/__init__.py +0 -0
  121. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sources/types/data_source_update_component.py +0 -0
  122. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sources/types/data_source_update_component_one.py +0 -0
  123. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/data_sources/types/data_source_update_custom_metadata_value.py +0 -0
  124. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/deprecated/__init__.py +0 -0
  125. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/evals/__init__.py +0 -0
  126. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/files/__init__.py +0 -0
  127. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/files/types/__init__.py +0 -0
  128. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/files/types/file_create_resource_info_value.py +0 -0
  129. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/parsing/__init__.py +0 -0
  130. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/pipelines/__init__.py +0 -0
  131. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/pipelines/types/__init__.py +0 -0
  132. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/pipelines/types/pipeline_file_update_custom_metadata_value.py +0 -0
  133. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/resources/projects/__init__.py +0 -0
  134. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/__init__.py +0 -0
  135. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configurable_data_sink_names.py +0 -0
  136. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configurable_data_source_names.py +0 -0
  137. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configurable_transformation_names.py +0 -0
  138. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configured_transformation_item_component.py +0 -0
  139. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/configured_transformation_item_component_one.py +0 -0
  140. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink_component.py +0 -0
  141. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink_component_one.py +0 -0
  142. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink_create_component.py +0 -0
  143. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_sink_create_component_one.py +0 -0
  144. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_component.py +0 -0
  145. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_component_one.py +0 -0
  146. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_create_component.py +0 -0
  147. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_create_component_one.py +0 -0
  148. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_create_custom_metadata_value.py +0 -0
  149. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/data_source_custom_metadata_value.py +0 -0
  150. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/file_resource_info_value.py +0 -0
  151. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/filter_condition.py +0 -0
  152. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/filter_operator.py +0 -0
  153. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/hugging_face_inference_api_embedding_token.py +0 -0
  154. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/llama_parse_supported_file_extensions.py +0 -0
  155. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/managed_ingestion_status.py +0 -0
  156. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/message_role.py +0 -0
  157. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/metadata_filter_value.py +0 -0
  158. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/metadata_filters_filters_item.py +0 -0
  159. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/object_type.py +0 -0
  160. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/parser_languages.py +0 -0
  161. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_data_source_component.py +0 -0
  162. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_data_source_component_one.py +0 -0
  163. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_data_source_custom_metadata_value.py +0 -0
  164. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_file_create_custom_metadata_value.py +0 -0
  165. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_file_custom_metadata_value.py +0 -0
  166. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_file_resource_info_value.py +0 -0
  167. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pipeline_type.py +0 -0
  168. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pooling.py +0 -0
  169. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/pydantic_program_mode.py +0 -0
  170. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/status_enum.py +0 -0
  171. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/supported_eval_llm_model_names.py +0 -0
  172. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/text_node_relationships_value.py +0 -0
  173. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/transformation_category_names.py +0 -0
  174. {llama_cloud-0.0.2 → llama_cloud-0.0.4}/llama_cloud/types/validation_error_loc_item.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llama-cloud
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary:
5
5
  Author: Logan Markewich
6
6
  Author-email: logan@runllama.ai
@@ -147,6 +147,7 @@ from .resources import (
147
147
  pipelines,
148
148
  projects,
149
149
  )
150
+ from .environment import LlamaCloudEnvironment
150
151
 
151
152
  __all__ = [
152
153
  "ApiKey",
@@ -218,6 +219,7 @@ __all__ = [
218
219
  "HuggingFaceInferenceApiEmbedding",
219
220
  "HuggingFaceInferenceApiEmbeddingToken",
220
221
  "JsonNodeParser",
222
+ "LlamaCloudEnvironment",
221
223
  "LlamaParseSupportedFileExtensions",
222
224
  "Llm",
223
225
  "LocalEval",
@@ -5,6 +5,7 @@ import typing
5
5
  import httpx
6
6
 
7
7
  from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
8
+ from .environment import LlamaCloudEnvironment
8
9
  from .resources.api_keys.client import ApiKeysClient, AsyncApiKeysClient
9
10
  from .resources.billing.client import AsyncBillingClient, BillingClient
10
11
  from .resources.component_definitions.client import AsyncComponentDefinitionsClient, ComponentDefinitionsClient
@@ -22,13 +23,14 @@ class LlamaCloud:
22
23
  def __init__(
23
24
  self,
24
25
  *,
25
- base_url: str,
26
+ base_url: typing.Optional[str] = None,
27
+ environment: LlamaCloudEnvironment = LlamaCloudEnvironment.DEFAULT,
26
28
  token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
27
29
  timeout: typing.Optional[float] = 60,
28
30
  httpx_client: typing.Optional[httpx.Client] = None
29
31
  ):
30
32
  self._client_wrapper = SyncClientWrapper(
31
- base_url=base_url,
33
+ base_url=_get_base_url(base_url=base_url, environment=environment),
32
34
  token=token,
33
35
  httpx_client=httpx.Client(timeout=timeout) if httpx_client is None else httpx_client,
34
36
  )
@@ -49,13 +51,14 @@ class AsyncLlamaCloud:
49
51
  def __init__(
50
52
  self,
51
53
  *,
52
- base_url: str,
54
+ base_url: typing.Optional[str] = None,
55
+ environment: LlamaCloudEnvironment = LlamaCloudEnvironment.DEFAULT,
53
56
  token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None,
54
57
  timeout: typing.Optional[float] = 60,
55
58
  httpx_client: typing.Optional[httpx.AsyncClient] = None
56
59
  ):
57
60
  self._client_wrapper = AsyncClientWrapper(
58
- base_url=base_url,
61
+ base_url=_get_base_url(base_url=base_url, environment=environment),
59
62
  token=token,
60
63
  httpx_client=httpx.AsyncClient(timeout=timeout) if httpx_client is None else httpx_client,
61
64
  )
@@ -70,3 +73,12 @@ class AsyncLlamaCloud:
70
73
  self.component_definitions = AsyncComponentDefinitionsClient(client_wrapper=self._client_wrapper)
71
74
  self.billing = AsyncBillingClient(client_wrapper=self._client_wrapper)
72
75
  self.deprecated = AsyncDeprecatedClient(client_wrapper=self._client_wrapper)
76
+
77
+
78
+ def _get_base_url(*, base_url: typing.Optional[str] = None, environment: LlamaCloudEnvironment) -> str:
79
+ if base_url is not None:
80
+ return base_url
81
+ elif environment is not None:
82
+ return environment.value
83
+ else:
84
+ raise Exception("Please pass in either base_url or environment to construct the client")
@@ -17,6 +17,9 @@ from types import GeneratorType
17
17
  from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
18
18
 
19
19
  try:
20
+ import pydantic
21
+ if pydantic.__version__.startswith("1."):
22
+ raise ImportError
20
23
  import pydantic.v1 as pydantic # type: ignore
21
24
  except ImportError:
22
25
  import pydantic # type: ignore
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import enum
4
+
5
+
6
+ class LlamaCloudEnvironment(enum.Enum):
7
+ DEFAULT = "https://api.cloud.llamaindex.ai/"
@@ -12,6 +12,9 @@ from ...types.api_key import ApiKey
12
12
  from ...types.http_validation_error import HttpValidationError
13
13
 
14
14
  try:
15
+ import pydantic
16
+ if pydantic.__version__.startswith("1."):
17
+ raise ImportError
15
18
  import pydantic.v1 as pydantic # type: ignore
16
19
  except ImportError:
17
20
  import pydantic # type: ignore
@@ -29,11 +32,10 @@ class ApiKeysClient:
29
32
  Get all API Keys for a user.
30
33
 
31
34
  ---
32
- from platform.client import LlamaCloud
35
+ from llama_cloud.client import LlamaCloud
33
36
 
34
37
  client = LlamaCloud(
35
38
  token="YOUR_TOKEN",
36
- base_url="https://yourhost.com/path/to/api",
37
39
  )
38
40
  client.api_keys.get_keys()
39
41
  """
@@ -60,11 +62,10 @@ class ApiKeysClient:
60
62
  Parameters:
61
63
  - name: typing.Optional[str].
62
64
  ---
63
- from platform.client import LlamaCloud
65
+ from llama_cloud.client import LlamaCloud
64
66
 
65
67
  client = LlamaCloud(
66
68
  token="YOUR_TOKEN",
67
- base_url="https://yourhost.com/path/to/api",
68
69
  )
69
70
  client.api_keys.generate_key()
70
71
  """
@@ -97,11 +98,10 @@ class ApiKeysClient:
97
98
 
98
99
  - name: typing.Optional[str].
99
100
  ---
100
- from platform.client import LlamaCloud
101
+ from llama_cloud.client import LlamaCloud
101
102
 
102
103
  client = LlamaCloud(
103
104
  token="YOUR_TOKEN",
104
- base_url="https://yourhost.com/path/to/api",
105
105
  )
106
106
  client.api_keys.update_existing_api_key(
107
107
  api_key_id="string",
@@ -134,11 +134,10 @@ class ApiKeysClient:
134
134
  Parameters:
135
135
  - api_key_id: str.
136
136
  ---
137
- from platform.client import LlamaCloud
137
+ from llama_cloud.client import LlamaCloud
138
138
 
139
139
  client = LlamaCloud(
140
140
  token="YOUR_TOKEN",
141
- base_url="https://yourhost.com/path/to/api",
142
141
  )
143
142
  client.api_keys.delete_api_key(
144
143
  api_key_id="string",
@@ -170,11 +169,10 @@ class AsyncApiKeysClient:
170
169
  Get all API Keys for a user.
171
170
 
172
171
  ---
173
- from platform.client import AsyncLlamaCloud
172
+ from llama_cloud.client import AsyncLlamaCloud
174
173
 
175
174
  client = AsyncLlamaCloud(
176
175
  token="YOUR_TOKEN",
177
- base_url="https://yourhost.com/path/to/api",
178
176
  )
179
177
  await client.api_keys.get_keys()
180
178
  """
@@ -201,11 +199,10 @@ class AsyncApiKeysClient:
201
199
  Parameters:
202
200
  - name: typing.Optional[str].
203
201
  ---
204
- from platform.client import AsyncLlamaCloud
202
+ from llama_cloud.client import AsyncLlamaCloud
205
203
 
206
204
  client = AsyncLlamaCloud(
207
205
  token="YOUR_TOKEN",
208
- base_url="https://yourhost.com/path/to/api",
209
206
  )
210
207
  await client.api_keys.generate_key()
211
208
  """
@@ -238,11 +235,10 @@ class AsyncApiKeysClient:
238
235
 
239
236
  - name: typing.Optional[str].
240
237
  ---
241
- from platform.client import AsyncLlamaCloud
238
+ from llama_cloud.client import AsyncLlamaCloud
242
239
 
243
240
  client = AsyncLlamaCloud(
244
241
  token="YOUR_TOKEN",
245
- base_url="https://yourhost.com/path/to/api",
246
242
  )
247
243
  await client.api_keys.update_existing_api_key(
248
244
  api_key_id="string",
@@ -275,11 +271,10 @@ class AsyncApiKeysClient:
275
271
  Parameters:
276
272
  - api_key_id: str.
277
273
  ---
278
- from platform.client import AsyncLlamaCloud
274
+ from llama_cloud.client import AsyncLlamaCloud
279
275
 
280
276
  client = AsyncLlamaCloud(
281
277
  token="YOUR_TOKEN",
282
- base_url="https://yourhost.com/path/to/api",
283
278
  )
284
279
  await client.api_keys.delete_api_key(
285
280
  api_key_id="string",
@@ -12,6 +12,9 @@ from ...errors.unprocessable_entity_error import UnprocessableEntityError
12
12
  from ...types.http_validation_error import HttpValidationError
13
13
 
14
14
  try:
15
+ import pydantic
16
+ if pydantic.__version__.startswith("1."):
17
+ raise ImportError
15
18
  import pydantic.v1 as pydantic # type: ignore
16
19
  except ImportError:
17
20
  import pydantic # type: ignore
@@ -33,11 +36,10 @@ class BillingClient:
33
36
 
34
37
  - cancel_url: str.
35
38
  ---
36
- from platform.client import LlamaCloud
39
+ from llama_cloud.client import LlamaCloud
37
40
 
38
41
  client = LlamaCloud(
39
42
  token="YOUR_TOKEN",
40
- base_url="https://yourhost.com/path/to/api",
41
43
  )
42
44
  client.billing.create_checkout_session(
43
45
  success_url="string",
@@ -68,11 +70,10 @@ class BillingClient:
68
70
  Parameters:
69
71
  - return_url: str.
70
72
  ---
71
- from platform.client import LlamaCloud
73
+ from llama_cloud.client import LlamaCloud
72
74
 
73
75
  client = LlamaCloud(
74
76
  token="YOUR_TOKEN",
75
- base_url="https://yourhost.com/path/to/api",
76
77
  )
77
78
  client.billing.create_customer_portal_session(
78
79
  return_url="string",
@@ -102,11 +103,10 @@ class BillingClient:
102
103
  Parameters:
103
104
  - stripe_signature: typing.Optional[str].
104
105
  ---
105
- from platform.client import LlamaCloud
106
+ from llama_cloud.client import LlamaCloud
106
107
 
107
108
  client = LlamaCloud(
108
109
  token="YOUR_TOKEN",
109
- base_url="https://yourhost.com/path/to/api",
110
110
  )
111
111
  client.billing.stripe_webhook()
112
112
  """
@@ -140,11 +140,10 @@ class AsyncBillingClient:
140
140
 
141
141
  - cancel_url: str.
142
142
  ---
143
- from platform.client import AsyncLlamaCloud
143
+ from llama_cloud.client import AsyncLlamaCloud
144
144
 
145
145
  client = AsyncLlamaCloud(
146
146
  token="YOUR_TOKEN",
147
- base_url="https://yourhost.com/path/to/api",
148
147
  )
149
148
  await client.billing.create_checkout_session(
150
149
  success_url="string",
@@ -175,11 +174,10 @@ class AsyncBillingClient:
175
174
  Parameters:
176
175
  - return_url: str.
177
176
  ---
178
- from platform.client import AsyncLlamaCloud
177
+ from llama_cloud.client import AsyncLlamaCloud
179
178
 
180
179
  client = AsyncLlamaCloud(
181
180
  token="YOUR_TOKEN",
182
- base_url="https://yourhost.com/path/to/api",
183
181
  )
184
182
  await client.billing.create_customer_portal_session(
185
183
  return_url="string",
@@ -209,11 +207,10 @@ class AsyncBillingClient:
209
207
  Parameters:
210
208
  - stripe_signature: typing.Optional[str].
211
209
  ---
212
- from platform.client import AsyncLlamaCloud
210
+ from llama_cloud.client import AsyncLlamaCloud
213
211
 
214
212
  client = AsyncLlamaCloud(
215
213
  token="YOUR_TOKEN",
216
- base_url="https://yourhost.com/path/to/api",
217
214
  )
218
215
  await client.billing.stripe_webhook()
219
216
  """
@@ -11,6 +11,9 @@ from ...types.data_sink_definition import DataSinkDefinition
11
11
  from ...types.data_source_definition import DataSourceDefinition
12
12
 
13
13
  try:
14
+ import pydantic
15
+ if pydantic.__version__.startswith("1."):
16
+ raise ImportError
14
17
  import pydantic.v1 as pydantic # type: ignore
15
18
  except ImportError:
16
19
  import pydantic # type: ignore
@@ -25,11 +28,10 @@ class ComponentDefinitionsClient:
25
28
  Get all configurable transformation component definitions.
26
29
 
27
30
  ---
28
- from platform.client import LlamaCloud
31
+ from llama_cloud.client import LlamaCloud
29
32
 
30
33
  client = LlamaCloud(
31
34
  token="YOUR_TOKEN",
32
- base_url="https://yourhost.com/path/to/api",
33
35
  )
34
36
  client.component_definitions.get_all_transformation_definitions()
35
37
  """
@@ -54,11 +56,10 @@ class ComponentDefinitionsClient:
54
56
  Get all data source component definitions.
55
57
 
56
58
  ---
57
- from platform.client import LlamaCloud
59
+ from llama_cloud.client import LlamaCloud
58
60
 
59
61
  client = LlamaCloud(
60
62
  token="YOUR_TOKEN",
61
- base_url="https://yourhost.com/path/to/api",
62
63
  )
63
64
  client.component_definitions.get_all_data_source_definitions()
64
65
  """
@@ -81,11 +82,10 @@ class ComponentDefinitionsClient:
81
82
  Get all data sink component definitions.
82
83
 
83
84
  ---
84
- from platform.client import LlamaCloud
85
+ from llama_cloud.client import LlamaCloud
85
86
 
86
87
  client = LlamaCloud(
87
88
  token="YOUR_TOKEN",
88
- base_url="https://yourhost.com/path/to/api",
89
89
  )
90
90
  client.component_definitions.get_all_data_sink_definitions()
91
91
  """
@@ -113,11 +113,10 @@ class AsyncComponentDefinitionsClient:
113
113
  Get all configurable transformation component definitions.
114
114
 
115
115
  ---
116
- from platform.client import AsyncLlamaCloud
116
+ from llama_cloud.client import AsyncLlamaCloud
117
117
 
118
118
  client = AsyncLlamaCloud(
119
119
  token="YOUR_TOKEN",
120
- base_url="https://yourhost.com/path/to/api",
121
120
  )
122
121
  await client.component_definitions.get_all_transformation_definitions()
123
122
  """
@@ -142,11 +141,10 @@ class AsyncComponentDefinitionsClient:
142
141
  Get all data source component definitions.
143
142
 
144
143
  ---
145
- from platform.client import AsyncLlamaCloud
144
+ from llama_cloud.client import AsyncLlamaCloud
146
145
 
147
146
  client = AsyncLlamaCloud(
148
147
  token="YOUR_TOKEN",
149
- base_url="https://yourhost.com/path/to/api",
150
148
  )
151
149
  await client.component_definitions.get_all_data_source_definitions()
152
150
  """
@@ -169,11 +167,10 @@ class AsyncComponentDefinitionsClient:
169
167
  Get all data sink component definitions.
170
168
 
171
169
  ---
172
- from platform.client import AsyncLlamaCloud
170
+ from llama_cloud.client import AsyncLlamaCloud
173
171
 
174
172
  client = AsyncLlamaCloud(
175
173
  token="YOUR_TOKEN",
176
- base_url="https://yourhost.com/path/to/api",
177
174
  )
178
175
  await client.component_definitions.get_all_data_sink_definitions()
179
176
  """
@@ -16,6 +16,9 @@ from ...types.http_validation_error import HttpValidationError
16
16
  from .types.data_sink_update_component import DataSinkUpdateComponent
17
17
 
18
18
  try:
19
+ import pydantic
20
+ if pydantic.__version__.startswith("1."):
21
+ raise ImportError
19
22
  import pydantic.v1 as pydantic # type: ignore
20
23
  except ImportError:
21
24
  import pydantic # type: ignore
@@ -36,11 +39,10 @@ class DataSinksClient:
36
39
  Parameters:
37
40
  - project_id: typing.Optional[str].
38
41
  ---
39
- from platform.client import LlamaCloud
42
+ from llama_cloud.client import LlamaCloud
40
43
 
41
44
  client = LlamaCloud(
42
45
  token="YOUR_TOKEN",
43
- base_url="https://yourhost.com/path/to/api",
44
46
  )
45
47
  client.data_sinks.list_data_sinks()
46
48
  """
@@ -70,12 +72,11 @@ class DataSinksClient:
70
72
 
71
73
  - request: DataSinkCreate.
72
74
  ---
73
- from platform import ConfigurableDataSinkNames, DataSinkCreate
74
- from platform.client import LlamaCloud
75
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
76
+ from llama_cloud.client import LlamaCloud
75
77
 
76
78
  client = LlamaCloud(
77
79
  token="YOUR_TOKEN",
78
- base_url="https://yourhost.com/path/to/api",
79
80
  )
80
81
  client.data_sinks.create_data_sink(
81
82
  request=DataSinkCreate(
@@ -112,12 +113,11 @@ class DataSinksClient:
112
113
 
113
114
  - request: DataSinkCreate.
114
115
  ---
115
- from platform import ConfigurableDataSinkNames, DataSinkCreate
116
- from platform.client import LlamaCloud
116
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
117
+ from llama_cloud.client import LlamaCloud
117
118
 
118
119
  client = LlamaCloud(
119
120
  token="YOUR_TOKEN",
120
- base_url="https://yourhost.com/path/to/api",
121
121
  )
122
122
  client.data_sinks.upsert_data_sink(
123
123
  request=DataSinkCreate(
@@ -151,11 +151,10 @@ class DataSinksClient:
151
151
  Parameters:
152
152
  - data_sink_id: str.
153
153
  ---
154
- from platform.client import LlamaCloud
154
+ from llama_cloud.client import LlamaCloud
155
155
 
156
156
  client = LlamaCloud(
157
157
  token="YOUR_TOKEN",
158
- base_url="https://yourhost.com/path/to/api",
159
158
  )
160
159
  client.data_sinks.get_data_sink(
161
160
  data_sink_id="string",
@@ -197,12 +196,11 @@ class DataSinksClient:
197
196
 
198
197
  - component: typing.Optional[DataSinkUpdateComponent].
199
198
  ---
200
- from platform import ConfigurableDataSinkNames
201
- from platform.client import LlamaCloud
199
+ from llama_cloud import ConfigurableDataSinkNames
200
+ from llama_cloud.client import LlamaCloud
202
201
 
203
202
  client = LlamaCloud(
204
203
  token="YOUR_TOKEN",
205
- base_url="https://yourhost.com/path/to/api",
206
204
  )
207
205
  client.data_sinks.update_data_sink(
208
206
  data_sink_id="string",
@@ -238,11 +236,10 @@ class DataSinksClient:
238
236
  Parameters:
239
237
  - data_sink_id: str.
240
238
  ---
241
- from platform.client import LlamaCloud
239
+ from llama_cloud.client import LlamaCloud
242
240
 
243
241
  client = LlamaCloud(
244
242
  token="YOUR_TOKEN",
245
- base_url="https://yourhost.com/path/to/api",
246
243
  )
247
244
  client.data_sinks.delete_data_sink(
248
245
  data_sink_id="string",
@@ -277,11 +274,10 @@ class AsyncDataSinksClient:
277
274
  Parameters:
278
275
  - project_id: typing.Optional[str].
279
276
  ---
280
- from platform.client import AsyncLlamaCloud
277
+ from llama_cloud.client import AsyncLlamaCloud
281
278
 
282
279
  client = AsyncLlamaCloud(
283
280
  token="YOUR_TOKEN",
284
- base_url="https://yourhost.com/path/to/api",
285
281
  )
286
282
  await client.data_sinks.list_data_sinks()
287
283
  """
@@ -311,12 +307,11 @@ class AsyncDataSinksClient:
311
307
 
312
308
  - request: DataSinkCreate.
313
309
  ---
314
- from platform import ConfigurableDataSinkNames, DataSinkCreate
315
- from platform.client import AsyncLlamaCloud
310
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
311
+ from llama_cloud.client import AsyncLlamaCloud
316
312
 
317
313
  client = AsyncLlamaCloud(
318
314
  token="YOUR_TOKEN",
319
- base_url="https://yourhost.com/path/to/api",
320
315
  )
321
316
  await client.data_sinks.create_data_sink(
322
317
  request=DataSinkCreate(
@@ -353,12 +348,11 @@ class AsyncDataSinksClient:
353
348
 
354
349
  - request: DataSinkCreate.
355
350
  ---
356
- from platform import ConfigurableDataSinkNames, DataSinkCreate
357
- from platform.client import AsyncLlamaCloud
351
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
352
+ from llama_cloud.client import AsyncLlamaCloud
358
353
 
359
354
  client = AsyncLlamaCloud(
360
355
  token="YOUR_TOKEN",
361
- base_url="https://yourhost.com/path/to/api",
362
356
  )
363
357
  await client.data_sinks.upsert_data_sink(
364
358
  request=DataSinkCreate(
@@ -392,11 +386,10 @@ class AsyncDataSinksClient:
392
386
  Parameters:
393
387
  - data_sink_id: str.
394
388
  ---
395
- from platform.client import AsyncLlamaCloud
389
+ from llama_cloud.client import AsyncLlamaCloud
396
390
 
397
391
  client = AsyncLlamaCloud(
398
392
  token="YOUR_TOKEN",
399
- base_url="https://yourhost.com/path/to/api",
400
393
  )
401
394
  await client.data_sinks.get_data_sink(
402
395
  data_sink_id="string",
@@ -438,12 +431,11 @@ class AsyncDataSinksClient:
438
431
 
439
432
  - component: typing.Optional[DataSinkUpdateComponent].
440
433
  ---
441
- from platform import ConfigurableDataSinkNames
442
- from platform.client import AsyncLlamaCloud
434
+ from llama_cloud import ConfigurableDataSinkNames
435
+ from llama_cloud.client import AsyncLlamaCloud
443
436
 
444
437
  client = AsyncLlamaCloud(
445
438
  token="YOUR_TOKEN",
446
- base_url="https://yourhost.com/path/to/api",
447
439
  )
448
440
  await client.data_sinks.update_data_sink(
449
441
  data_sink_id="string",
@@ -479,11 +471,10 @@ class AsyncDataSinksClient:
479
471
  Parameters:
480
472
  - data_sink_id: str.
481
473
  ---
482
- from platform.client import AsyncLlamaCloud
474
+ from llama_cloud.client import AsyncLlamaCloud
483
475
 
484
476
  client = AsyncLlamaCloud(
485
477
  token="YOUR_TOKEN",
486
- base_url="https://yourhost.com/path/to/api",
487
478
  )
488
479
  await client.data_sinks.delete_data_sink(
489
480
  data_sink_id="string",