llama-cloud 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of llama-cloud might be problematic. Click here for more details.

Files changed (101) hide show
  1. llama_cloud/core/jsonable_encoder.py +3 -0
  2. llama_cloud/resources/api_keys/client.py +11 -8
  3. llama_cloud/resources/billing/client.py +9 -6
  4. llama_cloud/resources/component_definitions/client.py +9 -6
  5. llama_cloud/resources/data_sinks/client.py +21 -18
  6. llama_cloud/resources/data_sources/client.py +21 -18
  7. llama_cloud/resources/deprecated/client.py +27 -24
  8. llama_cloud/resources/evals/client.py +27 -24
  9. llama_cloud/resources/files/client.py +15 -12
  10. llama_cloud/resources/parsing/client.py +27 -24
  11. llama_cloud/resources/pipelines/client.py +73 -70
  12. llama_cloud/resources/projects/client.py +43 -40
  13. llama_cloud/types/api_key.py +3 -0
  14. llama_cloud/types/azure_open_ai_embedding.py +3 -0
  15. llama_cloud/types/base.py +3 -0
  16. llama_cloud/types/base_prompt_template.py +3 -0
  17. llama_cloud/types/bedrock_embedding.py +3 -0
  18. llama_cloud/types/chat_message.py +3 -0
  19. llama_cloud/types/cloud_az_storage_blob_data_source.py +3 -0
  20. llama_cloud/types/cloud_chroma_vector_store.py +3 -0
  21. llama_cloud/types/cloud_document.py +3 -0
  22. llama_cloud/types/cloud_document_create.py +3 -0
  23. llama_cloud/types/cloud_gcs_data_source.py +3 -0
  24. llama_cloud/types/cloud_google_drive_data_source.py +3 -0
  25. llama_cloud/types/cloud_one_drive_data_source.py +3 -0
  26. llama_cloud/types/cloud_pinecone_vector_store.py +3 -0
  27. llama_cloud/types/cloud_postgres_vector_store.py +3 -0
  28. llama_cloud/types/cloud_qdrant_vector_store.py +3 -0
  29. llama_cloud/types/cloud_s_3_data_source.py +3 -0
  30. llama_cloud/types/cloud_sharepoint_data_source.py +3 -0
  31. llama_cloud/types/cloud_weaviate_vector_store.py +3 -0
  32. llama_cloud/types/code_splitter.py +3 -0
  33. llama_cloud/types/cohere_embedding.py +3 -0
  34. llama_cloud/types/configurable_transformation_definition.py +3 -0
  35. llama_cloud/types/configured_transformation_item.py +3 -0
  36. llama_cloud/types/data_sink.py +3 -0
  37. llama_cloud/types/data_sink_create.py +3 -0
  38. llama_cloud/types/data_sink_definition.py +3 -0
  39. llama_cloud/types/data_source.py +3 -0
  40. llama_cloud/types/data_source_create.py +3 -0
  41. llama_cloud/types/data_source_definition.py +3 -0
  42. llama_cloud/types/eval_dataset.py +3 -0
  43. llama_cloud/types/eval_dataset_job_params.py +3 -0
  44. llama_cloud/types/eval_dataset_job_record.py +3 -0
  45. llama_cloud/types/eval_execution_params.py +3 -0
  46. llama_cloud/types/eval_execution_params_override.py +3 -0
  47. llama_cloud/types/eval_llm_model_data.py +3 -0
  48. llama_cloud/types/eval_question.py +3 -0
  49. llama_cloud/types/eval_question_create.py +3 -0
  50. llama_cloud/types/eval_question_result.py +3 -0
  51. llama_cloud/types/file.py +3 -0
  52. llama_cloud/types/gemini_embedding.py +3 -0
  53. llama_cloud/types/html_node_parser.py +3 -0
  54. llama_cloud/types/http_validation_error.py +3 -0
  55. llama_cloud/types/hugging_face_inference_api_embedding.py +3 -0
  56. llama_cloud/types/json_node_parser.py +3 -0
  57. llama_cloud/types/llm.py +3 -0
  58. llama_cloud/types/local_eval.py +3 -0
  59. llama_cloud/types/local_eval_results.py +3 -0
  60. llama_cloud/types/local_eval_sets.py +3 -0
  61. llama_cloud/types/markdown_element_node_parser.py +3 -0
  62. llama_cloud/types/markdown_node_parser.py +3 -0
  63. llama_cloud/types/metadata_filter.py +3 -0
  64. llama_cloud/types/metadata_filters.py +3 -0
  65. llama_cloud/types/metric_result.py +3 -0
  66. llama_cloud/types/node_parser.py +3 -0
  67. llama_cloud/types/open_ai_embedding.py +3 -0
  68. llama_cloud/types/parsing_history_item.py +3 -0
  69. llama_cloud/types/parsing_job.py +3 -0
  70. llama_cloud/types/parsing_job_json_result.py +3 -0
  71. llama_cloud/types/parsing_job_markdown_result.py +3 -0
  72. llama_cloud/types/parsing_job_text_result.py +3 -0
  73. llama_cloud/types/parsing_usage.py +3 -0
  74. llama_cloud/types/pipeline.py +3 -0
  75. llama_cloud/types/pipeline_create.py +3 -0
  76. llama_cloud/types/pipeline_data_source.py +3 -0
  77. llama_cloud/types/pipeline_data_source_create.py +3 -0
  78. llama_cloud/types/pipeline_deployment.py +3 -0
  79. llama_cloud/types/pipeline_file.py +3 -0
  80. llama_cloud/types/pipeline_file_create.py +3 -0
  81. llama_cloud/types/pipeline_file_status_response.py +3 -0
  82. llama_cloud/types/preset_retrieval_params.py +3 -0
  83. llama_cloud/types/presigned_url.py +3 -0
  84. llama_cloud/types/project.py +3 -0
  85. llama_cloud/types/project_create.py +3 -0
  86. llama_cloud/types/prompt_mixin_prompts.py +3 -0
  87. llama_cloud/types/prompt_spec.py +3 -0
  88. llama_cloud/types/related_node_info.py +3 -0
  89. llama_cloud/types/retrieve_results.py +3 -0
  90. llama_cloud/types/sentence_splitter.py +3 -0
  91. llama_cloud/types/simple_file_node_parser.py +3 -0
  92. llama_cloud/types/supported_eval_llm_model.py +3 -0
  93. llama_cloud/types/text_node.py +3 -0
  94. llama_cloud/types/text_node_with_score.py +3 -0
  95. llama_cloud/types/token_text_splitter.py +3 -0
  96. llama_cloud/types/validation_error.py +3 -0
  97. {llama_cloud-0.0.2.dist-info → llama_cloud-0.0.3.dist-info}/METADATA +1 -1
  98. llama_cloud-0.0.3.dist-info/RECORD +173 -0
  99. llama_cloud-0.0.2.dist-info/RECORD +0 -173
  100. {llama_cloud-0.0.2.dist-info → llama_cloud-0.0.3.dist-info}/LICENSE +0 -0
  101. {llama_cloud-0.0.2.dist-info → llama_cloud-0.0.3.dist-info}/WHEEL +0 -0
