letta-client 0.1.34__py3-none-any.whl → 0.1.36__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 +8 -0
- letta_client/agents/__init__.py +4 -0
- letta_client/agents/client.py +30 -0
- letta_client/agents/types/__init__.py +4 -0
- letta_client/agents/types/agents_search_response_agents_item.py +2 -0
- letta_client/agents/types/agents_search_response_agents_item_identifier_key.py +11 -0
- letta_client/agents/types/agents_search_response_agents_item_identifier_key_item.py +5 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/templates/__init__.py +4 -0
- letta_client/templates/types/__init__.py +8 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py +4 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identifier_key.py +13 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identifier_key_item.py +5 -0
- letta_client/types/agent_state.py +5 -0
- {letta_client-0.1.34.dist-info → letta_client-0.1.36.dist-info}/METADATA +1 -1
- {letta_client-0.1.34.dist-info → letta_client-0.1.36.dist-info}/RECORD +17 -13
- {letta_client-0.1.34.dist-info → letta_client-0.1.36.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -190,6 +190,8 @@ from .agents import (
|
|
|
190
190
|
AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType,
|
|
191
191
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandle,
|
|
192
192
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem,
|
|
193
|
+
AgentsSearchResponseAgentsItemIdentifierKey,
|
|
194
|
+
AgentsSearchResponseAgentsItemIdentifierKeyItem,
|
|
193
195
|
AgentsSearchResponseAgentsItemLastUpdatedById,
|
|
194
196
|
AgentsSearchResponseAgentsItemLastUpdatedByIdItem,
|
|
195
197
|
AgentsSearchResponseAgentsItemLlmConfig,
|
|
@@ -357,6 +359,8 @@ from .templates import (
|
|
|
357
359
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType,
|
|
358
360
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle,
|
|
359
361
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem,
|
|
362
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey,
|
|
363
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem,
|
|
360
364
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById,
|
|
361
365
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem,
|
|
362
366
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig,
|
|
@@ -534,6 +538,8 @@ __all__ = [
|
|
|
534
538
|
"AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
535
539
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandle",
|
|
536
540
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem",
|
|
541
|
+
"AgentsSearchResponseAgentsItemIdentifierKey",
|
|
542
|
+
"AgentsSearchResponseAgentsItemIdentifierKeyItem",
|
|
537
543
|
"AgentsSearchResponseAgentsItemLastUpdatedById",
|
|
538
544
|
"AgentsSearchResponseAgentsItemLastUpdatedByIdItem",
|
|
539
545
|
"AgentsSearchResponseAgentsItemLlmConfig",
|
|
@@ -831,6 +837,8 @@ __all__ = [
|
|
|
831
837
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
832
838
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle",
|
|
833
839
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem",
|
|
840
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey",
|
|
841
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem",
|
|
834
842
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById",
|
|
835
843
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem",
|
|
836
844
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig",
|
letta_client/agents/__init__.py
CHANGED
|
@@ -31,6 +31,8 @@ from .types import (
|
|
|
31
31
|
AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType,
|
|
32
32
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandle,
|
|
33
33
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem,
|
|
34
|
+
AgentsSearchResponseAgentsItemIdentifierKey,
|
|
35
|
+
AgentsSearchResponseAgentsItemIdentifierKeyItem,
|
|
34
36
|
AgentsSearchResponseAgentsItemLastUpdatedById,
|
|
35
37
|
AgentsSearchResponseAgentsItemLastUpdatedByIdItem,
|
|
36
38
|
AgentsSearchResponseAgentsItemLlmConfig,
|
|
@@ -206,6 +208,8 @@ __all__ = [
|
|
|
206
208
|
"AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
207
209
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandle",
|
|
208
210
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem",
|
|
211
|
+
"AgentsSearchResponseAgentsItemIdentifierKey",
|
|
212
|
+
"AgentsSearchResponseAgentsItemIdentifierKeyItem",
|
|
209
213
|
"AgentsSearchResponseAgentsItemLastUpdatedById",
|
|
210
214
|
"AgentsSearchResponseAgentsItemLastUpdatedByIdItem",
|
|
211
215
|
"AgentsSearchResponseAgentsItemLlmConfig",
|
letta_client/agents/client.py
CHANGED
|
@@ -67,6 +67,7 @@ class AgentsClient:
|
|
|
67
67
|
project_id: typing.Optional[str] = None,
|
|
68
68
|
template_id: typing.Optional[str] = None,
|
|
69
69
|
base_template_id: typing.Optional[str] = None,
|
|
70
|
+
identifier_key: typing.Optional[str] = None,
|
|
70
71
|
request_options: typing.Optional[RequestOptions] = None,
|
|
71
72
|
) -> typing.List[AgentState]:
|
|
72
73
|
"""
|
|
@@ -105,6 +106,9 @@ class AgentsClient:
|
|
|
105
106
|
base_template_id : typing.Optional[str]
|
|
106
107
|
Search agents by base template id
|
|
107
108
|
|
|
109
|
+
identifier_key : typing.Optional[str]
|
|
110
|
+
Search agents by identifier key
|
|
111
|
+
|
|
108
112
|
request_options : typing.Optional[RequestOptions]
|
|
109
113
|
Request-specific configuration.
|
|
110
114
|
|
|
@@ -136,6 +140,7 @@ class AgentsClient:
|
|
|
136
140
|
"project_id": project_id,
|
|
137
141
|
"template_id": template_id,
|
|
138
142
|
"base_template_id": base_template_id,
|
|
143
|
+
"identifier_key": identifier_key,
|
|
139
144
|
},
|
|
140
145
|
request_options=request_options,
|
|
141
146
|
)
|
|
@@ -195,6 +200,7 @@ class AgentsClient:
|
|
|
195
200
|
project_id: typing.Optional[str] = OMIT,
|
|
196
201
|
template_id: typing.Optional[str] = OMIT,
|
|
197
202
|
base_template_id: typing.Optional[str] = OMIT,
|
|
203
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
198
204
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
199
205
|
request_options: typing.Optional[RequestOptions] = None,
|
|
200
206
|
) -> AgentState:
|
|
@@ -290,6 +296,9 @@ class AgentsClient:
|
|
|
290
296
|
base_template_id : typing.Optional[str]
|
|
291
297
|
The base template id of the agent.
|
|
292
298
|
|
|
299
|
+
identifier_key : typing.Optional[str]
|
|
300
|
+
The identifier key belonging to the identity associated with this agent.
|
|
301
|
+
|
|
293
302
|
message_buffer_autoclear : typing.Optional[bool]
|
|
294
303
|
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
|
|
295
304
|
|
|
@@ -353,6 +362,7 @@ class AgentsClient:
|
|
|
353
362
|
"project_id": project_id,
|
|
354
363
|
"template_id": template_id,
|
|
355
364
|
"base_template_id": base_template_id,
|
|
365
|
+
"identifier_key": identifier_key,
|
|
356
366
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
357
367
|
},
|
|
358
368
|
headers={
|
|
@@ -519,6 +529,7 @@ class AgentsClient:
|
|
|
519
529
|
project_id: typing.Optional[str] = OMIT,
|
|
520
530
|
template_id: typing.Optional[str] = OMIT,
|
|
521
531
|
base_template_id: typing.Optional[str] = OMIT,
|
|
532
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
522
533
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
523
534
|
request_options: typing.Optional[RequestOptions] = None,
|
|
524
535
|
) -> AgentState:
|
|
@@ -577,6 +588,9 @@ class AgentsClient:
|
|
|
577
588
|
base_template_id : typing.Optional[str]
|
|
578
589
|
The base template id of the agent.
|
|
579
590
|
|
|
591
|
+
identifier_key : typing.Optional[str]
|
|
592
|
+
The identifier key belonging to the identity associated with this agent.
|
|
593
|
+
|
|
580
594
|
message_buffer_autoclear : typing.Optional[bool]
|
|
581
595
|
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
|
|
582
596
|
|
|
@@ -625,6 +639,7 @@ class AgentsClient:
|
|
|
625
639
|
"project_id": project_id,
|
|
626
640
|
"template_id": template_id,
|
|
627
641
|
"base_template_id": base_template_id,
|
|
642
|
+
"identifier_key": identifier_key,
|
|
628
643
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
629
644
|
},
|
|
630
645
|
headers={
|
|
@@ -827,6 +842,7 @@ class AsyncAgentsClient:
|
|
|
827
842
|
project_id: typing.Optional[str] = None,
|
|
828
843
|
template_id: typing.Optional[str] = None,
|
|
829
844
|
base_template_id: typing.Optional[str] = None,
|
|
845
|
+
identifier_key: typing.Optional[str] = None,
|
|
830
846
|
request_options: typing.Optional[RequestOptions] = None,
|
|
831
847
|
) -> typing.List[AgentState]:
|
|
832
848
|
"""
|
|
@@ -865,6 +881,9 @@ class AsyncAgentsClient:
|
|
|
865
881
|
base_template_id : typing.Optional[str]
|
|
866
882
|
Search agents by base template id
|
|
867
883
|
|
|
884
|
+
identifier_key : typing.Optional[str]
|
|
885
|
+
Search agents by identifier key
|
|
886
|
+
|
|
868
887
|
request_options : typing.Optional[RequestOptions]
|
|
869
888
|
Request-specific configuration.
|
|
870
889
|
|
|
@@ -904,6 +923,7 @@ class AsyncAgentsClient:
|
|
|
904
923
|
"project_id": project_id,
|
|
905
924
|
"template_id": template_id,
|
|
906
925
|
"base_template_id": base_template_id,
|
|
926
|
+
"identifier_key": identifier_key,
|
|
907
927
|
},
|
|
908
928
|
request_options=request_options,
|
|
909
929
|
)
|
|
@@ -963,6 +983,7 @@ class AsyncAgentsClient:
|
|
|
963
983
|
project_id: typing.Optional[str] = OMIT,
|
|
964
984
|
template_id: typing.Optional[str] = OMIT,
|
|
965
985
|
base_template_id: typing.Optional[str] = OMIT,
|
|
986
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
966
987
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
967
988
|
request_options: typing.Optional[RequestOptions] = None,
|
|
968
989
|
) -> AgentState:
|
|
@@ -1058,6 +1079,9 @@ class AsyncAgentsClient:
|
|
|
1058
1079
|
base_template_id : typing.Optional[str]
|
|
1059
1080
|
The base template id of the agent.
|
|
1060
1081
|
|
|
1082
|
+
identifier_key : typing.Optional[str]
|
|
1083
|
+
The identifier key belonging to the identity associated with this agent.
|
|
1084
|
+
|
|
1061
1085
|
message_buffer_autoclear : typing.Optional[bool]
|
|
1062
1086
|
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
|
|
1063
1087
|
|
|
@@ -1129,6 +1153,7 @@ class AsyncAgentsClient:
|
|
|
1129
1153
|
"project_id": project_id,
|
|
1130
1154
|
"template_id": template_id,
|
|
1131
1155
|
"base_template_id": base_template_id,
|
|
1156
|
+
"identifier_key": identifier_key,
|
|
1132
1157
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1133
1158
|
},
|
|
1134
1159
|
headers={
|
|
@@ -1311,6 +1336,7 @@ class AsyncAgentsClient:
|
|
|
1311
1336
|
project_id: typing.Optional[str] = OMIT,
|
|
1312
1337
|
template_id: typing.Optional[str] = OMIT,
|
|
1313
1338
|
base_template_id: typing.Optional[str] = OMIT,
|
|
1339
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
1314
1340
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
1315
1341
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1316
1342
|
) -> AgentState:
|
|
@@ -1369,6 +1395,9 @@ class AsyncAgentsClient:
|
|
|
1369
1395
|
base_template_id : typing.Optional[str]
|
|
1370
1396
|
The base template id of the agent.
|
|
1371
1397
|
|
|
1398
|
+
identifier_key : typing.Optional[str]
|
|
1399
|
+
The identifier key belonging to the identity associated with this agent.
|
|
1400
|
+
|
|
1372
1401
|
message_buffer_autoclear : typing.Optional[bool]
|
|
1373
1402
|
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
|
|
1374
1403
|
|
|
@@ -1425,6 +1454,7 @@ class AsyncAgentsClient:
|
|
|
1425
1454
|
"project_id": project_id,
|
|
1426
1455
|
"template_id": template_id,
|
|
1427
1456
|
"base_template_id": base_template_id,
|
|
1457
|
+
"identifier_key": identifier_key,
|
|
1428
1458
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1429
1459
|
},
|
|
1430
1460
|
headers={
|
|
@@ -56,6 +56,8 @@ from .agents_search_response_agents_item_embedding_config_handle import (
|
|
|
56
56
|
from .agents_search_response_agents_item_embedding_config_handle_item import (
|
|
57
57
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem,
|
|
58
58
|
)
|
|
59
|
+
from .agents_search_response_agents_item_identifier_key import AgentsSearchResponseAgentsItemIdentifierKey
|
|
60
|
+
from .agents_search_response_agents_item_identifier_key_item import AgentsSearchResponseAgentsItemIdentifierKeyItem
|
|
59
61
|
from .agents_search_response_agents_item_last_updated_by_id import AgentsSearchResponseAgentsItemLastUpdatedById
|
|
60
62
|
from .agents_search_response_agents_item_last_updated_by_id_item import (
|
|
61
63
|
AgentsSearchResponseAgentsItemLastUpdatedByIdItem,
|
|
@@ -428,6 +430,8 @@ __all__ = [
|
|
|
428
430
|
"AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
429
431
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandle",
|
|
430
432
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem",
|
|
433
|
+
"AgentsSearchResponseAgentsItemIdentifierKey",
|
|
434
|
+
"AgentsSearchResponseAgentsItemIdentifierKeyItem",
|
|
431
435
|
"AgentsSearchResponseAgentsItemLastUpdatedById",
|
|
432
436
|
"AgentsSearchResponseAgentsItemLastUpdatedByIdItem",
|
|
433
437
|
"AgentsSearchResponseAgentsItemLlmConfig",
|
|
@@ -23,6 +23,7 @@ from .agents_search_response_agents_item_tool_exec_environment_variables import
|
|
|
23
23
|
from .agents_search_response_agents_item_project_id import AgentsSearchResponseAgentsItemProjectId
|
|
24
24
|
from .agents_search_response_agents_item_template_id import AgentsSearchResponseAgentsItemTemplateId
|
|
25
25
|
from .agents_search_response_agents_item_base_template_id import AgentsSearchResponseAgentsItemBaseTemplateId
|
|
26
|
+
from .agents_search_response_agents_item_identifier_key import AgentsSearchResponseAgentsItemIdentifierKey
|
|
26
27
|
from .agents_search_response_agents_item_message_buffer_autoclear import (
|
|
27
28
|
AgentsSearchResponseAgentsItemMessageBufferAutoclear,
|
|
28
29
|
)
|
|
@@ -54,6 +55,7 @@ class AgentsSearchResponseAgentsItem(UncheckedBaseModel):
|
|
|
54
55
|
project_id: typing.Optional[AgentsSearchResponseAgentsItemProjectId] = None
|
|
55
56
|
template_id: typing.Optional[AgentsSearchResponseAgentsItemTemplateId] = None
|
|
56
57
|
base_template_id: typing.Optional[AgentsSearchResponseAgentsItemBaseTemplateId] = None
|
|
58
|
+
identifier_key: typing.Optional[AgentsSearchResponseAgentsItemIdentifierKey] = None
|
|
57
59
|
message_buffer_autoclear: typing.Optional[AgentsSearchResponseAgentsItemMessageBufferAutoclear] = None
|
|
58
60
|
template: typing.Optional[str] = None
|
|
59
61
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .agents_search_response_agents_item_identifier_key_item import AgentsSearchResponseAgentsItemIdentifierKeyItem
|
|
5
|
+
|
|
6
|
+
AgentsSearchResponseAgentsItemIdentifierKey = typing.Union[
|
|
7
|
+
str,
|
|
8
|
+
typing.Optional[str],
|
|
9
|
+
typing.List[typing.Optional[AgentsSearchResponseAgentsItemIdentifierKeyItem]],
|
|
10
|
+
typing.Optional[typing.Any],
|
|
11
|
+
]
|
|
@@ -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.36",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -26,6 +26,8 @@ from .types import (
|
|
|
26
26
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType,
|
|
27
27
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle,
|
|
28
28
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem,
|
|
29
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey,
|
|
30
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem,
|
|
29
31
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById,
|
|
30
32
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem,
|
|
31
33
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig,
|
|
@@ -190,6 +192,8 @@ __all__ = [
|
|
|
190
192
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
191
193
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle",
|
|
192
194
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem",
|
|
195
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey",
|
|
196
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem",
|
|
193
197
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById",
|
|
194
198
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem",
|
|
195
199
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig",
|
|
@@ -73,6 +73,12 @@ from .templates_create_agents_from_template_response_agents_item_embedding_confi
|
|
|
73
73
|
from .templates_create_agents_from_template_response_agents_item_embedding_config_handle_item import (
|
|
74
74
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem,
|
|
75
75
|
)
|
|
76
|
+
from .templates_create_agents_from_template_response_agents_item_identifier_key import (
|
|
77
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey,
|
|
78
|
+
)
|
|
79
|
+
from .templates_create_agents_from_template_response_agents_item_identifier_key_item import (
|
|
80
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem,
|
|
81
|
+
)
|
|
76
82
|
from .templates_create_agents_from_template_response_agents_item_last_updated_by_id import (
|
|
77
83
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById,
|
|
78
84
|
)
|
|
@@ -508,6 +514,8 @@ __all__ = [
|
|
|
508
514
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
509
515
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle",
|
|
510
516
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem",
|
|
517
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey",
|
|
518
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem",
|
|
511
519
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById",
|
|
512
520
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem",
|
|
513
521
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig",
|
|
@@ -59,6 +59,9 @@ from .templates_create_agents_from_template_response_agents_item_template_id imp
|
|
|
59
59
|
from .templates_create_agents_from_template_response_agents_item_base_template_id import (
|
|
60
60
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId,
|
|
61
61
|
)
|
|
62
|
+
from .templates_create_agents_from_template_response_agents_item_identifier_key import (
|
|
63
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey,
|
|
64
|
+
)
|
|
62
65
|
from .templates_create_agents_from_template_response_agents_item_message_buffer_autoclear import (
|
|
63
66
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear,
|
|
64
67
|
)
|
|
@@ -92,6 +95,7 @@ class TemplatesCreateAgentsFromTemplateResponseAgentsItem(UncheckedBaseModel):
|
|
|
92
95
|
project_id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId] = None
|
|
93
96
|
template_id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId] = None
|
|
94
97
|
base_template_id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId] = None
|
|
98
|
+
identifier_key: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey] = None
|
|
95
99
|
message_buffer_autoclear: typing.Optional[
|
|
96
100
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear
|
|
97
101
|
] = None
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_from_template_response_agents_item_identifier_key_item import (
|
|
5
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -143,6 +143,11 @@ class AgentState(UncheckedBaseModel):
|
|
|
143
143
|
The base template id of the agent.
|
|
144
144
|
"""
|
|
145
145
|
|
|
146
|
+
identifier_key: typing.Optional[str] = pydantic.Field(default=None)
|
|
147
|
+
"""
|
|
148
|
+
The identifier key belonging to the identity associated with this agent.
|
|
149
|
+
"""
|
|
150
|
+
|
|
146
151
|
message_buffer_autoclear: typing.Optional[bool] = pydantic.Field(default=None)
|
|
147
152
|
"""
|
|
148
153
|
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
2
|
-
letta_client/agents/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=AQVdLkOnnHAYznOY7QONprwhu-K75qSt2FgvZWunD-o,58561
|
|
2
|
+
letta_client/agents/__init__.py,sha256=aDZt7p9Xf-unNNJn8-ryIuN0iioKJbOE3I7nxGwb2fc,21744
|
|
3
3
|
letta_client/agents/archival_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/archival_memory/client.py,sha256=VTlL-cGmYBYdVI5owY8Gbbj4dscUCtSzL34Gm_5Nvk4,14872
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=NvQnUqtfBl2WNo8ZV7zSs75ApAGtmXAvrDHzbc679V4,61867
|
|
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
|
|
@@ -25,14 +25,14 @@ letta_client/agents/templates/types/templates_create_response.py,sha256=kKjkyjv3
|
|
|
25
25
|
letta_client/agents/templates/types/templates_migrate_response.py,sha256=7N4JtAaiao-LrNdi72K7XB01uXJVkczaKYIJIMf0QYs,577
|
|
26
26
|
letta_client/agents/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
27
27
|
letta_client/agents/tools/client.py,sha256=xZMRZhG8mI_h8_QqgI4lXh3FieRCLeoPwdtB56GB-XU,12685
|
|
28
|
-
letta_client/agents/types/__init__.py,sha256=
|
|
28
|
+
letta_client/agents/types/__init__.py,sha256=tvkmSOILX8iIOxUwAmYd2IpSAVfFOOg2mENA-fa-TiI,34471
|
|
29
29
|
letta_client/agents/types/agents_search_request_search_item.py,sha256=9wZPvTP5ESFOhdF9YqdYwv4h_fEFF9TWbGtDO9xkrzA,494
|
|
30
30
|
letta_client/agents/types/agents_search_request_search_item_field.py,sha256=06cbjgIRD2GL7Ck7ZYxLVNbrKP9HLHNOCi9DSPspATQ,692
|
|
31
31
|
letta_client/agents/types/agents_search_request_search_item_one.py,sha256=ECWv-hDZen6AomM01zmRsOz0PlXVEwIwLHjid9yko9o,779
|
|
32
32
|
letta_client/agents/types/agents_search_request_search_item_one_operator.py,sha256=S1qYdfdUqUgZ0DzQ53x7GN_qa_4NypO7-qNkkxgsbQc,182
|
|
33
33
|
letta_client/agents/types/agents_search_request_search_item_zero.py,sha256=tGjwnFqSofFMBSAogmPLEflDQZ2rMqoMfFUtaIpND18,630
|
|
34
34
|
letta_client/agents/types/agents_search_response.py,sha256=4A0h6ok1Wc1AkTVS77LGVX0sMHPawRHpbecr-eKrdsI,870
|
|
35
|
-
letta_client/agents/types/agents_search_response_agents_item.py,sha256=
|
|
35
|
+
letta_client/agents/types/agents_search_response_agents_item.py,sha256=2e9Q4dOW9MKN-oA12dbItufB4PRj3uzcUkBtha-htjY,4579
|
|
36
36
|
letta_client/agents/types/agents_search_response_agents_item_agent_type.py,sha256=hnbAg8R8Q2Jv79ebYZGhbrS8gwt60bz5ldnebkivCfY,250
|
|
37
37
|
letta_client/agents/types/agents_search_response_agents_item_base_template_id.py,sha256=9gLyzrfFq7z89T0Hi0fCsnmVgulsvY0V2Ae28E4jYr8,414
|
|
38
38
|
letta_client/agents/types/agents_search_response_agents_item_base_template_id_item.py,sha256=mlY4fKqWadtJ3kZIYjY9NIcpDtaKpxV2ps60FPo-XzI,171
|
|
@@ -56,6 +56,8 @@ letta_client/agents/types/agents_search_response_agents_item_embedding_config_em
|
|
|
56
56
|
letta_client/agents/types/agents_search_response_agents_item_embedding_config_embedding_endpoint_type.py,sha256=BbADzNL49v41DYOvUKcL2sQV0ZEJiPMmhFwaoVBcp3A,589
|
|
57
57
|
letta_client/agents/types/agents_search_response_agents_item_embedding_config_handle.py,sha256=Y6bNXRnk5jBWe574rEaseQxHaGEsL9g0hvwG1FCi518,451
|
|
58
58
|
letta_client/agents/types/agents_search_response_agents_item_embedding_config_handle_item.py,sha256=EwMCmx0n-Ybd3reN9QNPIs5hIkUiUoGKh9QtVAVz7iQ,178
|
|
59
|
+
letta_client/agents/types/agents_search_response_agents_item_identifier_key.py,sha256=xFC_UkBqpiFbzBNfda4OF6rBa_IhB2FjNgCRnaC-XOc,409
|
|
60
|
+
letta_client/agents/types/agents_search_response_agents_item_identifier_key_item.py,sha256=_k4uRLfq4WeiDhVI51v2tKj5u2kLwk55gkcV6xAOcoE,170
|
|
59
61
|
letta_client/agents/types/agents_search_response_agents_item_last_updated_by_id.py,sha256=WpPW5-0-xegQTh_-7igpbuFr5wFeFM359kuBqbQDYRE,428
|
|
60
62
|
letta_client/agents/types/agents_search_response_agents_item_last_updated_by_id_item.py,sha256=ewpvZ8ScpPBI1Vi7cWjTPQ1eeYBqU8BcsdmFwXR3fsM,172
|
|
61
63
|
letta_client/agents/types/agents_search_response_agents_item_llm_config.py,sha256=QLL21-fKxgjgHcpAZR1VwyRj8G1i1j7mTx_U6qZ25d8,2226
|
|
@@ -200,7 +202,7 @@ letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU
|
|
|
200
202
|
letta_client/client.py,sha256=y2cXN0ApFul2Lz-fVh5TbeYbQ8oUjnXcwJ6wUczEf2c,2457
|
|
201
203
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
202
204
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
203
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
205
|
+
letta_client/core/client_wrapper.py,sha256=gLhhsaOvXJVe4_47Y5IjRIgK0ONQDh4wrFyw-MuIvVA,1997
|
|
204
206
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
205
207
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
206
208
|
letta_client/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
|
@@ -238,11 +240,11 @@ letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_p
|
|
|
238
240
|
letta_client/steps/client.py,sha256=nHd4ZxYeaVgYf9ZewBCLc58DZ38LoW97W-xbc2oOL_0,10900
|
|
239
241
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
240
242
|
letta_client/tag/client.py,sha256=TBAotdb0e2_x2pANF4dOE1qmWY3GIgb7nOhvN7iZ3_4,5183
|
|
241
|
-
letta_client/templates/__init__.py,sha256=
|
|
243
|
+
letta_client/templates/__init__.py,sha256=3hIFj780AJPnmiWl430t5H1NZdLRvtkzc-GJJmOYu5g,27443
|
|
242
244
|
letta_client/templates/client.py,sha256=RLdu0MgTHR7MEK_trsPFlP_3ls27-xEnUW5m0V88eaI,6858
|
|
243
|
-
letta_client/templates/types/__init__.py,sha256=
|
|
245
|
+
letta_client/templates/types/__init__.py,sha256=UDBPkHgduP680i-7vMAfjSNJTkOKAcE8SwO1JuWHT-w,44797
|
|
244
246
|
letta_client/templates/types/templates_create_agents_from_template_response.py,sha256=7rV8AJ6_35MTo2bsgVVvdEzn5LHKdoaNhuHFy5ABsIc,784
|
|
245
|
-
letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py,sha256=
|
|
247
|
+
letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py,sha256=ltWladhOfbkakrnqTsxBHWB9kj2oI6e_3oVH52aPuPI,6143
|
|
246
248
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py,sha256=1YGJe4QqKmUsJRXlvhXH8xl7PhpCgTQip-aT1Zd3h0c,271
|
|
247
249
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id.py,sha256=Giq4AX2SRh9ZWnakEpn3jovsaf2n4eG5m5CisLGE0Ao,510
|
|
248
250
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id_item.py,sha256=9hfn8doRLvqLAHnzJ9w13lR-dMG_4iv_wfKR6z7pUdg,192
|
|
@@ -266,6 +268,8 @@ letta_client/templates/types/templates_create_agents_from_template_response_agen
|
|
|
266
268
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_type.py,sha256=MFqFQ-Bx5EWkoAdf2wrQI_gafmzjXrdXfudpu-kjEwA,610
|
|
267
269
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py,sha256=MHtWOfUZ2ZjvmwmME1zMU8YhtNTfQ5IE3GC2BAxOqos,538
|
|
268
270
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle_item.py,sha256=xXrEFoy9YjubSKglsWegXm73iAXbe1e8pmi-ZMB5bR8,199
|
|
271
|
+
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identifier_key.py,sha256=OnAu1thT0hmExqKb-tlrTnRJdjJ4NgE_WJJ5seUaeo4,505
|
|
272
|
+
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identifier_key_item.py,sha256=Jay9Mcysj8qE8T51GhFVvoYjNZFGvnJqed2ly_TOPmo,191
|
|
269
273
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py,sha256=YcnUUXOwFu6WFkOIiOmsnWgZ3aq8rIHsBiBiwKOrY0M,515
|
|
270
274
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id_item.py,sha256=uwyL9iG8JbHsNyYezk2IRlA0tjWWA7AaVAgqHhq-C7w,193
|
|
271
275
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py,sha256=vaxZoK5nBSoc9QvGu6j66-M4hDRMSa33J8k2JQn9k5E,2725
|
|
@@ -409,7 +413,7 @@ letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qV
|
|
|
409
413
|
letta_client/types/action_parameters_model.py,sha256=zKzJkjtu1pt4BEA2GHlg9rMWja5a0uZygOpOx3FbgIM,749
|
|
410
414
|
letta_client/types/action_response_model.py,sha256=5OuImT0EQFkAnc81F6tZsVEwYG8rKbIrx_ydGiKqwog,745
|
|
411
415
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
412
|
-
letta_client/types/agent_state.py,sha256=
|
|
416
|
+
letta_client/types/agent_state.py,sha256=YmOGu1BAewjDuq4mk5S0yP81YdYPeKgeYP1uXv2Ws_Q,5035
|
|
413
417
|
letta_client/types/agent_state_tool_rules_item.py,sha256=-1gMhEZOThSYXXTWxZXtSNpkANOTws0bZcEXf-PQCJA,375
|
|
414
418
|
letta_client/types/agent_type.py,sha256=iZ3Wa4BUddDeFSgcK3Z0WUKCQYDRCEo0aJICKsc3HL0,220
|
|
415
419
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
@@ -561,6 +565,6 @@ letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wD
|
|
|
561
565
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
562
566
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
563
567
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
564
|
-
letta_client-0.1.
|
|
565
|
-
letta_client-0.1.
|
|
566
|
-
letta_client-0.1.
|
|
568
|
+
letta_client-0.1.36.dist-info/METADATA,sha256=BGWPqKAJok97D6t6GiWlzsZDN6yXNNv-rSXv9l9YSzY,4942
|
|
569
|
+
letta_client-0.1.36.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
570
|
+
letta_client-0.1.36.dist-info/RECORD,,
|
|
File without changes
|