letta-client 0.1.279__py3-none-any.whl → 0.1.280__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,10 +24,10 @@ class BaseClientWrapper:
24
24
 
25
25
  def get_headers(self) -> typing.Dict[str, str]:
26
26
  headers: typing.Dict[str, str] = {
27
- "User-Agent": "letta-client/0.1.279",
27
+ "User-Agent": "letta-client/0.1.280",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.279",
30
+ "X-Fern-SDK-Version": "0.1.280",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -40,6 +40,10 @@ class RunsClient:
40
40
  *,
41
41
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
42
42
  background: typing.Optional[bool] = None,
43
+ after: typing.Optional[str] = None,
44
+ before: typing.Optional[str] = None,
45
+ limit: typing.Optional[int] = None,
46
+ ascending: typing.Optional[bool] = None,
43
47
  request_options: typing.Optional[RequestOptions] = None,
44
48
  ) -> typing.List[Run]:
45
49
  """
@@ -53,6 +57,18 @@ class RunsClient:
53
57
  background : typing.Optional[bool]
54
58
  If True, filters for runs that were created in background mode.
55
59
 
60
+ after : typing.Optional[str]
61
+ Cursor for pagination
62
+
63
+ before : typing.Optional[str]
64
+ Cursor for pagination
65
+
66
+ limit : typing.Optional[int]
67
+ Maximum number of runs to return
68
+
69
+ ascending : typing.Optional[bool]
70
+ Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
71
+
56
72
  request_options : typing.Optional[RequestOptions]
57
73
  Request-specific configuration.
58
74
 
@@ -71,7 +87,15 @@ class RunsClient:
71
87
  )
72
88
  client.runs.list()
73
89
  """
74
- _response = self._raw_client.list(agent_ids=agent_ids, background=background, request_options=request_options)
90
+ _response = self._raw_client.list(
91
+ agent_ids=agent_ids,
92
+ background=background,
93
+ after=after,
94
+ before=before,
95
+ limit=limit,
96
+ ascending=ascending,
97
+ request_options=request_options,
98
+ )
75
99
  return _response.data
76
100
 
77
101
  def list_active(
@@ -262,6 +286,10 @@ class AsyncRunsClient:
262
286
  *,
263
287
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
264
288
  background: typing.Optional[bool] = None,
289
+ after: typing.Optional[str] = None,
290
+ before: typing.Optional[str] = None,
291
+ limit: typing.Optional[int] = None,
292
+ ascending: typing.Optional[bool] = None,
265
293
  request_options: typing.Optional[RequestOptions] = None,
266
294
  ) -> typing.List[Run]:
267
295
  """
@@ -275,6 +303,18 @@ class AsyncRunsClient:
275
303
  background : typing.Optional[bool]
276
304
  If True, filters for runs that were created in background mode.
277
305
 
306
+ after : typing.Optional[str]
307
+ Cursor for pagination
308
+
309
+ before : typing.Optional[str]
310
+ Cursor for pagination
311
+
312
+ limit : typing.Optional[int]
313
+ Maximum number of runs to return
314
+
315
+ ascending : typing.Optional[bool]
316
+ Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
317
+
278
318
  request_options : typing.Optional[RequestOptions]
279
319
  Request-specific configuration.
280
320
 
@@ -302,7 +342,13 @@ class AsyncRunsClient:
302
342
  asyncio.run(main())
303
343
  """
304
344
  _response = await self._raw_client.list(
305
- agent_ids=agent_ids, background=background, request_options=request_options
345
+ agent_ids=agent_ids,
346
+ background=background,
347
+ after=after,
348
+ before=before,
349
+ limit=limit,
350
+ ascending=ascending,
351
+ request_options=request_options,
306
352
  )
307
353
  return _response.data
308
354
 
@@ -30,6 +30,10 @@ class RawRunsClient:
30
30
  *,
31
31
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
32
32
  background: typing.Optional[bool] = None,
33
+ after: typing.Optional[str] = None,
34
+ before: typing.Optional[str] = None,
35
+ limit: typing.Optional[int] = None,
36
+ ascending: typing.Optional[bool] = None,
33
37
  request_options: typing.Optional[RequestOptions] = None,
34
38
  ) -> HttpResponse[typing.List[Run]]:
35
39
  """
@@ -43,6 +47,18 @@ class RawRunsClient:
43
47
  background : typing.Optional[bool]
44
48
  If True, filters for runs that were created in background mode.
45
49
 
50
+ after : typing.Optional[str]
51
+ Cursor for pagination
52
+
53
+ before : typing.Optional[str]
54
+ Cursor for pagination
55
+
56
+ limit : typing.Optional[int]
57
+ Maximum number of runs to return
58
+
59
+ ascending : typing.Optional[bool]
60
+ Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
61
+
46
62
  request_options : typing.Optional[RequestOptions]
47
63
  Request-specific configuration.
48
64
 
@@ -57,6 +73,10 @@ class RawRunsClient:
57
73
  params={
58
74
  "agent_ids": agent_ids,
59
75
  "background": background,
76
+ "after": after,
77
+ "before": before,
78
+ "limit": limit,
79
+ "ascending": ascending,
60
80
  },
61
81
  request_options=request_options,
62
82
  )
@@ -346,6 +366,10 @@ class AsyncRawRunsClient:
346
366
  *,
347
367
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
348
368
  background: typing.Optional[bool] = None,
369
+ after: typing.Optional[str] = None,
370
+ before: typing.Optional[str] = None,
371
+ limit: typing.Optional[int] = None,
372
+ ascending: typing.Optional[bool] = None,
349
373
  request_options: typing.Optional[RequestOptions] = None,
350
374
  ) -> AsyncHttpResponse[typing.List[Run]]:
351
375
  """
