letta-client 0.1.279__py3-none-any.whl → 0.1.281__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.
- letta_client/core/client_wrapper.py +2 -2
- letta_client/runs/client.py +48 -2
- letta_client/runs/raw_client.py +40 -0
- letta_client/types/batch_job.py +1 -1
- letta_client/types/job.py +1 -1
- letta_client/types/run.py +1 -1
- {letta_client-0.1.279.dist-info → letta_client-0.1.281.dist-info}/METADATA +1 -1
- {letta_client-0.1.279.dist-info → letta_client-0.1.281.dist-info}/RECORD +9 -9
- {letta_client-0.1.279.dist-info → letta_client-0.1.281.dist-info}/WHEEL +0 -0
|
@@ -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.
|
|
27
|
+
"User-Agent": "letta-client/0.1.281",
|
|
28
28
|
"X-Fern-Language": "Python",
|
|
29
29
|
"X-Fern-SDK-Name": "letta-client",
|
|
30
|
-
"X-Fern-SDK-Version": "0.1.
|
|
30
|
+
"X-Fern-SDK-Version": "0.1.281",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
letta_client/runs/client.py
CHANGED
|
@@ -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(
|
|
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,
|
|
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
|
|
letta_client/runs/raw_client.py
CHANGED
|
@@ -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
|
)
|
letta_client/types/batch_job.py
CHANGED
|
@@ -23,7 +23,7 @@ class BatchJob(UncheckedBaseModel):
|
|
|
23
23
|
|
|
24
24
|
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
25
25
|
"""
|
|
26
|
-
The timestamp when the
|
|
26
|
+
The unix timestamp of when the job was created.
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
letta_client/types/job.py
CHANGED
|
@@ -34,7 +34,7 @@ class Job(UncheckedBaseModel):
|
|
|
34
34
|
|
|
35
35
|
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
36
36
|
"""
|
|
37
|
-
The timestamp when the
|
|
37
|
+
The unix timestamp of when the job was created.
|
|
38
38
|
"""
|
|
39
39
|
|
|
40
40
|
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
letta_client/types/run.py
CHANGED
|
@@ -36,7 +36,7 @@ class Run(UncheckedBaseModel):
|
|
|
36
36
|
|
|
37
37
|
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
38
38
|
"""
|
|
39
|
-
The timestamp when the
|
|
39
|
+
The unix timestamp of when the job was created.
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
42
|
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
@@ -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=
|
|
93
|
+
letta_client/core/client_wrapper.py,sha256=UDoX2-_PPP5MuxMzPpdINjGalKLL_zqHzbrUseFKBYg,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=
|
|
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=
|
|
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
|
|
@@ -276,7 +276,7 @@ letta_client/types/auth_scheme_field.py,sha256=OFoPs6Xdvw-Z13mb7lQFf25z0IE6Z83f_
|
|
|
276
276
|
letta_client/types/bad_request_error_body.py,sha256=FXRnHlblilUaHvShh1ia8TgLy5Z1HWwfx7-OE-6d3AQ,568
|
|
277
277
|
letta_client/types/base_64_image.py,sha256=Ta6vR3od9sYQGrWgOSrFq7cS0-mm6cGTa2gWdFpSmo0,965
|
|
278
278
|
letta_client/types/base_tool_rule_schema.py,sha256=e2pHhj1fdWmuBfkyD_MODwCQnM_MrN6LL2CEx0SqKvY,583
|
|
279
|
-
letta_client/types/batch_job.py,sha256=
|
|
279
|
+
letta_client/types/batch_job.py,sha256=TvfC7eXlkRgWaVp0jBE72uUEYsyNacgB1dSv-KaTfhc,2631
|
|
280
280
|
letta_client/types/block.py,sha256=V47iVJFFeXhaH263OCM2iVptGftlc7AoZtGIY7qb5Yc,3302
|
|
281
281
|
letta_client/types/block_schema.py,sha256=-kiDh63tyN2tai9m2f_FJE_afpDMaBTvBjYm4t0zK8c,1813
|
|
282
282
|
letta_client/types/block_update.py,sha256=f2ClrX0b5iPfoxmRZ5IVGK039VRDYqe0UXYGjLy3Eow,1898
|
|
@@ -399,7 +399,7 @@ letta_client/types/imported_agents_response.py,sha256=PDBKbNcUNpRumkUgQTE4-pfPc9
|
|
|
399
399
|
letta_client/types/init_tool_rule.py,sha256=ybXzH1cWQesY2Z4Umf3lnGep8TmulRW6OCtrV7cx8hw,1044
|
|
400
400
|
letta_client/types/input_audio.py,sha256=l4T076iM05SxiqBx5TEkE4baG99rk1olL6hmVictuJQ,634
|
|
401
401
|
letta_client/types/input_audio_format.py,sha256=QQFfndI9w66wIbGyHwfmJnk2bEJDPmEs9GybkaNL6AI,154
|
|
402
|
-
letta_client/types/job.py,sha256=
|
|
402
|
+
letta_client/types/job.py,sha256=dQLV9NM5mTYnS5iER8f-MvNAcC2CD7NXBBwQvbJN77c,3193
|
|
403
403
|
letta_client/types/job_status.py,sha256=hfkoSxAxkPegq1FSzzCTWQCBzoJwlvyrYnxtC0LzfUs,219
|
|
404
404
|
letta_client/types/job_type.py,sha256=HXYrfzPwxI54PqV7OVcMhewSJ_pBNHc14s9LcExr7Ss,154
|
|
405
405
|
letta_client/types/json_object_response_format.py,sha256=POxWWP3fHht3VcaQfpoMJ1HcyjItiv05zbfgILUbMww,676
|
|
@@ -488,7 +488,7 @@ letta_client/types/response_format_json_schema.py,sha256=Yxz8QL1_s7vIAuzap82IPfy
|
|
|
488
488
|
letta_client/types/response_format_text.py,sha256=q9U4VDi57FPpqCVVPk-_21e0fbIohBPLDqWR-tAV2ls,592
|
|
489
489
|
letta_client/types/round_robin_manager.py,sha256=cGnv5WFZowjguzNLX9Nv3DDfdgzDolN3onSkLLjAl6Y,701
|
|
490
490
|
letta_client/types/round_robin_manager_update.py,sha256=0auliO4ChHHCexaiEfXKmERz_4IWz5YvjRsQHbUqVCI,707
|
|
491
|
-
letta_client/types/run.py,sha256=
|
|
491
|
+
letta_client/types/run.py,sha256=5RYyjuGj591MNPhe1Bfa2BP9tZSNi54i82dqVmTLkNI,3377
|
|
492
492
|
letta_client/types/sandbox_config.py,sha256=YWQpDOHkiqEtp-xa4jjQA3QyGq4ZXNU8UDardnAvxhw,1551
|
|
493
493
|
letta_client/types/sandbox_config_create.py,sha256=fGMGiKbuf5ii1o-tHRHAjnAu0FB4JktMjlvu6uBRAsY,731
|
|
494
494
|
letta_client/types/sandbox_config_create_config.py,sha256=0jPsYtxeoRXMLppFjWZCCjyobuBvlkf-GhAOdH8bmt4,337
|
|
@@ -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.
|
|
570
|
-
letta_client-0.1.
|
|
571
|
-
letta_client-0.1.
|
|
569
|
+
letta_client-0.1.281.dist-info/METADATA,sha256=6f4SMWMC0hXVfuuuRlAwIfhTdzNKaCCE0SyOZzIPl_4,5782
|
|
570
|
+
letta_client-0.1.281.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
571
|
+
letta_client-0.1.281.dist-info/RECORD,,
|
|
File without changes
|