letta-client 0.1.104__py3-none-any.whl → 0.1.105__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 +10 -11
- letta_client/core/client_wrapper.py +1 -1
- {letta_client-0.1.104.dist-info → letta_client-0.1.105.dist-info}/METADATA +1 -1
- {letta_client-0.1.104.dist-info → letta_client-0.1.105.dist-info}/RECORD +5 -5
- {letta_client-0.1.104.dist-info → letta_client-0.1.105.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -25,7 +25,6 @@ from ..types.llm_config import LlmConfig
|
|
|
25
25
|
from ..types.embedding_config import EmbeddingConfig
|
|
26
26
|
from ..types.message_create import MessageCreate
|
|
27
27
|
from ..core.serialization import convert_and_respect_annotation_metadata
|
|
28
|
-
from ..types.agent_schema import AgentSchema
|
|
29
28
|
from ..core.jsonable_encoder import jsonable_encoder
|
|
30
29
|
from .. import core
|
|
31
30
|
from .types.update_agent_tool_rules_item import UpdateAgentToolRulesItem
|
|
@@ -450,9 +449,9 @@ class AgentsClient:
|
|
|
450
449
|
|
|
451
450
|
def export_agent_serialized(
|
|
452
451
|
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
453
|
-
) ->
|
|
452
|
+
) -> typing.Optional[typing.Any]:
|
|
454
453
|
"""
|
|
455
|
-
Export the serialized JSON representation of an agent.
|
|
454
|
+
Export the serialized JSON representation of an agent, formatted with indentation.
|
|
456
455
|
|
|
457
456
|
Parameters
|
|
458
457
|
----------
|
|
@@ -463,7 +462,7 @@ class AgentsClient:
|
|
|
463
462
|
|
|
464
463
|
Returns
|
|
465
464
|
-------
|
|
466
|
-
|
|
465
|
+
typing.Optional[typing.Any]
|
|
467
466
|
Successful Response
|
|
468
467
|
|
|
469
468
|
Examples
|
|
@@ -485,9 +484,9 @@ class AgentsClient:
|
|
|
485
484
|
try:
|
|
486
485
|
if 200 <= _response.status_code < 300:
|
|
487
486
|
return typing.cast(
|
|
488
|
-
|
|
487
|
+
typing.Optional[typing.Any],
|
|
489
488
|
construct_type(
|
|
490
|
-
type_=
|
|
489
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
491
490
|
object_=_response.json(),
|
|
492
491
|
),
|
|
493
492
|
)
|
|
@@ -1587,9 +1586,9 @@ class AsyncAgentsClient:
|
|
|
1587
1586
|
|
|
1588
1587
|
async def export_agent_serialized(
|
|
1589
1588
|
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
1590
|
-
) ->
|
|
1589
|
+
) -> typing.Optional[typing.Any]:
|
|
1591
1590
|
"""
|
|
1592
|
-
Export the serialized JSON representation of an agent.
|
|
1591
|
+
Export the serialized JSON representation of an agent, formatted with indentation.
|
|
1593
1592
|
|
|
1594
1593
|
Parameters
|
|
1595
1594
|
----------
|
|
@@ -1600,7 +1599,7 @@ class AsyncAgentsClient:
|
|
|
1600
1599
|
|
|
1601
1600
|
Returns
|
|
1602
1601
|
-------
|
|
1603
|
-
|
|
1602
|
+
typing.Optional[typing.Any]
|
|
1604
1603
|
Successful Response
|
|
1605
1604
|
|
|
1606
1605
|
Examples
|
|
@@ -1630,9 +1629,9 @@ class AsyncAgentsClient:
|
|
|
1630
1629
|
try:
|
|
1631
1630
|
if 200 <= _response.status_code < 300:
|
|
1632
1631
|
return typing.cast(
|
|
1633
|
-
|
|
1632
|
+
typing.Optional[typing.Any],
|
|
1634
1633
|
construct_type(
|
|
1635
|
-
type_=
|
|
1634
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
1636
1635
|
object_=_response.json(),
|
|
1637
1636
|
),
|
|
1638
1637
|
)
|
|
@@ -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.105",
|
|
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=7ugIsCugujtSzOf2YYd4uZNYLJ5Mckl96-3PvjSkjdc,1431
|
|
|
2
2
|
letta_client/agents/__init__.py,sha256=CveigJGrnkw3yZ8S9yZ2DpK1HV0v1fU-khsiLJJ0uaU,1452
|
|
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=KWyPW3myIKutPPhoefUNWVBETC7i6RHiRvkgsB6H5jw,89351
|
|
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
|
|
@@ -44,7 +44,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
|
|
|
44
44
|
letta_client/client.py,sha256=k2mZqqEWciVmEQHgipjCK4kQILk74hpSqzcdNwdql9A,21212
|
|
45
45
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
46
46
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
47
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
47
|
+
letta_client/core/client_wrapper.py,sha256=tHoZJ-TPU5HwxBQe5X6E9Kg1du3pzvsLjc6vLwQAhMQ,1998
|
|
48
48
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
49
49
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
50
50
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -324,6 +324,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
324
324
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
325
325
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
326
326
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
327
|
-
letta_client-0.1.
|
|
328
|
-
letta_client-0.1.
|
|
329
|
-
letta_client-0.1.
|
|
327
|
+
letta_client-0.1.105.dist-info/METADATA,sha256=KwRPOdJkqvL0M2JeUzDdEVBL07zgs-t2DbS62Fx3S2I,5042
|
|
328
|
+
letta_client-0.1.105.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
329
|
+
letta_client-0.1.105.dist-info/RECORD,,
|
|
File without changes
|