llama-cloud 0.1.8__py3-none-any.whl → 0.1.10__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 (51) hide show
  1. llama_cloud/__init__.py +32 -22
  2. llama_cloud/client.py +0 -3
  3. llama_cloud/resources/__init__.py +14 -8
  4. llama_cloud/resources/chat_apps/client.py +99 -133
  5. llama_cloud/resources/files/client.py +34 -6
  6. llama_cloud/resources/llama_extract/__init__.py +16 -2
  7. llama_cloud/resources/llama_extract/client.py +238 -366
  8. llama_cloud/resources/llama_extract/types/__init__.py +14 -3
  9. llama_cloud/resources/llama_extract/types/extract_agent_create_data_schema.py +9 -0
  10. llama_cloud/resources/llama_extract/types/{extract_agent_create_data_schema_value.py → extract_agent_create_data_schema_zero_value.py} +1 -1
  11. llama_cloud/resources/llama_extract/types/extract_agent_update_data_schema.py +9 -0
  12. llama_cloud/resources/{extraction/types/extraction_schema_create_data_schema_value.py → llama_extract/types/extract_agent_update_data_schema_zero_value.py} +1 -1
  13. llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema.py +9 -0
  14. llama_cloud/resources/llama_extract/types/extract_schema_validate_request_data_schema_zero_value.py +7 -0
  15. llama_cloud/resources/organizations/client.py +8 -12
  16. llama_cloud/resources/parsing/client.py +146 -18
  17. llama_cloud/resources/reports/client.py +30 -26
  18. llama_cloud/resources/retrievers/client.py +16 -4
  19. llama_cloud/types/__init__.py +20 -12
  20. llama_cloud/types/chat_app.py +11 -9
  21. llama_cloud/types/chat_app_response.py +12 -10
  22. llama_cloud/types/cloud_mongo_db_atlas_vector_search.py +1 -0
  23. llama_cloud/types/extract_job.py +3 -1
  24. llama_cloud/types/extract_job_create.py +4 -2
  25. llama_cloud/types/extract_job_create_data_schema_override.py +9 -0
  26. llama_cloud/{resources/extraction/types/extraction_schema_update_data_schema_value.py → types/extract_job_create_data_schema_override_zero_value.py} +1 -1
  27. llama_cloud/types/extract_resultset.py +2 -6
  28. llama_cloud/types/extract_run.py +5 -0
  29. llama_cloud/types/extract_run_data.py +11 -0
  30. llama_cloud/types/extract_run_data_item_value.py +5 -0
  31. llama_cloud/types/extract_run_data_zero_value.py +5 -0
  32. llama_cloud/{resources/llama_extract/types/extract_agent_update_data_schema_value.py → types/extract_run_extraction_metadata_value.py} +1 -1
  33. llama_cloud/types/{extraction_job.py → extract_schema_validate_response.py} +3 -6
  34. llama_cloud/types/extract_schema_validate_response_data_schema_value.py +7 -0
  35. llama_cloud/types/extract_state.py +4 -4
  36. llama_cloud/types/llama_extract_settings.py +4 -0
  37. llama_cloud/types/llama_parse_parameters.py +11 -0
  38. llama_cloud/types/plan.py +4 -0
  39. llama_cloud/types/{extraction_result.py → preset_composite_retrieval_params.py} +5 -14
  40. llama_cloud/types/{extraction_schema.py → report_file_info.py} +5 -9
  41. llama_cloud/types/report_metadata.py +2 -1
  42. {llama_cloud-0.1.8.dist-info → llama_cloud-0.1.10.dist-info}/METADATA +2 -1
  43. {llama_cloud-0.1.8.dist-info → llama_cloud-0.1.10.dist-info}/RECORD +45 -42
  44. {llama_cloud-0.1.8.dist-info → llama_cloud-0.1.10.dist-info}/WHEEL +1 -1
  45. llama_cloud/resources/extraction/__init__.py +0 -5
  46. llama_cloud/resources/extraction/client.py +0 -756
  47. llama_cloud/resources/extraction/types/__init__.py +0 -6
  48. llama_cloud/types/extract_job_create_data_schema_override_value.py +0 -7
  49. llama_cloud/types/extraction_result_data_value.py +0 -5
  50. llama_cloud/types/extraction_schema_data_schema_value.py +0 -7
  51. {llama_cloud-0.1.8.dist-info → llama_cloud-0.1.10.dist-info}/LICENSE +0 -0
@@ -1,6 +1,17 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .extract_agent_create_data_schema_value import ExtractAgentCreateDataSchemaValue
4
- from .extract_agent_update_data_schema_value import ExtractAgentUpdateDataSchemaValue
3
+ from .extract_agent_create_data_schema import ExtractAgentCreateDataSchema
4
+ from .extract_agent_create_data_schema_zero_value import ExtractAgentCreateDataSchemaZeroValue
5
+ from .extract_agent_update_data_schema import ExtractAgentUpdateDataSchema
6
+ from .extract_agent_update_data_schema_zero_value import ExtractAgentUpdateDataSchemaZeroValue
7
+ from .extract_schema_validate_request_data_schema import ExtractSchemaValidateRequestDataSchema
8
+ from .extract_schema_validate_request_data_schema_zero_value import ExtractSchemaValidateRequestDataSchemaZeroValue
5
9
 
