letta-client 0.1.41__py3-none-any.whl → 0.1.43__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.

Files changed (31) hide show
  1. letta_client/__init__.py +10 -8
  2. letta_client/agents/__init__.py +5 -6
  3. letta_client/agents/blocks/client.py +753 -0
  4. letta_client/agents/client.py +32 -28
  5. letta_client/agents/core_memory/client.py +1 -734
  6. letta_client/agents/passages/__init__.py +2 -0
  7. letta_client/agents/{archival_memory → passages}/client.py +8 -8
  8. letta_client/agents/types/__init__.py +2 -4
  9. letta_client/agents/types/agents_search_response_agents_item.py +2 -2
  10. letta_client/agents/types/agents_search_response_agents_item_identity_ids.py +5 -0
  11. letta_client/core/client_wrapper.py +1 -1
  12. letta_client/identities/client.py +108 -50
  13. letta_client/templates/__init__.py +2 -4
  14. letta_client/templates/types/__init__.py +3 -7
  15. letta_client/templates/types/templates_create_agents_response_agents_item.py +3 -3
  16. letta_client/templates/types/templates_create_agents_response_agents_item_identity_ids.py +5 -0
  17. letta_client/types/__init__.py +6 -0
  18. letta_client/types/agent_state.py +2 -2
  19. letta_client/types/identity.py +8 -3
  20. letta_client/types/identity_create.py +6 -0
  21. letta_client/types/identity_property.py +38 -0
  22. letta_client/types/identity_property_type.py +5 -0
  23. letta_client/types/identity_property_value.py +5 -0
  24. {letta_client-0.1.41.dist-info → letta_client-0.1.43.dist-info}/METADATA +1 -1
  25. {letta_client-0.1.41.dist-info → letta_client-0.1.43.dist-info}/RECORD +27 -24
  26. letta_client/agents/types/agents_search_response_agents_item_identifier_key.py +0 -11
  27. letta_client/agents/types/agents_search_response_agents_item_identifier_key_item.py +0 -5
  28. letta_client/templates/types/templates_create_agents_response_agents_item_identifier_key.py +0 -13
  29. letta_client/templates/types/templates_create_agents_response_agents_item_identifier_key_item.py +0 -5
  30. /letta_client/agents/{archival_memory → blocks}/__init__.py +0 -0
  31. {letta_client-0.1.41.dist-info → letta_client-0.1.43.dist-info}/WHEEL +0 -0
@@ -6,7 +6,8 @@ from .context.client import ContextClient
6
6
  from .tools.client import ToolsClient
7
7
  from .sources.client import SourcesClient
8
8
  from .core_memory.client import CoreMemoryClient
9
- from .archival_memory.client import ArchivalMemoryClient
9
+ from .blocks.client import BlocksClient
10
+ from .passages.client import PassagesClient
10
11
  from .messages.client import MessagesClient
11
12
  from .templates.client import TemplatesClient
12
13
  from .memory_variables.client import MemoryVariablesClient
@@ -33,7 +34,8 @@ from .context.client import AsyncContextClient
33
34
  from .tools.client import AsyncToolsClient
34
35
  from .sources.client import AsyncSourcesClient
35
36
  from .core_memory.client import AsyncCoreMemoryClient
36
- from .archival_memory.client import AsyncArchivalMemoryClient
37
+ from .blocks.client import AsyncBlocksClient
38
+ from .passages.client import AsyncPassagesClient
37
39
  from .messages.client import AsyncMessagesClient
38
40
  from .templates.client import AsyncTemplatesClient
39
41
  from .memory_variables.client import AsyncMemoryVariablesClient
@@ -49,7 +51,8 @@ class AgentsClient:
49
51
  self.tools = ToolsClient(client_wrapper=self._client_wrapper)
50
52
  self.sources = SourcesClient(client_wrapper=self._client_wrapper)
51
53
  self.core_memory = CoreMemoryClient(client_wrapper=self._client_wrapper)
52
- self.archival_memory = ArchivalMemoryClient(client_wrapper=self._client_wrapper)
54
+ self.blocks = BlocksClient(client_wrapper=self._client_wrapper)
55
+ self.passages = PassagesClient(client_wrapper=self._client_wrapper)
53
56
  self.messages = MessagesClient(client_wrapper=self._client_wrapper)
54
57
  self.templates = TemplatesClient(client_wrapper=self._client_wrapper)
55
58
  self.memory_variables = MemoryVariablesClient(client_wrapper=self._client_wrapper)
@@ -67,7 +70,7 @@ class AgentsClient:
67
70
  project_id: typing.Optional[str] = None,
