llama-cloud 0.1.33__py3-none-any.whl → 0.1.34__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 CHANGED
@@ -75,6 +75,7 @@ from .types import (
75
75
  DataSourceCreateComponent,
76
76
  DataSourceCreateCustomMetadataValue,
77
77
  DataSourceCustomMetadataValue,
78
+ DataSourceReaderVersionMetadata,
78
79
  DataSourceUpdateDispatcherConfig,
79
80
  DeleteParams,
80
81
  DocumentBlock,
@@ -477,6 +478,7 @@ __all__ = [
477
478
  "DataSourceCreateComponent",
478
479
  "DataSourceCreateCustomMetadataValue",
479
480
  "DataSourceCustomMetadataValue",
481
+ "DataSourceReaderVersionMetadata",
480
482
  "DataSourceUpdateComponent",
481
483
  "DataSourceUpdateCustomMetadataValue",
482
484
  "DataSourceUpdateDispatcherConfig",
@@ -298,13 +298,13 @@ class OrganizationsClient:
298
298
  raise ApiError(status_code=_response.status_code, body=_response_json)
299
299
 
300
300
  def get_organization_usage(
301
- self, organization_id: typing.Optional[str], *, get_current_invoice_total: typing.Optional[bool] = None
301
+ self, organization_id: str, *, get_current_invoice_total: typing.Optional[bool] = None
302
302
  ) -> UsageAndPlan:
303
303
  """
304
304
  Get usage for a specific organization.
305
305
 
306
306
  Parameters:
307
- - organization_id: typing.Optional[str].
307
+ - organization_id: str.
308
308
 
309
309
  - get_current_invoice_total: typing.Optional[bool].
310
310
  ---
@@ -313,7 +313,9 @@ class OrganizationsClient:
313
313
  client = LlamaCloud(
314
314
  token="YOUR_TOKEN",
315
315
  )
316
- client.organizations.get_organization_usage()
316
+ client.organizations.get_organization_usage(
317
+ organization_id="string",
318
+ )
317
319
  """
318
320
  _response = self._client_wrapper.httpx_client.request(
319
321
  "GET",
@@ -1004,13 +1006,13 @@ class AsyncOrganizationsClient:
1004
1006
  raise ApiError(status_code=_response.status_code, body=_response_json)
1005
1007
 
1006
1008
  async def get_organization_usage(
1007
- self, organization_id: typing.Optional[str], *, get_current_invoice_total: typing.Optional[bool] = None
1009
+ self, organization_id: str, *, get_current_invoice_total: typing.Optional[bool] = None
1008
1010
  ) -> UsageAndPlan:
1009
1011
  """
1010
1012
  Get usage for a specific organization.
1011
1013
 
1012
1014
  Parameters:
1013
- - organization_id: typing.Optional[str].
1015
+ - organization_id: str.
1014
1016
 
1015
1017
  - get_current_invoice_total: typing.Optional[bool].
1016
1018
  ---
@@ -1019,7 +1021,9 @@ class AsyncOrganizationsClient:
1019
1021
  client = AsyncLlamaCloud(
1020
1022
  token="YOUR_TOKEN",
1021
1023
  )
1022
- await client.organizations.get_organization_usage()
1024
+ await client.organizations.get_organization_usage(
1025
+ organization_id="string",
1026
+ )
1023
1027
  """
1024
1028
  _response = await self._client_wrapper.httpx_client.request(
1025
1029
  "GET",
@@ -78,6 +78,7 @@ from .data_source_create import DataSourceCreate
78
78
  from .data_source_create_component import DataSourceCreateComponent
79
79
  from .data_source_create_custom_metadata_value import DataSourceCreateCustomMetadataValue
80
80
  from .data_source_custom_metadata_value import DataSourceCustomMetadataValue
81
+ from .data_source_reader_version_metadata import DataSourceReaderVersionMetadata
81
82
  from .data_source_update_dispatcher_config import DataSourceUpdateDispatcherConfig
82
83
  from .delete_params import DeleteParams
83
84
  from .document_block import DocumentBlock
@@ -440,6 +441,7 @@ __all__ = [
440
441
  "DataSourceCreateComponent",
441
442
  "DataSourceCreateCustomMetadataValue",
442
443
  "DataSourceCustomMetadataValue",
444
+ "DataSourceReaderVersionMetadata",
443
445
  "DataSourceUpdateDispatcherConfig",
444
446
  "DeleteParams",
445
447
  "DocumentBlock",
@@ -7,6 +7,7 @@ from ..core.datetime_utils import serialize_datetime
7
7
  from .configurable_data_source_names import ConfigurableDataSourceNames
8
8
  from .data_source_component import DataSourceComponent
9
9
  from .data_source_custom_metadata_value import DataSourceCustomMetadataValue
10
+ from .data_source_reader_version_metadata import DataSourceReaderVersionMetadata
10
11
 
11
12
  try:
12
13
  import pydantic
@@ -29,7 +30,7 @@ class DataSource(pydantic.BaseModel):
29
30
  source_type: ConfigurableDataSourceNames
30
31
  custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[DataSourceCustomMetadataValue]]]
31
32
  component: DataSourceComponent = pydantic.Field(description="Component that implements the data source")
32
- version_metadata: typing.Optional[typing.Dict[str, typing.Any]]
33
+ version_metadata: typing.Optional[DataSourceReaderVersionMetadata]
33
34
  project_id: str
34
35
 
35
36
  def json(self, **kwargs: typing.Any) -> str:
@@ -0,0 +1,31 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+
8
+ try:
9
+ import pydantic
10
+ if pydantic.__version__.startswith("1."):
11
+ raise ImportError
12
+ import pydantic.v1 as pydantic # type: ignore
13
+ except ImportError:
14
+ import pydantic # type: ignore
15
+
16
+
17
+ class DataSourceReaderVersionMetadata(pydantic.BaseModel):
18
+ reader_version: typing.Optional[str]
19
+
20
+ def json(self, **kwargs: typing.Any) -> str:
21
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
+ return super().json(**kwargs_with_defaults)
23
+
24
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
+ return super().dict(**kwargs_with_defaults)
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -32,6 +32,9 @@ class ExtractConfig(pydantic.BaseModel):
32
32
  system_prompt: typing.Optional[str]
33
33
  use_reasoning: typing.Optional[bool] = pydantic.Field(description="Whether to use reasoning for the extraction.")
34
34
  cite_sources: typing.Optional[bool] = pydantic.Field(description="Whether to cite sources for the extraction.")
35
+ confidence_scores: typing.Optional[bool] = pydantic.Field(
36
+ description="Whether to fetch confidence scores for the extraction."
37
+ )
35
38
  chunk_mode: typing.Optional[DocumentChunkMode] = pydantic.Field(
36
39
  description="The mode to use for chunking the document."
37
40
  )
@@ -5,6 +5,7 @@ import typing
5
5
 
6
6
  from ..core.datetime_utils import serialize_datetime
7
7
  from .configurable_data_source_names import ConfigurableDataSourceNames
8
+ from .data_source_reader_version_metadata import DataSourceReaderVersionMetadata
8
9
  from .pipeline_data_source_component import PipelineDataSourceComponent
9
10
  from .pipeline_data_source_custom_metadata_value import PipelineDataSourceCustomMetadataValue
10
11
  from .pipeline_data_source_status import PipelineDataSourceStatus
@@ -30,7 +31,7 @@ class PipelineDataSource(pydantic.BaseModel):
30
31
  source_type: ConfigurableDataSourceNames
31
32
  custom_metadata: typing.Optional[typing.Dict[str, typing.Optional[PipelineDataSourceCustomMetadataValue]]]
32
33
  component: PipelineDataSourceComponent = pydantic.Field(description="Component that implements the data source")
33
- version_metadata: typing.Optional[typing.Dict[str, typing.Any]]
34
+ version_metadata: typing.Optional[DataSourceReaderVersionMetadata]
34
35
  project_id: str
35
36
  data_source_id: str = pydantic.Field(description="The ID of the data source.")
36
37
  pipeline_id: str = pydantic.Field(description="The ID of the pipeline.")
@@ -33,6 +33,9 @@ class StructParseConf(pydantic.BaseModel):
33
33
  struct_mode: typing.Optional[StructMode] = pydantic.Field(
34
34
  description="The struct mode to use for the structured parsing."
35
35
  )
36
+ fetch_logprobs: typing.Optional[bool] = pydantic.Field(
37
+ description="Whether to fetch logprobs for the structured parsing."
38
+ )
36
39
  handle_missing: typing.Optional[bool] = pydantic.Field(
37
40
  description="Whether to handle missing fields in the schema."
38
41
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llama-cloud
3
- Version: 0.1.33
3
+ Version: 0.1.34
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Logan Markewich
@@ -1,4 +1,4 @@
1
- llama_cloud/__init__.py,sha256=ox9Kw39O5VxO8WczDW0rXojbQwcL6v9bTT80745ME5I,25659
1
+ llama_cloud/__init__.py,sha256=IYnzCBris1anU_Welfu0tW6QXK8YepHdjsC0U5HxZIY,25735
2
2
  llama_cloud/client.py,sha256=6kvyLEhvgy6TJfhm3VGvbtdQsjgpi51289Q13K9WDK0,6188
3
3
  llama_cloud/core/__init__.py,sha256=QJS3CJ2TYP2E1Tge0CS6Z7r8LTNzJHQVX1hD3558eP0,519
4
4
  llama_cloud/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
@@ -55,7 +55,7 @@ llama_cloud/resources/llama_extract/types/extract_job_create_batch_data_schema_o
55
55
  llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema.py,sha256=uMqpKJdCmUNtryS2bkQTNA1AgDlWdtsBOP31iMt3zNA,346
56
56
  llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema_zero_value.py,sha256=cUS7ez5r0Vx8T7SxwLYptZMmvpT5JoDVMyn54Q6VL-g,227
57
57
  llama_cloud/resources/organizations/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
58
- llama_cloud/resources/organizations/client.py,sha256=yJ2TYvr7tPRS_Zhdb_IbknKo8aIIRSWm-63d0nh535s,56597
58
+ llama_cloud/resources/organizations/client.py,sha256=RoN-nkN7VeRZnrrElXhaPrgQFzGMHgNY41_XpbCXP0g,56623
59
59
  llama_cloud/resources/parsing/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
60
60
  llama_cloud/resources/parsing/client.py,sha256=EHrQKjOl_VPPbcbaXi5TSah8HBf7ooHijhMF7IEzBMg,88117
61
61
  llama_cloud/resources/pipelines/__init__.py,sha256=zyvVEOF_krvEZkCIj_kZoMKfhDqHo_R32a1mv9CriQc,1193
@@ -73,7 +73,7 @@ llama_cloud/resources/reports/types/__init__.py,sha256=LfwDYrI4RcQu-o42iAe7HkcwH
73
73
  llama_cloud/resources/reports/types/update_report_plan_api_v_1_reports_report_id_plan_patch_request_action.py,sha256=Qh-MSeRvDBfNb5hoLELivv1pLtrYVf52WVoP7G8V34A,807
74
74
  llama_cloud/resources/retrievers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
75
75
  llama_cloud/resources/retrievers/client.py,sha256=z2LhmA-cZVFzr9P6loeCZYnJbvSIk0QitFeVFp-IyZk,32126
76
- llama_cloud/types/__init__.py,sha256=nmqOY9oVawaz9MfgPCLUGG27jC42tsgKXwji02Ig5kY,30646
76
+ llama_cloud/types/__init__.py,sha256=Ve6yUuDwvdy3w68HcO_USG_z2ulG2GcvRBUC7dUNgow,30766
77
77
  llama_cloud/types/advanced_mode_transform_config.py,sha256=4xCXye0_cPmVS1F8aNTx81sIaEPjQH9kiCCAIoqUzlI,1502
78
78
  llama_cloud/types/advanced_mode_transform_config_chunking_config.py,sha256=wYbJnWLpeQDfhmDZz-wJfYzD1iGT5Jcxb9ga3mzUuvk,1983
79
79
  llama_cloud/types/advanced_mode_transform_config_segmentation_config.py,sha256=anNGq0F5-IlbIW3kpC8OilzLJnUq5tdIcWHnRnmlYsg,1303
@@ -134,12 +134,13 @@ llama_cloud/types/data_sink.py,sha256=PeexYHHoD8WkVp9WsFtfC-AIWszcgeJUprG1bwC8Ws
134
134
  llama_cloud/types/data_sink_component.py,sha256=uvuxLY3MPDpv_bkT0y-tHSZVPRSHCkDBDHVff-036Dg,749
135
135
  llama_cloud/types/data_sink_create.py,sha256=dAaFPCwZ5oX0Fbf7ij62dzSaYnrhj3EHmnLnYnw2KgI,1360
136
136
  llama_cloud/types/data_sink_create_component.py,sha256=8QfNKSTJV_sQ0nJxlpfh0fBkMTSnQD1DTJR8ZMYaesI,755
137
- llama_cloud/types/data_source.py,sha256=4_lTRToLO4u9LYK66VygCPycrZuyct_aiovlxG5H2sE,1768
137
+ llama_cloud/types/data_source.py,sha256=QkJsQBlLt7cX0FxYuNF1w9yZw1BnNcGiQTTfMAuxiEM,1852
138
138
  llama_cloud/types/data_source_component.py,sha256=QBxAneOFe8crS0z-eFo3gd1siToQ4hYsLdfB4p3ZeVU,974
139
139
  llama_cloud/types/data_source_create.py,sha256=s0bAX_GUwiRdrL-PXS9ROrvq3xpmqbqzdMa6thqL2P4,1581
140
140
  llama_cloud/types/data_source_create_component.py,sha256=6dlkvut0gyy6JA_F4--xPHYOCHi14N6oooWOnOEugzE,980
141
141
  llama_cloud/types/data_source_create_custom_metadata_value.py,sha256=ejSsQNbszYQaUWFh9r9kQpHf88qbhuRv1SI9J_MOSC0,215
142
142
  llama_cloud/types/data_source_custom_metadata_value.py,sha256=pTZn5yjZYmuOhsLABFJOKZblZUkRqo1CqLAuP5tKji4,209
143
+ llama_cloud/types/data_source_reader_version_metadata.py,sha256=zP2hkqne17Vg2rd-mOXw-MpOGPmz-y82lNERFpz6E3g,1007
143
144
  llama_cloud/types/data_source_update_dispatcher_config.py,sha256=Sh6HhXfEV2Z6PYhkYQucs2MxyKVpL3UPV-I4cbf--bA,1242
144
145
  llama_cloud/types/delete_params.py,sha256=1snPrd3WO9C1bKf0WdMslE2HQMF0yYLI3U7N53cmurM,1285
145
146
  llama_cloud/types/document_block.py,sha256=OYKd5M3LgJ0Cz0K0YNuVRoHz9HcUdVuf2Vcqku8fck4,1116
@@ -155,7 +156,7 @@ llama_cloud/types/embedding_model_config_update_embedding_config.py,sha256=mrXFx
155
156
  llama_cloud/types/eval_execution_params.py,sha256=ntVaJh5SMZMPL4QLUiihVjUlg2SKbrezvbMKGlrF66Q,1369
156
157
  llama_cloud/types/extract_agent.py,sha256=T98IOueut4M52Qm7hqcUOcWFFDhZ-ye0OFdXgfFGtS4,1763
157
158
  llama_cloud/types/extract_agent_data_schema_value.py,sha256=UaDQ2KjajLDccW7F4NKdfpefeTJrr1hl0c95WRETYkM,201
158
- llama_cloud/types/extract_config.py,sha256=pYErVV6Lq4VteqO3Wxu4exCfiGnJ9_aqSuXiLuNI6JE,2194
159
+ llama_cloud/types/extract_config.py,sha256=LIkZK7kPiXMun9wrGpjJiMXVpTWmPfvZLx-u2sDWEp0,2340
159
160
  llama_cloud/types/extract_config_priority.py,sha256=btl5lxl25Ve6_lTbQzQyjOKle8XoY0r16lk3364c3uw,795
160
161
  llama_cloud/types/extract_job.py,sha256=Yx4fDdCdylAji2LPTwqflVpz1o9slpj9tTLS93-1tzU,1431
161
162
  llama_cloud/types/extract_job_create.py,sha256=yLtrh46fsK8Q2_hz8Ub3mvGriSn5BI2OjjwpWRy5YsA,1680
@@ -272,7 +273,7 @@ llama_cloud/types/pipeline_configuration_hashes.py,sha256=7_MbOcPWV6iyMflJeXoo9v
272
273
  llama_cloud/types/pipeline_create.py,sha256=PKchM5cxkidXVFv2qON0uVh5lv8aqsy5OrZvT5UzqTU,2496
273
274
  llama_cloud/types/pipeline_create_embedding_config.py,sha256=PQqmVBFUyZXYKKBmVQF2zPsGp1L6rje6g3RtXEcdfc8,2811
274
275
  llama_cloud/types/pipeline_create_transform_config.py,sha256=HP6tzLsw_pomK1Ye2PYCS_XDZK_TMgg22mz17_zYKFg,303
275
- llama_cloud/types/pipeline_data_source.py,sha256=g8coq6ohp09TtqzvB3_A8Nzery3J5knIfxGWzUtozmg,2381
276
+ llama_cloud/types/pipeline_data_source.py,sha256=iKB2NgpWQTl_rNDCvnXjNyd0gzohqwfCnupzWYT_CTE,2465
276
277
  llama_cloud/types/pipeline_data_source_component.py,sha256=pcAIb6xuRJajDVBF_a4_2USPLtZ8ve-WQvSdKKQu50Q,982
277
278
  llama_cloud/types/pipeline_data_source_create.py,sha256=wMsymqB-YGyf3jdQr-N5ODVG6v0w68EMxGBNdQXeJe0,1178
278
279
  llama_cloud/types/pipeline_data_source_custom_metadata_value.py,sha256=8n3r60sxMx4_udW0yzJZxzyWeK6L3cc2-jLGZFW4EDs,217
@@ -338,7 +339,7 @@ llama_cloud/types/sentence_chunking_config.py,sha256=NA9xidK5ICxJPkEMQZWNcsV0Hw9
338
339
  llama_cloud/types/src_app_schema_chat_chat_message.py,sha256=ddMQXZybeExPVFMNe8FWghyXXWktsujpZ_0Xmou3Zz8,1596
339
340
  llama_cloud/types/status_enum.py,sha256=cUBIlys89E8PUzmVqqawu7qTDF0aRqBwiijOmRDPvx0,1018
340
341
  llama_cloud/types/struct_mode.py,sha256=ROicwjXfFmgVU8_xSVxJlnFUzRNKG5VIEF1wYg9uOPU,1020
341
- llama_cloud/types/struct_parse_conf.py,sha256=WlL8y0IBvdzGsDtFUlEZLzoUODwmOWAJi0viS9unL18,2297
342
+ llama_cloud/types/struct_parse_conf.py,sha256=3QQBy8VP9JB16d4fTGK_GiU6PUALIOWCN9GYI3in6ic,2439
342
343
  llama_cloud/types/supported_llm_model.py,sha256=hubSopFICVNEegbJbtbpK6zRHwFPwUNtrw_NAw_3bfg,1380
343
344
  llama_cloud/types/supported_llm_model_names.py,sha256=PXL0gA1lc0GJNzZHnjOscoxHpPW787A8Adh-2egAKo8,2512
344
345
  llama_cloud/types/text_block.py,sha256=X154sQkSyposXuRcEWNp_tWcDQ-AI6q_-MfJUN5exP8,958
@@ -362,7 +363,7 @@ llama_cloud/types/vertex_embedding_mode.py,sha256=yY23FjuWU_DkXjBb3JoKV4SCMqel2B
362
363
  llama_cloud/types/vertex_text_embedding.py,sha256=-C4fNCYfFl36ATdBMGFVPpiHIKxjk0KB1ERA2Ec20aU,1932
363
364
  llama_cloud/types/webhook_configuration.py,sha256=_Xm15whrWoKNBuCoO5y_NunA-ByhCAYK87LnC4W-Pzg,1350
364
365
  llama_cloud/types/webhook_configuration_webhook_events_item.py,sha256=LTfOwphnoYUQYwsHGTlCxoVU_PseIRAbmQJRBdyXnbg,1519
365
- llama_cloud-0.1.33.dist-info/LICENSE,sha256=_iNqtPcw1Ue7dZKwOwgPtbegMUkWVy15hC7bffAdNmY,1067
366
- llama_cloud-0.1.33.dist-info/METADATA,sha256=dGeTMx4aPlxYbOoSOUe7DBl18ERrZjjtRhNTfqmllMg,1194
367
- llama_cloud-0.1.33.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
368
- llama_cloud-0.1.33.dist-info/RECORD,,
366
+ llama_cloud-0.1.34.dist-info/LICENSE,sha256=_iNqtPcw1Ue7dZKwOwgPtbegMUkWVy15hC7bffAdNmY,1067
367
+ llama_cloud-0.1.34.dist-info/METADATA,sha256=ppcOOqix2JsINMcHaep9YetTNGClITBAESbX30Iyqqw,1194
368
+ llama_cloud-0.1.34.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
369
+ llama_cloud-0.1.34.dist-info/RECORD,,