@@ -457,7 +457,7 @@ def create(
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 export (self , agent_id : str , * , request_options : typing .Optional [RequestOptions ] = None ) -> str :
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 @@ def export(self, agent_id: str, *, request_options: typing.Optional[RequestOptio
480
480
client = Letta(
481
481
token="YOUR_TOKEN",
482
482
)
483
- client.agents.export (
483
+ client.agents.export_file (
484
484
agent_id="agent_id",
485
485
)
486
486
"""
@@ -513,7 +513,7 @@ def export(self, agent_id: str, *, request_options: typing.Optional[RequestOptio
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 import_ (
516
+ def import_file (
517
517
self ,
518
518
* ,
519
519
file : core .File ,
@@ -558,7 +558,7 @@ def import_(
558
558
client = Letta(
559
559
token="YOUR_TOKEN",
560
560
)
561
- client.agents.import_ ()
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 @@ async def main() -> None:
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 export (self , agent_id : str , * , request_options : typing .Optional [RequestOptions ] = None ) -> str :
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 @@ async def export(self, agent_id: str, *, request_options: typing.Optional[Reques
1428
1428
1429
1429
1430
1430
async def main() -> None:
1431
- await client.agents.export (
1431
+ await client.agents.export_file (
1432
1432
agent_id="agent_id",
1433
1433
)
1434
1434
@@ -1464,7 +1464,7 @@ async def main() -> None:
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 import_ (
1467
+ async def import_file (
1468
1468
self ,
1469
1469
* ,
1470
1470
file : core .File ,
@@ -1514,7 +1514,7 @@ async def import_(
1514
1514
1515
1515
1516
1516
async def main() -> None:
1517
- await client.agents.import_ ()
1517
+ await client.agents.import_file ()
1518
1518
1519
1519
1520
1520
asyncio.run(main())
0 commit comments