@@ -359,6 +383,18 @@ class AsyncRawRunsClient:
359
383
  background : typing.Optional[bool]
360
384
  If True, filters for runs that were created in background mode.
361
385
 
386
+ after : typing.Optional[str]
387
+ Cursor for pagination
388
+
389
+ before : typing.Optional[str]
390
+ Cursor for pagination
391
+
392
+ limit : typing.Optional[int]
393
+ Maximum number of runs to return
394
+
395
+ ascending : typing.Optional[bool]
396
+ Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
397
+
362
398
  request_options : typing.Optional[RequestOptions]
363
399
  Request-specific configuration.
364
400
 
@@ -373,6 +409,10 @@ class AsyncRawRunsClient:
373
409
  params={
374
410
  "agent_ids": agent_ids,
375
411
  "background": background,
412
+ "after": after,
413
+ "before": before,
414
+ "limit": limit,
415
+ "ascending": ascending,
376
416
  },
377
417
  request_options=request_options,
378
418
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.279
3
+ Version: 0.1.280
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -90,7 +90,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
90
90
  letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py,sha256=kNHfEWFl7u71Pu8NPqutod0a2NXfvq8il05Hqm0iBB4,284
91
91
  letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
92
92
  letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
93
- letta_client/core/client_wrapper.py,sha256=TRLBxm8O2-zoarCi6gHYF23PNBX56FaYtCAex0bcRhw,2776
93
+ letta_client/core/client_wrapper.py,sha256=PdcPdNk_a0Whq-ujrpXBN5bczYI7wF6pSzM72aEzS5Q,2776
94
94
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
95
95
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
96
96
  letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -164,11 +164,11 @@ letta_client/providers/client.py,sha256=999OcO9GFtwmgx9PxA3lF-dEOp4ZEADsWDckeIKc
164
164
  letta_client/providers/raw_client.py,sha256=vg3z7P7UOjtLraW6GYb2YS5q496GYoyWN1s7u127q8E,30135
165
165
  letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
166
166
  letta_client/runs/__init__.py,sha256=rTMzYM1OUKbBt0EOGKEhjNDseImuXG9gUdMCjy2mEbQ,232
167
- letta_client/runs/client.py,sha256=b2gKIc2l9KMao09cGRnmOrbjKmhUVUhKUR-cfutDnnA,14080
167
+ letta_client/runs/client.py,sha256=m4Tqw86IEjJUxOqc3QfnqU7NAystskX_0rUft3EXDeM,15470
168
168
  letta_client/runs/messages/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
169
169
  letta_client/runs/messages/client.py,sha256=Ir9uA6W7kSpMLaOgmJeUKAokT4FgAH3l3sMucH-yqds,6998
170
170
  letta_client/runs/messages/raw_client.py,sha256=PbbkMSucuK-AmhcUyAdMtdtbnDSZGHb0nvw0vJqlb3s,8963
171
- letta_client/runs/raw_client.py,sha256=m4teQ7fO-2zPzTz7uRl05S787aogA5zeKeNGlXMNNlQ,25506
171
+ letta_client/runs/raw_client.py,sha256=ab0EwBz_FIOsCuftJFo3k7HupJldcUtgsWVqLqnSatg,26880
172
172
  letta_client/runs/steps/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
173
173
  letta_client/runs/steps/client.py,sha256=4MiWOwmSiIX-0U_ic5a-x72Svjh2N7q6etXA5VJ9V30,6074
174
174
  letta_client/runs/steps/raw_client.py,sha256=dbM7QYusDn_u4UYZl0I_jK-hCOek_m525we6boGo8jA,7973
@@ -566,6 +566,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
566
566
  letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
567
567
  letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
568
568
  letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
569
- letta_client-0.1.279.dist-info/METADATA,sha256=Qi7i-C24HlApUWaBDl6Ml4sygCASQMMx6hmkTP7wkIs,5782
570
- letta_client-0.1.279.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
571
- letta_client-0.1.279.dist-info/RECORD,,
569
+ letta_client-0.1.280.dist-info/METADATA,sha256=2R6rN3zN3X_raSmpf_8d_Sayv12L-DCYdOmXB-UPNhw,5782
570
+ letta_client-0.1.280.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
571
+ letta_client-0.1.280.dist-info/RECORD,,