llama-cloud 0.1.6__py3-none-any.whl → 0.1.7a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of llama-cloud might be problematic. Click here for more details.
- llama_cloud/__init__.py +140 -6
- llama_cloud/client.py +15 -0
- llama_cloud/environment.py +1 -1
- llama_cloud/resources/__init__.py +15 -0
- llama_cloud/{types/token.py → resources/chat_apps/__init__.py} +0 -3
- llama_cloud/resources/chat_apps/client.py +620 -0
- llama_cloud/resources/data_sinks/client.py +12 -12
- llama_cloud/resources/data_sources/client.py +14 -14
- llama_cloud/resources/embedding_model_configs/client.py +20 -76
- llama_cloud/resources/evals/client.py +26 -36
- llama_cloud/resources/extraction/client.py +32 -32
- llama_cloud/resources/files/client.py +40 -44
- llama_cloud/resources/jobs/__init__.py +2 -0
- llama_cloud/resources/jobs/client.py +148 -0
- llama_cloud/resources/llama_extract/__init__.py +5 -0
- llama_cloud/resources/llama_extract/client.py +1038 -0
- llama_cloud/resources/llama_extract/types/__init__.py +6 -0
- llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema_value.py +7 -0
- llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema_value.py +7 -0
- llama_cloud/resources/organizations/client.py +66 -70
- llama_cloud/resources/parsing/client.py +448 -428
- llama_cloud/resources/pipelines/client.py +256 -344
- llama_cloud/resources/projects/client.py +34 -60
- llama_cloud/resources/reports/__init__.py +5 -0
- llama_cloud/resources/reports/client.py +1198 -0
- llama_cloud/resources/reports/types/__init__.py +7 -0
- llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py +25 -0
- llama_cloud/resources/retrievers/__init__.py +2 -0
- llama_cloud/resources/retrievers/client.py +654 -0
- llama_cloud/types/__init__.py +128 -6
- llama_cloud/types/{chat_message.py → app_schema_chat_chat_message.py} +3 -3
- llama_cloud/types/azure_open_ai_embedding.py +6 -12
- llama_cloud/types/base_prompt_template.py +2 -6
- llama_cloud/types/bedrock_embedding.py +6 -12
- llama_cloud/types/character_splitter.py +2 -4
- llama_cloud/types/chat_app.py +44 -0
- llama_cloud/types/chat_app_response.py +41 -0
- llama_cloud/types/cloud_az_storage_blob_data_source.py +7 -15
- llama_cloud/types/cloud_box_data_source.py +6 -12
- llama_cloud/types/cloud_confluence_data_source.py +6 -6
- llama_cloud/types/cloud_document.py +1 -3
- llama_cloud/types/cloud_document_create.py +1 -3
- llama_cloud/types/cloud_jira_data_source.py +4 -6
- llama_cloud/types/cloud_notion_page_data_source.py +2 -2
- llama_cloud/types/cloud_one_drive_data_source.py +3 -5
- llama_cloud/types/cloud_postgres_vector_store.py +1 -0
- llama_cloud/types/cloud_s_3_data_source.py +4 -8
- llama_cloud/types/cloud_sharepoint_data_source.py +6 -8
- llama_cloud/types/cloud_slack_data_source.py +6 -6
- llama_cloud/types/code_splitter.py +1 -1
- llama_cloud/types/cohere_embedding.py +3 -7
- llama_cloud/types/composite_retrieval_mode.py +21 -0
- llama_cloud/types/composite_retrieval_result.py +38 -0
- llama_cloud/types/composite_retrieved_text_node.py +42 -0
- llama_cloud/types/data_sink.py +4 -4
- llama_cloud/types/data_sink_component.py +20 -0
- llama_cloud/types/data_source.py +5 -7
- llama_cloud/types/data_source_component.py +28 -0
- llama_cloud/types/data_source_create.py +1 -3
- llama_cloud/types/edit_suggestion.py +39 -0
- llama_cloud/types/embedding_model_config.py +2 -2
- llama_cloud/types/embedding_model_config_update.py +2 -4
- llama_cloud/types/eval_dataset.py +2 -2
- llama_cloud/types/eval_dataset_job_record.py +8 -13
- llama_cloud/types/eval_execution_params_override.py +2 -6
- llama_cloud/types/eval_question.py +2 -2
- llama_cloud/types/extract_agent.py +45 -0
- llama_cloud/types/extract_agent_data_schema_value.py +5 -0
- llama_cloud/types/extract_config.py +40 -0
- llama_cloud/types/extract_job.py +35 -0
- llama_cloud/types/extract_job_create.py +40 -0
- llama_cloud/types/extract_job_create_data_schema_override_value.py +7 -0
- llama_cloud/types/extract_mode.py +17 -0
- llama_cloud/types/extract_resultset.py +46 -0
- llama_cloud/types/extract_resultset_data.py +11 -0
- llama_cloud/types/extract_resultset_data_item_value.py +7 -0
- llama_cloud/types/extract_resultset_data_zero_value.py +7 -0
- llama_cloud/types/extract_resultset_extraction_metadata_value.py +7 -0
- llama_cloud/types/extraction_result.py +2 -2
- llama_cloud/types/extraction_schema.py +3 -5
- llama_cloud/types/file.py +9 -14
- llama_cloud/types/filter_condition.py +9 -1
- llama_cloud/types/filter_operator.py +6 -2
- llama_cloud/types/gemini_embedding.py +6 -10
- llama_cloud/types/hugging_face_inference_api_embedding.py +11 -27
- llama_cloud/types/hugging_face_inference_api_embedding_token.py +5 -0
- llama_cloud/types/image_block.py +35 -0
- llama_cloud/types/input_message.py +2 -4
- llama_cloud/types/job_names.py +89 -0
- llama_cloud/types/job_record.py +57 -0
- llama_cloud/types/job_record_with_usage_metrics.py +36 -0
- llama_cloud/types/llama_index_core_base_llms_types_chat_message.py +39 -0
- llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +33 -0
- llama_cloud/types/llama_parse_parameters.py +4 -0
- llama_cloud/types/llm.py +3 -4
- llama_cloud/types/llm_model_data.py +1 -0
- llama_cloud/types/llm_parameters.py +3 -5
- llama_cloud/types/local_eval.py +8 -10
- llama_cloud/types/local_eval_results.py +1 -1
- llama_cloud/types/managed_ingestion_status.py +4 -0
- llama_cloud/types/managed_ingestion_status_response.py +4 -5
- llama_cloud/types/markdown_element_node_parser.py +3 -5
- llama_cloud/types/markdown_node_parser.py +1 -1
- llama_cloud/types/metadata_filter.py +2 -2
- llama_cloud/types/metadata_filter_value.py +5 -0
- llama_cloud/types/metric_result.py +3 -3
- llama_cloud/types/node_parser.py +1 -1
- llama_cloud/types/object_type.py +4 -0
- llama_cloud/types/open_ai_embedding.py +6 -12
- llama_cloud/types/organization.py +7 -2
- llama_cloud/types/page_splitter_node_parser.py +2 -2
- llama_cloud/types/paginated_jobs_history_with_metrics.py +35 -0
- llama_cloud/types/paginated_report_response.py +35 -0
- llama_cloud/types/parse_plan_level.py +21 -0
- llama_cloud/types/permission.py +3 -3
- llama_cloud/types/pipeline.py +7 -17
- llama_cloud/types/pipeline_configuration_hashes.py +3 -3
- llama_cloud/types/pipeline_create.py +8 -16
- llama_cloud/types/pipeline_data_source.py +7 -13
- llama_cloud/types/pipeline_data_source_component.py +28 -0
- llama_cloud/types/pipeline_data_source_create.py +1 -3
- llama_cloud/types/pipeline_deployment.py +4 -4
- llama_cloud/types/pipeline_file.py +13 -24
- llama_cloud/types/pipeline_file_create.py +1 -3
- llama_cloud/types/playground_session.py +4 -4
- llama_cloud/types/preset_retrieval_params.py +8 -14
- llama_cloud/types/presigned_url.py +1 -3
- llama_cloud/types/progress_event.py +44 -0
- llama_cloud/types/progress_event_status.py +33 -0
- llama_cloud/types/project.py +2 -2
- llama_cloud/types/prompt_mixin_prompts.py +1 -1
- llama_cloud/types/prompt_spec.py +3 -5
- llama_cloud/types/related_node_info.py +2 -2
- llama_cloud/types/related_node_info_node_type.py +7 -0
- llama_cloud/types/report.py +33 -0
- llama_cloud/types/report_block.py +34 -0
- llama_cloud/types/report_block_dependency.py +29 -0
- llama_cloud/types/report_create_response.py +31 -0
- llama_cloud/types/report_event_item.py +40 -0
- llama_cloud/types/report_event_item_event_data.py +45 -0
- llama_cloud/types/report_event_type.py +37 -0
- llama_cloud/types/report_metadata.py +39 -0
- llama_cloud/types/report_plan.py +36 -0
- llama_cloud/types/report_plan_block.py +36 -0
- llama_cloud/types/report_query.py +33 -0
- llama_cloud/types/report_response.py +41 -0
- llama_cloud/types/report_state.py +37 -0
- llama_cloud/types/report_state_event.py +38 -0
- llama_cloud/types/report_update_event.py +38 -0
- llama_cloud/types/retrieve_results.py +1 -1
- llama_cloud/types/retriever.py +45 -0
- llama_cloud/types/retriever_create.py +37 -0
- llama_cloud/types/retriever_pipeline.py +37 -0
- llama_cloud/types/role.py +3 -3
- llama_cloud/types/sentence_splitter.py +2 -4
- llama_cloud/types/status_enum.py +4 -0
- llama_cloud/types/supported_llm_model_names.py +4 -0
- llama_cloud/types/text_block.py +31 -0
- llama_cloud/types/text_node.py +15 -8
- llama_cloud/types/token_text_splitter.py +1 -1
- llama_cloud/types/usage_metric_response.py +34 -0
- llama_cloud/types/user_job_record.py +32 -0
- llama_cloud/types/user_organization.py +5 -9
- llama_cloud/types/user_organization_create.py +4 -4
- llama_cloud/types/user_organization_delete.py +2 -2
- llama_cloud/types/user_organization_role.py +2 -2
- llama_cloud/types/vertex_text_embedding.py +5 -9
- {llama_cloud-0.1.6.dist-info → llama_cloud-0.1.7a1.dist-info}/METADATA +2 -1
- llama_cloud-0.1.7a1.dist-info/RECORD +310 -0
- llama_cloud/types/value.py +0 -5
- llama_cloud-0.1.6.dist-info/RECORD +0 -241
- {llama_cloud-0.1.6.dist-info → llama_cloud-0.1.7a1.dist-info}/LICENSE +0 -0
- {llama_cloud-0.1.6.dist-info → llama_cloud-0.1.7a1.dist-info}/WHEEL +0 -0
llama_cloud/__init__.py
CHANGED
|
@@ -12,6 +12,7 @@ from .types import (
|
|
|
12
12
|
AdvancedModeTransformConfigSegmentationConfig_Element,
|
|
13
13
|
AdvancedModeTransformConfigSegmentationConfig_None,
|
|
14
14
|
AdvancedModeTransformConfigSegmentationConfig_Page,
|
|
15
|
+
AppSchemaChatChatMessage,
|
|
15
16
|
AutoTransformConfig,
|
|
16
17
|
AzureOpenAiEmbedding,
|
|
17
18
|
AzureOpenAiEmbeddingConfig,
|
|
@@ -22,8 +23,9 @@ from .types import (
|
|
|
22
23
|
BoxAuthMechanism,
|
|
23
24
|
CharacterChunkingConfig,
|
|
24
25
|
CharacterSplitter,
|
|
26
|
+
ChatApp,
|
|
27
|
+
ChatAppResponse,
|
|
25
28
|
ChatData,
|
|
26
|
-
ChatMessage,
|
|
27
29
|
CloudAzStorageBlobDataSource,
|
|
28
30
|
CloudAzureAiSearchVectorStore,
|
|
29
31
|
CloudBoxDataSource,
|
|
@@ -45,6 +47,9 @@ from .types import (
|
|
|
45
47
|
CodeSplitter,
|
|
46
48
|
CohereEmbedding,
|
|
47
49
|
CohereEmbeddingConfig,
|
|
50
|
+
CompositeRetrievalMode,
|
|
51
|
+
CompositeRetrievalResult,
|
|
52
|
+
CompositeRetrievedTextNode,
|
|
48
53
|
ConfigurableDataSinkNames,
|
|
49
54
|
ConfigurableDataSourceNames,
|
|
50
55
|
ConfigurableTransformationDefinition,
|
|
@@ -52,15 +57,18 @@ from .types import (
|
|
|
52
57
|
ConfiguredTransformationItem,
|
|
53
58
|
ConfiguredTransformationItemComponent,
|
|
54
59
|
DataSink,
|
|
60
|
+
DataSinkComponent,
|
|
55
61
|
DataSinkCreate,
|
|
56
62
|
DataSinkCreateComponent,
|
|
57
63
|
DataSinkDefinition,
|
|
58
64
|
DataSource,
|
|
65
|
+
DataSourceComponent,
|
|
59
66
|
DataSourceCreate,
|
|
60
67
|
DataSourceCreateComponent,
|
|
61
68
|
DataSourceCreateCustomMetadataValue,
|
|
62
69
|
DataSourceCustomMetadataValue,
|
|
63
70
|
DataSourceDefinition,
|
|
71
|
+
EditSuggestion,
|
|
64
72
|
ElementSegmentationConfig,
|
|
65
73
|
EmbeddingModelConfig,
|
|
66
74
|
EmbeddingModelConfigEmbeddingConfig,
|
|
@@ -89,6 +97,18 @@ from .types import (
|
|
|
89
97
|
EvalQuestion,
|
|
90
98
|
EvalQuestionCreate,
|
|
91
99
|
EvalQuestionResult,
|
|
100
|
+
ExtractAgent,
|
|
101
|
+
ExtractAgentDataSchemaValue,
|
|
102
|
+
ExtractConfig,
|
|
103
|
+
ExtractJob,
|
|
104
|
+
ExtractJobCreate,
|
|
105
|
+
ExtractJobCreateDataSchemaOverrideValue,
|
|
106
|
+
ExtractMode,
|
|
107
|
+
ExtractResultset,
|
|
108
|
+
ExtractResultsetData,
|
|
109
|
+
ExtractResultsetDataItemValue,
|
|
110
|
+
ExtractResultsetDataZeroValue,
|
|
111
|
+
ExtractResultsetExtractionMetadataValue,
|
|
92
112
|
ExtractionJob,
|
|
93
113
|
ExtractionResult,
|
|
94
114
|
ExtractionResultDataValue,
|
|
@@ -104,10 +124,19 @@ from .types import (
|
|
|
104
124
|
HttpValidationError,
|
|
105
125
|
HuggingFaceInferenceApiEmbedding,
|
|
106
126
|
HuggingFaceInferenceApiEmbeddingConfig,
|
|
127
|
+
HuggingFaceInferenceApiEmbeddingToken,
|
|
128
|
+
ImageBlock,
|
|
107
129
|
IngestionErrorResponse,
|
|
108
130
|
InputMessage,
|
|
109
131
|
IntervalUsageAndPlan,
|
|
110
132
|
JobNameMapping,
|
|
133
|
+
JobNames,
|
|
134
|
+
JobRecord,
|
|
135
|
+
JobRecordWithUsageMetrics,
|
|
136
|
+
LlamaIndexCoreBaseLlmsTypesChatMessage,
|
|
137
|
+
LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem,
|
|
138
|
+
LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Image,
|
|
139
|
+
LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text,
|
|
111
140
|
LlamaParseParameters,
|
|
112
141
|
LlamaParseSupportedFileExtensions,
|
|
113
142
|
Llm,
|
|
@@ -123,6 +152,7 @@ from .types import (
|
|
|
123
152
|
MessageAnnotation,
|
|
124
153
|
MessageRole,
|
|
125
154
|
MetadataFilter,
|
|
155
|
+
MetadataFilterValue,
|
|
126
156
|
MetadataFilters,
|
|
127
157
|
MetadataFiltersFiltersItem,
|
|
128
158
|
MetricResult,
|
|
@@ -139,7 +169,10 @@ from .types import (
|
|
|
139
169
|
PageScreenshotNodeWithScore,
|
|
140
170
|
PageSegmentationConfig,
|
|
141
171
|
PageSplitterNodeParser,
|
|
172
|
+
PaginatedJobsHistoryWithMetrics,
|
|
142
173
|
PaginatedListPipelineFilesResponse,
|
|
174
|
+
PaginatedReportResponse,
|
|
175
|
+
ParsePlanLevel,
|
|
143
176
|
ParserLanguages,
|
|
144
177
|
ParsingHistoryItem,
|
|
145
178
|
ParsingJob,
|
|
@@ -163,6 +196,7 @@ from .types import (
|
|
|
163
196
|
PipelineCreateEmbeddingConfig_VertexaiEmbedding,
|
|
164
197
|
PipelineCreateTransformConfig,
|
|
165
198
|
PipelineDataSource,
|
|
199
|
+
PipelineDataSourceComponent,
|
|
166
200
|
PipelineDataSourceCreate,
|
|
167
201
|
PipelineDataSourceCustomMetadataValue,
|
|
168
202
|
PipelineDeployment,
|
|
@@ -190,14 +224,38 @@ from .types import (
|
|
|
190
224
|
Pooling,
|
|
191
225
|
PresetRetrievalParams,
|
|
192
226
|
PresignedUrl,
|
|
227
|
+
ProgressEvent,
|
|
228
|
+
ProgressEventStatus,
|
|
193
229
|
Project,
|
|
194
230
|
ProjectCreate,
|
|
195
231
|
PromptMixinPrompts,
|
|
196
232
|
PromptSpec,
|
|
197
233
|
PydanticProgramMode,
|
|
198
234
|
RelatedNodeInfo,
|
|
235
|
+
RelatedNodeInfoNodeType,
|
|
236
|
+
Report,
|
|
237
|
+
ReportBlock,
|
|
238
|
+
ReportBlockDependency,
|
|
239
|
+
ReportCreateResponse,
|
|
240
|
+
ReportEventItem,
|
|
241
|
+
ReportEventItemEventData,
|
|
242
|
+
ReportEventItemEventData_Progress,
|
|
243
|
+
ReportEventItemEventData_ReportBlockUpdate,
|
|
244
|
+
ReportEventItemEventData_ReportStateUpdate,
|
|
245
|
+
ReportEventType,
|
|
246
|
+
ReportMetadata,
|
|
247
|
+
ReportPlan,
|
|
248
|
+
ReportPlanBlock,
|
|
249
|
+
ReportQuery,
|
|
250
|
+
ReportResponse,
|
|
251
|
+
ReportState,
|
|
252
|
+
ReportStateEvent,
|
|
253
|
+
ReportUpdateEvent,
|
|
199
254
|
RetrievalMode,
|
|
200
255
|
RetrieveResults,
|
|
256
|
+
Retriever,
|
|
257
|
+
RetrieverCreate,
|
|
258
|
+
RetrieverPipeline,
|
|
201
259
|
Role,
|
|
202
260
|
SemanticChunkingConfig,
|
|
203
261
|
SentenceChunkingConfig,
|
|
@@ -205,21 +263,22 @@ from .types import (
|
|
|
205
263
|
StatusEnum,
|
|
206
264
|
SupportedLlmModel,
|
|
207
265
|
SupportedLlmModelNames,
|
|
266
|
+
TextBlock,
|
|
208
267
|
TextNode,
|
|
209
268
|
TextNodeRelationshipsValue,
|
|
210
269
|
TextNodeWithScore,
|
|
211
|
-
Token,
|
|
212
270
|
TokenChunkingConfig,
|
|
213
271
|
TokenTextSplitter,
|
|
214
272
|
TransformationCategoryNames,
|
|
215
273
|
Usage,
|
|
274
|
+
UsageMetricResponse,
|
|
275
|
+
UserJobRecord,
|
|
216
276
|
UserOrganization,
|
|
217
277
|
UserOrganizationCreate,
|
|
218
278
|
UserOrganizationDelete,
|
|
219
279
|
UserOrganizationRole,
|
|
220
280
|
ValidationError,
|
|
221
281
|
ValidationErrorLocItem,
|
|
222
|
-
Value,
|
|
223
282
|
VertexAiEmbeddingConfig,
|
|
224
283
|
VertexEmbeddingMode,
|
|
225
284
|
VertexTextEmbedding,
|
|
@@ -237,6 +296,8 @@ from .resources import (
|
|
|
237
296
|
EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding,
|
|
238
297
|
EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding,
|
|
239
298
|
EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding,
|
|
299
|
+
ExtractAgentCreateDataSchemaValue,
|
|
300
|
+
ExtractAgentUpdateDataSchemaValue,
|
|
240
301
|
ExtractionSchemaCreateDataSchemaValue,
|
|
241
302
|
ExtractionSchemaUpdateDataSchemaValue,
|
|
242
303
|
FileCreateFromUrlResourceInfoValue,
|
|
@@ -252,6 +313,8 @@ from .resources import (
|
|
|
252
313
|
PipelineUpdateEmbeddingConfig_OpenaiEmbedding,
|
|
253
314
|
PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
|
|
254
315
|
PipelineUpdateTransformConfig,
|
|
316
|
+
UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction,
|
|
317
|
+
chat_apps,
|
|
255
318
|
component_definitions,
|
|
256
319
|
data_sinks,
|
|
257
320
|
data_sources,
|
|
@@ -259,10 +322,14 @@ from .resources import (
|
|
|
259
322
|
evals,
|
|
260
323
|
extraction,
|
|
261
324
|
files,
|
|
325
|
+
jobs,
|
|
326
|
+
llama_extract,
|
|
262
327
|
organizations,
|
|
263
328
|
parsing,
|
|
264
329
|
pipelines,
|
|
265
330
|
projects,
|
|
331
|
+
reports,
|
|
332
|
+
retrievers,
|
|
266
333
|
)
|
|
267
334
|
from .environment import LlamaCloudEnvironment
|
|
268
335
|
|
|
@@ -278,6 +345,7 @@ __all__ = [
|
|
|
278
345
|
"AdvancedModeTransformConfigSegmentationConfig_Element",
|
|
279
346
|
"AdvancedModeTransformConfigSegmentationConfig_None",
|
|
280
347
|
"AdvancedModeTransformConfigSegmentationConfig_Page",
|
|
348
|
+
"AppSchemaChatChatMessage",
|
|
281
349
|
"AutoTransformConfig",
|
|
282
350
|
"AzureOpenAiEmbedding",
|
|
283
351
|
"AzureOpenAiEmbeddingConfig",
|
|
@@ -288,8 +356,9 @@ __all__ = [
|
|
|
288
356
|
"BoxAuthMechanism",
|
|
289
357
|
"CharacterChunkingConfig",
|
|
290
358
|
"CharacterSplitter",
|
|
359
|
+
"ChatApp",
|
|
360
|
+
"ChatAppResponse",
|
|
291
361
|
"ChatData",
|
|
292
|
-
"ChatMessage",
|
|
293
362
|
"CloudAzStorageBlobDataSource",
|
|
294
363
|
"CloudAzureAiSearchVectorStore",
|
|
295
364
|
"CloudBoxDataSource",
|
|
@@ -311,6 +380,9 @@ __all__ = [
|
|
|
311
380
|
"CodeSplitter",
|
|
312
381
|
"CohereEmbedding",
|
|
313
382
|
"CohereEmbeddingConfig",
|
|
383
|
+
"CompositeRetrievalMode",
|
|
384
|
+
"CompositeRetrievalResult",
|
|
385
|
+
"CompositeRetrievedTextNode",
|
|
314
386
|
"ConfigurableDataSinkNames",
|
|
315
387
|
"ConfigurableDataSourceNames",
|
|
316
388
|
"ConfigurableTransformationDefinition",
|
|
@@ -318,11 +390,13 @@ __all__ = [
|
|
|
318
390
|
"ConfiguredTransformationItem",
|
|
319
391
|
"ConfiguredTransformationItemComponent",
|
|
320
392
|
"DataSink",
|
|
393
|
+
"DataSinkComponent",
|
|
321
394
|
"DataSinkCreate",
|
|
322
395
|
"DataSinkCreateComponent",
|
|
323
396
|
"DataSinkDefinition",
|
|
324
397
|
"DataSinkUpdateComponent",
|
|
325
398
|
"DataSource",
|
|
399
|
+
"DataSourceComponent",
|
|
326
400
|
"DataSourceCreate",
|
|
327
401
|
"DataSourceCreateComponent",
|
|
328
402
|
"DataSourceCreateCustomMetadataValue",
|
|
@@ -330,6 +404,7 @@ __all__ = [
|
|
|
330
404
|
"DataSourceDefinition",
|
|
331
405
|
"DataSourceUpdateComponent",
|
|
332
406
|
"DataSourceUpdateCustomMetadataValue",
|
|
407
|
+
"EditSuggestion",
|
|
333
408
|
"ElementSegmentationConfig",
|
|
334
409
|
"EmbeddingModelConfig",
|
|
335
410
|
"EmbeddingModelConfigCreateEmbeddingConfig",
|
|
@@ -366,6 +441,20 @@ __all__ = [
|
|
|
366
441
|
"EvalQuestion",
|
|
367
442
|
"EvalQuestionCreate",
|
|
368
443
|
"EvalQuestionResult",
|
|
444
|
+
"ExtractAgent",
|
|
445
|
+
"ExtractAgentCreateDataSchemaValue",
|
|
446
|
+
"ExtractAgentDataSchemaValue",
|
|
447
|
+
"ExtractAgentUpdateDataSchemaValue",
|
|
448
|
+
"ExtractConfig",
|
|
449
|
+
"ExtractJob",
|
|
450
|
+
"ExtractJobCreate",
|
|
451
|
+
"ExtractJobCreateDataSchemaOverrideValue",
|
|
452
|
+
"ExtractMode",
|
|
453
|
+
"ExtractResultset",
|
|
454
|
+
"ExtractResultsetData",
|
|
455
|
+
"ExtractResultsetDataItemValue",
|
|
456
|
+
"ExtractResultsetDataZeroValue",
|
|
457
|
+
"ExtractResultsetExtractionMetadataValue",
|
|
369
458
|
"ExtractionJob",
|
|
370
459
|
"ExtractionResult",
|
|
371
460
|
"ExtractionResultDataValue",
|
|
@@ -386,11 +475,20 @@ __all__ = [
|
|
|
386
475
|
"HttpValidationError",
|
|
387
476
|
"HuggingFaceInferenceApiEmbedding",
|
|
388
477
|
"HuggingFaceInferenceApiEmbeddingConfig",
|
|
478
|
+
"HuggingFaceInferenceApiEmbeddingToken",
|
|
479
|
+
"ImageBlock",
|
|
389
480
|
"IngestionErrorResponse",
|
|
390
481
|
"InputMessage",
|
|
391
482
|
"IntervalUsageAndPlan",
|
|
392
483
|
"JobNameMapping",
|
|
484
|
+
"JobNames",
|
|
485
|
+
"JobRecord",
|
|
486
|
+
"JobRecordWithUsageMetrics",
|
|
393
487
|
"LlamaCloudEnvironment",
|
|
488
|
+
"LlamaIndexCoreBaseLlmsTypesChatMessage",
|
|
489
|
+
"LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem",
|
|
490
|
+
"LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Image",
|
|
491
|
+
"LlamaIndexCoreBaseLlmsTypesChatMessageBlocksItem_Text",
|
|
394
492
|
"LlamaParseParameters",
|
|
395
493
|
"LlamaParseSupportedFileExtensions",
|
|
396
494
|
"Llm",
|
|
@@ -406,6 +504,7 @@ __all__ = [
|
|
|
406
504
|
"MessageAnnotation",
|
|
407
505
|
"MessageRole",
|
|
408
506
|
"MetadataFilter",
|
|
507
|
+
"MetadataFilterValue",
|
|
409
508
|
"MetadataFilters",
|
|
410
509
|
"MetadataFiltersFiltersItem",
|
|
411
510
|
"MetricResult",
|
|
@@ -422,7 +521,10 @@ __all__ = [
|
|
|
422
521
|
"PageScreenshotNodeWithScore",
|
|
423
522
|
"PageSegmentationConfig",
|
|
424
523
|
"PageSplitterNodeParser",
|
|
524
|
+
"PaginatedJobsHistoryWithMetrics",
|
|
425
525
|
"PaginatedListPipelineFilesResponse",
|
|
526
|
+
"PaginatedReportResponse",
|
|
527
|
+
"ParsePlanLevel",
|
|
426
528
|
"ParserLanguages",
|
|
427
529
|
"ParsingHistoryItem",
|
|
428
530
|
"ParsingJob",
|
|
@@ -446,6 +548,7 @@ __all__ = [
|
|
|
446
548
|
"PipelineCreateEmbeddingConfig_VertexaiEmbedding",
|
|
447
549
|
"PipelineCreateTransformConfig",
|
|
448
550
|
"PipelineDataSource",
|
|
551
|
+
"PipelineDataSourceComponent",
|
|
449
552
|
"PipelineDataSourceCreate",
|
|
450
553
|
"PipelineDataSourceCustomMetadataValue",
|
|
451
554
|
"PipelineDeployment",
|
|
@@ -483,14 +586,38 @@ __all__ = [
|
|
|
483
586
|
"Pooling",
|
|
484
587
|
"PresetRetrievalParams",
|
|
485
588
|
"PresignedUrl",
|
|
589
|
+
"ProgressEvent",
|
|
590
|
+
"ProgressEventStatus",
|
|
486
591
|
"Project",
|
|
487
592
|
"ProjectCreate",
|
|
488
593
|
"PromptMixinPrompts",
|
|
489
594
|
"PromptSpec",
|
|
490
595
|
"PydanticProgramMode",
|
|
491
596
|
"RelatedNodeInfo",
|
|
597
|
+
"RelatedNodeInfoNodeType",
|
|
598
|
+
"Report",
|
|
599
|
+
"ReportBlock",
|
|
600
|
+
"ReportBlockDependency",
|
|
601
|
+
"ReportCreateResponse",
|
|
602
|
+
"ReportEventItem",
|
|
603
|
+
"ReportEventItemEventData",
|
|
604
|
+
"ReportEventItemEventData_Progress",
|
|
605
|
+
"ReportEventItemEventData_ReportBlockUpdate",
|
|
606
|
+
"ReportEventItemEventData_ReportStateUpdate",
|
|
607
|
+
"ReportEventType",
|
|
608
|
+
"ReportMetadata",
|
|
609
|
+
"ReportPlan",
|
|
610
|
+
"ReportPlanBlock",
|
|
611
|
+
"ReportQuery",
|
|
612
|
+
"ReportResponse",
|
|
613
|
+
"ReportState",
|
|
614
|
+
"ReportStateEvent",
|
|
615
|
+
"ReportUpdateEvent",
|
|
492
616
|
"RetrievalMode",
|
|
493
617
|
"RetrieveResults",
|
|
618
|
+
"Retriever",
|
|
619
|
+
"RetrieverCreate",
|
|
620
|
+
"RetrieverPipeline",
|
|
494
621
|
"Role",
|
|
495
622
|
"SemanticChunkingConfig",
|
|
496
623
|
"SentenceChunkingConfig",
|
|
@@ -498,25 +625,28 @@ __all__ = [
|
|
|
498
625
|
"StatusEnum",
|
|
499
626
|
"SupportedLlmModel",
|
|
500
627
|
"SupportedLlmModelNames",
|
|
628
|
+
"TextBlock",
|
|
501
629
|
"TextNode",
|
|
502
630
|
"TextNodeRelationshipsValue",
|
|
503
631
|
"TextNodeWithScore",
|
|
504
|
-
"Token",
|
|
505
632
|
"TokenChunkingConfig",
|
|
506
633
|
"TokenTextSplitter",
|
|
507
634
|
"TransformationCategoryNames",
|
|
508
635
|
"UnprocessableEntityError",
|
|
636
|
+
"UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
|
|
509
637
|
"Usage",
|
|
638
|
+
"UsageMetricResponse",
|
|
639
|
+
"UserJobRecord",
|
|
510
640
|
"UserOrganization",
|
|
511
641
|
"UserOrganizationCreate",
|
|
512
642
|
"UserOrganizationDelete",
|
|
513
643
|
"UserOrganizationRole",
|
|
514
644
|
"ValidationError",
|
|
515
645
|
"ValidationErrorLocItem",
|
|
516
|
-
"Value",
|
|
517
646
|
"VertexAiEmbeddingConfig",
|
|
518
647
|
"VertexEmbeddingMode",
|
|
519
648
|
"VertexTextEmbedding",
|
|
649
|
+
"chat_apps",
|
|
520
650
|
"component_definitions",
|
|
521
651
|
"data_sinks",
|
|
522
652
|
"data_sources",
|
|
@@ -524,8 +654,12 @@ __all__ = [
|
|
|
524
654
|
"evals",
|
|
525
655
|
"extraction",
|
|
526
656
|
"files",
|
|
657
|
+
"jobs",
|
|
658
|
+
"llama_extract",
|
|
527
659
|
"organizations",
|
|
528
660
|
"parsing",
|
|
529
661
|
"pipelines",
|
|
530
662
|
"projects",
|
|
663
|
+
"reports",
|
|
664
|
+
"retrievers",
|
|
531
665
|
]
|
llama_cloud/client.py
CHANGED
|
@@ -6,6 +6,7 @@ import httpx
|
|
|
6
6
|
|
|
7
7
|
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
8
8
|
from .environment import LlamaCloudEnvironment
|
|
9
|
+
from .resources.chat_apps.client import AsyncChatAppsClient, ChatAppsClient
|
|
9
10
|
from .resources.component_definitions.client import AsyncComponentDefinitionsClient, ComponentDefinitionsClient
|
|
10
11
|
from .resources.data_sinks.client import AsyncDataSinksClient, DataSinksClient
|
|
11
12
|
from .resources.data_sources.client import AsyncDataSourcesClient, DataSourcesClient
|
|
@@ -13,10 +14,14 @@ from .resources.embedding_model_configs.client import AsyncEmbeddingModelConfigs
|
|
|
13
14
|
from .resources.evals.client import AsyncEvalsClient, EvalsClient
|
|
14
15
|
from .resources.extraction.client import AsyncExtractionClient, ExtractionClient
|
|
15
16
|
from .resources.files.client import AsyncFilesClient, FilesClient
|
|
17
|
+
from .resources.jobs.client import AsyncJobsClient, JobsClient
|
|
18
|
+
from .resources.llama_extract.client import AsyncLlamaExtractClient, LlamaExtractClient
|
|
16
19
|
from .resources.organizations.client import AsyncOrganizationsClient, OrganizationsClient
|
|
17
20
|
from .resources.parsing.client import AsyncParsingClient, ParsingClient
|
|
18
21
|
from .resources.pipelines.client import AsyncPipelinesClient, PipelinesClient
|
|
19
22
|
from .resources.projects.client import AsyncProjectsClient, ProjectsClient
|
|
23
|
+
from .resources.reports.client import AsyncReportsClient, ReportsClient
|
|
24
|
+
from .resources.retrievers.client import AsyncRetrieversClient, RetrieversClient
|
|
20
25
|
|
|
21
26
|
|
|
22
27
|
class LlamaCloud:
|
|
@@ -41,10 +46,15 @@ class LlamaCloud:
|
|
|
41
46
|
self.projects = ProjectsClient(client_wrapper=self._client_wrapper)
|
|
42
47
|
self.files = FilesClient(client_wrapper=self._client_wrapper)
|
|
43
48
|
self.pipelines = PipelinesClient(client_wrapper=self._client_wrapper)
|
|
49
|
+
self.retrievers = RetrieversClient(client_wrapper=self._client_wrapper)
|
|
50
|
+
self.jobs = JobsClient(client_wrapper=self._client_wrapper)
|
|
44
51
|
self.evals = EvalsClient(client_wrapper=self._client_wrapper)
|
|
45
52
|
self.parsing = ParsingClient(client_wrapper=self._client_wrapper)
|
|
46
53
|
self.component_definitions = ComponentDefinitionsClient(client_wrapper=self._client_wrapper)
|
|
54
|
+
self.chat_apps = ChatAppsClient(client_wrapper=self._client_wrapper)
|
|
47
55
|
self.extraction = ExtractionClient(client_wrapper=self._client_wrapper)
|
|
56
|
+
self.llama_extract = LlamaExtractClient(client_wrapper=self._client_wrapper)
|
|
57
|
+
self.reports = ReportsClient(client_wrapper=self._client_wrapper)
|
|
48
58
|
|
|
49
59
|
|
|
50
60
|
class AsyncLlamaCloud:
|
|
@@ -69,10 +79,15 @@ class AsyncLlamaCloud:
|
|
|
69
79
|
self.projects = AsyncProjectsClient(client_wrapper=self._client_wrapper)
|
|
70
80
|
self.files = AsyncFilesClient(client_wrapper=self._client_wrapper)
|
|
71
81
|
self.pipelines = AsyncPipelinesClient(client_wrapper=self._client_wrapper)
|
|
82
|
+
self.retrievers = AsyncRetrieversClient(client_wrapper=self._client_wrapper)
|
|
83
|
+
self.jobs = AsyncJobsClient(client_wrapper=self._client_wrapper)
|
|
72
84
|
self.evals = AsyncEvalsClient(client_wrapper=self._client_wrapper)
|
|
73
85
|
self.parsing = AsyncParsingClient(client_wrapper=self._client_wrapper)
|
|
74
86
|
self.component_definitions = AsyncComponentDefinitionsClient(client_wrapper=self._client_wrapper)
|
|
87
|
+
self.chat_apps = AsyncChatAppsClient(client_wrapper=self._client_wrapper)
|
|
75
88
|
self.extraction = AsyncExtractionClient(client_wrapper=self._client_wrapper)
|
|
89
|
+
self.llama_extract = AsyncLlamaExtractClient(client_wrapper=self._client_wrapper)
|
|
90
|
+
self.reports = AsyncReportsClient(client_wrapper=self._client_wrapper)
|
|
76
91
|
|
|
77
92
|
|
|
78
93
|
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: LlamaCloudEnvironment) -> str:
|
llama_cloud/environment.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from . import (
|
|
4
|
+
chat_apps,
|
|
4
5
|
component_definitions,
|
|
5
6
|
data_sinks,
|
|
6
7
|
data_sources,
|
|
@@ -8,10 +9,14 @@ from . import (
|
|
|
8
9
|
evals,
|
|
9
10
|
extraction,
|
|
10
11
|
files,
|
|
12
|
+
jobs,
|
|
13
|
+
llama_extract,
|
|
11
14
|
organizations,
|
|
12
15
|
parsing,
|
|
13
16
|
pipelines,
|
|
14
17
|
projects,
|
|
18
|
+
reports,
|
|
19
|
+
retrievers,
|
|
15
20
|
)
|
|
16
21
|
from .data_sinks import DataSinkUpdateComponent
|
|
17
22
|
from .data_sources import DataSourceUpdateComponent, DataSourceUpdateCustomMetadataValue
|
|
@@ -27,6 +32,7 @@ from .embedding_model_configs import (
|
|
|
27
32
|
)
|
|
28
33
|
from .extraction import ExtractionSchemaCreateDataSchemaValue, ExtractionSchemaUpdateDataSchemaValue
|
|
29
34
|
from .files import FileCreateFromUrlResourceInfoValue, FileCreatePermissionInfoValue, FileCreateResourceInfoValue
|
|
35
|
+
from .llama_extract import ExtractAgentCreateDataSchemaValue, ExtractAgentUpdateDataSchemaValue
|
|
30
36
|
from .pipelines import (
|
|
31
37
|
PipelineFileUpdateCustomMetadataValue,
|
|
32
38
|
PipelineUpdateEmbeddingConfig,
|
|
@@ -39,6 +45,7 @@ from .pipelines import (
|
|
|
39
45
|
PipelineUpdateEmbeddingConfig_VertexaiEmbedding,
|
|
40
46
|
PipelineUpdateTransformConfig,
|
|
41
47
|
)
|
|
48
|
+
from .reports import UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction
|
|
42
49
|
|
|
43
50
|
__all__ = [
|
|
44
51
|
"DataSinkUpdateComponent",
|
|
@@ -52,6 +59,8 @@ __all__ = [
|
|
|
52
59
|
"EmbeddingModelConfigCreateEmbeddingConfig_HuggingfaceApiEmbedding",
|
|
53
60
|
"EmbeddingModelConfigCreateEmbeddingConfig_OpenaiEmbedding",
|
|
54
61
|
"EmbeddingModelConfigCreateEmbeddingConfig_VertexaiEmbedding",
|
|
62
|
+
"ExtractAgentCreateDataSchemaValue",
|
|
63
|
+
"ExtractAgentUpdateDataSchemaValue",
|
|
55
64
|
"ExtractionSchemaCreateDataSchemaValue",
|
|
56
65
|
"ExtractionSchemaUpdateDataSchemaValue",
|
|
57
66
|
"FileCreateFromUrlResourceInfoValue",
|
|
@@ -67,6 +76,8 @@ __all__ = [
|
|
|
67
76
|
"PipelineUpdateEmbeddingConfig_OpenaiEmbedding",
|
|
68
77
|
"PipelineUpdateEmbeddingConfig_VertexaiEmbedding",
|
|
69
78
|
"PipelineUpdateTransformConfig",
|
|
79
|
+
"UpdateReportPlanApiV1ReportsReportIdPlanPatchRequestAction",
|
|
80
|
+
"chat_apps",
|
|
70
81
|
"component_definitions",
|
|
71
82
|
"data_sinks",
|
|
72
83
|
"data_sources",
|
|
@@ -74,8 +85,12 @@ __all__ = [
|
|
|
74
85
|
"evals",
|
|
75
86
|
"extraction",
|
|
76
87
|
"files",
|
|
88
|
+
"jobs",
|
|
89
|
+
"llama_extract",
|
|
77
90
|
"organizations",
|
|
78
91
|
"parsing",
|
|
79
92
|
"pipelines",
|
|
80
93
|
"projects",
|
|
94
|
+
"reports",
|
|
95
|
+
"retrievers",
|
|
81
96
|
]
|