letta-client 0.1.164__py3-none-any.whl → 0.1.166__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/__init__.py +2 -0
- letta_client/agents/client.py +48 -0
- letta_client/agents/messages/client.py +16 -14
- letta_client/agents/types/__init__.py +2 -0
- letta_client/agents/types/agents_search_request_sort_by.py +5 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/agent_state.py +10 -0
- letta_client/types/letta_request_config.py +6 -0
- {letta_client-0.1.164.dist-info → letta_client-0.1.166.dist-info}/METADATA +1 -1
- {letta_client-0.1.164.dist-info → letta_client-0.1.166.dist-info}/RECORD +12 -11
- {letta_client-0.1.164.dist-info → letta_client-0.1.166.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -287,6 +287,7 @@ from .agents import (
|
|
|
287
287
|
AgentsSearchRequestSearchItemOperator,
|
|
288
288
|
AgentsSearchRequestSearchItemTwo,
|
|
289
289
|
AgentsSearchRequestSearchItemZero,
|
|
290
|
+
AgentsSearchRequestSortBy,
|
|
290
291
|
AgentsSearchResponse,
|
|
291
292
|
CreateAgentRequestResponseFormat,
|
|
292
293
|
CreateAgentRequestToolRulesItem,
|
|
@@ -335,6 +336,7 @@ __all__ = [
|
|
|
335
336
|
"AgentsSearchRequestSearchItemOperator",
|
|
336
337
|
"AgentsSearchRequestSearchItemTwo",
|
|
337
338
|
"AgentsSearchRequestSearchItemZero",
|
|
339
|
+
"AgentsSearchRequestSortBy",
|
|
338
340
|
"AgentsSearchResponse",
|
|
339
341
|
"AppAuthScheme",
|
|
340
342
|
"AppAuthSchemeAuthMode",
|
letta_client/agents/__init__.py
CHANGED
|
@@ -7,6 +7,7 @@ from .types import (
|
|
|
7
7
|
AgentsSearchRequestSearchItemOperator,
|
|
8
8
|
AgentsSearchRequestSearchItemTwo,
|
|
9
9
|
AgentsSearchRequestSearchItemZero,
|
|
10
|
+
AgentsSearchRequestSortBy,
|
|
10
11
|
AgentsSearchResponse,
|
|
11
12
|
CreateAgentRequestResponseFormat,
|
|
12
13
|
CreateAgentRequestToolRulesItem,
|
|
@@ -25,6 +26,7 @@ __all__ = [
|
|
|
25
26
|
"AgentsSearchRequestSearchItemOperator",
|
|
26
27
|
"AgentsSearchRequestSearchItemTwo",
|
|
27
28
|
"AgentsSearchRequestSearchItemZero",
|
|
29
|
+
"AgentsSearchRequestSortBy",
|
|
28
30
|
"AgentsSearchResponse",
|
|
29
31
|
"CreateAgentRequestResponseFormat",
|
|
30
32
|
"CreateAgentRequestToolRulesItem",
|
letta_client/agents/client.py
CHANGED
|
@@ -31,7 +31,9 @@ from ..core.jsonable_encoder import jsonable_encoder
|
|
|
31
31
|
from .. import core
|
|
32
32
|
from .types.update_agent_tool_rules_item import UpdateAgentToolRulesItem
|
|
33
33
|
from .types.update_agent_response_format import UpdateAgentResponseFormat
|
|
34
|
+
import datetime as dt
|
|
34
35
|
from .types.agents_search_request_search_item import AgentsSearchRequestSearchItem
|
|
36
|
+
from .types.agents_search_request_sort_by import AgentsSearchRequestSortBy
|
|
35
37
|
from .types.agents_search_response import AgentsSearchResponse
|
|
36
38
|
from ..core.client_wrapper import AsyncClientWrapper
|
|
37
39
|
from .context.client import AsyncContextClient
|
|
@@ -80,6 +82,7 @@ class AgentsClient:
|
|
|
80
82
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
81
83
|
include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
82
84
|
ascending: typing.Optional[bool] = None,
|
|
85
|
+
sort_by: typing.Optional[str] = None,
|
|
83
86
|
request_options: typing.Optional[RequestOptions] = None,
|
|
84
87
|
) -> typing.List[AgentState]:
|
|
85
88
|
"""
|
|
@@ -132,6 +135,9 @@ class AgentsClient:
|
|
|
132
135
|
ascending : typing.Optional[bool]
|
|
133
136
|
Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
|
|
134
137
|
|
|
138
|
+
sort_by : typing.Optional[str]
|
|
139
|
+
Field to sort by. Options: 'created_at' (default), 'last_run_completion'
|
|
140
|
+
|
|
135
141
|
request_options : typing.Optional[RequestOptions]
|
|
136
142
|
Request-specific configuration.
|
|
137
143
|
|
|
@@ -167,6 +173,7 @@ class AgentsClient:
|
|
|
167
173
|
"identifier_keys": identifier_keys,
|
|
168
174
|
"include_relationships": include_relationships,
|
|
169
175
|
"ascending": ascending,
|
|
176
|
+
"sort_by": sort_by,
|
|
170
177
|
},
|
|
171
178
|
request_options=request_options,
|
|
172
179
|
)
|
|
@@ -804,6 +811,8 @@ class AgentsClient:
|
|
|
804
811
|
embedding: typing.Optional[str] = OMIT,
|
|
805
812
|
enable_sleeptime: typing.Optional[bool] = OMIT,
|
|
806
813
|
response_format: typing.Optional[UpdateAgentResponseFormat] = OMIT,
|
|
814
|
+
last_run_completion: typing.Optional[dt.datetime] = OMIT,
|
|
815
|
+
last_run_duration_ms: typing.Optional[int] = OMIT,
|
|
807
816
|
request_options: typing.Optional[RequestOptions] = None,
|
|
808
817
|
) -> AgentState:
|
|
809
818
|
"""
|
|
@@ -879,6 +888,12 @@ class AgentsClient:
|
|
|
879
888
|
response_format : typing.Optional[UpdateAgentResponseFormat]
|
|
880
889
|
The response format for the agent.
|
|
881
890
|
|
|
891
|
+
last_run_completion : typing.Optional[dt.datetime]
|
|
892
|
+
The timestamp when the agent last completed a run.
|
|
893
|
+
|
|
894
|
+
last_run_duration_ms : typing.Optional[int]
|
|
895
|
+
The duration in milliseconds of the agent's last run.
|
|
896
|
+
|
|
882
897
|
request_options : typing.Optional[RequestOptions]
|
|
883
898
|
Request-specific configuration.
|
|
884
899
|
|
|
@@ -932,6 +947,8 @@ class AgentsClient:
|
|
|
932
947
|
"response_format": convert_and_respect_annotation_metadata(
|
|
933
948
|
object_=response_format, annotation=UpdateAgentResponseFormat, direction="write"
|
|
934
949
|
),
|
|
950
|
+
"last_run_completion": last_run_completion,
|
|
951
|
+
"last_run_duration_ms": last_run_duration_ms,
|
|
935
952
|
},
|
|
936
953
|
headers={
|
|
937
954
|
"content-type": "application/json",
|
|
@@ -1039,6 +1056,8 @@ class AgentsClient:
|
|
|
1039
1056
|
combinator: typing.Optional[typing.Literal["AND"]] = OMIT,
|
|
1040
1057
|
limit: typing.Optional[float] = OMIT,
|
|
1041
1058
|
after: typing.Optional[str] = OMIT,
|
|
1059
|
+
sort_by: typing.Optional[AgentsSearchRequestSortBy] = OMIT,
|
|
1060
|
+
ascending: typing.Optional[bool] = OMIT,
|
|
1042
1061
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1043
1062
|
) -> AgentsSearchResponse:
|
|
1044
1063
|
"""
|
|
@@ -1058,6 +1077,10 @@ class AgentsClient:
|
|
|
1058
1077
|
|
|
1059
1078
|
after : typing.Optional[str]
|
|
1060
1079
|
|
|
1080
|
+
sort_by : typing.Optional[AgentsSearchRequestSortBy]
|
|
1081
|
+
|
|
1082
|
+
ascending : typing.Optional[bool]
|
|
1083
|
+
|
|
1061
1084
|
request_options : typing.Optional[RequestOptions]
|
|
1062
1085
|
Request-specific configuration.
|
|
1063
1086
|
|
|
@@ -1086,6 +1109,8 @@ class AgentsClient:
|
|
|
1086
1109
|
"combinator": combinator,
|
|
1087
1110
|
"limit": limit,
|
|
1088
1111
|
"after": after,
|
|
1112
|
+
"sortBy": sort_by,
|
|
1113
|
+
"ascending": ascending,
|
|
1089
1114
|
},
|
|
1090
1115
|
headers={
|
|
1091
1116
|
"content-type": "application/json",
|
|
@@ -1139,6 +1164,7 @@ class AsyncAgentsClient:
|
|
|
1139
1164
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
1140
1165
|
include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
1141
1166
|
ascending: typing.Optional[bool] = None,
|
|
1167
|
+
sort_by: typing.Optional[str] = None,
|
|
1142
1168
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1143
1169
|
) -> typing.List[AgentState]:
|
|
1144
1170
|
"""
|
|
@@ -1191,6 +1217,9 @@ class AsyncAgentsClient:
|
|
|
1191
1217
|
ascending : typing.Optional[bool]
|
|
1192
1218
|
Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
|
|
1193
1219
|
|
|
1220
|
+
sort_by : typing.Optional[str]
|
|
1221
|
+
Field to sort by. Options: 'created_at' (default), 'last_run_completion'
|
|
1222
|
+
|
|
1194
1223
|
request_options : typing.Optional[RequestOptions]
|
|
1195
1224
|
Request-specific configuration.
|
|
1196
1225
|
|
|
@@ -1234,6 +1263,7 @@ class AsyncAgentsClient:
|
|
|
1234
1263
|
"identifier_keys": identifier_keys,
|
|
1235
1264
|
"include_relationships": include_relationships,
|
|
1236
1265
|
"ascending": ascending,
|
|
1266
|
+
"sort_by": sort_by,
|
|
1237
1267
|
},
|
|
1238
1268
|
request_options=request_options,
|
|
1239
1269
|
)
|
|
@@ -1919,6 +1949,8 @@ class AsyncAgentsClient:
|
|
|
1919
1949
|
embedding: typing.Optional[str] = OMIT,
|
|
1920
1950
|
enable_sleeptime: typing.Optional[bool] = OMIT,
|
|
1921
1951
|
response_format: typing.Optional[UpdateAgentResponseFormat] = OMIT,
|
|
1952
|
+
last_run_completion: typing.Optional[dt.datetime] = OMIT,
|
|
1953
|
+
last_run_duration_ms: typing.Optional[int] = OMIT,
|
|
1922
1954
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1923
1955
|
) -> AgentState:
|
|
1924
1956
|
"""
|
|
@@ -1994,6 +2026,12 @@ class AsyncAgentsClient:
|
|
|
1994
2026
|
response_format : typing.Optional[UpdateAgentResponseFormat]
|
|
1995
2027
|
The response format for the agent.
|
|
1996
2028
|
|
|
2029
|
+
last_run_completion : typing.Optional[dt.datetime]
|
|
2030
|
+
The timestamp when the agent last completed a run.
|
|
2031
|
+
|
|
2032
|
+
last_run_duration_ms : typing.Optional[int]
|
|
2033
|
+
The duration in milliseconds of the agent's last run.
|
|
2034
|
+
|
|
1997
2035
|
request_options : typing.Optional[RequestOptions]
|
|
1998
2036
|
Request-specific configuration.
|
|
1999
2037
|
|
|
@@ -2055,6 +2093,8 @@ class AsyncAgentsClient:
|
|
|
2055
2093
|
"response_format": convert_and_respect_annotation_metadata(
|
|
2056
2094
|
object_=response_format, annotation=UpdateAgentResponseFormat, direction="write"
|
|
2057
2095
|
),
|
|
2096
|
+
"last_run_completion": last_run_completion,
|
|
2097
|
+
"last_run_duration_ms": last_run_duration_ms,
|
|
2058
2098
|
},
|
|
2059
2099
|
headers={
|
|
2060
2100
|
"content-type": "application/json",
|
|
@@ -2170,6 +2210,8 @@ class AsyncAgentsClient:
|
|
|
2170
2210
|
combinator: typing.Optional[typing.Literal["AND"]] = OMIT,
|
|
2171
2211
|
limit: typing.Optional[float] = OMIT,
|
|
2172
2212
|
after: typing.Optional[str] = OMIT,
|
|
2213
|
+
sort_by: typing.Optional[AgentsSearchRequestSortBy] = OMIT,
|
|
2214
|
+
ascending: typing.Optional[bool] = OMIT,
|
|
2173
2215
|
request_options: typing.Optional[RequestOptions] = None,
|
|
2174
2216
|
) -> AgentsSearchResponse:
|
|
2175
2217
|
"""
|
|
@@ -2189,6 +2231,10 @@ class AsyncAgentsClient:
|
|
|
2189
2231
|
|
|
2190
2232
|
after : typing.Optional[str]
|
|
2191
2233
|
|
|
2234
|
+
sort_by : typing.Optional[AgentsSearchRequestSortBy]
|
|
2235
|
+
|
|
2236
|
+
ascending : typing.Optional[bool]
|
|
2237
|
+
|
|
2192
2238
|
request_options : typing.Optional[RequestOptions]
|
|
2193
2239
|
Request-specific configuration.
|
|
2194
2240
|
|
|
@@ -2225,6 +2271,8 @@ class AsyncAgentsClient:
|
|
|
2225
2271
|
"combinator": combinator,
|
|
2226
2272
|
"limit": limit,
|
|
2227
2273
|
"after": after,
|
|
2274
|
+
"sortBy": sort_by,
|
|
2275
|
+
"ascending": ascending,
|
|
2228
2276
|
},
|
|
2229
2277
|
headers={
|
|
2230
2278
|
"content-type": "application/json",
|
|
@@ -438,12 +438,12 @@ class MessagesClient:
|
|
|
438
438
|
agent_id: str,
|
|
439
439
|
*,
|
|
440
440
|
messages: typing.Sequence[MessageCreate],
|
|
441
|
-
callback_url: typing.Optional[str] = None,
|
|
442
441
|
max_steps: typing.Optional[int] = OMIT,
|
|
443
442
|
use_assistant_message: typing.Optional[bool] = OMIT,
|
|
444
443
|
assistant_message_tool_name: typing.Optional[str] = OMIT,
|
|
445
444
|
assistant_message_tool_kwarg: typing.Optional[str] = OMIT,
|
|
446
445
|
include_return_message_types: typing.Optional[typing.Sequence[MessageType]] = OMIT,
|
|
446
|
+
callback_url: typing.Optional[str] = OMIT,
|
|
447
447
|
request_options: typing.Optional[RequestOptions] = None,
|
|
448
448
|
) -> Run:
|
|
449
449
|
"""
|
|
@@ -457,9 +457,6 @@ class MessagesClient:
|
|
|
457
457
|
messages : typing.Sequence[MessageCreate]
|
|
458
458
|
The messages to be sent to the agent.
|
|
459
459
|
|
|
460
|
-
callback_url : typing.Optional[str]
|
|
461
|
-
Optional callback URL to POST to when the job completes
|
|
462
|
-
|
|
463
460
|
max_steps : typing.Optional[int]
|
|
464
461
|
Maximum number of steps the agent should take to process the request.
|
|
465
462
|
|
|
@@ -475,6 +472,9 @@ class MessagesClient:
|
|
|
475
472
|
include_return_message_types : typing.Optional[typing.Sequence[MessageType]]
|
|
476
473
|
Only return specified message types in the response. If `None` (default) returns all messages.
|
|
477
474
|
|
|
475
|
+
callback_url : typing.Optional[str]
|
|
476
|
+
Optional callback URL to POST to when the job completes
|
|
477
|
+
|
|
478
478
|
request_options : typing.Optional[RequestOptions]
|
|
479
479
|
Request-specific configuration.
|
|
480
480
|
|
|
@@ -507,9 +507,6 @@ class MessagesClient:
|
|
|
507
507
|
_response = self._client_wrapper.httpx_client.request(
|
|
508
508
|
f"v1/agents/{jsonable_encoder(agent_id)}/messages/async",
|
|
509
509
|
method="POST",
|
|
510
|
-
params={
|
|
511
|
-
"callback_url": callback_url,
|
|
512
|
-
},
|
|
513
510
|
json={
|
|
514
511
|
"messages": convert_and_respect_annotation_metadata(
|
|
515
512
|
object_=messages, annotation=typing.Sequence[MessageCreate], direction="write"
|
|
@@ -519,6 +516,10 @@ class MessagesClient:
|
|
|
519
516
|
"assistant_message_tool_name": assistant_message_tool_name,
|
|
520
517
|
"assistant_message_tool_kwarg": assistant_message_tool_kwarg,
|
|
521
518
|
"include_return_message_types": include_return_message_types,
|
|
519
|
+
"callback_url": callback_url,
|
|
520
|
+
},
|
|
521
|
+
headers={
|
|
522
|
+
"content-type": "application/json",
|
|
522
523
|
},
|
|
523
524
|
request_options=request_options,
|
|
524
525
|
omit=OMIT,
|
|
@@ -1059,12 +1060,12 @@ class AsyncMessagesClient:
|
|
|
1059
1060
|
agent_id: str,
|
|
1060
1061
|
*,
|
|
1061
1062
|
messages: typing.Sequence[MessageCreate],
|
|
1062
|
-
callback_url: typing.Optional[str] = None,
|
|
1063
1063
|
max_steps: typing.Optional[int] = OMIT,
|
|
1064
1064
|
use_assistant_message: typing.Optional[bool] = OMIT,
|
|
1065
1065
|
assistant_message_tool_name: typing.Optional[str] = OMIT,
|
|
1066
1066
|
assistant_message_tool_kwarg: typing.Optional[str] = OMIT,
|
|
1067
1067
|
include_return_message_types: typing.Optional[typing.Sequence[MessageType]] = OMIT,
|
|
1068
|
+
callback_url: typing.Optional[str] = OMIT,
|
|
1068
1069
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1069
1070
|
) -> Run:
|
|
1070
1071
|
"""
|
|
@@ -1078,9 +1079,6 @@ class AsyncMessagesClient:
|
|
|
1078
1079
|
messages : typing.Sequence[MessageCreate]
|
|
1079
1080
|
The messages to be sent to the agent.
|
|
1080
1081
|
|
|
1081
|
-
callback_url : typing.Optional[str]
|
|
1082
|
-
Optional callback URL to POST to when the job completes
|
|
1083
|
-
|
|
1084
1082
|
max_steps : typing.Optional[int]
|
|
1085
1083
|
Maximum number of steps the agent should take to process the request.
|
|
1086
1084
|
|
|
@@ -1096,6 +1094,9 @@ class AsyncMessagesClient:
|
|
|
1096
1094
|
include_return_message_types : typing.Optional[typing.Sequence[MessageType]]
|
|
1097
1095
|
Only return specified message types in the response. If `None` (default) returns all messages.
|
|
1098
1096
|
|
|
1097
|
+
callback_url : typing.Optional[str]
|
|
1098
|
+
Optional callback URL to POST to when the job completes
|
|
1099
|
+
|
|
1099
1100
|
request_options : typing.Optional[RequestOptions]
|
|
1100
1101
|
Request-specific configuration.
|
|
1101
1102
|
|
|
@@ -1136,9 +1137,6 @@ class AsyncMessagesClient:
|
|
|
1136
1137
|
_response = await self._client_wrapper.httpx_client.request(
|
|
1137
1138
|
f"v1/agents/{jsonable_encoder(agent_id)}/messages/async",
|
|
1138
1139
|
method="POST",
|
|
1139
|
-
params={
|
|
1140
|
-
"callback_url": callback_url,
|
|
1141
|
-
},
|
|
1142
1140
|
json={
|
|
1143
1141
|
"messages": convert_and_respect_annotation_metadata(
|
|
1144
1142
|
object_=messages, annotation=typing.Sequence[MessageCreate], direction="write"
|
|
@@ -1148,6 +1146,10 @@ class AsyncMessagesClient:
|
|
|
1148
1146
|
"assistant_message_tool_name": assistant_message_tool_name,
|
|
1149
1147
|
"assistant_message_tool_kwarg": assistant_message_tool_kwarg,
|
|
1150
1148
|
"include_return_message_types": include_return_message_types,
|
|
1149
|
+
"callback_url": callback_url,
|
|
1150
|
+
},
|
|
1151
|
+
headers={
|
|
1152
|
+
"content-type": "application/json",
|
|
1151
1153
|
},
|
|
1152
1154
|
request_options=request_options,
|
|
1153
1155
|
omit=OMIT,
|
|
@@ -6,6 +6,7 @@ from .agents_search_request_search_item_one_operator import AgentsSearchRequestS
|
|
|
6
6
|
from .agents_search_request_search_item_operator import AgentsSearchRequestSearchItemOperator
|
|
7
7
|
from .agents_search_request_search_item_two import AgentsSearchRequestSearchItemTwo
|
|
8
8
|
from .agents_search_request_search_item_zero import AgentsSearchRequestSearchItemZero
|
|
9
|
+
from .agents_search_request_sort_by import AgentsSearchRequestSortBy
|
|
9
10
|
from .agents_search_response import AgentsSearchResponse
|
|
10
11
|
from .create_agent_request_response_format import CreateAgentRequestResponseFormat
|
|
11
12
|
from .create_agent_request_tool_rules_item import CreateAgentRequestToolRulesItem
|
|
@@ -19,6 +20,7 @@ __all__ = [
|
|
|
19
20
|
"AgentsSearchRequestSearchItemOperator",
|
|
20
21
|
"AgentsSearchRequestSearchItemTwo",
|
|
21
22
|
"AgentsSearchRequestSearchItemZero",
|
|
23
|
+
"AgentsSearchRequestSortBy",
|
|
22
24
|
"AgentsSearchResponse",
|
|
23
25
|
"CreateAgentRequestResponseFormat",
|
|
24
26
|
"CreateAgentRequestToolRulesItem",
|
|
@@ -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.166",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -170,6 +170,16 @@ class AgentState(UncheckedBaseModel):
|
|
|
170
170
|
The multi-agent group that this agent manages
|
|
171
171
|
"""
|
|
172
172
|
|
|
173
|
+
last_run_completion: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
174
|
+
"""
|
|
175
|
+
The timestamp when the agent last completed a run.
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
last_run_duration_ms: typing.Optional[int] = pydantic.Field(default=None)
|
|
179
|
+
"""
|
|
180
|
+
The duration in milliseconds of the agent's last run.
|
|
181
|
+
"""
|
|
182
|
+
|
|
173
183
|
if IS_PYDANTIC_V2:
|
|
174
184
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
175
185
|
else:
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
|
+
from .message_type import MessageType
|
|
6
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
8
|
|
|
8
9
|
|
|
@@ -22,6 +23,11 @@ class LettaRequestConfig(UncheckedBaseModel):
|
|
|
22
23
|
The name of the message argument in the designated message tool.
|
|
23
24
|
"""
|
|
24
25
|
|
|
26
|
+
include_return_message_types: typing.Optional[typing.List[MessageType]] = pydantic.Field(default=None)
|
|
27
|
+
"""
|
|
28
|
+
Only return specified message types in the response. If `None` (default) returns all messages.
|
|
29
|
+
"""
|
|
30
|
+
|
|
25
31
|
if IS_PYDANTIC_V2:
|
|
26
32
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
27
33
|
else:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
2
|
-
letta_client/agents/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=Dlv6NmNpxz9fGrD0dBUyZI7NS4IRMN5kESVb4UHT8Vo,17648
|
|
2
|
+
letta_client/agents/__init__.py,sha256=c_9OiE6ofyiPcq9BP37qvo7h0SKmw34PKN3KMxuRja0,1780
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=ecE03lE5tP1AtCMFLT9FzdYyQMx_D7NI5m42b41pV40,24684
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=baQrl1WhyBWCLe5Ve4TIIQRm8_EBk3K8YxH6TetJCaU,87911
|
|
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
|
|
@@ -14,7 +14,7 @@ letta_client/agents/memory_variables/client.py,sha256=6qFVbR_tdfqj4HQ1h1HXR8DZCV
|
|
|
14
14
|
letta_client/agents/memory_variables/types/__init__.py,sha256=EoznK0WvhCyFYd4KDdU-cGDQWpSXmq79BSkqVHN-j7A,180
|
|
15
15
|
letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha256=bsF__n_B4ZXEHzg--OVD6tHHXt_aM-FjHm2x1ZXPnL0,599
|
|
16
16
|
letta_client/agents/messages/__init__.py,sha256=M7Ar6Rmb8we4dfYE6jj3FCL9UvVFy1bNQIPflUXMWHA,243
|
|
17
|
-
letta_client/agents/messages/client.py,sha256=
|
|
17
|
+
letta_client/agents/messages/client.py,sha256=lxfPYFeBOvY3MWhWMDIth5uZEpir9KDg-9D3fT5cPMY,45685
|
|
18
18
|
letta_client/agents/messages/types/__init__.py,sha256=Oc2j0oGOs96IEFf9xsJIkjBjoq3OMtse64YwWv3F9Io,335
|
|
19
19
|
letta_client/agents/messages/types/letta_streaming_response.py,sha256=8VR2F32xjoPFXL4YBvBbAZclaJG4ENPTjk7BrlZkmtw,742
|
|
20
20
|
letta_client/agents/messages/types/messages_modify_request.py,sha256=7C2X3BKye-YDSXOkdEmxxt34seI4jkLK0-govtc4nhg,475
|
|
@@ -31,13 +31,14 @@ letta_client/agents/templates/types/templates_create_version_request_return_agen
|
|
|
31
31
|
letta_client/agents/templates/types/templates_migrate_response.py,sha256=7N4JtAaiao-LrNdi72K7XB01uXJVkczaKYIJIMf0QYs,577
|
|
32
32
|
letta_client/agents/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
33
33
|
letta_client/agents/tools/client.py,sha256=xZMRZhG8mI_h8_QqgI4lXh3FieRCLeoPwdtB56GB-XU,12685
|
|
34
|
-
letta_client/agents/types/__init__.py,sha256=
|
|
34
|
+
letta_client/agents/types/__init__.py,sha256=wh0A9KuavtD9a4NHJcjTG0Ok5xSsYipw1MVG-O_rR8E,1488
|
|
35
35
|
letta_client/agents/types/agents_search_request_search_item.py,sha256=oIWRth_5r-3Fd_rROsEsc7XIvC0yRYv4BxdPKuUl6CI,634
|
|
36
36
|
letta_client/agents/types/agents_search_request_search_item_one.py,sha256=ECWv-hDZen6AomM01zmRsOz0PlXVEwIwLHjid9yko9o,779
|
|
37
37
|
letta_client/agents/types/agents_search_request_search_item_one_operator.py,sha256=S1qYdfdUqUgZ0DzQ53x7GN_qa_4NypO7-qNkkxgsbQc,182
|
|
38
38
|
letta_client/agents/types/agents_search_request_search_item_operator.py,sha256=q9wNF1ubm5zw8_tykL4JWPEOH7SFLYLeTikjAszpZq8,678
|
|
39
39
|
letta_client/agents/types/agents_search_request_search_item_two.py,sha256=YBC-rhz_ToN948VyRy5VB1yT4JqtYcLD_V9hNrkgnfQ,690
|
|
40
40
|
letta_client/agents/types/agents_search_request_search_item_zero.py,sha256=tGjwnFqSofFMBSAogmPLEflDQZ2rMqoMfFUtaIpND18,630
|
|
41
|
+
letta_client/agents/types/agents_search_request_sort_by.py,sha256=svlezWF0A2JQlEnjjIXTMJnkrCjRot1r7ITCP1nQ4iQ,186
|
|
41
42
|
letta_client/agents/types/agents_search_response.py,sha256=AQJVKps-bjCx2ujqESzW1Iy9ZYFS17hH_UFIeBeK4S8,815
|
|
42
43
|
letta_client/agents/types/create_agent_request_response_format.py,sha256=1GUV3rFMj46bYpRHOB_H_WMNrQ5FkKIidKg60u8szHM,409
|
|
43
44
|
letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=L3FNsFTG9kVmuPbQhbCKNg3H2E5bB2Rgp92gWmGd-LM,689
|
|
@@ -62,7 +63,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
62
63
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
63
64
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
64
65
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
65
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
66
|
+
letta_client/core/client_wrapper.py,sha256=1io5EC0XVl9a_u9hK7JRI6n6eaQi57VLwe_lYLMrLm4,1998
|
|
66
67
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
67
68
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
68
69
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -159,7 +160,7 @@ letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcf
|
|
|
159
160
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
160
161
|
letta_client/types/agent_schema.py,sha256=uTSjFAsnEYdOX-PRD2vHbn69JBe8GKbctvlDOP85k_U,1784
|
|
161
162
|
letta_client/types/agent_schema_tool_rules_item.py,sha256=TTP7uKYPSe-EAl4p03j0Kd-W9tG5T6gfaWIUBAOVv9U,482
|
|
162
|
-
letta_client/types/agent_state.py,sha256=
|
|
163
|
+
letta_client/types/agent_state.py,sha256=A_ehJ1jirLIBDfYbr8hyWmga3C9f8SmmNHf60j_q4_g,5931
|
|
163
164
|
letta_client/types/agent_state_response_format.py,sha256=HISBgCumQxw6nQeDUMBu-IlghaLeWRb7BHHNaz_e8Hc,377
|
|
164
165
|
letta_client/types/agent_state_tool_rules_item.py,sha256=WB-N4uyDTfhYBjQYDcLZDxDj73Xu1mQasBkdofUM-XU,625
|
|
165
166
|
letta_client/types/agent_type.py,sha256=C7krJfPZvZDZrEqizp5UdUF4T6omXIu8m1XgVgg7JKc,321
|
|
@@ -280,7 +281,7 @@ letta_client/types/letta_image.py,sha256=HA__0Gq0BpKHeUUxIT2TmEfyY18F2DrauiGlijW
|
|
|
280
281
|
letta_client/types/letta_message_content_union.py,sha256=ypGyeR8PGqPGaAWtLWjDkWwG9oa4AWcL44y-RfLJVvw,540
|
|
281
282
|
letta_client/types/letta_message_union.py,sha256=TTQwlur2CZNdZ466Nb_2TFcSFXrgoMliaNzD33t7Ktw,603
|
|
282
283
|
letta_client/types/letta_request.py,sha256=vhS3qQYxNN2dlE_kXWPW3BJekBDMTSRp1MXmj4-ztfQ,1659
|
|
283
|
-
letta_client/types/letta_request_config.py,sha256=
|
|
284
|
+
letta_client/types/letta_request_config.py,sha256=OW5TNyTfbBMfRcWp5Aje_-7vjS0zVzYCmQGKLUtJezU,1346
|
|
284
285
|
letta_client/types/letta_response.py,sha256=5brJ39B8PxTBpm5_clL9XGP1SQ1pox-G0gxMDkitMlw,1395
|
|
285
286
|
letta_client/types/letta_stop_reason.py,sha256=5uqJibhaT6LFTj6Sf6m0VJKS1FJzIIgymjZTvu2a0Zk,931
|
|
286
287
|
letta_client/types/letta_streaming_request.py,sha256=YJ_6ge5xrzQjOs2UTY3FxwhTv6QoCi9XWv5Rod01W1E,1884
|
|
@@ -403,6 +404,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
403
404
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
404
405
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
405
406
|
letta_client/voice/client.py,sha256=EX79F2D5bieXNP8g1ZPw8xwAzqE1A3hshCHUSlTV1kw,5739
|
|
406
|
-
letta_client-0.1.
|
|
407
|
-
letta_client-0.1.
|
|
408
|
-
letta_client-0.1.
|
|
407
|
+
letta_client-0.1.166.dist-info/METADATA,sha256=OR2XseWvQ0fEA5jXRuDYQSynQMoloDe-4fHWcU8p2Vg,5093
|
|
408
|
+
letta_client-0.1.166.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
409
|
+
letta_client-0.1.166.dist-info/RECORD,,
|
|
File without changes
|