68
71
  template_id: typing.Optional[str] = None,
69
72
  base_template_id: typing.Optional[str] = None,
70
- identifier_key: typing.Optional[str] = None,
73
+ identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
71
74
  request_options: typing.Optional[RequestOptions] = None,
72
75
  ) -> typing.List[AgentState]:
73
76
  """
@@ -106,8 +109,8 @@ class AgentsClient:
106
109
  base_template_id : typing.Optional[str]
107
110
  Search agents by base template id
108
111
 
109
- identifier_key : typing.Optional[str]
110
- Search agents by identifier key
112
+ identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
113
+ Search agents by identifier keys
111
114
 
112
115
  request_options : typing.Optional[RequestOptions]
113
116
  Request-specific configuration.
@@ -140,7 +143,7 @@ class AgentsClient:
140
143
  "project_id": project_id,
141
144
  "template_id": template_id,
142
145
  "base_template_id": base_template_id,
143
- "identifier_key": identifier_key,
146
+ "identifier_keys": identifier_keys,
144
147
  },
145
148
  request_options=request_options,
146
149
  )
@@ -202,7 +205,7 @@ class AgentsClient:
202
205
  project_id: typing.Optional[str] = OMIT,
203
206
  template_id: typing.Optional[str] = OMIT,
204
207
  base_template_id: typing.Optional[str] = OMIT,
205
- identifier_key: typing.Optional[str] = OMIT,
208
+ identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
206
209
  message_buffer_autoclear: typing.Optional[bool] = OMIT,
207
210
  request_options: typing.Optional[RequestOptions] = None,
208
211
  ) -> AgentState:
@@ -303,8 +306,8 @@ class AgentsClient:
303
306
  base_template_id : typing.Optional[str]
304
307
  The base template id of the agent.
305
308
 
306
- identifier_key : typing.Optional[str]
307
- The identifier key belonging to the identity associated with this agent.
309
+ identity_ids : typing.Optional[typing.Sequence[str]]
310
+ The ids of the identities associated with this agent.
308
311
 
309
312
  message_buffer_autoclear : typing.Optional[bool]
310
313
  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.
@@ -370,7 +373,7 @@ class AgentsClient:
370
373
  "project_id": project_id,
371
374
  "template_id": template_id,
372
375
  "base_template_id": base_template_id,
373
- "identifier_key": identifier_key,
376
+ "identity_ids": identity_ids,
374
377
  "message_buffer_autoclear": message_buffer_autoclear,
375
378
  },
376
379
  headers={
@@ -538,7 +541,7 @@ class AgentsClient:
538
541
  project_id: typing.Optional[str] = OMIT,
539
542
  template_id: typing.Optional[str] = OMIT,
540
543
  base_template_id: typing.Optional[str] = OMIT,
541
- identifier_key: typing.Optional[str] = OMIT,
544
+ identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
542
545
  message_buffer_autoclear: typing.Optional[bool] = OMIT,
543
546
  request_options: typing.Optional[RequestOptions] = None,
544
547
  ) -> AgentState:
@@ -597,8 +600,8 @@ class AgentsClient:
597
600
  base_template_id : typing.Optional[str]
598
601
  The base template id of the agent.
599
602
 
600
- identifier_key : typing.Optional[str]
601
- The identifier key belonging to the identity associated with this agent.
603
+ identity_ids : typing.Optional[typing.Sequence[str]]
604
+ The ids of the identities associated with this agent.
602
605
 
603
606
  message_buffer_autoclear : typing.Optional[bool]
604
607
  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.
@@ -648,7 +651,7 @@ class AgentsClient:
648
651
  "project_id": project_id,
649
652
  "template_id": template_id,
650
653
  "base_template_id": base_template_id,
651
- "identifier_key": identifier_key,
654
+ "identity_ids": identity_ids,
652
655
  "message_buffer_autoclear": message_buffer_autoclear,
653
656
  },
654
657
  headers={
@@ -833,7 +836,8 @@ class AsyncAgentsClient:
833
836
  self.tools = AsyncToolsClient(client_wrapper=self._client_wrapper)
834
837
  self.sources = AsyncSourcesClient(client_wrapper=self._client_wrapper)
835
838
  self.core_memory = AsyncCoreMemoryClient(client_wrapper=self._client_wrapper)
836
- self.archival_memory = AsyncArchivalMemoryClient(client_wrapper=self._client_wrapper)
839
+ self.blocks = AsyncBlocksClient(client_wrapper=self._client_wrapper)
840
+ self.passages = AsyncPassagesClient(client_wrapper=self._client_wrapper)
837
841
  self.messages = AsyncMessagesClient(client_wrapper=self._client_wrapper)
838
842
  self.templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper)
839
843
  self.memory_variables = AsyncMemoryVariablesClient(client_wrapper=self._client_wrapper)
@@ -851,7 +855,7 @@ class AsyncAgentsClient:
851
855
  project_id: typing.Optional[str] = None,
852
856
  template_id: typing.Optional[str] = None,
853
857
  base_template_id: typing.Optional[str] = None,
854
- identifier_key: typing.Optional[str] = None,
858
+ identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
855
859
  request_options: typing.Optional[RequestOptions] = None,
856
860
  ) -> typing.List[AgentState]:
857
861
  """
