letta-client 0.1.201__py3-none-any.whl → 0.1.202__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 letta-client might be problematic. Click here for more details.

@@ -24,7 +24,7 @@ class BaseClientWrapper:
24
24
  headers: typing.Dict[str, str] = {
25
25
  "X-Fern-Language": "Python",
26
26
  "X-Fern-SDK-Name": "letta-client",
27
- "X-Fern-SDK-Version": "0.1.201",
27
+ "X-Fern-SDK-Version": "0.1.202",
28
28
  }
29
29
  if self._project is not None:
30
30
  headers["X-Project"] = self._project
@@ -352,7 +352,10 @@ class SourcesClient:
352
352
  raise ApiError(status_code=_response.status_code, body=_response_json)
353
353
 
354
354
  def get_sources_metadata(
355
- self, *, request_options: typing.Optional[RequestOptions] = None
355
+ self,
356
+ *,
357
+ include_detailed_per_source_metadata: typing.Optional[bool] = None,
358
+ request_options: typing.Optional[RequestOptions] = None,
356
359
  ) -> OrganizationSourcesStats:
357
360
  """
358
361
  Get aggregated metadata for all sources in an organization.
@@ -361,10 +364,12 @@ class SourcesClient:
361
364
  - Total number of sources
362
365
  - Total number of files across all sources
363
366
  - Total size of all files
364
- - Per-source breakdown with file details (file_name, file_size per file)
367
+ - Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True
365
368
 
366
369
  Parameters
367
370
  ----------
371
+ include_detailed_per_source_metadata : typing.Optional[bool]
372
+
368
373
  request_options : typing.Optional[RequestOptions]
369
374
  Request-specific configuration.
370
375
 
@@ -386,6 +391,9 @@ class SourcesClient:
386
391
  _response = self._client_wrapper.httpx_client.request(
387
392
  "v1/sources/metadata",
388
393
  method="GET",
394
+ params={
395
+ "include_detailed_per_source_metadata": include_detailed_per_source_metadata,
396
+ },
389
397
  request_options=request_options,
390
398
  )
391
399
  try:
@@ -1011,7 +1019,10 @@ class AsyncSourcesClient:
1011
1019
  raise ApiError(status_code=_response.status_code, body=_response_json)
1012
1020
 
1013
1021
  async def get_sources_metadata(
1014
- self, *, request_options: typing.Optional[RequestOptions] = None
1022
+ self,
1023
+ *,
1024
+ include_detailed_per_source_metadata: typing.Optional[bool] = None,
1025
+ request_options: typing.Optional[RequestOptions] = None,
1015
1026
  ) -> OrganizationSourcesStats:
1016
1027
  """
1017
1028
  Get aggregated metadata for all sources in an organization.
@@ -1020,10 +1031,12 @@ class AsyncSourcesClient:
1020
1031
  - Total number of sources
1021
1032
  - Total number of files across all sources
1022
1033
  - Total size of all files
1023
- - Per-source breakdown with file details (file_name, file_size per file)
1034
+ - Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True
1024
1035
 
1025
1036
  Parameters
1026
1037
  ----------
1038
+ include_detailed_per_source_metadata : typing.Optional[bool]
1039
+
1027
1040
  request_options : typing.Optional[RequestOptions]
1028
1041
  Request-specific configuration.
1029
1042
 
@@ -1053,6 +1066,9 @@ class AsyncSourcesClient:
1053
1066
  _response = await self._client_wrapper.httpx_client.request(
1054
1067
  "v1/sources/metadata",
1055
1068
  method="GET",
1069
+ params={
1070
+ "include_detailed_per_source_metadata": include_detailed_per_source_metadata,
1071
+ },
1056
1072
  request_options=request_options,
1057
1073
  )
1058
1074
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.201
3
+ Version: 0.1.202
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -66,7 +66,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
66
66
  letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
67
67
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
68
68
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
69
- letta_client/core/client_wrapper.py,sha256=Z6UfuErG1hhfHFuznbYGwnAakCyZHuKjqBwSPsYTwzM,2336
69
+ letta_client/core/client_wrapper.py,sha256=bguwVun_a3_bfgHiQbhoLMjzQuKGsKB5YKQaKG1gRDU,2336
70
70
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
71
71
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
72
72
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -127,7 +127,7 @@ letta_client/runs/steps/client.py,sha256=KgpKM6tLn7CgnkUlUihLvxucw4PW4bb_8XPVaEb
127
127
  letta_client/runs/usage/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
128
128
  letta_client/runs/usage/client.py,sha256=LGJL8cPGaVfTG5OBi85KRbwvv3P_jQNehFq2Kg0xrC4,4738
129
129
  letta_client/sources/__init__.py,sha256=kswgCv4UdkSVk1Y4tsMM1HadOwvhh_Fr96VTSMV4Umc,128
130
- letta_client/sources/client.py,sha256=bN1cht7KPYgGhZFQCuPducOl78gMU154Vx4aqY21zT0,43008
130
+ letta_client/sources/client.py,sha256=Y2QaeTMQu8K3wVDBq__3xx9IxIrJ5WIwCVILobpTSck,43690
131
131
  letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
132
132
  letta_client/sources/files/client.py,sha256=6RgAo1778b1o_BLUZKDbdrSvhsLCvK_TnwFXBEUISpM,14659
133
133
  letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -423,6 +423,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
423
423
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
424
424
  letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
425
425
  letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
426
- letta_client-0.1.201.dist-info/METADATA,sha256=ELCpM6bt9EPXoym46JpnbYW_pd_zYG07QI7xiLZmLRU,5177
427
- letta_client-0.1.201.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
428
- letta_client-0.1.201.dist-info/RECORD,,
426
+ letta_client-0.1.202.dist-info/METADATA,sha256=aXfG8UePDVBTX1svHB1I3BG4h_Ti-hHqp41m6ZA04KU,5177
427
+ letta_client-0.1.202.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
428
+ letta_client-0.1.202.dist-info/RECORD,,