letta-client 0.1.261__py3-none-any.whl → 0.1.262__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/agents/messages/client.py +28 -6
- letta_client/agents/messages/raw_client.py +22 -6
- letta_client/core/client_wrapper.py +2 -2
- {letta_client-0.1.261.dist-info → letta_client-0.1.262.dist-info}/METADATA +1 -1
- {letta_client-0.1.261.dist-info → letta_client-0.1.262.dist-info}/RECORD +6 -6
- {letta_client-0.1.261.dist-info → letta_client-0.1.262.dist-info}/WHEEL +0 -0
|
@@ -347,7 +347,8 @@ class MessagesClient:
|
|
|
347
347
|
self,
|
|
348
348
|
agent_id: str,
|
|
349
349
|
*,
|
|
350
|
-
|
|
350
|
+
cancel_agent_run_request_agent_id: str,
|
|
351
|
+
run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
351
352
|
request_options: typing.Optional[RequestOptions] = None,
|
|
352
353
|
) -> typing.Dict[str, typing.Optional[typing.Any]]:
|
|
353
354
|
"""
|
|
@@ -359,7 +360,11 @@ class MessagesClient:
|
|
|
359
360
|
----------
|
|
360
361
|
agent_id : str
|
|
361
362
|
|
|
362
|
-
|
|
363
|
+
cancel_agent_run_request_agent_id : str
|
|
364
|
+
ID of the agent to cancel runs for
|
|
365
|
+
|
|
366
|
+
run_ids : typing.Optional[typing.Sequence[str]]
|
|
367
|
+
Optional list of run IDs to cancel
|
|
363
368
|
|
|
364
369
|
request_options : typing.Optional[RequestOptions]
|
|
365
370
|
Request-specific configuration.
|
|
@@ -379,9 +384,15 @@ class MessagesClient:
|
|
|
379
384
|
)
|
|
380
385
|
client.agents.messages.cancel(
|
|
381
386
|
agent_id="agent_id",
|
|
387
|
+
cancel_agent_run_request_agent_id="agent_id",
|
|
382
388
|
)
|
|
383
389
|
"""
|
|
384
|
-
_response = self._raw_client.cancel(
|
|
390
|
+
_response = self._raw_client.cancel(
|
|
391
|
+
agent_id,
|
|
392
|
+
cancel_agent_run_request_agent_id=cancel_agent_run_request_agent_id,
|
|
393
|
+
run_ids=run_ids,
|
|
394
|
+
request_options=request_options,
|
|
395
|
+
)
|
|
385
396
|
return _response.data
|
|
386
397
|
|
|
387
398
|
def create_async(
|
|
@@ -937,7 +948,8 @@ class AsyncMessagesClient:
|
|
|
937
948
|
self,
|
|
938
949
|
agent_id: str,
|
|
939
950
|
*,
|
|
940
|
-
|
|
951
|
+
cancel_agent_run_request_agent_id: str,
|
|
952
|
+
run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
941
953
|
request_options: typing.Optional[RequestOptions] = None,
|
|
942
954
|
) -> typing.Dict[str, typing.Optional[typing.Any]]:
|
|
943
955
|
"""
|
|
@@ -949,7 +961,11 @@ class AsyncMessagesClient:
|
|
|
949
961
|
----------
|
|
950
962
|
agent_id : str
|
|
951
963
|
|
|
952
|
-
|
|
964
|
+
cancel_agent_run_request_agent_id : str
|
|
965
|
+
ID of the agent to cancel runs for
|
|
966
|
+
|
|
967
|
+
run_ids : typing.Optional[typing.Sequence[str]]
|
|
968
|
+
Optional list of run IDs to cancel
|
|
953
969
|
|
|
954
970
|
request_options : typing.Optional[RequestOptions]
|
|
955
971
|
Request-specific configuration.
|
|
@@ -974,12 +990,18 @@ class AsyncMessagesClient:
|
|
|
974
990
|
async def main() -> None:
|
|
975
991
|
await client.agents.messages.cancel(
|
|
976
992
|
agent_id="agent_id",
|
|
993
|
+
cancel_agent_run_request_agent_id="agent_id",
|
|
977
994
|
)
|
|
978
995
|
|
|
979
996
|
|
|
980
997
|
asyncio.run(main())
|
|
981
998
|
"""
|
|
982
|
-
_response = await self._raw_client.cancel(
|
|
999
|
+
_response = await self._raw_client.cancel(
|
|
1000
|
+
agent_id,
|
|
1001
|
+
cancel_agent_run_request_agent_id=cancel_agent_run_request_agent_id,
|
|
1002
|
+
run_ids=run_ids,
|
|
1003
|
+
request_options=request_options,
|
|
1004
|
+
)
|
|
983
1005
|
return _response.data
|
|
984
1006
|
|
|
985
1007
|
async def create_async(
|
|
@@ -419,7 +419,8 @@ class RawMessagesClient:
|
|
|
419
419
|
self,
|
|
420
420
|
agent_id: str,
|
|
421
421
|
*,
|
|
422
|
-
|
|
422
|
+
cancel_agent_run_request_agent_id: str,
|
|
423
|
+
run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
423
424
|
request_options: typing.Optional[RequestOptions] = None,
|
|
424
425
|
) -> HttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
|
|
425
426
|
"""
|
|
@@ -431,7 +432,11 @@ class RawMessagesClient:
|
|
|
431
432
|
----------
|
|
432
433
|
agent_id : str
|
|
433
434
|
|
|
434
|
-
|
|
435
|
+
cancel_agent_run_request_agent_id : str
|
|
436
|
+
ID of the agent to cancel runs for
|
|
437
|
+
|
|
438
|
+
run_ids : typing.Optional[typing.Sequence[str]]
|
|
439
|
+
Optional list of run IDs to cancel
|
|
435
440
|
|
|
436
441
|
request_options : typing.Optional[RequestOptions]
|
|
437
442
|
Request-specific configuration.
|
|
@@ -444,7 +449,10 @@ class RawMessagesClient:
|
|
|
444
449
|
_response = self._client_wrapper.httpx_client.request(
|
|
445
450
|
f"v1/agents/{jsonable_encoder(agent_id)}/messages/cancel",
|
|
446
451
|
method="POST",
|
|
447
|
-
json=
|
|
452
|
+
json={
|
|
453
|
+
"agent_id": cancel_agent_run_request_agent_id,
|
|
454
|
+
"run_ids": run_ids,
|
|
455
|
+
},
|
|
448
456
|
headers={
|
|
449
457
|
"content-type": "application/json",
|
|
450
458
|
},
|
|
@@ -1096,7 +1104,8 @@ class AsyncRawMessagesClient:
|
|
|
1096
1104
|
self,
|
|
1097
1105
|
agent_id: str,
|
|
1098
1106
|
*,
|
|
1099
|
-
|
|
1107
|
+
cancel_agent_run_request_agent_id: str,
|
|
1108
|
+
run_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
1100
1109
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1101
1110
|
) -> AsyncHttpResponse[typing.Dict[str, typing.Optional[typing.Any]]]:
|
|
1102
1111
|
"""
|
|
@@ -1108,7 +1117,11 @@ class AsyncRawMessagesClient:
|
|
|
1108
1117
|
----------
|
|
1109
1118
|
agent_id : str
|
|
1110
1119
|
|
|
1111
|
-
|
|
1120
|
+
cancel_agent_run_request_agent_id : str
|
|
1121
|
+
ID of the agent to cancel runs for
|
|
1122
|
+
|
|
1123
|
+
run_ids : typing.Optional[typing.Sequence[str]]
|
|
1124
|
+
Optional list of run IDs to cancel
|
|
1112
1125
|
|
|
1113
1126
|
request_options : typing.Optional[RequestOptions]
|
|
1114
1127
|
Request-specific configuration.
|
|
@@ -1121,7 +1134,10 @@ class AsyncRawMessagesClient:
|
|
|
1121
1134
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1122
1135
|
f"v1/agents/{jsonable_encoder(agent_id)}/messages/cancel",
|
|
1123
1136
|
method="POST",
|
|
1124
|
-
json=
|
|
1137
|
+
json={
|
|
1138
|
+
"agent_id": cancel_agent_run_request_agent_id,
|
|
1139
|
+
"run_ids": run_ids,
|
|
1140
|
+
},
|
|
1125
1141
|
headers={
|
|
1126
1142
|
"content-type": "application/json",
|
|
1127
1143
|
},
|
|
@@ -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.262",
|
|
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.262",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
|
@@ -25,8 +25,8 @@ letta_client/agents/memory_variables/raw_client.py,sha256=lwWJQlKh4InQgrCH8iHPBw
|
|
|
25
25
|
letta_client/agents/memory_variables/types/__init__.py,sha256=r_Wc0Jjyp1_Y2qC_eWsabWx1sTwoxAaV1s24y8Ep_Zg,200
|
|
26
26
|
letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha256=iAXAqp-J0fnyUK4MMa3PMrYwqQfbui3tiaWaWR9_O5M,600
|
|
27
27
|
letta_client/agents/messages/__init__.py,sha256=e8v77Rj3x-BqXX_NKI1ON66_rDZwbb7ub2nGivPuxnM,373
|
|
28
|
-
letta_client/agents/messages/client.py,sha256
|
|
29
|
-
letta_client/agents/messages/raw_client.py,sha256=
|
|
28
|
+
letta_client/agents/messages/client.py,sha256=-qI-hj3kkewt7GOJaZYQsNJuO4rl9b-YCX3PbToSFXs,40401
|
|
29
|
+
letta_client/agents/messages/raw_client.py,sha256=HO9ikIGqyBT2mjHGfFZnwlBaGzp_7oMif7Y8XAz83SM,58034
|
|
30
30
|
letta_client/agents/messages/types/__init__.py,sha256=UVYgxnuengkOnW2BzXKiWodjQxdBEuwtJd7U83-TIbk,493
|
|
31
31
|
letta_client/agents/messages/types/letta_streaming_response.py,sha256=TEqXH71L621ToSXJpmJk8QUJE71QhXuZOVk4AMeWgFc,801
|
|
32
32
|
letta_client/agents/messages/types/messages_modify_request.py,sha256=0NT3pgbqQItc_p5cjBl4MaJ6bIMAlMhvdBJWm9zilpQ,476
|
|
@@ -92,7 +92,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
92
92
|
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
|
|
93
93
|
letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
|
|
94
94
|
letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
95
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
95
|
+
letta_client/core/client_wrapper.py,sha256=q7DCstn91yfi-qAXPl6hI1jtIeIbwfINZhycGO0LreA,2776
|
|
96
96
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
97
97
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
98
98
|
letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -518,6 +518,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
|
518
518
|
letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
519
519
|
letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
|
|
520
520
|
letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
|
|
521
|
-
letta_client-0.1.
|
|
522
|
-
letta_client-0.1.
|
|
523
|
-
letta_client-0.1.
|
|
521
|
+
letta_client-0.1.262.dist-info/METADATA,sha256=1VPmJxfBQqEx3n3gjE0vxuYT6u1nLyuvh51duQyxJrM,5781
|
|
522
|
+
letta_client-0.1.262.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
523
|
+
letta_client-0.1.262.dist-info/RECORD,,
|
|
File without changes
|