llama-cloud 0.0.1__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.
- llama_cloud/client.py +2 -2
- llama_cloud/core/jsonable_encoder.py +3 -0
- llama_cloud/resources/api_keys/client.py +19 -16
- llama_cloud/resources/billing/client.py +15 -12
- llama_cloud/resources/component_definitions/client.py +15 -12
- llama_cloud/resources/data_sinks/client.py +33 -30
- llama_cloud/resources/data_sources/client.py +33 -30
- llama_cloud/resources/deprecated/client.py +51 -48
- llama_cloud/resources/evals/client.py +47 -44
- llama_cloud/resources/files/client.py +27 -24
- llama_cloud/resources/parsing/client.py +51 -48
- llama_cloud/resources/pipelines/client.py +238 -164
- llama_cloud/resources/projects/client.py +75 -72
- llama_cloud/types/api_key.py +3 -0
- llama_cloud/types/azure_open_ai_embedding.py +3 -0
- llama_cloud/types/base.py +3 -0
- llama_cloud/types/base_prompt_template.py +3 -0
- llama_cloud/types/bedrock_embedding.py +3 -0
- llama_cloud/types/chat_message.py +3 -0
- llama_cloud/types/cloud_az_storage_blob_data_source.py +3 -0
- llama_cloud/types/cloud_chroma_vector_store.py +3 -0
- llama_cloud/types/cloud_document.py +3 -0
- llama_cloud/types/cloud_document_create.py +3 -0
- llama_cloud/types/cloud_gcs_data_source.py +3 -0
- llama_cloud/types/cloud_google_drive_data_source.py +3 -0
- llama_cloud/types/cloud_one_drive_data_source.py +3 -0
- llama_cloud/types/cloud_pinecone_vector_store.py +3 -0
- llama_cloud/types/cloud_postgres_vector_store.py +3 -0
- llama_cloud/types/cloud_qdrant_vector_store.py +3 -0
- llama_cloud/types/cloud_s_3_data_source.py +3 -0
- llama_cloud/types/cloud_sharepoint_data_source.py +3 -0
- llama_cloud/types/cloud_weaviate_vector_store.py +3 -0
- llama_cloud/types/code_splitter.py +3 -0
- llama_cloud/types/cohere_embedding.py +3 -0
- llama_cloud/types/configurable_transformation_definition.py +3 -0
- llama_cloud/types/configured_transformation_item.py +3 -0
- llama_cloud/types/data_sink.py +3 -0
- llama_cloud/types/data_sink_create.py +3 -0
- llama_cloud/types/data_sink_definition.py +3 -0
- llama_cloud/types/data_source.py +3 -0
- llama_cloud/types/data_source_create.py +3 -0
- llama_cloud/types/data_source_definition.py +3 -0
- llama_cloud/types/eval_dataset.py +3 -0
- llama_cloud/types/eval_dataset_job_params.py +3 -0
- llama_cloud/types/eval_dataset_job_record.py +3 -0
- llama_cloud/types/eval_execution_params.py +3 -0
- llama_cloud/types/eval_execution_params_override.py +3 -0
- llama_cloud/types/eval_llm_model_data.py +3 -0
- llama_cloud/types/eval_question.py +3 -0
- llama_cloud/types/eval_question_create.py +3 -0
- llama_cloud/types/eval_question_result.py +3 -0
- llama_cloud/types/file.py +3 -0
- llama_cloud/types/gemini_embedding.py +3 -0
- llama_cloud/types/html_node_parser.py +3 -0
- llama_cloud/types/http_validation_error.py +3 -0
- llama_cloud/types/hugging_face_inference_api_embedding.py +3 -0
- llama_cloud/types/json_node_parser.py +3 -0
- llama_cloud/types/llm.py +3 -0
- llama_cloud/types/local_eval.py +3 -0
- llama_cloud/types/local_eval_results.py +3 -0
- llama_cloud/types/local_eval_sets.py +3 -0
- llama_cloud/types/markdown_element_node_parser.py +3 -0
- llama_cloud/types/markdown_node_parser.py +3 -0
- llama_cloud/types/metadata_filter.py +3 -0
- llama_cloud/types/metadata_filters.py +3 -0
- llama_cloud/types/metric_result.py +3 -0
- llama_cloud/types/node_parser.py +3 -0
- llama_cloud/types/open_ai_embedding.py +3 -0
- llama_cloud/types/parsing_history_item.py +3 -0
- llama_cloud/types/parsing_job.py +3 -0
- llama_cloud/types/parsing_job_json_result.py +3 -0
- llama_cloud/types/parsing_job_markdown_result.py +3 -0
- llama_cloud/types/parsing_job_text_result.py +3 -0
- llama_cloud/types/parsing_usage.py +3 -0
- llama_cloud/types/pipeline.py +3 -0
- llama_cloud/types/pipeline_create.py +3 -0
- llama_cloud/types/pipeline_data_source.py +3 -0
- llama_cloud/types/pipeline_data_source_create.py +3 -0
- llama_cloud/types/pipeline_deployment.py +3 -0
- llama_cloud/types/pipeline_file.py +3 -0
- llama_cloud/types/pipeline_file_create.py +3 -0
- llama_cloud/types/pipeline_file_status_response.py +3 -0
- llama_cloud/types/preset_retrieval_params.py +3 -0
- llama_cloud/types/presigned_url.py +3 -0
- llama_cloud/types/project.py +3 -0
- llama_cloud/types/project_create.py +3 -0
- llama_cloud/types/prompt_mixin_prompts.py +3 -0
- llama_cloud/types/prompt_spec.py +3 -0
- llama_cloud/types/related_node_info.py +3 -0
- llama_cloud/types/retrieve_results.py +3 -0
- llama_cloud/types/sentence_splitter.py +3 -0
- llama_cloud/types/simple_file_node_parser.py +3 -0
- llama_cloud/types/supported_eval_llm_model.py +3 -0
- llama_cloud/types/text_node.py +3 -0
- llama_cloud/types/text_node_with_score.py +3 -0
- llama_cloud/types/token_text_splitter.py +3 -0
- llama_cloud/types/validation_error.py +3 -0
- {llama_cloud-0.0.1.dist-info → llama_cloud-0.0.3.dist-info}/METADATA +1 -1
- llama_cloud-0.0.3.dist-info/RECORD +173 -0
- llama_cloud-0.0.1.dist-info/RECORD +0 -173
- {llama_cloud-0.0.1.dist-info → llama_cloud-0.0.3.dist-info}/LICENSE +0 -0
- {llama_cloud-0.0.1.dist-info → llama_cloud-0.0.3.dist-info}/WHEEL +0 -0
llama_cloud/client.py
CHANGED
|
@@ -18,7 +18,7 @@ from .resources.pipelines.client import AsyncPipelinesClient, PipelinesClient
|
|
|
18
18
|
from .resources.projects.client import AsyncProjectsClient, ProjectsClient
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class LlamaCloud:
|
|
22
22
|
def __init__(
|
|
23
23
|
self,
|
|
24
24
|
*,
|
|
@@ -45,7 +45,7 @@ class PlatformApi:
|
|
|
45
45
|
self.deprecated = DeprecatedClient(client_wrapper=self._client_wrapper)
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class AsyncLlamaCloud:
|
|
49
49
|
def __init__(
|
|
50
50
|
self,
|
|
51
51
|
*,
|
|
@@ -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,9 +32,9 @@ class ApiKeysClient:
|
|
|
29
32
|
Get all API Keys for a user.
|
|
30
33
|
|
|
31
34
|
---
|
|
32
|
-
from
|
|
35
|
+
from llama_cloud.client import LlamaCloud
|
|
33
36
|
|
|
34
|
-
client =
|
|
37
|
+
client = LlamaCloud(
|
|
35
38
|
token="YOUR_TOKEN",
|
|
36
39
|
base_url="https://yourhost.com/path/to/api",
|
|
37
40
|
)
|
|
@@ -60,9 +63,9 @@ class ApiKeysClient:
|
|
|
60
63
|
Parameters:
|
|
61
64
|
- name: typing.Optional[str].
|
|
62
65
|
---
|
|
63
|
-
from
|
|
66
|
+
from llama_cloud.client import LlamaCloud
|
|
64
67
|
|
|
65
|
-
client =
|
|
68
|
+
client = LlamaCloud(
|
|
66
69
|
token="YOUR_TOKEN",
|
|
67
70
|
base_url="https://yourhost.com/path/to/api",
|
|
68
71
|
)
|
|
@@ -97,9 +100,9 @@ class ApiKeysClient:
|
|
|
97
100
|
|
|
98
101
|
- name: typing.Optional[str].
|
|
99
102
|
---
|
|
100
|
-
from
|
|
103
|
+
from llama_cloud.client import LlamaCloud
|
|
101
104
|
|
|
102
|
-
client =
|
|
105
|
+
client = LlamaCloud(
|
|
103
106
|
token="YOUR_TOKEN",
|
|
104
107
|
base_url="https://yourhost.com/path/to/api",
|
|
105
108
|
)
|
|
@@ -134,9 +137,9 @@ class ApiKeysClient:
|
|
|
134
137
|
Parameters:
|
|
135
138
|
- api_key_id: str.
|
|
136
139
|
---
|
|
137
|
-
from
|
|
140
|
+
from llama_cloud.client import LlamaCloud
|
|
138
141
|
|
|
139
|
-
client =
|
|
142
|
+
client = LlamaCloud(
|
|
140
143
|
token="YOUR_TOKEN",
|
|
141
144
|
base_url="https://yourhost.com/path/to/api",
|
|
142
145
|
)
|
|
@@ -170,9 +173,9 @@ class AsyncApiKeysClient:
|
|
|
170
173
|
Get all API Keys for a user.
|
|
171
174
|
|
|
172
175
|
---
|
|
173
|
-
from
|
|
176
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
174
177
|
|
|
175
|
-
client =
|
|
178
|
+
client = AsyncLlamaCloud(
|
|
176
179
|
token="YOUR_TOKEN",
|
|
177
180
|
base_url="https://yourhost.com/path/to/api",
|
|
178
181
|
)
|
|
@@ -201,9 +204,9 @@ class AsyncApiKeysClient:
|
|
|
201
204
|
Parameters:
|
|
202
205
|
- name: typing.Optional[str].
|
|
203
206
|
---
|
|
204
|
-
from
|
|
207
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
205
208
|
|
|
206
|
-
client =
|
|
209
|
+
client = AsyncLlamaCloud(
|
|
207
210
|
token="YOUR_TOKEN",
|
|
208
211
|
base_url="https://yourhost.com/path/to/api",
|
|
209
212
|
)
|
|
@@ -238,9 +241,9 @@ class AsyncApiKeysClient:
|
|
|
238
241
|
|
|
239
242
|
- name: typing.Optional[str].
|
|
240
243
|
---
|
|
241
|
-
from
|
|
244
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
242
245
|
|
|
243
|
-
client =
|
|
246
|
+
client = AsyncLlamaCloud(
|
|
244
247
|
token="YOUR_TOKEN",
|
|
245
248
|
base_url="https://yourhost.com/path/to/api",
|
|
246
249
|
)
|
|
@@ -275,9 +278,9 @@ class AsyncApiKeysClient:
|
|
|
275
278
|
Parameters:
|
|
276
279
|
- api_key_id: str.
|
|
277
280
|
---
|
|
278
|
-
from
|
|
281
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
279
282
|
|
|
280
|
-
client =
|
|
283
|
+
client = AsyncLlamaCloud(
|
|
281
284
|
token="YOUR_TOKEN",
|
|
282
285
|
base_url="https://yourhost.com/path/to/api",
|
|
283
286
|
)
|
|
@@ -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,9 +36,9 @@ class BillingClient:
|
|
|
33
36
|
|
|
34
37
|
- cancel_url: str.
|
|
35
38
|
---
|
|
36
|
-
from
|
|
39
|
+
from llama_cloud.client import LlamaCloud
|
|
37
40
|
|
|
38
|
-
client =
|
|
41
|
+
client = LlamaCloud(
|
|
39
42
|
token="YOUR_TOKEN",
|
|
40
43
|
base_url="https://yourhost.com/path/to/api",
|
|
41
44
|
)
|
|
@@ -68,9 +71,9 @@ class BillingClient:
|
|
|
68
71
|
Parameters:
|
|
69
72
|
- return_url: str.
|
|
70
73
|
---
|
|
71
|
-
from
|
|
74
|
+
from llama_cloud.client import LlamaCloud
|
|
72
75
|
|
|
73
|
-
client =
|
|
76
|
+
client = LlamaCloud(
|
|
74
77
|
token="YOUR_TOKEN",
|
|
75
78
|
base_url="https://yourhost.com/path/to/api",
|
|
76
79
|
)
|
|
@@ -102,9 +105,9 @@ class BillingClient:
|
|
|
102
105
|
Parameters:
|
|
103
106
|
- stripe_signature: typing.Optional[str].
|
|
104
107
|
---
|
|
105
|
-
from
|
|
108
|
+
from llama_cloud.client import LlamaCloud
|
|
106
109
|
|
|
107
|
-
client =
|
|
110
|
+
client = LlamaCloud(
|
|
108
111
|
token="YOUR_TOKEN",
|
|
109
112
|
base_url="https://yourhost.com/path/to/api",
|
|
110
113
|
)
|
|
@@ -140,9 +143,9 @@ class AsyncBillingClient:
|
|
|
140
143
|
|
|
141
144
|
- cancel_url: str.
|
|
142
145
|
---
|
|
143
|
-
from
|
|
146
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
144
147
|
|
|
145
|
-
client =
|
|
148
|
+
client = AsyncLlamaCloud(
|
|
146
149
|
token="YOUR_TOKEN",
|
|
147
150
|
base_url="https://yourhost.com/path/to/api",
|
|
148
151
|
)
|
|
@@ -175,9 +178,9 @@ class AsyncBillingClient:
|
|
|
175
178
|
Parameters:
|
|
176
179
|
- return_url: str.
|
|
177
180
|
---
|
|
178
|
-
from
|
|
181
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
179
182
|
|
|
180
|
-
client =
|
|
183
|
+
client = AsyncLlamaCloud(
|
|
181
184
|
token="YOUR_TOKEN",
|
|
182
185
|
base_url="https://yourhost.com/path/to/api",
|
|
183
186
|
)
|
|
@@ -209,9 +212,9 @@ class AsyncBillingClient:
|
|
|
209
212
|
Parameters:
|
|
210
213
|
- stripe_signature: typing.Optional[str].
|
|
211
214
|
---
|
|
212
|
-
from
|
|
215
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
213
216
|
|
|
214
|
-
client =
|
|
217
|
+
client = AsyncLlamaCloud(
|
|
215
218
|
token="YOUR_TOKEN",
|
|
216
219
|
base_url="https://yourhost.com/path/to/api",
|
|
217
220
|
)
|
|
@@ -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,9 +28,9 @@ class ComponentDefinitionsClient:
|
|
|
25
28
|
Get all configurable transformation component definitions.
|
|
26
29
|
|
|
27
30
|
---
|
|
28
|
-
from
|
|
31
|
+
from llama_cloud.client import LlamaCloud
|
|
29
32
|
|
|
30
|
-
client =
|
|
33
|
+
client = LlamaCloud(
|
|
31
34
|
token="YOUR_TOKEN",
|
|
32
35
|
base_url="https://yourhost.com/path/to/api",
|
|
33
36
|
)
|
|
@@ -54,9 +57,9 @@ class ComponentDefinitionsClient:
|
|
|
54
57
|
Get all data source component definitions.
|
|
55
58
|
|
|
56
59
|
---
|
|
57
|
-
from
|
|
60
|
+
from llama_cloud.client import LlamaCloud
|
|
58
61
|
|
|
59
|
-
client =
|
|
62
|
+
client = LlamaCloud(
|
|
60
63
|
token="YOUR_TOKEN",
|
|
61
64
|
base_url="https://yourhost.com/path/to/api",
|
|
62
65
|
)
|
|
@@ -81,9 +84,9 @@ class ComponentDefinitionsClient:
|
|
|
81
84
|
Get all data sink component definitions.
|
|
82
85
|
|
|
83
86
|
---
|
|
84
|
-
from
|
|
87
|
+
from llama_cloud.client import LlamaCloud
|
|
85
88
|
|
|
86
|
-
client =
|
|
89
|
+
client = LlamaCloud(
|
|
87
90
|
token="YOUR_TOKEN",
|
|
88
91
|
base_url="https://yourhost.com/path/to/api",
|
|
89
92
|
)
|
|
@@ -113,9 +116,9 @@ class AsyncComponentDefinitionsClient:
|
|
|
113
116
|
Get all configurable transformation component definitions.
|
|
114
117
|
|
|
115
118
|
---
|
|
116
|
-
from
|
|
119
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
117
120
|
|
|
118
|
-
client =
|
|
121
|
+
client = AsyncLlamaCloud(
|
|
119
122
|
token="YOUR_TOKEN",
|
|
120
123
|
base_url="https://yourhost.com/path/to/api",
|
|
121
124
|
)
|
|
@@ -142,9 +145,9 @@ class AsyncComponentDefinitionsClient:
|
|
|
142
145
|
Get all data source component definitions.
|
|
143
146
|
|
|
144
147
|
---
|
|
145
|
-
from
|
|
148
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
146
149
|
|
|
147
|
-
client =
|
|
150
|
+
client = AsyncLlamaCloud(
|
|
148
151
|
token="YOUR_TOKEN",
|
|
149
152
|
base_url="https://yourhost.com/path/to/api",
|
|
150
153
|
)
|
|
@@ -169,9 +172,9 @@ class AsyncComponentDefinitionsClient:
|
|
|
169
172
|
Get all data sink component definitions.
|
|
170
173
|
|
|
171
174
|
---
|
|
172
|
-
from
|
|
175
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
173
176
|
|
|
174
|
-
client =
|
|
177
|
+
client = AsyncLlamaCloud(
|
|
175
178
|
token="YOUR_TOKEN",
|
|
176
179
|
base_url="https://yourhost.com/path/to/api",
|
|
177
180
|
)
|
|
@@ -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,9 +39,9 @@ class DataSinksClient:
|
|
|
36
39
|
Parameters:
|
|
37
40
|
- project_id: typing.Optional[str].
|
|
38
41
|
---
|
|
39
|
-
from
|
|
42
|
+
from llama_cloud.client import LlamaCloud
|
|
40
43
|
|
|
41
|
-
client =
|
|
44
|
+
client = LlamaCloud(
|
|
42
45
|
token="YOUR_TOKEN",
|
|
43
46
|
base_url="https://yourhost.com/path/to/api",
|
|
44
47
|
)
|
|
@@ -70,10 +73,10 @@ class DataSinksClient:
|
|
|
70
73
|
|
|
71
74
|
- request: DataSinkCreate.
|
|
72
75
|
---
|
|
73
|
-
from
|
|
74
|
-
from
|
|
76
|
+
from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
|
|
77
|
+
from llama_cloud.client import LlamaCloud
|
|
75
78
|
|
|
76
|
-
client =
|
|
79
|
+
client = LlamaCloud(
|
|
77
80
|
token="YOUR_TOKEN",
|
|
78
81
|
base_url="https://yourhost.com/path/to/api",
|
|
79
82
|
)
|
|
@@ -112,10 +115,10 @@ class DataSinksClient:
|
|
|
112
115
|
|
|
113
116
|
- request: DataSinkCreate.
|
|
114
117
|
---
|
|
115
|
-
from
|
|
116
|
-
from
|
|
118
|
+
from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
|
|
119
|
+
from llama_cloud.client import LlamaCloud
|
|
117
120
|
|
|
118
|
-
client =
|
|
121
|
+
client = LlamaCloud(
|
|
119
122
|
token="YOUR_TOKEN",
|
|
120
123
|
base_url="https://yourhost.com/path/to/api",
|
|
121
124
|
)
|
|
@@ -151,9 +154,9 @@ class DataSinksClient:
|
|
|
151
154
|
Parameters:
|
|
152
155
|
- data_sink_id: str.
|
|
153
156
|
---
|
|
154
|
-
from
|
|
157
|
+
from llama_cloud.client import LlamaCloud
|
|
155
158
|
|
|
156
|
-
client =
|
|
159
|
+
client = LlamaCloud(
|
|
157
160
|
token="YOUR_TOKEN",
|
|
158
161
|
base_url="https://yourhost.com/path/to/api",
|
|
159
162
|
)
|
|
@@ -197,10 +200,10 @@ class DataSinksClient:
|
|
|
197
200
|
|
|
198
201
|
- component: typing.Optional[DataSinkUpdateComponent].
|
|
199
202
|
---
|
|
200
|
-
from
|
|
201
|
-
from
|
|
203
|
+
from llama_cloud import ConfigurableDataSinkNames
|
|
204
|
+
from llama_cloud.client import LlamaCloud
|
|
202
205
|
|
|
203
|
-
client =
|
|
206
|
+
client = LlamaCloud(
|
|
204
207
|
token="YOUR_TOKEN",
|
|
205
208
|
base_url="https://yourhost.com/path/to/api",
|
|
206
209
|
)
|
|
@@ -238,9 +241,9 @@ class DataSinksClient:
|
|
|
238
241
|
Parameters:
|
|
239
242
|
- data_sink_id: str.
|
|
240
243
|
---
|
|
241
|
-
from
|
|
244
|
+
from llama_cloud.client import LlamaCloud
|
|
242
245
|
|
|
243
|
-
client =
|
|
246
|
+
client = LlamaCloud(
|
|
244
247
|
token="YOUR_TOKEN",
|
|
245
248
|
base_url="https://yourhost.com/path/to/api",
|
|
246
249
|
)
|
|
@@ -277,9 +280,9 @@ class AsyncDataSinksClient:
|
|
|
277
280
|
Parameters:
|
|
278
281
|
- project_id: typing.Optional[str].
|
|
279
282
|
---
|
|
280
|
-
from
|
|
283
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
281
284
|
|
|
282
|
-
client =
|
|
285
|
+
client = AsyncLlamaCloud(
|
|
283
286
|
token="YOUR_TOKEN",
|
|
284
287
|
base_url="https://yourhost.com/path/to/api",
|
|
285
288
|
)
|
|
@@ -311,10 +314,10 @@ class AsyncDataSinksClient:
|
|
|
311
314
|
|
|
312
315
|
- request: DataSinkCreate.
|
|
313
316
|
---
|
|
314
|
-
from
|
|
315
|
-
from
|
|
317
|
+
from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
|
|
318
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
316
319
|
|
|
317
|
-
client =
|
|
320
|
+
client = AsyncLlamaCloud(
|
|
318
321
|
token="YOUR_TOKEN",
|
|
319
322
|
base_url="https://yourhost.com/path/to/api",
|
|
320
323
|
)
|
|
@@ -353,10 +356,10 @@ class AsyncDataSinksClient:
|
|
|
353
356
|
|
|
354
357
|
- request: DataSinkCreate.
|
|
355
358
|
---
|
|
356
|
-
from
|
|
357
|
-
from
|
|
359
|
+
from llama_cloud import ConfigurableDataSinkNames, DataSinkCreate
|
|
360
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
358
361
|
|
|
359
|
-
client =
|
|
362
|
+
client = AsyncLlamaCloud(
|
|
360
363
|
token="YOUR_TOKEN",
|
|
361
364
|
base_url="https://yourhost.com/path/to/api",
|
|
362
365
|
)
|
|
@@ -392,9 +395,9 @@ class AsyncDataSinksClient:
|
|
|
392
395
|
Parameters:
|
|
393
396
|
- data_sink_id: str.
|
|
394
397
|
---
|
|
395
|
-
from
|
|
398
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
396
399
|
|
|
397
|
-
client =
|
|
400
|
+
client = AsyncLlamaCloud(
|
|
398
401
|
token="YOUR_TOKEN",
|
|
399
402
|
base_url="https://yourhost.com/path/to/api",
|
|
400
403
|
)
|
|
@@ -438,10 +441,10 @@ class AsyncDataSinksClient:
|
|
|
438
441
|
|
|
439
442
|
- component: typing.Optional[DataSinkUpdateComponent].
|
|
440
443
|
---
|
|
441
|
-
from
|
|
442
|
-
from
|
|
444
|
+
from llama_cloud import ConfigurableDataSinkNames
|
|
445
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
443
446
|
|
|
444
|
-
client =
|
|
447
|
+
client = AsyncLlamaCloud(
|
|
445
448
|
token="YOUR_TOKEN",
|
|
446
449
|
base_url="https://yourhost.com/path/to/api",
|
|
447
450
|
)
|
|
@@ -479,9 +482,9 @@ class AsyncDataSinksClient:
|
|
|
479
482
|
Parameters:
|
|
480
483
|
- data_sink_id: str.
|
|
481
484
|
---
|
|
482
|
-
from
|
|
485
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
483
486
|
|
|
484
|
-
client =
|
|
487
|
+
client = AsyncLlamaCloud(
|
|
485
488
|
token="YOUR_TOKEN",
|
|
486
489
|
base_url="https://yourhost.com/path/to/api",
|
|
487
490
|
)
|
|
@@ -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,9 +40,9 @@ class DataSourcesClient:
|
|
|
37
40
|
Parameters:
|
|
38
41
|
- project_id: typing.Optional[str].
|
|
39
42
|
---
|
|
40
|
-
from
|
|
43
|
+
from llama_cloud.client import LlamaCloud
|
|
41
44
|
|
|
42
|
-
client =
|
|
45
|
+
client = LlamaCloud(
|
|
43
46
|
token="YOUR_TOKEN",
|
|
44
47
|
base_url="https://yourhost.com/path/to/api",
|
|
45
48
|
)
|
|
@@ -71,10 +74,10 @@ class DataSourcesClient:
|
|
|
71
74
|
|
|
72
75
|
- request: DataSourceCreate.
|
|
73
76
|
---
|
|
74
|
-
from
|
|
75
|
-
from
|
|
77
|
+
from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
|
|
78
|
+
from llama_cloud.client import LlamaCloud
|
|
76
79
|
|
|
77
|
-
client =
|
|
80
|
+
client = LlamaCloud(
|
|
78
81
|
token="YOUR_TOKEN",
|
|
79
82
|
base_url="https://yourhost.com/path/to/api",
|
|
80
83
|
)
|
|
@@ -113,10 +116,10 @@ class DataSourcesClient:
|
|
|
113
116
|
|
|
114
117
|
- request: DataSourceCreate.
|
|
115
118
|
---
|
|
116
|
-
from
|
|
117
|
-
from
|
|
119
|
+
from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
|
|
120
|
+
from llama_cloud.client import LlamaCloud
|
|
118
121
|
|
|
119
|
-
client =
|
|
122
|
+
client = LlamaCloud(
|
|
120
123
|
token="YOUR_TOKEN",
|
|
121
124
|
base_url="https://yourhost.com/path/to/api",
|
|
122
125
|
)
|
|
@@ -152,9 +155,9 @@ class DataSourcesClient:
|
|
|
152
155
|
Parameters:
|
|
153
156
|
- data_source_id: str.
|
|
154
157
|
---
|
|
155
|
-
from
|
|
158
|
+
from llama_cloud.client import LlamaCloud
|
|
156
159
|
|
|
157
|
-
client =
|
|
160
|
+
client = LlamaCloud(
|
|
158
161
|
token="YOUR_TOKEN",
|
|
159
162
|
base_url="https://yourhost.com/path/to/api",
|
|
160
163
|
)
|
|
@@ -201,10 +204,10 @@ class DataSourcesClient:
|
|
|
201
204
|
|
|
202
205
|
- component: typing.Optional[DataSourceUpdateComponent].
|
|
203
206
|
---
|
|
204
|
-
from
|
|
205
|
-
from
|
|
207
|
+
from llama_cloud import ConfigurableDataSourceNames
|
|
208
|
+
from llama_cloud.client import LlamaCloud
|
|
206
209
|
|
|
207
|
-
client =
|
|
210
|
+
client = LlamaCloud(
|
|
208
211
|
token="YOUR_TOKEN",
|
|
209
212
|
base_url="https://yourhost.com/path/to/api",
|
|
210
213
|
)
|
|
@@ -244,9 +247,9 @@ class DataSourcesClient:
|
|
|
244
247
|
Parameters:
|
|
245
248
|
- data_source_id: str.
|
|
246
249
|
---
|
|
247
|
-
from
|
|
250
|
+
from llama_cloud.client import LlamaCloud
|
|
248
251
|
|
|
249
|
-
client =
|
|
252
|
+
client = LlamaCloud(
|
|
250
253
|
token="YOUR_TOKEN",
|
|
251
254
|
base_url="https://yourhost.com/path/to/api",
|
|
252
255
|
)
|
|
@@ -283,9 +286,9 @@ class AsyncDataSourcesClient:
|
|
|
283
286
|
Parameters:
|
|
284
287
|
- project_id: typing.Optional[str].
|
|
285
288
|
---
|
|
286
|
-
from
|
|
289
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
287
290
|
|
|
288
|
-
client =
|
|
291
|
+
client = AsyncLlamaCloud(
|
|
289
292
|
token="YOUR_TOKEN",
|
|
290
293
|
base_url="https://yourhost.com/path/to/api",
|
|
291
294
|
)
|
|
@@ -319,10 +322,10 @@ class AsyncDataSourcesClient:
|
|
|
319
322
|
|
|
320
323
|
- request: DataSourceCreate.
|
|
321
324
|
---
|
|
322
|
-
from
|
|
323
|
-
from
|
|
325
|
+
from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
|
|
326
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
324
327
|
|
|
325
|
-
client =
|
|
328
|
+
client = AsyncLlamaCloud(
|
|
326
329
|
token="YOUR_TOKEN",
|
|
327
330
|
base_url="https://yourhost.com/path/to/api",
|
|
328
331
|
)
|
|
@@ -363,10 +366,10 @@ class AsyncDataSourcesClient:
|
|
|
363
366
|
|
|
364
367
|
- request: DataSourceCreate.
|
|
365
368
|
---
|
|
366
|
-
from
|
|
367
|
-
from
|
|
369
|
+
from llama_cloud import ConfigurableDataSourceNames, DataSourceCreate
|
|
370
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
368
371
|
|
|
369
|
-
client =
|
|
372
|
+
client = AsyncLlamaCloud(
|
|
370
373
|
token="YOUR_TOKEN",
|
|
371
374
|
base_url="https://yourhost.com/path/to/api",
|
|
372
375
|
)
|
|
@@ -402,9 +405,9 @@ class AsyncDataSourcesClient:
|
|
|
402
405
|
Parameters:
|
|
403
406
|
- data_source_id: str.
|
|
404
407
|
---
|
|
405
|
-
from
|
|
408
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
406
409
|
|
|
407
|
-
client =
|
|
410
|
+
client = AsyncLlamaCloud(
|
|
408
411
|
token="YOUR_TOKEN",
|
|
409
412
|
base_url="https://yourhost.com/path/to/api",
|
|
410
413
|
)
|
|
@@ -451,10 +454,10 @@ class AsyncDataSourcesClient:
|
|
|
451
454
|
|
|
452
455
|
- component: typing.Optional[DataSourceUpdateComponent].
|
|
453
456
|
---
|
|
454
|
-
from
|
|
455
|
-
from
|
|
457
|
+
from llama_cloud import ConfigurableDataSourceNames
|
|
458
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
456
459
|
|
|
457
|
-
client =
|
|
460
|
+
client = AsyncLlamaCloud(
|
|
458
461
|
token="YOUR_TOKEN",
|
|
459
462
|
base_url="https://yourhost.com/path/to/api",
|
|
460
463
|
)
|
|
@@ -494,9 +497,9 @@ class AsyncDataSourcesClient:
|
|
|
494
497
|
Parameters:
|
|
495
498
|
- data_source_id: str.
|
|
496
499
|
---
|
|
497
|
-
from
|
|
500
|
+
from llama_cloud.client import AsyncLlamaCloud
|
|
498
501
|
|
|
499
|
-
client =
|
|
502
|
+
client = AsyncLlamaCloud(
|
|
500
503
|
token="YOUR_TOKEN",
|
|
501
504
|
base_url="https://yourhost.com/path/to/api",
|
|
502
505
|
)
|