letta-client 0.1.223__py3-none-any.whl → 0.1.224__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 +6 -20
- letta_client/core/client_wrapper.py +1 -1
- {letta_client-0.1.223.dist-info → letta_client-0.1.224.dist-info}/METADATA +1 -1
- {letta_client-0.1.223.dist-info → letta_client-0.1.224.dist-info}/RECORD +5 -5
- {letta_client-0.1.223.dist-info → letta_client-0.1.224.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -1027,7 +1027,7 @@ class AgentsClient:
|
|
|
1027
1027
|
|
|
1028
1028
|
def summarize_agent_conversation(
|
|
1029
1029
|
self, agent_id: str, *, max_message_length: int, request_options: typing.Optional[RequestOptions] = None
|
|
1030
|
-
) ->
|
|
1030
|
+
) -> None:
|
|
1031
1031
|
"""
|
|
1032
1032
|
Summarize an agent's conversation history to a target message length.
|
|
1033
1033
|
|
|
@@ -1046,8 +1046,7 @@ class AgentsClient:
|
|
|
1046
1046
|
|
|
1047
1047
|
Returns
|
|
1048
1048
|
-------
|
|
1049
|
-
|
|
1050
|
-
Successful Response
|
|
1049
|
+
None
|
|
1051
1050
|
|
|
1052
1051
|
Examples
|
|
1053
1052
|
--------
|
|
@@ -1072,13 +1071,7 @@ class AgentsClient:
|
|
|
1072
1071
|
)
|
|
1073
1072
|
try:
|
|
1074
1073
|
if 200 <= _response.status_code < 300:
|
|
1075
|
-
return
|
|
1076
|
-
AgentState,
|
|
1077
|
-
construct_type(
|
|
1078
|
-
type_=AgentState, # type: ignore
|
|
1079
|
-
object_=_response.json(),
|
|
1080
|
-
),
|
|
1081
|
-
)
|
|
1074
|
+
return
|
|
1082
1075
|
if _response.status_code == 422:
|
|
1083
1076
|
raise UnprocessableEntityError(
|
|
1084
1077
|
typing.cast(
|
|
@@ -2216,7 +2209,7 @@ class AsyncAgentsClient:
|
|
|
2216
2209
|
|
|
2217
2210
|
async def summarize_agent_conversation(
|
|
2218
2211
|
self, agent_id: str, *, max_message_length: int, request_options: typing.Optional[RequestOptions] = None
|
|
2219
|
-
) ->
|
|
2212
|
+
) -> None:
|
|
2220
2213
|
"""
|
|
2221
2214
|
Summarize an agent's conversation history to a target message length.
|
|
2222
2215
|
|
|
@@ -2235,8 +2228,7 @@ class AsyncAgentsClient:
|
|
|
2235
2228
|
|
|
2236
2229
|
Returns
|
|
2237
2230
|
-------
|
|
2238
|
-
|
|
2239
|
-
Successful Response
|
|
2231
|
+
None
|
|
2240
2232
|
|
|
2241
2233
|
Examples
|
|
2242
2234
|
--------
|
|
@@ -2269,13 +2261,7 @@ class AsyncAgentsClient:
|
|
|
2269
2261
|
)
|
|
2270
2262
|
try:
|
|
2271
2263
|
if 200 <= _response.status_code < 300:
|
|
2272
|
-
return
|
|
2273
|
-
AgentState,
|
|
2274
|
-
construct_type(
|
|
2275
|
-
type_=AgentState, # type: ignore
|
|
2276
|
-
object_=_response.json(),
|
|
2277
|
-
),
|
|
2278
|
-
)
|
|
2264
|
+
return
|
|
2279
2265
|
if _response.status_code == 422:
|
|
2280
2266
|
raise UnprocessableEntityError(
|
|
2281
2267
|
typing.cast(
|
|
@@ -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.224",
|
|
28
28
|
}
|
|
29
29
|
if self._project is not None:
|
|
30
30
|
headers["X-Project"] = self._project
|
|
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=SHGQJZEiJUN0sO7ZVdwwTenizJTldEs9YqrB-ux8vCk,1948
|
|
|
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
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=JlqySzI58BivgE_nP66kjAoKEiphgDuIhbGeQa2weF4,92037
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=O1gxStQyfzXi4MblatWalLTWM425gS_fndW3W_es08U,4887
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -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=xSoUSJswIYwHXAHKAT7yDaEoUmNqKq707H1hsvj6AKw,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
|
|
@@ -445,6 +445,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
445
445
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
446
446
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
447
447
|
letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
|
|
448
|
-
letta_client-0.1.
|
|
449
|
-
letta_client-0.1.
|
|
450
|
-
letta_client-0.1.
|
|
448
|
+
letta_client-0.1.224.dist-info/METADATA,sha256=vWY5btWhUxfgAemsZCMFxzK2SDhykSCQkkJAHABYCT8,5177
|
|
449
|
+
letta_client-0.1.224.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
450
|
+
letta_client-0.1.224.dist-info/RECORD,,
|
|
File without changes
|