@@ -890,8 +894,8 @@ class AsyncAgentsClient:
890
894
  base_template_id : typing.Optional[str]
891
895
  Search agents by base template id
892
896
 
893
- identifier_key : typing.Optional[str]
894
- Search agents by identifier key
897
+ identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
898
+ Search agents by identifier keys
895
899
 
896
900
  request_options : typing.Optional[RequestOptions]
897
901
  Request-specific configuration.
@@ -932,7 +936,7 @@ class AsyncAgentsClient:
932
936
  "project_id": project_id,
933
937
  "template_id": template_id,
934
938
  "base_template_id": base_template_id,
935
- "identifier_key": identifier_key,
939
+ "identifier_keys": identifier_keys,
936
940
  },
937
941
  request_options=request_options,
938
942
  )
@@ -994,7 +998,7 @@ class AsyncAgentsClient:
994
998
  project_id: typing.Optional[str] = OMIT,
995
999
  template_id: typing.Optional[str] = OMIT,
996
1000
  base_template_id: typing.Optional[str] = OMIT,
997
- identifier_key: typing.Optional[str] = OMIT,
1001
+ identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
998
1002
  message_buffer_autoclear: typing.Optional[bool] = OMIT,
999
1003
  request_options: typing.Optional[RequestOptions] = None,
1000
1004
  ) -> AgentState:
@@ -1095,8 +1099,8 @@ class AsyncAgentsClient:
1095
1099
  base_template_id : typing.Optional[str]
1096
1100
  The base template id of the agent.
1097
1101
 
1098
- identifier_key : typing.Optional[str]
1099
- The identifier key belonging to the identity associated with this agent.
1102
+ identity_ids : typing.Optional[typing.Sequence[str]]
1103
+ The ids of the identities associated with this agent.
1100
1104
 
1101
1105
  message_buffer_autoclear : typing.Optional[bool]
1102
1106
  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.
@@ -1170,7 +1174,7 @@ class AsyncAgentsClient:
1170
1174
  "project_id": project_id,
1171
1175
  "template_id": template_id,
1172
1176
  "base_template_id": base_template_id,
1173
- "identifier_key": identifier_key,
1177
+ "identity_ids": identity_ids,
1174
1178
  "message_buffer_autoclear": message_buffer_autoclear,
1175
1179
  },
1176
1180
  headers={
@@ -1354,7 +1358,7 @@ class AsyncAgentsClient:
1354
1358
  project_id: typing.Optional[str] = OMIT,
1355
1359
  template_id: typing.Optional[str] = OMIT,
1356
1360
  base_template_id: typing.Optional[str] = OMIT,
1357
- identifier_key: typing.Optional[str] = OMIT,
1361
+ identity_ids: typing.Optional[typing.Sequence[str]] = OMIT,
1358
1362
  message_buffer_autoclear: typing.Optional[bool] = OMIT,
1359
1363
  request_options: typing.Optional[RequestOptions] = None,
1360
1364
  ) -> AgentState:
@@ -1413,8 +1417,8 @@ class AsyncAgentsClient:
1413
1417
  base_template_id : typing.Optional[str]
1414
1418
  The base template id of the agent.
1415
1419
 
1416
- identifier_key : typing.Optional[str]
1417
- The identifier key belonging to the identity associated with this agent.
1420
+ identity_ids : typing.Optional[typing.Sequence[str]]
1421
+ The ids of the identities associated with this agent.
1418
1422
 
1419
1423
  message_buffer_autoclear : typing.Optional[bool]
1420
1424
  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.
@@ -1472,7 +1476,7 @@ class AsyncAgentsClient:
1472
1476
  "project_id": project_id,
1473
1477
  "template_id": template_id,
1474
1478
  "base_template_id": base_template_id,
1475
- "identifier_key": identifier_key,
1479
+ "identity_ids": identity_ids,
1476
1480
  "message_buffer_autoclear": message_buffer_autoclear,
1477
1481
  },
1478
1482
  headers={