llama-cloud 0.1.20__py3-none-any.whl → 0.1.22__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 (55) hide show
  1. llama_cloud/__init__.py +18 -136
  2. llama_cloud/client.py +3 -3
  3. llama_cloud/resources/__init__.py +4 -43
  4. llama_cloud/resources/admin/client.py +78 -0
  5. llama_cloud/resources/data_sinks/__init__.py +2 -18
  6. llama_cloud/resources/data_sinks/client.py +94 -2
  7. llama_cloud/resources/data_sinks/types/__init__.py +2 -18
  8. llama_cloud/resources/data_sinks/types/data_sink_update_component.py +7 -65
  9. llama_cloud/resources/data_sources/__init__.py +2 -30
  10. llama_cloud/resources/data_sources/types/__init__.py +1 -28
  11. llama_cloud/resources/data_sources/types/data_source_update_component.py +23 -2
  12. llama_cloud/resources/jobs/client.py +10 -2
  13. llama_cloud/resources/llama_extract/client.py +50 -6
  14. llama_cloud/resources/organizations/client.py +12 -2
  15. llama_cloud/resources/parsing/client.py +30 -0
  16. llama_cloud/resources/pipelines/client.py +22 -0
  17. llama_cloud/resources/retrievers/client.py +14 -0
  18. llama_cloud/types/__init__.py +18 -112
  19. llama_cloud/types/cloud_jira_data_source.py +4 -0
  20. llama_cloud/types/cloud_s_3_data_source.py +1 -0
  21. llama_cloud/types/data_sink_component.py +7 -65
  22. llama_cloud/types/data_sink_create_component.py +7 -65
  23. llama_cloud/types/data_source_component.py +23 -2
  24. llama_cloud/types/data_source_create_component.py +23 -2
  25. llama_cloud/types/{data_sink_definition.py → document_block.py} +6 -15
  26. llama_cloud/types/document_chunk_mode.py +17 -0
  27. llama_cloud/types/extract_config.py +7 -0
  28. llama_cloud/types/extract_mode.py +4 -0
  29. llama_cloud/types/extract_models.py +33 -0
  30. llama_cloud/types/llama_index_core_base_llms_types_chat_message_blocks_item.py +11 -0
  31. llama_cloud/types/{data_source_definition.py → llm_config_result.py} +6 -15
  32. llama_cloud/types/llm_config_result_llm_type.py +33 -0
  33. llama_cloud/types/llm_configs_response.py +33 -0
  34. llama_cloud/types/pipeline.py +2 -0
  35. llama_cloud/types/pipeline_create.py +1 -3
  36. llama_cloud/types/pipeline_data_source_component.py +23 -2
  37. llama_cloud/types/pipeline_status.py +17 -0
  38. llama_cloud/types/prompt_conf.py +1 -0
  39. llama_cloud/types/struct_parse_conf.py +2 -1
  40. llama_cloud/types/supported_llm_model.py +1 -2
  41. llama_cloud/types/supported_llm_model_names.py +4 -4
  42. llama_cloud/types/user_organization_role.py +1 -0
  43. {llama_cloud-0.1.20.dist-info → llama_cloud-0.1.22.dist-info}/METADATA +5 -3
  44. {llama_cloud-0.1.20.dist-info → llama_cloud-0.1.22.dist-info}/RECORD +47 -49
  45. {llama_cloud-0.1.20.dist-info → llama_cloud-0.1.22.dist-info}/WHEEL +1 -1
  46. llama_cloud/resources/component_definitions/client.py +0 -189
  47. llama_cloud/resources/data_sources/types/data_source_update_component_one.py +0 -122
  48. llama_cloud/types/configurable_transformation_definition.py +0 -48
  49. llama_cloud/types/configurable_transformation_names.py +0 -41
  50. llama_cloud/types/data_source_component_one.py +0 -122
  51. llama_cloud/types/data_source_create_component_one.py +0 -122
  52. llama_cloud/types/pipeline_data_source_component_one.py +0 -122
  53. llama_cloud/types/transformation_category_names.py +0 -17
  54. /llama_cloud/resources/{component_definitions → admin}/__init__.py +0 -0
  55. {llama_cloud-0.1.20.dist-info → llama_cloud-0.1.22.dist-info}/LICENSE +0 -0
