letta-client 0.1.241__py3-none-any.whl → 0.1.242__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 +18 -8
- letta_client/agents/raw_client.py +20 -12
- letta_client/core/client_wrapper.py +2 -2
- {letta_client-0.1.241.dist-info → letta_client-0.1.242.dist-info}/METADATA +1 -1
- {letta_client-0.1.241.dist-info → letta_client-0.1.242.dist-info}/RECORD +6 -6
- {letta_client-0.1.241.dist-info → letta_client-0.1.242.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -491,10 +491,11 @@ class AgentsClient:
|
|
|
491
491
|
self,
|
|
492
492
|
*,
|
|
493
493
|
file: core.File,
|
|
494
|
-
append_copy_suffix: typing.Optional[bool] =
|
|
495
|
-
override_existing_tools: typing.Optional[bool] =
|
|
496
|
-
project_id: typing.Optional[str] =
|
|
497
|
-
strip_messages: typing.Optional[bool] =
|
|
494
|
+
append_copy_suffix: typing.Optional[bool] = OMIT,
|
|
495
|
+
override_existing_tools: typing.Optional[bool] = OMIT,
|
|
496
|
+
project_id: typing.Optional[str] = OMIT,
|
|
497
|
+
strip_messages: typing.Optional[bool] = OMIT,
|
|
498
|
+
env_vars: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
498
499
|
request_options: typing.Optional[RequestOptions] = None,
|
|
499
500
|
) -> AgentState:
|
|
500
501
|
"""
|
|
@@ -517,6 +518,9 @@ class AgentsClient:
|
|
|
517
518
|
strip_messages : typing.Optional[bool]
|
|
518
519
|
If set to True, strips all messages from the agent before importing.
|
|
519
520
|
|
|
521
|
+
env_vars : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
522
|
+
Environment variables to pass to the agent for tool execution.
|
|
523
|
+
|
|
520
524
|
request_options : typing.Optional[RequestOptions]
|
|
521
525
|
Request-specific configuration.
|
|
522
526
|
|
|
@@ -541,6 +545,7 @@ class AgentsClient:
|
|
|
541
545
|
override_existing_tools=override_existing_tools,
|
|
542
546
|
project_id=project_id,
|
|
543
547
|
strip_messages=strip_messages,
|
|
548
|
+
env_vars=env_vars,
|
|
544
549
|
request_options=request_options,
|
|
545
550
|
)
|
|
546
551
|
return _response.data
|
|
@@ -1390,10 +1395,11 @@ class AsyncAgentsClient:
|
|
|
1390
1395
|
self,
|
|
1391
1396
|
*,
|
|
1392
1397
|
file: core.File,
|
|
1393
|
-
append_copy_suffix: typing.Optional[bool] =
|
|
1394
|
-
override_existing_tools: typing.Optional[bool] =
|
|
1395
|
-
project_id: typing.Optional[str] =
|
|
1396
|
-
strip_messages: typing.Optional[bool] =
|
|
1398
|
+
append_copy_suffix: typing.Optional[bool] = OMIT,
|
|
1399
|
+
override_existing_tools: typing.Optional[bool] = OMIT,
|
|
1400
|
+
project_id: typing.Optional[str] = OMIT,
|
|
1401
|
+
strip_messages: typing.Optional[bool] = OMIT,
|
|
1402
|
+
env_vars: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1397
1403
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1398
1404
|
) -> AgentState:
|
|
1399
1405
|
"""
|
|
@@ -1416,6 +1422,9 @@ class AsyncAgentsClient:
|
|
|
1416
1422
|
strip_messages : typing.Optional[bool]
|
|
1417
1423
|
If set to True, strips all messages from the agent before importing.
|
|
1418
1424
|
|
|
1425
|
+
env_vars : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
1426
|
+
Environment variables to pass to the agent for tool execution.
|
|
1427
|
+
|
|
1419
1428
|
request_options : typing.Optional[RequestOptions]
|
|
1420
1429
|
Request-specific configuration.
|
|
1421
1430
|
|
|
@@ -1448,6 +1457,7 @@ class AsyncAgentsClient:
|
|
|
1448
1457
|
override_existing_tools=override_existing_tools,
|
|
1449
1458
|
project_id=project_id,
|
|
1450
1459
|
strip_messages=strip_messages,
|
|
1460
|
+
env_vars=env_vars,
|
|
1451
1461
|
request_options=request_options,
|
|
1452
1462
|
)
|
|
1453
1463
|
return _response.data
|
|
@@ -540,10 +540,11 @@ class RawAgentsClient:
|
|
|
540
540
|
self,
|
|
541
541
|
*,
|
|
542
542
|
file: core.File,
|
|
543
|
-
append_copy_suffix: typing.Optional[bool] =
|
|
544
|
-
override_existing_tools: typing.Optional[bool] =
|
|
545
|
-
project_id: typing.Optional[str] =
|
|
546
|
-
strip_messages: typing.Optional[bool] =
|
|
543
|
+
append_copy_suffix: typing.Optional[bool] = OMIT,
|
|
544
|
+
override_existing_tools: typing.Optional[bool] = OMIT,
|
|
545
|
+
project_id: typing.Optional[str] = OMIT,
|
|
546
|
+
strip_messages: typing.Optional[bool] = OMIT,
|
|
547
|
+
env_vars: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
547
548
|
request_options: typing.Optional[RequestOptions] = None,
|
|
548
549
|
) -> HttpResponse[AgentState]:
|
|
549
550
|
"""
|
|
@@ -566,6 +567,9 @@ class RawAgentsClient:
|
|
|
566
567
|
strip_messages : typing.Optional[bool]
|
|
567
568
|
If set to True, strips all messages from the agent before importing.
|
|
568
569
|
|
|
570
|
+
env_vars : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
571
|
+
Environment variables to pass to the agent for tool execution.
|
|
572
|
+
|
|
569
573
|
request_options : typing.Optional[RequestOptions]
|
|
570
574
|
Request-specific configuration.
|
|
571
575
|
|
|
@@ -577,13 +581,13 @@ class RawAgentsClient:
|
|
|
577
581
|
_response = self._client_wrapper.httpx_client.request(
|
|
578
582
|
"v1/agents/import",
|
|
579
583
|
method="POST",
|
|
580
|
-
|
|
584
|
+
data={
|
|
581
585
|
"append_copy_suffix": append_copy_suffix,
|
|
582
586
|
"override_existing_tools": override_existing_tools,
|
|
583
587
|
"project_id": project_id,
|
|
584
588
|
"strip_messages": strip_messages,
|
|
589
|
+
"env_vars": env_vars,
|
|
585
590
|
},
|
|
586
|
-
data={},
|
|
587
591
|
files={
|
|
588
592
|
"file": file,
|
|
589
593
|
},
|
|
@@ -1568,10 +1572,11 @@ class AsyncRawAgentsClient:
|
|
|
1568
1572
|
self,
|
|
1569
1573
|
*,
|
|
1570
1574
|
file: core.File,
|
|
1571
|
-
append_copy_suffix: typing.Optional[bool] =
|
|
1572
|
-
override_existing_tools: typing.Optional[bool] =
|
|
1573
|
-
project_id: typing.Optional[str] =
|
|
1574
|
-
strip_messages: typing.Optional[bool] =
|
|
1575
|
+
append_copy_suffix: typing.Optional[bool] = OMIT,
|
|
1576
|
+
override_existing_tools: typing.Optional[bool] = OMIT,
|
|
1577
|
+
project_id: typing.Optional[str] = OMIT,
|
|
1578
|
+
strip_messages: typing.Optional[bool] = OMIT,
|
|
1579
|
+
env_vars: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1575
1580
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1576
1581
|
) -> AsyncHttpResponse[AgentState]:
|
|
1577
1582
|
"""
|
|
@@ -1594,6 +1599,9 @@ class AsyncRawAgentsClient:
|
|
|
1594
1599
|
strip_messages : typing.Optional[bool]
|
|
1595
1600
|
If set to True, strips all messages from the agent before importing.
|
|
1596
1601
|
|
|
1602
|
+
env_vars : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
1603
|
+
Environment variables to pass to the agent for tool execution.
|
|
1604
|
+
|
|
1597
1605
|
request_options : typing.Optional[RequestOptions]
|
|
1598
1606
|
Request-specific configuration.
|
|
1599
1607
|
|
|
@@ -1605,13 +1613,13 @@ class AsyncRawAgentsClient:
|
|
|
1605
1613
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1606
1614
|
"v1/agents/import",
|
|
1607
1615
|
method="POST",
|
|
1608
|
-
|
|
1616
|
+
data={
|
|
1609
1617
|
"append_copy_suffix": append_copy_suffix,
|
|
1610
1618
|
"override_existing_tools": override_existing_tools,
|
|
1611
1619
|
"project_id": project_id,
|
|
1612
1620
|
"strip_messages": strip_messages,
|
|
1621
|
+
"env_vars": env_vars,
|
|
1613
1622
|
},
|
|
1614
|
-
data={},
|
|
1615
1623
|
files={
|
|
1616
1624
|
"file": file,
|
|
1617
1625
|
},
|
|
@@ -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.242",
|
|
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.242",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
|
@@ -3,7 +3,7 @@ letta_client/agents/__init__.py,sha256=JkuWGGNJsCfnMr2DFzQ1SiqEB1tcFZnafdidODi0_
|
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=Akx-1SYEXkmdtLtytPtdFNhVts8JkjC2aMQnnWgd8Ug,14735
|
|
5
5
|
letta_client/agents/blocks/raw_client.py,sha256=7tdlieWtGyMe1G5Ne9Rcujvr43DbD4K3hVJ7eiJNuFo,24454
|
|
6
|
-
letta_client/agents/client.py,sha256=
|
|
6
|
+
letta_client/agents/client.py,sha256=1n0EvSG1fCs7GIXSHYXgCPFQr_OFeGIl-LBW6THmozA,68030
|
|
7
7
|
letta_client/agents/context/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
8
8
|
letta_client/agents/context/client.py,sha256=fhpJFWRs6INGreRyEw9gsFnlUWR48vIHbN_jVIHIBrw,3052
|
|
9
9
|
letta_client/agents/context/raw_client.py,sha256=j2gko-oEFWuCgPkcX9jCv31OWvR6sTOtAYcSWllXYDs,4747
|
|
@@ -35,7 +35,7 @@ letta_client/agents/messages/types/messages_preview_raw_payload_request.py,sha25
|
|
|
35
35
|
letta_client/agents/passages/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
36
36
|
letta_client/agents/passages/client.py,sha256=XHPpqOH2BDjHkegTRM9MRdDVxW5VH40ERSFvWchWT48,16785
|
|
37
37
|
letta_client/agents/passages/raw_client.py,sha256=TnNrFsnrexrPVmemkFbRIBfFMcq1Iap2qk23L7mr1Z0,25710
|
|
38
|
-
letta_client/agents/raw_client.py,sha256=
|
|
38
|
+
letta_client/agents/raw_client.py,sha256=E82h9Jfj1vuvEiz0vyP_NUNmV-3G1KBOVNWVhUodDnk,89349
|
|
39
39
|
letta_client/agents/sources/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
40
40
|
letta_client/agents/sources/client.py,sha256=lCqB6FF9svrwf0oZSFs41WKlMXc-YRhUeb4FZkHbicM,6868
|
|
41
41
|
letta_client/agents/sources/raw_client.py,sha256=ts4c5UBuXzrHU-lFWWrYniQqrMEc8SN0rfiqNXJLP5Y,12399
|
|
@@ -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=ii8K01R7Asvwujt1pTWsb_mWCTbJBob1dQEZiuf-2y0,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
|
|
@@ -500,6 +500,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
|
500
500
|
letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
501
501
|
letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
|
|
502
502
|
letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
|
|
503
|
-
letta_client-0.1.
|
|
504
|
-
letta_client-0.1.
|
|
505
|
-
letta_client-0.1.
|
|
503
|
+
letta_client-0.1.242.dist-info/METADATA,sha256=stbdMztGwILqIFNXi--oH-N9wfiOykZeT72qvuTVYrE,5781
|
|
504
|
+
letta_client-0.1.242.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
505
|
+
letta_client-0.1.242.dist-info/RECORD,,
|
|
File without changes
|