6
- __all__ = ["ExtractAgentCreateDataSchemaValue", "ExtractAgentUpdateDataSchemaValue"]
10
+ __all__ = [
11
+ "ExtractAgentCreateDataSchema",
12
+ "ExtractAgentCreateDataSchemaZeroValue",
13
+ "ExtractAgentUpdateDataSchema",
14
+ "ExtractAgentUpdateDataSchemaZeroValue",
15
+ "ExtractSchemaValidateRequestDataSchema",
16
+ "ExtractSchemaValidateRequestDataSchemaZeroValue",
17
+ ]
@@ -0,0 +1,9 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from .extract_agent_create_data_schema_zero_value import ExtractAgentCreateDataSchemaZeroValue
6
+
7
+ ExtractAgentCreateDataSchema = typing.Union[
8
+ typing.Dict[str, typing.Optional[ExtractAgentCreateDataSchemaZeroValue]], str
9
+ ]
@@ -2,6 +2,6 @@
2
2
 
3
3
  import typing
4
4
 
5
- ExtractAgentCreateDataSchemaValue = typing.Union[
5
+ ExtractAgentCreateDataSchemaZeroValue = typing.Union[
6
6
  typing.Dict[str, typing.Any], typing.List[typing.Any], str, int, float, bool
7
7
  ]
@@ -0,0 +1,9 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from .extract_agent_update_data_schema_zero_value import ExtractAgentUpdateDataSchemaZeroValue
6
+
7
+ ExtractAgentUpdateDataSchema = typing.Union[
8
+ typing.Dict[str, typing.Optional[ExtractAgentUpdateDataSchemaZeroValue]], str
9
+ ]
@@ -2,6 +2,6 @@
2
2
 
3
3
  import typing
4
4
 
5
- ExtractionSchemaCreateDataSchemaValue = typing.Union[
5
+ ExtractAgentUpdateDataSchemaZeroValue = typing.Union[
6
6
  typing.Dict[str, typing.Any], typing.List[typing.Any], str, int, float, bool
7
7
  ]
@@ -0,0 +1,9 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from .extract_schema_validate_request_data_schema_zero_value import ExtractSchemaValidateRequestDataSchemaZeroValue
6
+
7
+ ExtractSchemaValidateRequestDataSchema = typing.Union[
8
+ typing.Dict[str, typing.Optional[ExtractSchemaValidateRequestDataSchemaZeroValue]], str
9
+ ]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ ExtractSchemaValidateRequestDataSchemaZeroValue = typing.Union[
6
+ typing.Dict[str, typing.Any], typing.List[typing.Any], str, int, float, bool
7
+ ]
@@ -229,14 +229,14 @@ class OrganizationsClient:
229
229
  raise ApiError(status_code=_response.status_code, body=_response.text)
230
230
  raise ApiError(status_code=_response.status_code, body=_response_json)
231
231
 
232
- def update_organization(self, organization_id: str, *, name: typing.Optional[str] = OMIT) -> Organization:
232
+ def update_organization(self, organization_id: str, *, name: str) -> Organization:
233
233
  """
234
234
  Update an existing organization.
235
235
 
236
236
  Parameters:
237
237
  - organization_id: str.
238
238
 
239
- - name: typing.Optional[str].
239
+ - name: str. A name for the organization.
240
240
  ---
241
241
  from llama_cloud.client import LlamaCloud
242
242
 
@@ -245,15 +245,13 @@ class OrganizationsClient:
245
245
  )
246
246
  client.organizations.update_organization(
247
247
  organization_id="string",
248
+ name="string",
248
249
  )
249
250
  """
250
- _request: typing.Dict[str, typing.Any] = {}
251
- if name is not OMIT:
252
- _request["name"] = name
253
251
  _response = self._client_wrapper.httpx_client.request(
254
252
  "PUT",
255
253
  urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}"),
256
- json=jsonable_encoder(_request),
254
+ json=jsonable_encoder({"name": name}),
257
255
  headers=self._client_wrapper.get_headers(),
258
256
  timeout=60,
259
257
  )
@@ -922,14 +920,14 @@ class AsyncOrganizationsClient:
922
920
  raise ApiError(status_code=_response.status_code, body=_response.text)
923
921
  raise ApiError(status_code=_response.status_code, body=_response_json)
924
922
 
925
- async def update_organization(self, organization_id: str, *, name: typing.Optional[str] = OMIT) -> Organization:
923
+ async def update_organization(self, organization_id: str, *, name: str) -> Organization:
926
924
  """
927
925
  Update an existing organization.
928
926
 
929
927
  Parameters:
930
928
  - organization_id: str.
931
929
 
932
- - name: typing.Optional[str].
930
+ - name: str. A name for the organization.
933
931
  ---
934
932
  from llama_cloud.client import AsyncLlamaCloud
935
933
 
@@ -938,15 +936,13 @@ class AsyncOrganizationsClient:
938
936
  )
939
937
  await client.organizations.update_organization(
940
938
  organization_id="string",
939
+ name="string",
941
940
  )
942
941
  """
943
- _request: typing.Dict[str, typing.Any] = {}
944
- if name is not OMIT:
945
- _request["name"] = name
946
942
  _response = await self._client_wrapper.httpx_client.request(
947
943
  "PUT",
948
944
  urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", f"api/v1/organizations/{organization_id}"),
949
- json=jsonable_encoder(_request),
945
+ json=jsonable_encoder({"name": name}),
950
946
  headers=self._client_wrapper.get_headers(),
951
947
  timeout=60,
952
948
  )