@@ -1,122 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from __future__ import annotations
4
-
5
- import typing
6
-
7
- import typing_extensions
8
-
9
- from .cloud_az_storage_blob_data_source import CloudAzStorageBlobDataSource
10
- from .cloud_box_data_source import CloudBoxDataSource
11
- from .cloud_confluence_data_source import CloudConfluenceDataSource
12
- from .cloud_google_drive_data_source import CloudGoogleDriveDataSource
13
- from .cloud_jira_data_source import CloudJiraDataSource
14
- from .cloud_notion_page_data_source import CloudNotionPageDataSource
15
- from .cloud_one_drive_data_source import CloudOneDriveDataSource
16
- from .cloud_s_3_data_source import CloudS3DataSource
17
- from .cloud_sharepoint_data_source import CloudSharepointDataSource
18
- from .cloud_slack_data_source import CloudSlackDataSource
19
-
20
-
21
- class PipelineDataSourceComponentOne_AzureStorageBlob(CloudAzStorageBlobDataSource):
22
- type: typing_extensions.Literal["AZURE_STORAGE_BLOB"]
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- allow_population_by_field_name = True
28
-
29
-
30
- class PipelineDataSourceComponentOne_Box(CloudBoxDataSource):
31
- type: typing_extensions.Literal["BOX"]
32
-
33
- class Config:
34
- frozen = True
35
- smart_union = True
36
- allow_population_by_field_name = True
37
-
38
-
39
- class PipelineDataSourceComponentOne_Confluence(CloudConfluenceDataSource):
40
- type: typing_extensions.Literal["CONFLUENCE"]
41
-
42
- class Config:
43
- frozen = True
44
- smart_union = True
45
- allow_population_by_field_name = True
46
-
47
-
48
- class PipelineDataSourceComponentOne_GoogleDrive(CloudGoogleDriveDataSource):
49
- type: typing_extensions.Literal["GOOGLE_DRIVE"]
50
-
51
- class Config:
52
- frozen = True
53
- smart_union = True
54
- allow_population_by_field_name = True
55
-
56
-
57
- class PipelineDataSourceComponentOne_Jira(CloudJiraDataSource):
58
- type: typing_extensions.Literal["JIRA"]
59
-
60
- class Config:
61
- frozen = True
62
- smart_union = True
63
- allow_population_by_field_name = True
64
-
65
-
66
- class PipelineDataSourceComponentOne_MicrosoftOnedrive(CloudOneDriveDataSource):
67
- type: typing_extensions.Literal["MICROSOFT_ONEDRIVE"]
68
-
69
- class Config:
70
- frozen = True
71
- smart_union = True
72
- allow_population_by_field_name = True
73
-
74
-
75
- class PipelineDataSourceComponentOne_MicrosoftSharepoint(CloudSharepointDataSource):
76
- type: typing_extensions.Literal["MICROSOFT_SHAREPOINT"]
77
-
78
- class Config:
79
- frozen = True
80
- smart_union = True
81
- allow_population_by_field_name = True
82
-
83
-
84
- class PipelineDataSourceComponentOne_NotionPage(CloudNotionPageDataSource):
85
- type: typing_extensions.Literal["NOTION_PAGE"]
86
-
87
- class Config:
88
- frozen = True
89
- smart_union = True
90
- allow_population_by_field_name = True
91
-
92
-
93
- class PipelineDataSourceComponentOne_S3(CloudS3DataSource):
94
- type: typing_extensions.Literal["S3"]
95
-
96
- class Config:
97
- frozen = True
98
- smart_union = True
99
- allow_population_by_field_name = True
100
-
101
-
102
- class PipelineDataSourceComponentOne_Slack(CloudSlackDataSource):
103
- type: typing_extensions.Literal["SLACK"]
104
-
105
- class Config:
106
- frozen = True
107
- smart_union = True
108
- allow_population_by_field_name = True
109
-
110
-
111
- PipelineDataSourceComponentOne = typing.Union[
112
- PipelineDataSourceComponentOne_AzureStorageBlob,
113
- PipelineDataSourceComponentOne_Box,
114
- PipelineDataSourceComponentOne_Confluence,
115
- PipelineDataSourceComponentOne_GoogleDrive,
116
- PipelineDataSourceComponentOne_Jira,
117
- PipelineDataSourceComponentOne_MicrosoftOnedrive,
118
- PipelineDataSourceComponentOne_MicrosoftSharepoint,
119
- PipelineDataSourceComponentOne_NotionPage,
120
- PipelineDataSourceComponentOne_S3,
121
- PipelineDataSourceComponentOne_Slack,
122
- ]
@@ -1,17 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import enum
4
- import typing
5
-
6
- T_Result = typing.TypeVar("T_Result")
7
-
8
-
9
- class TransformationCategoryNames(str, enum.Enum):
10
- NODE_PARSER = "NODE_PARSER"
11
- EMBEDDING = "EMBEDDING"
12
-
13
- def visit(self, node_parser: typing.Callable[[], T_Result], embedding: typing.Callable[[], T_Result]) -> T_Result:
14
- if self is TransformationCategoryNames.NODE_PARSER:
15
- return node_parser()
16
- if self is TransformationCategoryNames.EMBEDDING:
17
- return embedding()