letta-client 0.1.125__py3-none-any.whl → 0.1.126__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/client.py +8 -8
- letta_client/core/client_wrapper.py +1 -1
- {letta_client-0.1.125.dist-info → letta_client-0.1.126.dist-info}/METADATA +1 -1
- {letta_client-0.1.125.dist-info → letta_client-0.1.126.dist-info}/RECORD +5 -5
- {letta_client-0.1.125.dist-info → letta_client-0.1.126.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -457,7 +457,7 @@ class AgentsClient:
|
|
|
457
457
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
458
458
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
459
459
|
|
|
460
|
-
def
|
|
460
|
+
def export_file(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> str:
|
|
461
461
|
"""
|
|
462
462
|
Export the serialized JSON representation of an agent, formatted with indentation.
|
|
463
463
|
|
|
@@ -480,7 +480,7 @@ class AgentsClient:
|
|
|
480
480
|
client = Letta(
|
|
481
481
|
token="YOUR_TOKEN",
|
|
482
482
|
)
|
|
483
|
-
client.agents.
|
|
483
|
+
client.agents.export_file(
|
|
484
484
|
agent_id="agent_id",
|
|
485
485
|
)
|
|
486
486
|
"""
|
|
@@ -513,7 +513,7 @@ class AgentsClient:
|
|
|
513
513
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
514
514
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
515
515
|
|
|
516
|
-
def
|
|
516
|
+
def import_file(
|
|
517
517
|
self,
|
|
518
518
|
*,
|
|
519
519
|
file: core.File,
|
|
@@ -558,7 +558,7 @@ class AgentsClient:
|
|
|
558
558
|
client = Letta(
|
|
559
559
|
token="YOUR_TOKEN",
|
|
560
560
|
)
|
|
561
|
-
client.agents.
|
|
561
|
+
client.agents.import_file()
|
|
562
562
|
"""
|
|
563
563
|
_response = self._client_wrapper.httpx_client.request(
|
|
564
564
|
"v1/agents/import",
|
|
@@ -1400,7 +1400,7 @@ class AsyncAgentsClient:
|
|
|
1400
1400
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
1401
1401
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
1402
1402
|
|
|
1403
|
-
async def
|
|
1403
|
+
async def export_file(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> str:
|
|
1404
1404
|
"""
|
|
1405
1405
|
Export the serialized JSON representation of an agent, formatted with indentation.
|
|
1406
1406
|
|
|
@@ -1428,7 +1428,7 @@ class AsyncAgentsClient:
|
|
|
1428
1428
|
|
|
1429
1429
|
|
|
1430
1430
|
async def main() -> None:
|
|
1431
|
-
await client.agents.
|
|
1431
|
+
await client.agents.export_file(
|
|
1432
1432
|
agent_id="agent_id",
|
|
1433
1433
|
)
|
|
1434
1434
|
|
|
@@ -1464,7 +1464,7 @@ class AsyncAgentsClient:
|
|
|
1464
1464
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
1465
1465
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
1466
1466
|
|
|
1467
|
-
async def
|
|
1467
|
+
async def import_file(
|
|
1468
1468
|
self,
|
|
1469
1469
|
*,
|
|
1470
1470
|
file: core.File,
|
|
@@ -1514,7 +1514,7 @@ class AsyncAgentsClient:
|
|
|
1514
1514
|
|
|
1515
1515
|
|
|
1516
1516
|
async def main() -> None:
|
|
1517
|
-
await client.agents.
|
|
1517
|
+
await client.agents.import_file()
|
|
1518
1518
|
|
|
1519
1519
|
|
|
1520
1520
|
asyncio.run(main())
|
|
@@ -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.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.126",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=R3neG9CgcQqil-7rjghhSMtUCN-gq_Vnv9qaDfzeFpk,1618
|
|
|
2
2
|
letta_client/agents/__init__.py,sha256=C46uidjw-_nowv5mqI7lsXUKvoW49utJHL_k-F7HIyY,1616
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=u5zvutxoH_DqfSLWhRtNSRBC9_ezQDx682cxkxDz3JA,23822
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=FT8PtaRXUqf5hT-_isAkTM46cWl2TV3-a_qx-SNekiM,76426
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -61,7 +61,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
61
61
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
62
62
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
63
63
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
64
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
64
|
+
letta_client/core/client_wrapper.py,sha256=NRts-QvyxoSwrvzoo_CtEr08cXAsCD1B7jAC65Sweoo,1998
|
|
65
65
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
66
66
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
67
67
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -373,6 +373,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
373
373
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
374
374
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
375
375
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
376
|
-
letta_client-0.1.
|
|
377
|
-
letta_client-0.1.
|
|
378
|
-
letta_client-0.1.
|
|
376
|
+
letta_client-0.1.126.dist-info/METADATA,sha256=3kvJNUhx2st8jHYtDBzf6Ud7ENKpGpGyFM20qU4HogY,5042
|
|
377
|
+
letta_client-0.1.126.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
378
|
+
letta_client-0.1.126.dist-info/RECORD,,
|
|
File without changes
|