letta-client 0.1.145__py3-none-any.whl → 0.1.146__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.

@@ -16,7 +16,7 @@ class BaseClientWrapper:
16
16
  headers: typing.Dict[str, str] = {
17
17
  "X-Fern-Language": "Python",
18
18
  "X-Fern-SDK-Name": "letta-client",
19
- "X-Fern-SDK-Version": "0.1.145",
19
+ "X-Fern-SDK-Version": "0.1.146",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -17,7 +17,15 @@ class PassagesClient:
17
17
  def __init__(self, *, client_wrapper: SyncClientWrapper):
18
18
  self._client_wrapper = client_wrapper
19
19
 
20
- def list(self, source_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Passage]:
20
+ def list(
21
+ self,
22
+ source_id: str,
23
+ *,
24
+ after: typing.Optional[str] = None,
25
+ before: typing.Optional[str] = None,
26
+ limit: typing.Optional[int] = None,
27
+ request_options: typing.Optional[RequestOptions] = None,
28
+ ) -> typing.List[Passage]:
21
29
  """
22
30
  List all passages associated with a data source.
23
31
 
@@ -25,6 +33,15 @@ class PassagesClient:
25
33
  ----------
26
34
  source_id : str
27
35
 
36
+ after : typing.Optional[str]
37
+ Message after which to retrieve the returned messages.
38
+
39
+ before : typing.Optional[str]
40
+ Message before which to retrieve the returned messages.
41
+
42
+ limit : typing.Optional[int]
43
+ Maximum number of messages to retrieve.
44
+
28
45
  request_options : typing.Optional[RequestOptions]
29
46
  Request-specific configuration.
30
47
 
@@ -47,6 +64,11 @@ class PassagesClient:
47
64
  _response = self._client_wrapper.httpx_client.request(
48
65
  f"v1/sources/{jsonable_encoder(source_id)}/passages",
49
66
  method="GET",
67
+ params={
68
+ "after": after,
69
+ "before": before,
70
+ "limit": limit,
71
+ },
50
72
  request_options=request_options,
51
73
  )
52
74
  try:
@@ -79,7 +101,13 @@ class AsyncPassagesClient:
79
101
  self._client_wrapper = client_wrapper
80
102
 
81
103
  async def list(
82
- self, source_id: str, *, request_options: typing.Optional[RequestOptions] = None
104
+ self,
105
+ source_id: str,
106
+ *,
107
+ after: typing.Optional[str] = None,
108
+ before: typing.Optional[str] = None,
109
+ limit: typing.Optional[int] = None,
110
+ request_options: typing.Optional[RequestOptions] = None,
83
111
  ) -> typing.List[Passage]:
84
112
  """
85
113
  List all passages associated with a data source.
@@ -88,6 +116,15 @@ class AsyncPassagesClient:
88
116
  ----------
89
117
  source_id : str
90
118
 
119
+ after : typing.Optional[str]
120
+ Message after which to retrieve the returned messages.
121
+
122
+ before : typing.Optional[str]
123
+ Message before which to retrieve the returned messages.
124
+
125
+ limit : typing.Optional[int]
126
+ Maximum number of messages to retrieve.
127
+
91
128
  request_options : typing.Optional[RequestOptions]
92
129
  Request-specific configuration.
93
130
 
@@ -118,6 +155,11 @@ class AsyncPassagesClient:
118
155
  _response = await self._client_wrapper.httpx_client.request(
119
156
  f"v1/sources/{jsonable_encoder(source_id)}/passages",
120
157
  method="GET",
158
+ params={
159
+ "after": after,
160
+ "before": before,
161
+ "limit": limit,
162
+ },
121
163
  request_options=request_options,
122
164
  )
123
165
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.145
3
+ Version: 0.1.146
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -62,7 +62,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
62
62
  letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
63
63
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
64
64
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
65
- letta_client/core/client_wrapper.py,sha256=nfAKyvCaD701gvPqJithVE_1gZvDu42vU0w-lRV9UW4,1998
65
+ letta_client/core/client_wrapper.py,sha256=zdwYsoOybevVZ1h6mr1bOAXahPsspPEswNLXSZ8W5d0,1998
66
66
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
67
67
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
68
68
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -127,7 +127,7 @@ letta_client/sources/client.py,sha256=SRxv2SLREAW2eV_vjEYiMKEM5ViSVk_9dEIz75kOEl
127
127
  letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
128
128
  letta_client/sources/files/client.py,sha256=R-9zHK_wWtvW-2K7erQVVh9rR7a5JC4zxmTK3rrWJoU,13289
129
129
  letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
130
- letta_client/sources/passages/client.py,sha256=n0QVtLC0W1X6_SjhiEGSl9oZexocnsLZYeYRAqV2BCk,4767
130
+ letta_client/sources/passages/client.py,sha256=XxpITU_fq9MKiSd8Qu720Dprnxp5wlDEf6yjXaEfwSQ,5969
131
131
  letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
132
132
  letta_client/steps/client.py,sha256=Vqw3coPITSFK8skl5fBa6YWqL_0UuAkYAFFeKipL0NU,11242
133
133
  letta_client/tags/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -388,6 +388,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
388
388
  letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
389
389
  letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
390
390
  letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
391
- letta_client-0.1.145.dist-info/METADATA,sha256=8xC_P1niDzD4UUmBQaHqmAOhaIUXvhsvtxUCm2YP4Wk,5042
392
- letta_client-0.1.145.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
393
- letta_client-0.1.145.dist-info/RECORD,,
391
+ letta_client-0.1.146.dist-info/METADATA,sha256=uFuDxEQSa7xn00NlG8HYFQT3LwYnVTXXPCeMGif_Va4,5042
392
+ letta_client-0.1.146.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
393
+ letta_client-0.1.146.dist-info/RECORD,,