letta-client 0.1.35__py3-none-any.whl → 0.1.37__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 +14 -1
- letta_client/agents/__init__.py +4 -0
- letta_client/agents/client.py +40 -2
- 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/base_client.py +4 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/identities/__init__.py +2 -0
- letta_client/identities/client.py +195 -0
- 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/__init__.py +4 -0
- letta_client/types/action_parameters_model.py +1 -0
- letta_client/types/action_response_model.py +1 -0
- letta_client/types/agent_state.py +5 -0
- letta_client/types/app_auth_scheme_auth_mode.py +1 -1
- letta_client/types/identity.py +49 -0
- letta_client/types/identity_type.py +5 -0
- {letta_client-0.1.35.dist-info → letta_client-0.1.37.dist-info}/METADATA +1 -1
- {letta_client-0.1.35.dist-info → letta_client-0.1.37.dist-info}/RECORD +26 -18
- {letta_client-0.1.35.dist-info → letta_client-0.1.37.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -84,6 +84,8 @@ from .types import (
|
|
|
84
84
|
FunctionTool,
|
|
85
85
|
Health,
|
|
86
86
|
HttpValidationError,
|
|
87
|
+
Identity,
|
|
88
|
+
IdentityType,
|
|
87
89
|
ImageUrl,
|
|
88
90
|
ImageUrlDetail,
|
|
89
91
|
InitToolRule,
|
|
@@ -158,7 +160,7 @@ from .types import (
|
|
|
158
160
|
ValidationErrorLocItem,
|
|
159
161
|
)
|
|
160
162
|
from .errors import ConflictError, InternalServerError, NotFoundError, UnprocessableEntityError
|
|
161
|
-
from . import agents, blocks, health, jobs, models, providers, runs, sources, steps, tag, templates, tools
|
|
163
|
+
from . import agents, blocks, health, identities, jobs, models, providers, runs, sources, steps, tag, templates, tools
|
|
162
164
|
from .agents import (
|
|
163
165
|
AgentsSearchRequestSearchItem,
|
|
164
166
|
AgentsSearchRequestSearchItemField,
|
|
@@ -190,6 +192,8 @@ from .agents import (
|
|
|
190
192
|
AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType,
|
|
191
193
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandle,
|
|
192
194
|
AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem,
|
|
195
|
+
AgentsSearchResponseAgentsItemIdentifierKey,
|
|
196
|
+
AgentsSearchResponseAgentsItemIdentifierKeyItem,
|
|
193
197
|
AgentsSearchResponseAgentsItemLastUpdatedById,
|
|
194
198
|
AgentsSearchResponseAgentsItemLastUpdatedByIdItem,
|
|
195
199
|
AgentsSearchResponseAgentsItemLlmConfig,
|
|
@@ -357,6 +361,8 @@ from .templates import (
|
|
|
357
361
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType,
|
|
358
362
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle,
|
|
359
363
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem,
|
|
364
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey,
|
|
365
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem,
|
|
360
366
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById,
|
|
361
367
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem,
|
|
362
368
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig,
|
|
@@ -534,6 +540,8 @@ __all__ = [
|
|
|
534
540
|
"AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
535
541
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandle",
|
|
536
542
|
"AgentsSearchResponseAgentsItemEmbeddingConfigHandleItem",
|
|
543
|
+
"AgentsSearchResponseAgentsItemIdentifierKey",
|
|
544
|
+
"AgentsSearchResponseAgentsItemIdentifierKeyItem",
|
|
537
545
|
"AgentsSearchResponseAgentsItemLastUpdatedById",
|
|
538
546
|
"AgentsSearchResponseAgentsItemLastUpdatedByIdItem",
|
|
539
547
|
"AgentsSearchResponseAgentsItemLlmConfig",
|
|
@@ -749,6 +757,8 @@ __all__ = [
|
|
|
749
757
|
"FunctionTool",
|
|
750
758
|
"Health",
|
|
751
759
|
"HttpValidationError",
|
|
760
|
+
"Identity",
|
|
761
|
+
"IdentityType",
|
|
752
762
|
"ImageUrl",
|
|
753
763
|
"ImageUrlDetail",
|
|
754
764
|
"InitToolRule",
|
|
@@ -831,6 +841,8 @@ __all__ = [
|
|
|
831
841
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType",
|
|
832
842
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandle",
|
|
833
843
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigHandleItem",
|
|
844
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey",
|
|
845
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem",
|
|
834
846
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedById",
|
|
835
847
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLastUpdatedByIdItem",
|
|
836
848
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig",
|
|
@@ -992,6 +1004,7 @@ __all__ = [
|
|
|
992
1004
|
"agents",
|
|
993
1005
|
"blocks",
|
|
994
1006
|
"health",
|
|
1007
|
+
"identities",
|
|
995
1008
|
"jobs",
|
|
996
1009
|
"models",
|
|
997
1010
|
"providers",
|
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
|
)
|
|
@@ -166,6 +171,7 @@ class AgentsClient:
|
|
|
166
171
|
def create(
|
|
167
172
|
self,
|
|
168
173
|
*,
|
|
174
|
+
project_slug: typing.Optional[str] = None,
|
|
169
175
|
name: typing.Optional[str] = OMIT,
|
|
170
176
|
memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
|
|
171
177
|
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -195,6 +201,7 @@ class AgentsClient:
|
|
|
195
201
|
project_id: typing.Optional[str] = OMIT,
|
|
196
202
|
template_id: typing.Optional[str] = OMIT,
|
|
197
203
|
base_template_id: typing.Optional[str] = OMIT,
|
|
204
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
198
205
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
199
206
|
request_options: typing.Optional[RequestOptions] = None,
|
|
200
207
|
) -> AgentState:
|
|
@@ -203,6 +210,8 @@ class AgentsClient:
|
|
|
203
210
|
|
|
204
211
|
Parameters
|
|
205
212
|
----------
|
|
213
|
+
project_slug : typing.Optional[str]
|
|
214
|
+
|
|
206
215
|
name : typing.Optional[str]
|
|
207
216
|
The name of the agent.
|
|
208
217
|
|
|
@@ -273,7 +282,7 @@ class AgentsClient:
|
|
|
273
282
|
Whether the agent is a template
|
|
274
283
|
|
|
275
284
|
project : typing.Optional[str]
|
|
276
|
-
|
|
285
|
+
Deprecated: Project should now be passed via the project-slug header instead of in the request body. If using the sdk, this can be done via the new project_slug field below.
|
|
277
286
|
|
|
278
287
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
279
288
|
The environment variables for tool execution specific to this agent.
|
|
@@ -290,6 +299,9 @@ class AgentsClient:
|
|
|
290
299
|
base_template_id : typing.Optional[str]
|
|
291
300
|
The base template id of the agent.
|
|
292
301
|
|
|
302
|
+
identifier_key : typing.Optional[str]
|
|
303
|
+
The identifier key belonging to the identity associated with this agent.
|
|
304
|
+
|
|
293
305
|
message_buffer_autoclear : typing.Optional[bool]
|
|
294
306
|
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
307
|
|
|
@@ -353,10 +365,12 @@ class AgentsClient:
|
|
|
353
365
|
"project_id": project_id,
|
|
354
366
|
"template_id": template_id,
|
|
355
367
|
"base_template_id": base_template_id,
|
|
368
|
+
"identifier_key": identifier_key,
|
|
356
369
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
357
370
|
},
|
|
358
371
|
headers={
|
|
359
372
|
"content-type": "application/json",
|
|
373
|
+
"project-slug": str(project_slug) if project_slug is not None else None,
|
|
360
374
|
},
|
|
361
375
|
request_options=request_options,
|
|
362
376
|
omit=OMIT,
|
|
@@ -519,6 +533,7 @@ class AgentsClient:
|
|
|
519
533
|
project_id: typing.Optional[str] = OMIT,
|
|
520
534
|
template_id: typing.Optional[str] = OMIT,
|
|
521
535
|
base_template_id: typing.Optional[str] = OMIT,
|
|
536
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
522
537
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
523
538
|
request_options: typing.Optional[RequestOptions] = None,
|
|
524
539
|
) -> AgentState:
|
|
@@ -577,6 +592,9 @@ class AgentsClient:
|
|
|
577
592
|
base_template_id : typing.Optional[str]
|
|
578
593
|
The base template id of the agent.
|
|
579
594
|
|
|
595
|
+
identifier_key : typing.Optional[str]
|
|
596
|
+
The identifier key belonging to the identity associated with this agent.
|
|
597
|
+
|
|
580
598
|
message_buffer_autoclear : typing.Optional[bool]
|
|
581
599
|
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
600
|
|
|
@@ -625,6 +643,7 @@ class AgentsClient:
|
|
|
625
643
|
"project_id": project_id,
|
|
626
644
|
"template_id": template_id,
|
|
627
645
|
"base_template_id": base_template_id,
|
|
646
|
+
"identifier_key": identifier_key,
|
|
628
647
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
629
648
|
},
|
|
630
649
|
headers={
|
|
@@ -827,6 +846,7 @@ class AsyncAgentsClient:
|
|
|
827
846
|
project_id: typing.Optional[str] = None,
|
|
828
847
|
template_id: typing.Optional[str] = None,
|
|
829
848
|
base_template_id: typing.Optional[str] = None,
|
|
849
|
+
identifier_key: typing.Optional[str] = None,
|
|
830
850
|
request_options: typing.Optional[RequestOptions] = None,
|
|
831
851
|
) -> typing.List[AgentState]:
|
|
832
852
|
"""
|
|
@@ -865,6 +885,9 @@ class AsyncAgentsClient:
|
|
|
865
885
|
base_template_id : typing.Optional[str]
|
|
866
886
|
Search agents by base template id
|
|
867
887
|
|
|
888
|
+
identifier_key : typing.Optional[str]
|
|
889
|
+
Search agents by identifier key
|
|
890
|
+
|
|
868
891
|
request_options : typing.Optional[RequestOptions]
|
|
869
892
|
Request-specific configuration.
|
|
870
893
|
|
|
@@ -904,6 +927,7 @@ class AsyncAgentsClient:
|
|
|
904
927
|
"project_id": project_id,
|
|
905
928
|
"template_id": template_id,
|
|
906
929
|
"base_template_id": base_template_id,
|
|
930
|
+
"identifier_key": identifier_key,
|
|
907
931
|
},
|
|
908
932
|
request_options=request_options,
|
|
909
933
|
)
|
|
@@ -934,6 +958,7 @@ class AsyncAgentsClient:
|
|
|
934
958
|
async def create(
|
|
935
959
|
self,
|
|
936
960
|
*,
|
|
961
|
+
project_slug: typing.Optional[str] = None,
|
|
937
962
|
name: typing.Optional[str] = OMIT,
|
|
938
963
|
memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
|
|
939
964
|
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -963,6 +988,7 @@ class AsyncAgentsClient:
|
|
|
963
988
|
project_id: typing.Optional[str] = OMIT,
|
|
964
989
|
template_id: typing.Optional[str] = OMIT,
|
|
965
990
|
base_template_id: typing.Optional[str] = OMIT,
|
|
991
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
966
992
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
967
993
|
request_options: typing.Optional[RequestOptions] = None,
|
|
968
994
|
) -> AgentState:
|
|
@@ -971,6 +997,8 @@ class AsyncAgentsClient:
|
|
|
971
997
|
|
|
972
998
|
Parameters
|
|
973
999
|
----------
|
|
1000
|
+
project_slug : typing.Optional[str]
|
|
1001
|
+
|
|
974
1002
|
name : typing.Optional[str]
|
|
975
1003
|
The name of the agent.
|
|
976
1004
|
|
|
@@ -1041,7 +1069,7 @@ class AsyncAgentsClient:
|
|
|
1041
1069
|
Whether the agent is a template
|
|
1042
1070
|
|
|
1043
1071
|
project : typing.Optional[str]
|
|
1044
|
-
|
|
1072
|
+
Deprecated: Project should now be passed via the project-slug header instead of in the request body. If using the sdk, this can be done via the new project_slug field below.
|
|
1045
1073
|
|
|
1046
1074
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
1047
1075
|
The environment variables for tool execution specific to this agent.
|
|
@@ -1058,6 +1086,9 @@ class AsyncAgentsClient:
|
|
|
1058
1086
|
base_template_id : typing.Optional[str]
|
|
1059
1087
|
The base template id of the agent.
|
|
1060
1088
|
|
|
1089
|
+
identifier_key : typing.Optional[str]
|
|
1090
|
+
The identifier key belonging to the identity associated with this agent.
|
|
1091
|
+
|
|
1061
1092
|
message_buffer_autoclear : typing.Optional[bool]
|
|
1062
1093
|
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
1094
|
|
|
@@ -1129,10 +1160,12 @@ class AsyncAgentsClient:
|
|
|
1129
1160
|
"project_id": project_id,
|
|
1130
1161
|
"template_id": template_id,
|
|
1131
1162
|
"base_template_id": base_template_id,
|
|
1163
|
+
"identifier_key": identifier_key,
|
|
1132
1164
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1133
1165
|
},
|
|
1134
1166
|
headers={
|
|
1135
1167
|
"content-type": "application/json",
|
|
1168
|
+
"project-slug": str(project_slug) if project_slug is not None else None,
|
|
1136
1169
|
},
|
|
1137
1170
|
request_options=request_options,
|
|
1138
1171
|
omit=OMIT,
|
|
@@ -1311,6 +1344,7 @@ class AsyncAgentsClient:
|
|
|
1311
1344
|
project_id: typing.Optional[str] = OMIT,
|
|
1312
1345
|
template_id: typing.Optional[str] = OMIT,
|
|
1313
1346
|
base_template_id: typing.Optional[str] = OMIT,
|
|
1347
|
+
identifier_key: typing.Optional[str] = OMIT,
|
|
1314
1348
|
message_buffer_autoclear: typing.Optional[bool] = OMIT,
|
|
1315
1349
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1316
1350
|
) -> AgentState:
|
|
@@ -1369,6 +1403,9 @@ class AsyncAgentsClient:
|
|
|
1369
1403
|
base_template_id : typing.Optional[str]
|
|
1370
1404
|
The base template id of the agent.
|
|
1371
1405
|
|
|
1406
|
+
identifier_key : typing.Optional[str]
|
|
1407
|
+
The identifier key belonging to the identity associated with this agent.
|
|
1408
|
+
|
|
1372
1409
|
message_buffer_autoclear : typing.Optional[bool]
|
|
1373
1410
|
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
1411
|
|
|
@@ -1425,6 +1462,7 @@ class AsyncAgentsClient:
|
|
|
1425
1462
|
"project_id": project_id,
|
|
1426
1463
|
"template_id": template_id,
|
|
1427
1464
|
"base_template_id": base_template_id,
|
|
1465
|
+
"identifier_key": identifier_key,
|
|
1428
1466
|
"message_buffer_autoclear": message_buffer_autoclear,
|
|
1429
1467
|
},
|
|
1430
1468
|
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
|
+
]
|
letta_client/base_client.py
CHANGED
|
@@ -7,6 +7,7 @@ from .core.client_wrapper import SyncClientWrapper
|
|
|
7
7
|
from .tools.client import ToolsClient
|
|
8
8
|
from .sources.client import SourcesClient
|
|
9
9
|
from .agents.client import AgentsClient
|
|
10
|
+
from .identities.client import IdentitiesClient
|
|
10
11
|
from .models.client import ModelsClient
|
|
11
12
|
from .blocks.client import BlocksClient
|
|
12
13
|
from .jobs.client import JobsClient
|
|
@@ -20,6 +21,7 @@ from .core.client_wrapper import AsyncClientWrapper
|
|
|
20
21
|
from .tools.client import AsyncToolsClient
|
|
21
22
|
from .sources.client import AsyncSourcesClient
|
|
22
23
|
from .agents.client import AsyncAgentsClient
|
|
24
|
+
from .identities.client import AsyncIdentitiesClient
|
|
23
25
|
from .models.client import AsyncModelsClient
|
|
24
26
|
from .blocks.client import AsyncBlocksClient
|
|
25
27
|
from .jobs.client import AsyncJobsClient
|
|
@@ -92,6 +94,7 @@ class LettaBase:
|
|
|
92
94
|
self.tools = ToolsClient(client_wrapper=self._client_wrapper)
|
|
93
95
|
self.sources = SourcesClient(client_wrapper=self._client_wrapper)
|
|
94
96
|
self.agents = AgentsClient(client_wrapper=self._client_wrapper)
|
|
97
|
+
self.identities = IdentitiesClient(client_wrapper=self._client_wrapper)
|
|
95
98
|
self.models = ModelsClient(client_wrapper=self._client_wrapper)
|
|
96
99
|
self.blocks = BlocksClient(client_wrapper=self._client_wrapper)
|
|
97
100
|
self.jobs = JobsClient(client_wrapper=self._client_wrapper)
|
|
@@ -164,6 +167,7 @@ class AsyncLettaBase:
|
|
|
164
167
|
self.tools = AsyncToolsClient(client_wrapper=self._client_wrapper)
|
|
165
168
|
self.sources = AsyncSourcesClient(client_wrapper=self._client_wrapper)
|
|
166
169
|
self.agents = AsyncAgentsClient(client_wrapper=self._client_wrapper)
|
|
170
|
+
self.identities = AsyncIdentitiesClient(client_wrapper=self._client_wrapper)
|
|
167
171
|
self.models = AsyncModelsClient(client_wrapper=self._client_wrapper)
|
|
168
172
|
self.blocks = AsyncBlocksClient(client_wrapper=self._client_wrapper)
|
|
169
173
|
self.jobs = AsyncJobsClient(client_wrapper=self._client_wrapper)
|
|
@@ -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.37",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
+
import typing
|
|
5
|
+
from ..types.identity_type import IdentityType
|
|
6
|
+
from ..core.request_options import RequestOptions
|
|
7
|
+
from ..types.identity import Identity
|
|
8
|
+
from ..core.unchecked_base_model import construct_type
|
|
9
|
+
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
10
|
+
from ..types.http_validation_error import HttpValidationError
|
|
11
|
+
from json.decoder import JSONDecodeError
|
|
12
|
+
from ..core.api_error import ApiError
|
|
13
|
+
from ..core.client_wrapper import AsyncClientWrapper
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class IdentitiesClient:
|
|
17
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
18
|
+
self._client_wrapper = client_wrapper
|
|
19
|
+
|
|
20
|
+
def list_identities(
|
|
21
|
+
self,
|
|
22
|
+
*,
|
|
23
|
+
name: typing.Optional[str] = None,
|
|
24
|
+
project_id: typing.Optional[str] = None,
|
|
25
|
+
identity_type: typing.Optional[IdentityType] = None,
|
|
26
|
+
before: typing.Optional[str] = None,
|
|
27
|
+
after: typing.Optional[str] = None,
|
|
28
|
+
limit: typing.Optional[int] = None,
|
|
29
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
30
|
+
) -> typing.List[Identity]:
|
|
31
|
+
"""
|
|
32
|
+
Get a list of all identities in the database
|
|
33
|
+
|
|
34
|
+
Parameters
|
|
35
|
+
----------
|
|
36
|
+
name : typing.Optional[str]
|
|
37
|
+
|
|
38
|
+
project_id : typing.Optional[str]
|
|
39
|
+
|
|
40
|
+
identity_type : typing.Optional[IdentityType]
|
|
41
|
+
|
|
42
|
+
before : typing.Optional[str]
|
|
43
|
+
|
|
44
|
+
after : typing.Optional[str]
|
|
45
|
+
|
|
46
|
+
limit : typing.Optional[int]
|
|
47
|
+
|
|
48
|
+
request_options : typing.Optional[RequestOptions]
|
|
49
|
+
Request-specific configuration.
|
|
50
|
+
|
|
51
|
+
Returns
|
|
52
|
+
-------
|
|
53
|
+
typing.List[Identity]
|
|
54
|
+
Successful Response
|
|
55
|
+
|
|
56
|
+
Examples
|
|
57
|
+
--------
|
|
58
|
+
from letta_client import Letta
|
|
59
|
+
|
|
60
|
+
client = Letta(
|
|
61
|
+
token="YOUR_TOKEN",
|
|
62
|
+
)
|
|
63
|
+
client.identities.list_identities()
|
|
64
|
+
"""
|
|
65
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
66
|
+
"v1/identities/",
|
|
67
|
+
method="GET",
|
|
68
|
+
params={
|
|
69
|
+
"name": name,
|
|
70
|
+
"project_id": project_id,
|
|
71
|
+
"identity_type": identity_type,
|
|
72
|
+
"before": before,
|
|
73
|
+
"after": after,
|
|
74
|
+
"limit": limit,
|
|
75
|
+
},
|
|
76
|
+
request_options=request_options,
|
|
77
|
+
)
|
|
78
|
+
try:
|
|
79
|
+
if 200 <= _response.status_code < 300:
|
|
80
|
+
return typing.cast(
|
|
81
|
+
typing.List[Identity],
|
|
82
|
+
construct_type(
|
|
83
|
+
type_=typing.List[Identity], # type: ignore
|
|
84
|
+
object_=_response.json(),
|
|
85
|
+
),
|
|
86
|
+
)
|
|
87
|
+
if _response.status_code == 422:
|
|
88
|
+
raise UnprocessableEntityError(
|
|
89
|
+
typing.cast(
|
|
90
|
+
HttpValidationError,
|
|
91
|
+
construct_type(
|
|
92
|
+
type_=HttpValidationError, # type: ignore
|
|
93
|
+
object_=_response.json(),
|
|
94
|
+
),
|
|
95
|
+
)
|
|
96
|
+
)
|
|
97
|
+
_response_json = _response.json()
|
|
98
|
+
except JSONDecodeError:
|
|
99
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
100
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class AsyncIdentitiesClient:
|
|
104
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
105
|
+
self._client_wrapper = client_wrapper
|
|
106
|
+
|
|
107
|
+
async def list_identities(
|
|
108
|
+
self,
|
|
109
|
+
*,
|
|
110
|
+
name: typing.Optional[str] = None,
|
|
111
|
+
project_id: typing.Optional[str] = None,
|
|
112
|
+
identity_type: typing.Optional[IdentityType] = None,
|
|
113
|
+
before: typing.Optional[str] = None,
|
|
114
|
+
after: typing.Optional[str] = None,
|
|
115
|
+
limit: typing.Optional[int] = None,
|
|
116
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
117
|
+
) -> typing.List[Identity]:
|
|
118
|
+
"""
|
|
119
|
+
Get a list of all identities in the database
|
|
120
|
+
|
|
121
|
+
Parameters
|
|
122
|
+
----------
|
|
123
|
+
name : typing.Optional[str]
|
|
124
|
+
|
|
125
|
+
project_id : typing.Optional[str]
|
|
126
|
+
|
|
127
|
+
identity_type : typing.Optional[IdentityType]
|
|
128
|
+
|
|
129
|
+
before : typing.Optional[str]
|
|
130
|
+
|
|
131
|
+
after : typing.Optional[str]
|
|
132
|
+
|
|
133
|
+
limit : typing.Optional[int]
|
|
134
|
+
|
|
135
|
+
request_options : typing.Optional[RequestOptions]
|
|
136
|
+
Request-specific configuration.
|
|
137
|
+
|
|
138
|
+
Returns
|
|
139
|
+
-------
|
|
140
|
+
typing.List[Identity]
|
|
141
|
+
Successful Response
|
|
142
|
+
|
|
143
|
+
Examples
|
|
144
|
+
--------
|
|
145
|
+
import asyncio
|
|
146
|
+
|
|
147
|
+
from letta_client import AsyncLetta
|
|
148
|
+
|
|
149
|
+
client = AsyncLetta(
|
|
150
|
+
token="YOUR_TOKEN",
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def main() -> None:
|
|
155
|
+
await client.identities.list_identities()
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
asyncio.run(main())
|
|
159
|
+
"""
|
|
160
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
161
|
+
"v1/identities/",
|
|
162
|
+
method="GET",
|
|
163
|
+
params={
|
|
164
|
+
"name": name,
|
|
165
|
+
"project_id": project_id,
|
|
166
|
+
"identity_type": identity_type,
|
|
167
|
+
"before": before,
|
|
168
|
+
"after": after,
|
|
169
|
+
"limit": limit,
|
|
170
|
+
},
|
|
171
|
+
request_options=request_options,
|
|
172
|
+
)
|
|
173
|
+
try:
|
|
174
|
+
if 200 <= _response.status_code < 300:
|
|
175
|
+
return typing.cast(
|
|
176
|
+
typing.List[Identity],
|
|
177
|
+
construct_type(
|
|
178
|
+
type_=typing.List[Identity], # type: ignore
|
|
179
|
+
object_=_response.json(),
|
|
180
|
+
),
|
|
181
|
+
)
|
|
182
|
+
if _response.status_code == 422:
|
|
183
|
+
raise UnprocessableEntityError(
|
|
184
|
+
typing.cast(
|
|
185
|
+
HttpValidationError,
|
|
186
|
+
construct_type(
|
|
187
|
+
type_=HttpValidationError, # type: ignore
|
|
188
|
+
object_=_response.json(),
|
|
189
|
+
),
|
|
190
|
+
)
|
|
191
|
+
)
|
|
192
|
+
_response_json = _response.json()
|
|
193
|
+
except JSONDecodeError:
|
|
194
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
195
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -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
|
+
]
|
letta_client/types/__init__.py
CHANGED
|
@@ -83,6 +83,8 @@ from .function_output import FunctionOutput
|
|
|
83
83
|
from .function_tool import FunctionTool
|
|
84
84
|
from .health import Health
|
|
85
85
|
from .http_validation_error import HttpValidationError
|
|
86
|
+
from .identity import Identity
|
|
87
|
+
from .identity_type import IdentityType
|
|
86
88
|
from .image_url import ImageUrl
|
|
87
89
|
from .image_url_detail import ImageUrlDetail
|
|
88
90
|
from .init_tool_rule import InitToolRule
|
|
@@ -246,6 +248,8 @@ __all__ = [
|
|
|
246
248
|
"FunctionTool",
|
|
247
249
|
"Health",
|
|
248
250
|
"HttpValidationError",
|
|
251
|
+
"Identity",
|
|
252
|
+
"IdentityType",
|
|
249
253
|
"ImageUrl",
|
|
250
254
|
"ImageUrlDetail",
|
|
251
255
|
"InitToolRule",
|
|
@@ -15,6 +15,7 @@ class ActionParametersModel(UncheckedBaseModel):
|
|
|
15
15
|
title: str
|
|
16
16
|
type: str
|
|
17
17
|
required: typing.Optional[typing.List[str]] = None
|
|
18
|
+
examples: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
18
19
|
|
|
19
20
|
if IS_PYDANTIC_V2:
|
|
20
21
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -15,6 +15,7 @@ class ActionResponseModel(UncheckedBaseModel):
|
|
|
15
15
|
title: str
|
|
16
16
|
type: str
|
|
17
17
|
required: typing.Optional[typing.List[str]] = None
|
|
18
|
+
examples: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
18
19
|
|
|
19
20
|
if IS_PYDANTIC_V2:
|
|
20
21
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -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.
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
5
|
AppAuthSchemeAuthMode = typing.Union[
|
|
6
|
-
typing.Literal["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BEARER_TOKEN", "BASIC_WITH_JWT"], typing.Any
|
|
6
|
+
typing.Literal["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BEARER_TOKEN", "BASIC_WITH_JWT", "NO_AUTH"], typing.Any
|
|
7
7
|
]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import pydantic
|
|
5
|
+
from .identity_type import IdentityType
|
|
6
|
+
import typing
|
|
7
|
+
from .agent_state import AgentState
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Identity(UncheckedBaseModel):
|
|
12
|
+
id: str = pydantic.Field()
|
|
13
|
+
"""
|
|
14
|
+
The internal id of the identity.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
identifier_key: str = pydantic.Field()
|
|
18
|
+
"""
|
|
19
|
+
External, user-generated identifier key of the identity.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
name: str = pydantic.Field()
|
|
23
|
+
"""
|
|
24
|
+
The name of the identity.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
identity_type: IdentityType = pydantic.Field()
|
|
28
|
+
"""
|
|
29
|
+
The type of the identity.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
project_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
The project id of the identity, if applicable.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
agents: typing.List[AgentState] = pydantic.Field()
|
|
38
|
+
"""
|
|
39
|
+
The ids of the agents associated with the identity.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
if IS_PYDANTIC_V2:
|
|
43
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
44
|
+
else:
|
|
45
|
+
|
|
46
|
+
class Config:
|
|
47
|
+
frozen = True
|
|
48
|
+
smart_union = True
|
|
49
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
2
|
-
letta_client/agents/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=DMIOdcCsMaiuoYcLh8vR7ELSXOe_ZXf5CNtwcvecP-w,58659
|
|
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=lAo_OOjgQaWKrTJpioTikVIRvYYTieybHqLI--mFyXY,62471
|
|
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
|
|
@@ -194,13 +196,13 @@ letta_client/agents/types/agents_search_response_agents_item_updated_at.py,sha25
|
|
|
194
196
|
letta_client/agents/types/agents_search_response_agents_item_updated_at_item.py,sha256=Anb4fUgBP7Qf9Iggi_OYab0dPcWE-aIA6BvcAk8qIcg,166
|
|
195
197
|
letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=vzOFgtUuui1HVtgMOPegJytxVKMOpKKc5l9WxxzO0aY,415
|
|
196
198
|
letta_client/agents/types/update_agent_tool_rules_item.py,sha256=P43l3kJNrqPVbNpWbEfEA7likZCGKtFYWQ2EofUCrnU,408
|
|
197
|
-
letta_client/base_client.py,sha256=
|
|
199
|
+
letta_client/base_client.py,sha256=ATvrb83SfeAseCcUAGyHzJKYfwg5Cv5axZqDirCj3Vc,8169
|
|
198
200
|
letta_client/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
199
201
|
letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU,29178
|
|
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=K9DW2GyQcTjqvN_7abMFzs0qw7gukDGN-YT4aE-DjMg,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
|
|
@@ -219,6 +221,8 @@ letta_client/errors/not_found_error.py,sha256=tBVCeBC8n3C811WHRj_n-hs3h8MqwR5gp0
|
|
|
219
221
|
letta_client/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
|
|
220
222
|
letta_client/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
221
223
|
letta_client/health/client.py,sha256=6BjXH83ZhsLt_MD4QA2hiTsvgfeIgxMT1KSN0Oj6e1I,3242
|
|
224
|
+
letta_client/identities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
225
|
+
letta_client/identities/client.py,sha256=TlmfHOUg967LTHn21fVMe4hxMVsMbx27MOX97hAGYCY,6168
|
|
222
226
|
letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
223
227
|
letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
|
|
224
228
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -238,11 +242,11 @@ letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_p
|
|
|
238
242
|
letta_client/steps/client.py,sha256=nHd4ZxYeaVgYf9ZewBCLc58DZ38LoW97W-xbc2oOL_0,10900
|
|
239
243
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
240
244
|
letta_client/tag/client.py,sha256=TBAotdb0e2_x2pANF4dOE1qmWY3GIgb7nOhvN7iZ3_4,5183
|
|
241
|
-
letta_client/templates/__init__.py,sha256=
|
|
245
|
+
letta_client/templates/__init__.py,sha256=3hIFj780AJPnmiWl430t5H1NZdLRvtkzc-GJJmOYu5g,27443
|
|
242
246
|
letta_client/templates/client.py,sha256=RLdu0MgTHR7MEK_trsPFlP_3ls27-xEnUW5m0V88eaI,6858
|
|
243
|
-
letta_client/templates/types/__init__.py,sha256=
|
|
247
|
+
letta_client/templates/types/__init__.py,sha256=UDBPkHgduP680i-7vMAfjSNJTkOKAcE8SwO1JuWHT-w,44797
|
|
244
248
|
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=
|
|
249
|
+
letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py,sha256=ltWladhOfbkakrnqTsxBHWB9kj2oI6e_3oVH52aPuPI,6143
|
|
246
250
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py,sha256=1YGJe4QqKmUsJRXlvhXH8xl7PhpCgTQip-aT1Zd3h0c,271
|
|
247
251
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_base_template_id.py,sha256=Giq4AX2SRh9ZWnakEpn3jovsaf2n4eG5m5CisLGE0Ao,510
|
|
248
252
|
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 +270,8 @@ letta_client/templates/types/templates_create_agents_from_template_response_agen
|
|
|
266
270
|
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
271
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py,sha256=MHtWOfUZ2ZjvmwmME1zMU8YhtNTfQ5IE3GC2BAxOqos,538
|
|
268
272
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle_item.py,sha256=xXrEFoy9YjubSKglsWegXm73iAXbe1e8pmi-ZMB5bR8,199
|
|
273
|
+
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identifier_key.py,sha256=OnAu1thT0hmExqKb-tlrTnRJdjJ4NgE_WJJ5seUaeo4,505
|
|
274
|
+
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_identifier_key_item.py,sha256=Jay9Mcysj8qE8T51GhFVvoYjNZFGvnJqed2ly_TOPmo,191
|
|
269
275
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py,sha256=YcnUUXOwFu6WFkOIiOmsnWgZ3aq8rIHsBiBiwKOrY0M,515
|
|
270
276
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id_item.py,sha256=uwyL9iG8JbHsNyYezk2IRlA0tjWWA7AaVAgqHhq-C7w,193
|
|
271
277
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py,sha256=vaxZoK5nBSoc9QvGu6j66-M4hDRMSa33J8k2JQn9k5E,2725
|
|
@@ -404,16 +410,16 @@ letta_client/templates/types/templates_create_agents_from_template_response_agen
|
|
|
404
410
|
letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py,sha256=uXkJJCwx44tIcYHCkXzAqvIvhtQDN9mYZanKbLBJNyI,187
|
|
405
411
|
letta_client/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
406
412
|
letta_client/tools/client.py,sha256=nv4PKwwlBsyGYm9B_3okgaiNFbbMYfZ53bzeoaAhVfU,53219
|
|
407
|
-
letta_client/types/__init__.py,sha256=
|
|
413
|
+
letta_client/types/__init__.py,sha256=_neJGuir0Wj8Ivsj_IPmXw9MgrAArQ_6CQn7GuaDhgg,15011
|
|
408
414
|
letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
|
|
409
|
-
letta_client/types/action_parameters_model.py,sha256=
|
|
410
|
-
letta_client/types/action_response_model.py,sha256=
|
|
415
|
+
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
416
|
+
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
411
417
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
412
|
-
letta_client/types/agent_state.py,sha256=
|
|
418
|
+
letta_client/types/agent_state.py,sha256=YmOGu1BAewjDuq4mk5S0yP81YdYPeKgeYP1uXv2Ws_Q,5035
|
|
413
419
|
letta_client/types/agent_state_tool_rules_item.py,sha256=-1gMhEZOThSYXXTWxZXtSNpkANOTws0bZcEXf-PQCJA,375
|
|
414
420
|
letta_client/types/agent_type.py,sha256=iZ3Wa4BUddDeFSgcK3Z0WUKCQYDRCEo0aJICKsc3HL0,220
|
|
415
421
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
416
|
-
letta_client/types/app_auth_scheme_auth_mode.py,sha256=
|
|
422
|
+
letta_client/types/app_auth_scheme_auth_mode.py,sha256=4zgUPTye_olDGcfbwpyCAbwU-11WPGaAxO_PeA-0I0c,236
|
|
417
423
|
letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
|
|
418
424
|
letta_client/types/assistant_message.py,sha256=OWJz-tAsuiA1bZguDbvIBJezzjYiQWt8kWCxwxK-zN4,779
|
|
419
425
|
letta_client/types/assistant_message_content.py,sha256=2XtIgU1tzCHgp-NwWIkUFohOd1GClieiRk9OATTEcew,188
|
|
@@ -488,6 +494,8 @@ letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlr
|
|
|
488
494
|
letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
|
|
489
495
|
letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
|
|
490
496
|
letta_client/types/http_validation_error.py,sha256=yHa4_NHIMB-VKNZpk7agjLTwWIg7mv7ml3d7I-Bqiog,661
|
|
497
|
+
letta_client/types/identity.py,sha256=c3lz_V0Nw3oUS_EuKdYpjDR5FohfvEUkG0H1riKGaIA,1262
|
|
498
|
+
letta_client/types/identity_type.py,sha256=YeGvqit1VLK7q0GpNuTyfbCxXO7BJjq-hFSiFZexswk,160
|
|
491
499
|
letta_client/types/image_url.py,sha256=re4N2AsAvOFl2nS6v8jOi3jVFppBs-3zhwpBKHSuCLs,648
|
|
492
500
|
letta_client/types/image_url_detail.py,sha256=YFT9wyf8hqeKhQjRWMv97y-fbU2DB-oCbU5BpUcHWVU,161
|
|
493
501
|
letta_client/types/init_tool_rule.py,sha256=fPQqBigbqZfJXPoXdpBCFlilVYf5p4-t0touyFm_gqE,801
|
|
@@ -561,6 +569,6 @@ letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wD
|
|
|
561
569
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
562
570
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
563
571
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
564
|
-
letta_client-0.1.
|
|
565
|
-
letta_client-0.1.
|
|
566
|
-
letta_client-0.1.
|
|
572
|
+
letta_client-0.1.37.dist-info/METADATA,sha256=AO7Rh-PI3MExF21nkTOXPJRbhFP3B7FrhewIbPLgQEQ,4942
|
|
573
|
+
letta_client-0.1.37.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
574
|
+
letta_client-0.1.37.dist-info/RECORD,,
|
|
File without changes
|