letta-client 0.1.229__py3-none-any.whl → 0.1.231__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/__init__.py +2 -0
- letta_client/agents/messages/types/letta_streaming_response.py +2 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/__init__.py +2 -0
- letta_client/types/letta_ping.py +26 -0
- {letta_client-0.1.229.dist-info → letta_client-0.1.231.dist-info}/METADATA +1 -1
- {letta_client-0.1.229.dist-info → letta_client-0.1.231.dist-info}/RECORD +8 -7
- {letta_client-0.1.229.dist-info → letta_client-0.1.231.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -135,6 +135,7 @@ from .types import (
|
|
|
135
135
|
LettaImage,
|
|
136
136
|
LettaMessageContentUnion,
|
|
137
137
|
LettaMessageUnion,
|
|
138
|
+
LettaPing,
|
|
138
139
|
LettaRequest,
|
|
139
140
|
LettaRequestConfig,
|
|
140
141
|
LettaResponse,
|
|
@@ -517,6 +518,7 @@ __all__ = [
|
|
|
517
518
|
"LettaImage",
|
|
518
519
|
"LettaMessageContentUnion",
|
|
519
520
|
"LettaMessageUnion",
|
|
521
|
+
"LettaPing",
|
|
520
522
|
"LettaRequest",
|
|
521
523
|
"LettaRequestConfig",
|
|
522
524
|
"LettaResponse",
|
|
@@ -7,6 +7,7 @@ from ....types.reasoning_message import ReasoningMessage
|
|
|
7
7
|
from ....types.tool_call_message import ToolCallMessage
|
|
8
8
|
from ....types.tool_return_message import ToolReturnMessage
|
|
9
9
|
from ....types.assistant_message import AssistantMessage
|
|
10
|
+
from ....types.letta_ping import LettaPing
|
|
10
11
|
from ....types.letta_stop_reason import LettaStopReason
|
|
11
12
|
from ....types.letta_usage_statistics import LettaUsageStatistics
|
|
12
13
|
|
|
@@ -17,6 +18,7 @@ LettaStreamingResponse = typing.Union[
|
|
|
17
18
|
ToolCallMessage,
|
|
18
19
|
ToolReturnMessage,
|
|
19
20
|
AssistantMessage,
|
|
21
|
+
LettaPing,
|
|
20
22
|
LettaStopReason,
|
|
21
23
|
LettaUsageStatistics,
|
|
22
24
|
]
|
|
@@ -24,7 +24,7 @@ class BaseClientWrapper:
|
|
|
24
24
|
headers: typing.Dict[str, str] = {
|
|
25
25
|
"X-Fern-Language": "Python",
|
|
26
26
|
"X-Fern-SDK-Name": "letta-client",
|
|
27
|
-
"X-Fern-SDK-Version": "0.1.
|
|
27
|
+
"X-Fern-SDK-Version": "0.1.231",
|
|
28
28
|
}
|
|
29
29
|
if self._project is not None:
|
|
30
30
|
headers["X-Project"] = self._project
|
letta_client/types/__init__.py
CHANGED
|
@@ -134,6 +134,7 @@ from .letta_batch_request import LettaBatchRequest
|
|
|
134
134
|
from .letta_image import LettaImage
|
|
135
135
|
from .letta_message_content_union import LettaMessageContentUnion
|
|
136
136
|
from .letta_message_union import LettaMessageUnion
|
|
137
|
+
from .letta_ping import LettaPing
|
|
137
138
|
from .letta_request import LettaRequest
|
|
138
139
|
from .letta_request_config import LettaRequestConfig
|
|
139
140
|
from .letta_response import LettaResponse
|
|
@@ -403,6 +404,7 @@ __all__ = [
|
|
|
403
404
|
"LettaImage",
|
|
404
405
|
"LettaMessageContentUnion",
|
|
405
406
|
"LettaMessageUnion",
|
|
407
|
+
"LettaPing",
|
|
406
408
|
"LettaRequest",
|
|
407
409
|
"LettaRequestConfig",
|
|
408
410
|
"LettaResponse",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LettaPing(UncheckedBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Ping messages are a keep-alive to prevent SSE streams from timing out during long running requests.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
message_type: typing.Literal["ping"] = pydantic.Field(default="ping")
|
|
15
|
+
"""
|
|
16
|
+
The type of the message.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
21
|
+
else:
|
|
22
|
+
|
|
23
|
+
class Config:
|
|
24
|
+
frozen = True
|
|
25
|
+
smart_union = True
|
|
26
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=zkYi8D8O_wGSfHTCWPG0fdV8EMK54XIu7yXZqScklf0,19702
|
|
2
2
|
letta_client/agents/__init__.py,sha256=9wEJMighDL1OFg_7Qh-D50bubPbV4BWo1ZKYxdDJGIQ,2146
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=kCAcU1ACOKRCrjEYPyCQslWBjtsq7m4QboQP0wwLQy8,25392
|
|
@@ -20,7 +20,7 @@ letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha
|
|
|
20
20
|
letta_client/agents/messages/__init__.py,sha256=RSmlezGH90RirElX0LHusjD03EN6UqGsrS-A0Bue2hA,353
|
|
21
21
|
letta_client/agents/messages/client.py,sha256=yh3gXasaH-rwTRyz64CJjR_AbpX05Ncb4LvilqnaN0Y,59548
|
|
22
22
|
letta_client/agents/messages/types/__init__.py,sha256=uDn0e1-EJ7g2U0EHD8SkP38liALoVCTJ7bJhUAOutwE,473
|
|
23
|
-
letta_client/agents/messages/types/letta_streaming_response.py,sha256=
|
|
23
|
+
letta_client/agents/messages/types/letta_streaming_response.py,sha256=jsMJlIpXfQ0EIe6KNJySRs7HDSZL8b_hZG6taNt4SFk,800
|
|
24
24
|
letta_client/agents/messages/types/messages_modify_request.py,sha256=7C2X3BKye-YDSXOkdEmxxt34seI4jkLK0-govtc4nhg,475
|
|
25
25
|
letta_client/agents/messages/types/messages_modify_response.py,sha256=THyiUMxZyzVSp0kk1s0XOLW1LUass7mXcfFER1PTLyw,671
|
|
26
26
|
letta_client/agents/messages/types/messages_preview_raw_payload_request.py,sha256=Lat4Nj4LETdWswrF9PJfDZVw23KvQGVUvw9JXXPYY8I,282
|
|
@@ -75,7 +75,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
75
75
|
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
|
|
76
76
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
77
77
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
78
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
78
|
+
letta_client/core/client_wrapper.py,sha256=TKdZvNHGCwT3gA3EjesOaZdXjOrAOkUqUSPjGOQR1g0,2336
|
|
79
79
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
80
80
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
81
81
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -181,7 +181,7 @@ letta_client/tools/types/streaming_response.py,sha256=E7W0OqxHFmhU2slJdzVZBxQA50
|
|
|
181
181
|
letta_client/tools/types/test_mcp_server_request.py,sha256=sLlOEZdmLfkHqHCkUjntGbr8_MkBhsqpMQ-HwdNOnq0,372
|
|
182
182
|
letta_client/tools/types/update_mcp_server_request.py,sha256=nCpx9-OvpH0l5iJxEi8kgSok1F1r7liEAZm-kaqBtEo,402
|
|
183
183
|
letta_client/tools/types/update_mcp_server_response.py,sha256=muwHagaQBMwQI0of9EBCBtG9lD-jELFAevgTB2MjpFQ,375
|
|
184
|
-
letta_client/types/__init__.py,sha256=
|
|
184
|
+
letta_client/types/__init__.py,sha256=vwInts4lc4NivZj2oVTYob2i4SLI04ZB-Oz1HpqAGK4,23325
|
|
185
185
|
letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
|
|
186
186
|
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
187
187
|
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
@@ -316,6 +316,7 @@ letta_client/types/letta_batch_request.py,sha256=cNxnDcz7ob626oCJb4a6tpD3cQqk5f9
|
|
|
316
316
|
letta_client/types/letta_image.py,sha256=HA__0Gq0BpKHeUUxIT2TmEfyY18F2DrauiGlijWv-HA,1138
|
|
317
317
|
letta_client/types/letta_message_content_union.py,sha256=ypGyeR8PGqPGaAWtLWjDkWwG9oa4AWcL44y-RfLJVvw,540
|
|
318
318
|
letta_client/types/letta_message_union.py,sha256=TTQwlur2CZNdZ466Nb_2TFcSFXrgoMliaNzD33t7Ktw,603
|
|
319
|
+
letta_client/types/letta_ping.py,sha256=FjGuMn9LuYBJQ1u3XB59yH_gJ1uVl8QHgG9dfN93zk8,780
|
|
319
320
|
letta_client/types/letta_request.py,sha256=icbaI29DCFiCE5Y19WrdXz0VdIu3kq34hlGTlD9uTZE,1834
|
|
320
321
|
letta_client/types/letta_request_config.py,sha256=OW5TNyTfbBMfRcWp5Aje_-7vjS0zVzYCmQGKLUtJezU,1346
|
|
321
322
|
letta_client/types/letta_response.py,sha256=5brJ39B8PxTBpm5_clL9XGP1SQ1pox-G0gxMDkitMlw,1395
|
|
@@ -448,6 +449,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
448
449
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
449
450
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
450
451
|
letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
|
|
451
|
-
letta_client-0.1.
|
|
452
|
-
letta_client-0.1.
|
|
453
|
-
letta_client-0.1.
|
|
452
|
+
letta_client-0.1.231.dist-info/METADATA,sha256=XPzQfLl82iPD2nm2tgtQs_LHDYSYV7kCms6ej4zG1hg,5064
|
|
453
|
+
letta_client-0.1.231.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
454
|
+
letta_client-0.1.231.dist-info/RECORD,,
|
|
File without changes
|