letta-client 0.1.131__py3-none-any.whl → 0.1.133__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/core/client_wrapper.py +1 -1
- letta_client/types/group.py +10 -0
- letta_client/types/message.py +4 -9
- letta_client/types/voice_sleeptime_manager.py +10 -0
- letta_client/types/voice_sleeptime_manager_update.py +10 -0
- {letta_client-0.1.131.dist-info → letta_client-0.1.133.dist-info}/METADATA +1 -1
- {letta_client-0.1.131.dist-info → letta_client-0.1.133.dist-info}/RECORD +8 -8
- {letta_client-0.1.131.dist-info → letta_client-0.1.133.dist-info}/WHEEL +0 -0
|
@@ -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.133",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/types/group.py
CHANGED
|
@@ -63,6 +63,16 @@ class Group(UncheckedBaseModel):
|
|
|
63
63
|
|
|
64
64
|
"""
|
|
65
65
|
|
|
66
|
+
max_message_buffer_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
67
|
+
"""
|
|
68
|
+
The desired maximum length of messages in the context window of the convo agent. This is a best effort, and may be off slightly due to user/assistant interleaving.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
min_message_buffer_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
72
|
+
"""
|
|
73
|
+
The desired minimum length of messages in the context window of the convo agent. This is a best effort, and may be off-by-one due to user/assistant interleaving.
|
|
74
|
+
"""
|
|
75
|
+
|
|
66
76
|
if IS_PYDANTIC_V2:
|
|
67
77
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
68
78
|
else:
|
letta_client/types/message.py
CHANGED
|
@@ -17,20 +17,15 @@ class Message(UncheckedBaseModel):
|
|
|
17
17
|
|
|
18
18
|
Attributes:
|
|
19
19
|
id (str): The unique identifier of the message.
|
|
20
|
-
|
|
20
|
+
role (MessageRole): The role of the participant.
|
|
21
|
+
text (str): The text of the message.
|
|
22
|
+
user_id (str): The unique identifier of the user.
|
|
21
23
|
agent_id (str): The unique identifier of the agent.
|
|
22
24
|
model (str): The model used to make the function call.
|
|
23
|
-
role (MessageRole): The role of the participant.
|
|
24
|
-
content (List[LettaMessageContentUnion]): The content of the message.
|
|
25
25
|
name (str): The name of the participant.
|
|
26
|
+
created_at (datetime): The time the message was created.
|
|
26
27
|
tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
|
|
27
28
|
tool_call_id (str): The id of the tool call.
|
|
28
|
-
step_id (str): The id of the step that this message was created in.
|
|
29
|
-
otid (str): The offline threading id associated with this message.
|
|
30
|
-
tool_returns (List[ToolReturn]): Tool execution return information for prior tool calls.
|
|
31
|
-
group_id (str): The multi-agent group that the message was sent in.
|
|
32
|
-
sender_id (str): The id of the sender of the message, can be an identity id or agent id.
|
|
33
|
-
created_at (datetime): The timestamp when the object was created.
|
|
34
29
|
"""
|
|
35
30
|
|
|
36
31
|
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -13,6 +13,16 @@ class VoiceSleeptimeManager(UncheckedBaseModel):
|
|
|
13
13
|
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
+
max_message_buffer_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
The desired maximum length of messages in the context window of the convo agent. This is a best effort, and may be off slightly due to user/assistant interleaving.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
min_message_buffer_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
The desired minimum length of messages in the context window of the convo agent. This is a best effort, and may be off-by-one due to user/assistant interleaving.
|
|
24
|
+
"""
|
|
25
|
+
|
|
16
26
|
if IS_PYDANTIC_V2:
|
|
17
27
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
28
|
else:
|
|
@@ -13,6 +13,16 @@ class VoiceSleeptimeManagerUpdate(UncheckedBaseModel):
|
|
|
13
13
|
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
+
max_message_buffer_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
The desired maximum length of messages in the context window of the convo agent. This is a best effort, and may be off slightly due to user/assistant interleaving.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
min_message_buffer_length: typing.Optional[int] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
The desired minimum length of messages in the context window of the convo agent. This is a best effort, and may be off-by-one due to user/assistant interleaving.
|
|
24
|
+
"""
|
|
25
|
+
|
|
16
26
|
if IS_PYDANTIC_V2:
|
|
17
27
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
28
|
else:
|
|
@@ -62,7 +62,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
62
62
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
63
63
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
64
64
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
65
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
65
|
+
letta_client/core/client_wrapper.py,sha256=cDeR6FF-czVBQDowQ9fyiCtXMQAwPbEJf2sjTxQerMo,1998
|
|
66
66
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
67
67
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
68
68
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -243,7 +243,7 @@ letta_client/types/function_definition_input.py,sha256=UpoD7ftRpHquJ5zhy28TjXPBV
|
|
|
243
243
|
letta_client/types/function_definition_output.py,sha256=Id0SzyiMHF5l25iKQhCN4sWJwBJ7AkYK-I5RDZy3_rc,741
|
|
244
244
|
letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlrMB8S2xas,578
|
|
245
245
|
letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
|
|
246
|
-
letta_client/types/group.py,sha256=
|
|
246
|
+
letta_client/types/group.py,sha256=6Cv30-JOOfRsOG_T9d1rifW40-eYj9g6OR9BvdP7Ppc,2106
|
|
247
247
|
letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
|
|
248
248
|
letta_client/types/hidden_reasoning_message.py,sha256=yXIm8xuWhmCGo5v-s9rjFNW2hffv7K1KAuvkL8P9J3s,1528
|
|
249
249
|
letta_client/types/hidden_reasoning_message_state.py,sha256=qotAgF_P4T7OEHzbhGDVFaLZYOs1ULMPVHmiFvoRIfM,174
|
|
@@ -283,7 +283,7 @@ letta_client/types/max_count_per_step_tool_rule_schema.py,sha256=1Zq4vblRTqFycqk
|
|
|
283
283
|
letta_client/types/mcp_server_type.py,sha256=Hv45mKMPzmey2UVjwrTAvWXP1sDd13UwAtvtogBloLo,153
|
|
284
284
|
letta_client/types/mcp_tool.py,sha256=_GSTb0k8l-IUEflRkQ6-v45UnbTcA4Nv1N8sgmExJQ0,912
|
|
285
285
|
letta_client/types/memory.py,sha256=KD5MkDQB-vbRPT9f_-yFBWY1WUW_NWxYEI0IiflG6P8,1035
|
|
286
|
-
letta_client/types/message.py,sha256=
|
|
286
|
+
letta_client/types/message.py,sha256=npZKMX6fryL2F1ODDoWT3XWeh-pHeEJ1IIgbnSzgGcQ,3936
|
|
287
287
|
letta_client/types/message_content_item.py,sha256=mg2npSBRXsH7-fAwhx9YhkVbeCF3cM8pE6fPYtUDIyc,550
|
|
288
288
|
letta_client/types/message_create.py,sha256=FkABWA09E1Ra47o0g53zf7b6DqgMfT_9XXQUv30tCdw,1445
|
|
289
289
|
letta_client/types/message_create_content.py,sha256=KL3XAVKVrdsh4DZwdxKofUyehS-vnOT_VJNVzZDpE20,226
|
|
@@ -369,8 +369,8 @@ letta_client/types/user_message_content.py,sha256=JHOtxDEVm7FKDb6Ac2Hw7tAl5HCTDD
|
|
|
369
369
|
letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wDLkP4,731
|
|
370
370
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
371
371
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
372
|
-
letta_client/types/voice_sleeptime_manager.py,sha256=
|
|
373
|
-
letta_client/types/voice_sleeptime_manager_update.py,sha256=
|
|
372
|
+
letta_client/types/voice_sleeptime_manager.py,sha256=DGXoHsOVes0HA3xU_qX8JQUzTSkk6HmKF5qW1-xlGlQ,1224
|
|
373
|
+
letta_client/types/voice_sleeptime_manager_update.py,sha256=3fdAA7gSiPRr1sufzTTRdhovW1jn7kPU8m6oMvvOONU,1259
|
|
374
374
|
letta_client/types/web_search_options.py,sha256=ENx_YMOh8Dxj6q57LvuM7Qmq_j2h5WJh9D91lbBnj90,863
|
|
375
375
|
letta_client/types/web_search_options_search_context_size.py,sha256=RgJGV4rkuaCTcaS4zsw_MWzRlTYpyNT9QqzNvpd1Gno,182
|
|
376
376
|
letta_client/types/web_search_options_user_location.py,sha256=4aXfFcwUBu7YNA5XBjfhmD6tgRb0e8LTFexmn-rkDfw,770
|
|
@@ -380,6 +380,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
380
380
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
381
381
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
382
382
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
383
|
-
letta_client-0.1.
|
|
384
|
-
letta_client-0.1.
|
|
385
|
-
letta_client-0.1.
|
|
383
|
+
letta_client-0.1.133.dist-info/METADATA,sha256=8Uaijt9nM-Lyb5ms2QY_FGYFTahr5YNTTM7xMLnz2i0,5042
|
|
384
|
+
letta_client-0.1.133.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
385
|
+
letta_client-0.1.133.dist-info/RECORD,,
|
|
File without changes
|