@@ -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
@@ -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,7 +32,7 @@ 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",
@@ -60,7 +63,7 @@ class ApiKeysClient:
60
63
  Parameters:
61
64
  - name: typing.Optional[str].
62
65
  ---
63
- from platform.client import LlamaCloud
66
+ from llama_cloud.client import LlamaCloud
64
67
 
65
68
  client = LlamaCloud(
66
69
  token="YOUR_TOKEN",
@@ -97,7 +100,7 @@ class ApiKeysClient:
97
100
 
98
101
  - name: typing.Optional[str].
99
102
  ---
100
- from platform.client import LlamaCloud
103
+ from llama_cloud.client import LlamaCloud
101
104
 
102
105
  client = LlamaCloud(
103
106
  token="YOUR_TOKEN",
@@ -134,7 +137,7 @@ class ApiKeysClient:
134
137
  Parameters:
135
138
  - api_key_id: str.
136
139
  ---
137
- from platform.client import LlamaCloud
140
+ from llama_cloud.client import LlamaCloud
138
141
 
139
142
  client = LlamaCloud(
140
143
  token="YOUR_TOKEN",
@@ -170,7 +173,7 @@ class AsyncApiKeysClient:
170
173
  Get all API Keys for a user.
171
174
 
172
175
  ---
173
- from platform.client import AsyncLlamaCloud
176
+ from llama_cloud.client import AsyncLlamaCloud
174
177
 
175
178
  client = AsyncLlamaCloud(
176
179
  token="YOUR_TOKEN",
@@ -201,7 +204,7 @@ class AsyncApiKeysClient:
201
204
  Parameters:
202
205
  - name: typing.Optional[str].
203
206
  ---
204
- from platform.client import AsyncLlamaCloud
207
+ from llama_cloud.client import AsyncLlamaCloud
205
208
 
206
209
  client = AsyncLlamaCloud(
207
210
  token="YOUR_TOKEN",
@@ -238,7 +241,7 @@ class AsyncApiKeysClient:
238
241
 
239
242
  - name: typing.Optional[str].
240
243
  ---
241
- from platform.client import AsyncLlamaCloud
244
+ from llama_cloud.client import AsyncLlamaCloud
242
245
 
243
246
  client = AsyncLlamaCloud(
244
247
  token="YOUR_TOKEN",
@@ -275,7 +278,7 @@ class AsyncApiKeysClient:
275
278
  Parameters:
276
279
  - api_key_id: str.
277
280
  ---
278
- from platform.client import AsyncLlamaCloud
281
+ from llama_cloud.client import AsyncLlamaCloud
279
282
 
280
283
  client = AsyncLlamaCloud(
281
284
  token="YOUR_TOKEN",
@@ -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,7 +36,7 @@ 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",
@@ -68,7 +71,7 @@ class BillingClient:
68
71
  Parameters:
69
72
  - return_url: str.
70
73
  ---
71
- from platform.client import LlamaCloud
74
+ from llama_cloud.client import LlamaCloud
72
75
 
73
76
  client = LlamaCloud(
74
77
  token="YOUR_TOKEN",
@@ -102,7 +105,7 @@ class BillingClient:
102
105
  Parameters:
103
106
  - stripe_signature: typing.Optional[str].
104
107
  ---
105
- from platform.client import LlamaCloud
108
+ from llama_cloud.client import LlamaCloud
106
109
 
107
110
  client = LlamaCloud(
108
111
  token="YOUR_TOKEN",
@@ -140,7 +143,7 @@ class AsyncBillingClient:
140
143
 
141
144
  - cancel_url: str.
142
145
  ---
143
- from platform.client import AsyncLlamaCloud
146
+ from llama_cloud.client import AsyncLlamaCloud
144
147
 
145
148
  client = AsyncLlamaCloud(
146
149
  token="YOUR_TOKEN",
@@ -175,7 +178,7 @@ class AsyncBillingClient:
175
178
  Parameters:
176
179
  - return_url: str.
177
180
  ---
178
- from platform.client import AsyncLlamaCloud
181
+ from llama_cloud.client import AsyncLlamaCloud
179
182
 
180
183
  client = AsyncLlamaCloud(
181
184
  token="YOUR_TOKEN",
@@ -209,7 +212,7 @@ class AsyncBillingClient:
209
212
  Parameters:
210
213
  - stripe_signature: typing.Optional[str].
211
214
  ---
212
- from platform.client import AsyncLlamaCloud
215
+ from llama_cloud.client import AsyncLlamaCloud
213
216
 
214
217
  client = AsyncLlamaCloud(
215
218
  token="YOUR_TOKEN",
@@ -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,7 +28,7 @@ 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",
@@ -54,7 +57,7 @@ class ComponentDefinitionsClient:
54
57
  Get all data source component definitions.
55
58
 
56
59
  ---
57
- from platform.client import LlamaCloud
60
+ from llama_cloud.client import LlamaCloud
58
61
 
59
62
  client = LlamaCloud(
60
63
  token="YOUR_TOKEN",
@@ -81,7 +84,7 @@ class ComponentDefinitionsClient:
81
84
  Get all data sink component definitions.
82
85
 
83
86
  ---
84
- from platform.client import LlamaCloud
87
+ from llama_cloud.client import LlamaCloud
85
88
 
86
89
  client = LlamaCloud(
87
90
  token="YOUR_TOKEN",
@@ -113,7 +116,7 @@ class AsyncComponentDefinitionsClient:
113
116
  Get all configurable transformation component definitions.
114
117
 
115
118
  ---
116
- from platform.client import AsyncLlamaCloud
119
+ from llama_cloud.client import AsyncLlamaCloud
117
120
 
118
121
  client = AsyncLlamaCloud(
119
122
  token="YOUR_TOKEN",
@@ -142,7 +145,7 @@ class AsyncComponentDefinitionsClient:
142
145
  Get all data source component definitions.
143
146
 
144
147
  ---
145
- from platform.client import AsyncLlamaCloud
148
+ from llama_cloud.client import AsyncLlamaCloud
146
149
 
147
150
  client = AsyncLlamaCloud(
148
151
  token="YOUR_TOKEN",
@@ -169,7 +172,7 @@ class AsyncComponentDefinitionsClient:
169
172
  Get all data sink component definitions.
170
173
 
171
174
  ---
172
- from platform.client import AsyncLlamaCloud
175
+ from llama_cloud.client import AsyncLlamaCloud
173
176
 
174
177
  client = AsyncLlamaCloud(
175
178
  token="YOUR_TOKEN",
@@ -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,7 +39,7 @@ 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",
@@ -70,8 +73,8 @@ class DataSinksClient:
70
73
 
71
74
  - request: DataSinkCreate.
72
75
  ---
73
- from platform import ConfigurableDataSinkNames, DataSinkCreate
74
- from platform.client import LlamaCloud
76
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
77
+ from llama_cloud.client import LlamaCloud
75
78
 
76
79
  client = LlamaCloud(
77
80
  token="YOUR_TOKEN",
@@ -112,8 +115,8 @@ class DataSinksClient:
112
115
 
113
116
  - request: DataSinkCreate.
114
117
  ---
115
- from platform import ConfigurableDataSinkNames, DataSinkCreate
116
- from platform.client import LlamaCloud
118
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
119
+ from llama_cloud.client import LlamaCloud
117
120
 
118
121
  client = LlamaCloud(
119
122
  token="YOUR_TOKEN",
@@ -151,7 +154,7 @@ class DataSinksClient:
151
154
  Parameters:
152
155
  - data_sink_id: str.
153
156
  ---
154
- from platform.client import LlamaCloud
157
+ from llama_cloud.client import LlamaCloud
155
158
 
156
159
  client = LlamaCloud(
157
160
  token="YOUR_TOKEN",
@@ -197,8 +200,8 @@ class DataSinksClient:
197
200
 
198
201
  - component: typing.Optional[DataSinkUpdateComponent].
199
202
  ---
200
- from platform import ConfigurableDataSinkNames
201
- from platform.client import LlamaCloud
203
+ from llama_cloud import ConfigurableDataSinkNames
204
+ from llama_cloud.client import LlamaCloud
202
205
 
203
206
  client = LlamaCloud(
204
207
  token="YOUR_TOKEN",
@@ -238,7 +241,7 @@ class DataSinksClient:
238
241
  Parameters:
239
242
  - data_sink_id: str.
240
243
  ---
241
- from platform.client import LlamaCloud
244
+ from llama_cloud.client import LlamaCloud
242
245
 
243
246
  client = LlamaCloud(
244
247
  token="YOUR_TOKEN",
@@ -277,7 +280,7 @@ class AsyncDataSinksClient:
277
280
  Parameters:
278
281
  - project_id: typing.Optional[str].
279
282
  ---
280
- from platform.client import AsyncLlamaCloud
283
+ from llama_cloud.client import AsyncLlamaCloud
281
284
 
282
285
  client = AsyncLlamaCloud(
283
286
  token="YOUR_TOKEN",
@@ -311,8 +314,8 @@ class AsyncDataSinksClient:
311
314
 
312
315
  - request: DataSinkCreate.
313
316
  ---
314
- from platform import ConfigurableDataSinkNames, DataSinkCreate
315
- from platform.client import AsyncLlamaCloud
317
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
318
+ from llama_cloud.client import AsyncLlamaCloud
316
319
 
317
320
  client = AsyncLlamaCloud(
318
321
  token="YOUR_TOKEN",
@@ -353,8 +356,8 @@ class AsyncDataSinksClient:
353
356
 
354
357
  - request: DataSinkCreate.
355
358
  ---
356
- from platform import ConfigurableDataSinkNames, DataSinkCreate
357
- from platform.client import AsyncLlamaCloud
359
+ from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
360
+ from llama_cloud.client import AsyncLlamaCloud
358
361
 
359
362
  client = AsyncLlamaCloud(
360
363
  token="YOUR_TOKEN",
@@ -392,7 +395,7 @@ class AsyncDataSinksClient:
392
395
  Parameters:
393
396
  - data_sink_id: str.
394
397
  ---
395
- from platform.client import AsyncLlamaCloud
398
+ from llama_cloud.client import AsyncLlamaCloud
396
399
 
397
400
  client = AsyncLlamaCloud(
398
401
  token="YOUR_TOKEN",
@@ -438,8 +441,8 @@ class AsyncDataSinksClient:
438
441
 
439
442
  - component: typing.Optional[DataSinkUpdateComponent].
440
443
  ---
441
- from platform import ConfigurableDataSinkNames
442
- from platform.client import AsyncLlamaCloud
444
+ from llama_cloud import ConfigurableDataSinkNames
445
+ from llama_cloud.client import AsyncLlamaCloud
443
446
 
444
447
  client = AsyncLlamaCloud(
445
448
  token="YOUR_TOKEN",
@@ -479,7 +482,7 @@ class AsyncDataSinksClient:
479
482
  Parameters:
480
483
  - data_sink_id: str.
481
484
  ---
482
- from platform.client import AsyncLlamaCloud
485
+ from llama_cloud.client import AsyncLlamaCloud
483
486
 
484
487
  client = AsyncLlamaCloud(
485
488
  token="YOUR_TOKEN",
@@ -17,6 +17,9 @@ from .types.data_source_update_component import DataSourceUpdateComponent
17
17
  from .types.data_source_update_custom_metadata_value import DataSourceUpdateCustomMetadataValue
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
@@ -37,7 +40,7 @@ class DataSourcesClient:
37
40
  Parameters:
38
41
  - project_id: typing.Optional[str].
39
42
  ---
40
- from platform.client import LlamaCloud
43
+ from llama_cloud.client import LlamaCloud
41
44
 
42
45
  client = LlamaCloud(
43
46
  token="YOUR_TOKEN",
@@ -71,8 +74,8 @@ class DataSourcesClient:
71
74
 
72
75
  - request: DataSourceCreate.
73
76
  ---
74
- from platform import ConfigurableDataSourceNames, DataSourceCreate
75
- from platform.client import LlamaCloud
77
+ from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
78
+ from llama_cloud.client import LlamaCloud
76
79
 
77
80
  client = LlamaCloud(
78
81
  token="YOUR_TOKEN",
@@ -113,8 +116,8 @@ class DataSourcesClient:
113
116
 
114
117
  - request: DataSourceCreate.
115
118
  ---
116
- from platform import ConfigurableDataSourceNames, DataSourceCreate
117
- from platform.client import LlamaCloud
119
+ from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
120
+ from llama_cloud.client import LlamaCloud
118
121
 
119
122
  client = LlamaCloud(
120
123
  token="YOUR_TOKEN",
@@ -152,7 +155,7 @@ class DataSourcesClient:
152
155
  Parameters:
153
156
  - data_source_id: str.
154
157
  ---
155
- from platform.client import LlamaCloud
158
+ from llama_cloud.client import LlamaCloud
156
159
 
157
160
  client = LlamaCloud(
158
161
  token="YOUR_TOKEN",
@@ -201,8 +204,8 @@ class DataSourcesClient:
201
204
 
202
205
  - component: typing.Optional[DataSourceUpdateComponent].
203
206
  ---
204
- from platform import ConfigurableDataSourceNames
205
- from platform.client import LlamaCloud
207
+ from llama_cloud import ConfigurableDataSourceNames
208
+ from llama_cloud.client import LlamaCloud
206
209
 
207
210
  client = LlamaCloud(
208
211
  token="YOUR_TOKEN",
@@ -244,7 +247,7 @@ class DataSourcesClient:
244
247
  Parameters:
245
248
  - data_source_id: str.
246
249
  ---
247
- from platform.client import LlamaCloud
250
+ from llama_cloud.client import LlamaCloud
248
251
 
249
252
  client = LlamaCloud(
250
253
  token="YOUR_TOKEN",
@@ -283,7 +286,7 @@ class AsyncDataSourcesClient:
283
286
  Parameters:
284
287
  - project_id: typing.Optional[str].
285
288
  ---
286
- from platform.client import AsyncLlamaCloud
289
+ from llama_cloud.client import AsyncLlamaCloud
287
290
 
288
291
  client = AsyncLlamaCloud(
289
292
  token="YOUR_TOKEN",
@@ -319,8 +322,8 @@ class AsyncDataSourcesClient:
319
322
 
320
323
  - request: DataSourceCreate.
321
324
  ---
322
- from platform import ConfigurableDataSourceNames, DataSourceCreate
323
- from platform.client import AsyncLlamaCloud
325
+ from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
326
+ from llama_cloud.client import AsyncLlamaCloud
324
327
 
325
328
  client = AsyncLlamaCloud(
326
329
  token="YOUR_TOKEN",
@@ -363,8 +366,8 @@ class AsyncDataSourcesClient:
363
366
 
364
367
  - request: DataSourceCreate.
365
368
  ---
366
- from platform import ConfigurableDataSourceNames, DataSourceCreate
367
- from platform.client import AsyncLlamaCloud
369
+ from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
370
+ from llama_cloud.client import AsyncLlamaCloud
368
371
 
369
372
  client = AsyncLlamaCloud(
370
373
  token="YOUR_TOKEN",
@@ -402,7 +405,7 @@ class AsyncDataSourcesClient:
402
405
  Parameters:
403
406
  - data_source_id: str.
404
407
  ---
405
- from platform.client import AsyncLlamaCloud
408
+ from llama_cloud.client import AsyncLlamaCloud
406
409
 
407
410
  client = AsyncLlamaCloud(
408
411
  token="YOUR_TOKEN",
@@ -451,8 +454,8 @@ class AsyncDataSourcesClient:
451
454
 
452
455
  - component: typing.Optional[DataSourceUpdateComponent].
453
456
  ---
454
- from platform import ConfigurableDataSourceNames
455
- from platform.client import AsyncLlamaCloud
457
+ from llama_cloud import ConfigurableDataSourceNames
458
+ from llama_cloud.client import AsyncLlamaCloud
456
459
 
457
460
  client = AsyncLlamaCloud(
458
461
  token="YOUR_TOKEN",
@@ -494,7 +497,7 @@ class AsyncDataSourcesClient:
494
497
  Parameters:
495
498
  - data_source_id: str.
496
499
  ---
497
- from platform.client import AsyncLlamaCloud
500
+ from llama_cloud.client import AsyncLlamaCloud
498
501
 
499
502
  client = AsyncLlamaCloud(
500
503
  token="YOUR_TOKEN",
@@ -20,6 +20,9 @@ from ...types.parsing_usage import ParsingUsage
20
20
  from ...types.presigned_url import PresignedUrl
21
21
 
22
22
  try:
23
+ import pydantic
24
+ if pydantic.__version__.startswith("1."):
25
+ raise ImportError
23
26
  import pydantic.v1 as pydantic # type: ignore
24
27
  except ImportError:
25
28
  import pydantic # type: ignore
@@ -41,7 +44,7 @@ class DeprecatedClient:
41
44
 
42
45
  - name: str.
43
46
  ---
44
- from platform.client import LlamaCloud
47
+ from llama_cloud.client import LlamaCloud
45
48
 
46
49
  client = LlamaCloud(
47
50
  token="YOUR_TOKEN",
@@ -75,7 +78,7 @@ class DeprecatedClient:
75
78
  Get a list of supported file extensions
76
79
 
77
80
  ---
78
- from platform.client import LlamaCloud
81
+ from llama_cloud.client import LlamaCloud
79
82
 
80
83
  client = LlamaCloud(
81
84
  token="YOUR_TOKEN",
@@ -174,7 +177,7 @@ class DeprecatedClient:
174
177
  Get parsing usage for user
175
178
 
176
179
  ---
177
- from platform.client import LlamaCloud
180
+ from llama_cloud.client import LlamaCloud
178
181
 
179
182
  client = LlamaCloud(
180
183
  token="YOUR_TOKEN",
@@ -205,7 +208,7 @@ class DeprecatedClient:
205
208
  Parameters:
206
209
  - job_id: str.
207
210
  ---
208
- from platform.client import LlamaCloud
211
+ from llama_cloud.client import LlamaCloud
209
212
 
210
213
  client = LlamaCloud(
211
214
  token="YOUR_TOKEN",
@@ -238,7 +241,7 @@ class DeprecatedClient:
238
241
  Parameters:
239
242
  - job_id: str.
240
243
  ---
241
- from platform.client import LlamaCloud
244
+ from llama_cloud.client import LlamaCloud
242
245
 
243
246
  client = LlamaCloud(
244
247
  token="YOUR_TOKEN",
@@ -271,7 +274,7 @@ class DeprecatedClient:
271
274
  Parameters:
272
275
  - job_id: str.
273
276
  ---
274
- from platform.client import LlamaCloud
277
+ from llama_cloud.client import LlamaCloud
275
278
 
276
279
  client = LlamaCloud(
277
280
  token="YOUR_TOKEN",
@@ -306,7 +309,7 @@ class DeprecatedClient:
306
309
  Parameters:
307
310
  - job_id: str.
308
311
  ---
309
- from platform.client import LlamaCloud
312
+ from llama_cloud.client import LlamaCloud
310
313
 
311
314
  client = LlamaCloud(
312
315
  token="YOUR_TOKEN",
@@ -341,7 +344,7 @@ class DeprecatedClient:
341
344
  Parameters:
342
345
  - job_id: str.
343
346
  ---
344
- from platform.client import LlamaCloud
347
+ from llama_cloud.client import LlamaCloud
345
348
 
346
349
  client = LlamaCloud(
347
350
  token="YOUR_TOKEN",
@@ -376,7 +379,7 @@ class DeprecatedClient:
376
379
  Parameters:
377
380
  - job_id: str.
378
381
  ---
379
- from platform.client import LlamaCloud
382
+ from llama_cloud.client import LlamaCloud
380
383
 
381
384
  client = LlamaCloud(
382
385
  token="YOUR_TOKEN",
@@ -409,7 +412,7 @@ class DeprecatedClient:
409
412
  Parameters:
410
413
  - job_id: str.
411
414
  ---
412
- from platform.client import LlamaCloud
415
+ from llama_cloud.client import LlamaCloud
413
416
 
414
417
  client = LlamaCloud(
415
418
  token="YOUR_TOKEN",
@@ -442,7 +445,7 @@ class DeprecatedClient:
442
445
  Get parsing history for user
443
446
 
444
447
  ---
445
- from platform.client import LlamaCloud
448
+ from llama_cloud.client import LlamaCloud
446
449
 
447
450
  client = LlamaCloud(
448
451
  token="YOUR_TOKEN",
@@ -475,7 +478,7 @@ class DeprecatedClient:
475
478
 
476
479
  - filename: str.
477
480
  ---
478
- from platform.client import LlamaCloud
481
+ from llama_cloud.client import LlamaCloud
479
482
 
480
483
  client = LlamaCloud(
481
484
  token="YOUR_TOKEN",
@@ -518,7 +521,7 @@ class AsyncDeprecatedClient:
518
521
 
519
522
  - name: str.
520
523
  ---
521
- from platform.client import AsyncLlamaCloud
524
+ from llama_cloud.client import AsyncLlamaCloud
522
525
 
523
526
  client = AsyncLlamaCloud(
524
527
  token="YOUR_TOKEN",
@@ -552,7 +555,7 @@ class AsyncDeprecatedClient:
552
555
  Get a list of supported file extensions
553
556
 
554
557
  ---
555
- from platform.client import AsyncLlamaCloud
558
+ from llama_cloud.client import AsyncLlamaCloud
556
559
 
557
560
  client = AsyncLlamaCloud(
558
561
  token="YOUR_TOKEN",
@@ -651,7 +654,7 @@ class AsyncDeprecatedClient:
651
654
  Get parsing usage for user
652
655
 
653
656
  ---
654
- from platform.client import AsyncLlamaCloud
657
+ from llama_cloud.client import AsyncLlamaCloud
655
658
 
656
659
  client = AsyncLlamaCloud(
657
660
  token="YOUR_TOKEN",
@@ -682,7 +685,7 @@ class AsyncDeprecatedClient:
682
685
  Parameters:
683
686
  - job_id: str.
684
687
  ---
685
- from platform.client import AsyncLlamaCloud
688
+ from llama_cloud.client import AsyncLlamaCloud
686
689
 
687
690
  client = AsyncLlamaCloud(
688
691
  token="YOUR_TOKEN",
@@ -715,7 +718,7 @@ class AsyncDeprecatedClient:
715
718
  Parameters:
716
719
  - job_id: str.
717
720
  ---
718
- from platform.client import AsyncLlamaCloud
721
+ from llama_cloud.client import AsyncLlamaCloud
719
722
 
720
723
  client = AsyncLlamaCloud(
721
724
  token="YOUR_TOKEN",
@@ -748,7 +751,7 @@ class AsyncDeprecatedClient:
748
751
  Parameters:
749
752
  - job_id: str.
750
753
  ---
751
- from platform.client import AsyncLlamaCloud
754
+ from llama_cloud.client import AsyncLlamaCloud
752
755
 
753
756
  client = AsyncLlamaCloud(
754
757
  token="YOUR_TOKEN",
@@ -783,7 +786,7 @@ class AsyncDeprecatedClient:
783
786
  Parameters:
784
787
  - job_id: str.
785
788
  ---
786
- from platform.client import AsyncLlamaCloud
789
+ from llama_cloud.client import AsyncLlamaCloud
787
790
 
788
791
  client = AsyncLlamaCloud(
789
792
  token="YOUR_TOKEN",
@@ -818,7 +821,7 @@ class AsyncDeprecatedClient:
818
821
  Parameters:
819
822
  - job_id: str.
820
823
  ---
821
- from platform.client import AsyncLlamaCloud
824
+ from llama_cloud.client import AsyncLlamaCloud
822
825
 
823
826
  client = AsyncLlamaCloud(
824
827
  token="YOUR_TOKEN",
@@ -853,7 +856,7 @@ class AsyncDeprecatedClient:
853
856
  Parameters:
854
857
  - job_id: str.
855
858
  ---
856
- from platform.client import AsyncLlamaCloud
859
+ from llama_cloud.client import AsyncLlamaCloud
857
860
 
858
861
  client = AsyncLlamaCloud(
859
862
  token="YOUR_TOKEN",
@@ -886,7 +889,7 @@ class AsyncDeprecatedClient:
886
889
  Parameters:
887
890
  - job_id: str.
888
891
  ---
889
- from platform.client import AsyncLlamaCloud
892
+ from llama_cloud.client import AsyncLlamaCloud
890
893
 
891
894
  client = AsyncLlamaCloud(
892
895
  token="YOUR_TOKEN",
@@ -919,7 +922,7 @@ class AsyncDeprecatedClient:
919
922
  Get parsing history for user
920
923
 
921
924
  ---
922
- from platform.client import AsyncLlamaCloud
925
+ from llama_cloud.client import AsyncLlamaCloud
923
926
 
924
927
  client = AsyncLlamaCloud(
925
928
  token="YOUR_TOKEN",
@@ -952,7 +955,7 @@ class AsyncDeprecatedClient:
952
955
 
953
956
  - filename: str.
954
957
  ---
955
- from platform.client import AsyncLlamaCloud
958
+ from llama_cloud.client import AsyncLlamaCloud
956
959
 
957
960
  client = AsyncLlamaCloud(
958
961
  token="YOUR_TOKEN",