letta-client 1.0.0a2__py3-none-any.whl → 1.0.0a4__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 +12 -0
- letta_client/agents/blocks/client.py +28 -14
- letta_client/agents/blocks/raw_client.py +14 -0
- letta_client/agents/client.py +36 -8
- letta_client/agents/context/client.py +4 -2
- letta_client/agents/context/raw_client.py +2 -0
- letta_client/agents/core_memory/client.py +4 -2
- letta_client/agents/core_memory/raw_client.py +2 -0
- letta_client/agents/files/client.py +24 -12
- letta_client/agents/files/raw_client.py +12 -0
- letta_client/agents/folders/client.py +20 -10
- letta_client/agents/folders/raw_client.py +10 -0
- letta_client/agents/groups/client.py +4 -2
- letta_client/agents/groups/raw_client.py +2 -0
- letta_client/agents/messages/client.py +40 -20
- letta_client/agents/messages/raw_client.py +20 -0
- letta_client/agents/passages/client.py +16 -8
- letta_client/agents/passages/raw_client.py +8 -0
- letta_client/agents/raw_client.py +28 -0
- letta_client/agents/sources/client.py +20 -10
- letta_client/agents/sources/raw_client.py +10 -0
- letta_client/agents/tools/client.py +24 -12
- letta_client/agents/tools/raw_client.py +12 -0
- letta_client/archives/client.py +4 -2
- letta_client/archives/raw_client.py +2 -0
- letta_client/blocks/agents/client.py +4 -2
- letta_client/blocks/agents/raw_client.py +2 -0
- letta_client/blocks/client.py +12 -6
- letta_client/blocks/raw_client.py +6 -0
- letta_client/core/client_wrapper.py +2 -2
- letta_client/groups/client.py +12 -6
- letta_client/groups/messages/client.py +24 -12
- letta_client/groups/messages/raw_client.py +12 -0
- letta_client/groups/raw_client.py +6 -0
- letta_client/identities/agents/client.py +4 -2
- letta_client/identities/agents/raw_client.py +2 -0
- letta_client/identities/blocks/client.py +4 -2
- letta_client/identities/blocks/raw_client.py +2 -0
- letta_client/identities/client.py +12 -6
- letta_client/identities/properties/client.py +4 -2
- letta_client/identities/properties/raw_client.py +2 -0
- letta_client/identities/raw_client.py +6 -0
- letta_client/jobs/client.py +12 -6
- letta_client/jobs/raw_client.py +6 -0
- letta_client/providers/client.py +16 -8
- letta_client/providers/raw_client.py +8 -0
- letta_client/sources/client.py +24 -12
- letta_client/sources/files/client.py +16 -8
- letta_client/sources/files/raw_client.py +8 -0
- letta_client/sources/passages/client.py +4 -2
- letta_client/sources/passages/raw_client.py +2 -0
- letta_client/sources/raw_client.py +12 -0
- letta_client/steps/client.py +4 -2
- letta_client/steps/feedback/client.py +4 -2
- letta_client/steps/feedback/raw_client.py +2 -0
- letta_client/steps/messages/client.py +4 -2
- letta_client/steps/messages/raw_client.py +2 -0
- letta_client/steps/metrics/client.py +4 -2
- letta_client/steps/metrics/raw_client.py +2 -0
- letta_client/steps/raw_client.py +2 -0
- letta_client/steps/trace/client.py +4 -2
- letta_client/steps/trace/raw_client.py +2 -0
- letta_client/templates/__init__.py +8 -0
- letta_client/templates/types/__init__.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py +6 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +6 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution_item.py +7 -0
- letta_client/tools/client.py +42 -6
- letta_client/tools/raw_client.py +36 -0
- letta_client/types/__init__.py +4 -0
- letta_client/types/approval_request_message.py +12 -0
- letta_client/types/approval_request_message_allowed_tool_calls.py +8 -0
- letta_client/types/approval_request_message_requested_tool_calls.py +8 -0
- letta_client/types/internal_template_agent_create.py +5 -0
- letta_client/types/letta_schemas_agent_file_agent_schema.py +5 -0
- letta_client/types/letta_schemas_agent_file_tool_schema.py +5 -0
- letta_client/types/llm_config.py +5 -0
- letta_client/types/run_metrics.py +5 -0
- letta_client/types/tool.py +5 -0
- letta_client/types/tool_create.py +5 -0
- {letta_client-1.0.0a2.dist-info → letta_client-1.0.0a4.dist-info}/METADATA +1 -1
- {letta_client-1.0.0a2.dist-info → letta_client-1.0.0a4.dist-info}/RECORD +86 -80
- {letta_client-1.0.0a2.dist-info → letta_client-1.0.0a4.dist-info}/WHEEL +0 -0
|
@@ -64,6 +64,7 @@ class MessagesClient:
|
|
|
64
64
|
Parameters
|
|
65
65
|
----------
|
|
66
66
|
agent_id : str
|
|
67
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
67
68
|
|
|
68
69
|
before : typing.Optional[str]
|
|
69
70
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -112,7 +113,7 @@ class MessagesClient:
|
|
|
112
113
|
token="YOUR_TOKEN",
|
|
113
114
|
)
|
|
114
115
|
client.agents.messages.list(
|
|
115
|
-
agent_id="
|
|
116
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
116
117
|
before="before",
|
|
117
118
|
after="after",
|
|
118
119
|
limit=1,
|
|
@@ -160,6 +161,7 @@ class MessagesClient:
|
|
|
160
161
|
Parameters
|
|
161
162
|
----------
|
|
162
163
|
agent_id : str
|
|
164
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
163
165
|
|
|
164
166
|
messages : typing.Sequence[LettaRequestMessagesItem]
|
|
165
167
|
The messages to be sent to the agent.
|
|
@@ -199,7 +201,7 @@ class MessagesClient:
|
|
|
199
201
|
token="YOUR_TOKEN",
|
|
200
202
|
)
|
|
201
203
|
client.agents.messages.create(
|
|
202
|
-
agent_id="
|
|
204
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
203
205
|
messages=[
|
|
204
206
|
MessageCreate(
|
|
205
207
|
role="user",
|
|
@@ -239,8 +241,10 @@ class MessagesClient:
|
|
|
239
241
|
Parameters
|
|
240
242
|
----------
|
|
241
243
|
agent_id : str
|
|
244
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
242
245
|
|
|
243
246
|
message_id : str
|
|
247
|
+
The ID of the message in the format 'message-<uuid4>'
|
|
244
248
|
|
|
245
249
|
request : MessagesModifyRequest
|
|
246
250
|
|
|
@@ -261,8 +265,8 @@ class MessagesClient:
|
|
|
261
265
|
token="YOUR_TOKEN",
|
|
262
266
|
)
|
|
263
267
|
client.agents.messages.modify(
|
|
264
|
-
agent_id="
|
|
265
|
-
message_id="
|
|
268
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
269
|
+
message_id="message-123e4567-e89b-42d3-8456-426614174000",
|
|
266
270
|
request=UpdateSystemMessage(
|
|
267
271
|
content="content",
|
|
268
272
|
),
|
|
@@ -295,6 +299,7 @@ class MessagesClient:
|
|
|
295
299
|
Parameters
|
|
296
300
|
----------
|
|
297
301
|
agent_id : str
|
|
302
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
298
303
|
|
|
299
304
|
messages : typing.Sequence[LettaStreamingRequestMessagesItem]
|
|
300
305
|
The messages to be sent to the agent.
|
|
@@ -343,7 +348,7 @@ class MessagesClient:
|
|
|
343
348
|
token="YOUR_TOKEN",
|
|
344
349
|
)
|
|
345
350
|
response = client.agents.messages.create_stream(
|
|
346
|
-
agent_id="
|
|
351
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
347
352
|
messages=[
|
|
348
353
|
MessageCreate(
|
|
349
354
|
role="user",
|
|
@@ -389,6 +394,7 @@ class MessagesClient:
|
|
|
389
394
|
Parameters
|
|
390
395
|
----------
|
|
391
396
|
agent_id : str
|
|
397
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
392
398
|
|
|
393
399
|
run_ids : typing.Optional[typing.Sequence[str]]
|
|
394
400
|
Optional list of run IDs to cancel
|
|
@@ -410,7 +416,7 @@ class MessagesClient:
|
|
|
410
416
|
token="YOUR_TOKEN",
|
|
411
417
|
)
|
|
412
418
|
client.agents.messages.cancel(
|
|
413
|
-
agent_id="
|
|
419
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
414
420
|
)
|
|
415
421
|
"""
|
|
416
422
|
_response = self._raw_client.cancel(agent_id, run_ids=run_ids, request_options=request_options)
|
|
@@ -514,6 +520,7 @@ class MessagesClient:
|
|
|
514
520
|
Parameters
|
|
515
521
|
----------
|
|
516
522
|
agent_id : str
|
|
523
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
517
524
|
|
|
518
525
|
messages : typing.Sequence[LettaAsyncRequestMessagesItem]
|
|
519
526
|
The messages to be sent to the agent.
|
|
@@ -556,7 +563,7 @@ class MessagesClient:
|
|
|
556
563
|
token="YOUR_TOKEN",
|
|
557
564
|
)
|
|
558
565
|
client.agents.messages.create_async(
|
|
559
|
-
agent_id="
|
|
566
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
560
567
|
messages=[
|
|
561
568
|
MessageCreate(
|
|
562
569
|
role="user",
|
|
@@ -596,6 +603,7 @@ class MessagesClient:
|
|
|
596
603
|
Parameters
|
|
597
604
|
----------
|
|
598
605
|
agent_id : str
|
|
606
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
599
607
|
|
|
600
608
|
add_default_initial_messages : typing.Optional[bool]
|
|
601
609
|
If true, adds the default initial messages after resetting.
|
|
@@ -617,7 +625,7 @@ class MessagesClient:
|
|
|
617
625
|
token="YOUR_TOKEN",
|
|
618
626
|
)
|
|
619
627
|
client.agents.messages.reset(
|
|
620
|
-
agent_id="
|
|
628
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
621
629
|
add_default_initial_messages=True,
|
|
622
630
|
)
|
|
623
631
|
"""
|
|
@@ -639,6 +647,7 @@ class MessagesClient:
|
|
|
639
647
|
Parameters
|
|
640
648
|
----------
|
|
641
649
|
agent_id : str
|
|
650
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
642
651
|
|
|
643
652
|
request : MessagesPreviewRequest
|
|
644
653
|
|
|
@@ -659,7 +668,7 @@ class MessagesClient:
|
|
|
659
668
|
token="YOUR_TOKEN",
|
|
660
669
|
)
|
|
661
670
|
client.agents.messages.preview(
|
|
662
|
-
agent_id="
|
|
671
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
663
672
|
request=LettaRequest(
|
|
664
673
|
messages=[
|
|
665
674
|
MessageCreate(
|
|
@@ -689,6 +698,7 @@ class MessagesClient:
|
|
|
689
698
|
Parameters
|
|
690
699
|
----------
|
|
691
700
|
agent_id : str
|
|
701
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
692
702
|
|
|
693
703
|
max_message_length : int
|
|
694
704
|
Maximum number of messages to retain after summarization.
|
|
@@ -709,7 +719,7 @@ class MessagesClient:
|
|
|
709
719
|
token="YOUR_TOKEN",
|
|
710
720
|
)
|
|
711
721
|
client.agents.messages.summarize(
|
|
712
|
-
agent_id="
|
|
722
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
713
723
|
max_message_length=1,
|
|
714
724
|
)
|
|
715
725
|
"""
|
|
@@ -756,6 +766,7 @@ class AsyncMessagesClient:
|
|
|
756
766
|
Parameters
|
|
757
767
|
----------
|
|
758
768
|
agent_id : str
|
|
769
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
759
770
|
|
|
760
771
|
before : typing.Optional[str]
|
|
761
772
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -809,7 +820,7 @@ class AsyncMessagesClient:
|
|
|
809
820
|
|
|
810
821
|
async def main() -> None:
|
|
811
822
|
await client.agents.messages.list(
|
|
812
|
-
agent_id="
|
|
823
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
813
824
|
before="before",
|
|
814
825
|
after="after",
|
|
815
826
|
limit=1,
|
|
@@ -860,6 +871,7 @@ class AsyncMessagesClient:
|
|
|
860
871
|
Parameters
|
|
861
872
|
----------
|
|
862
873
|
agent_id : str
|
|
874
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
863
875
|
|
|
864
876
|
messages : typing.Sequence[LettaRequestMessagesItem]
|
|
865
877
|
The messages to be sent to the agent.
|
|
@@ -904,7 +916,7 @@ class AsyncMessagesClient:
|
|
|
904
916
|
|
|
905
917
|
async def main() -> None:
|
|
906
918
|
await client.agents.messages.create(
|
|
907
|
-
agent_id="
|
|
919
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
908
920
|
messages=[
|
|
909
921
|
MessageCreate(
|
|
910
922
|
role="user",
|
|
@@ -947,8 +959,10 @@ class AsyncMessagesClient:
|
|
|
947
959
|
Parameters
|
|
948
960
|
----------
|
|
949
961
|
agent_id : str
|
|
962
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
950
963
|
|
|
951
964
|
message_id : str
|
|
965
|
+
The ID of the message in the format 'message-<uuid4>'
|
|
952
966
|
|
|
953
967
|
request : MessagesModifyRequest
|
|
954
968
|
|
|
@@ -974,8 +988,8 @@ class AsyncMessagesClient:
|
|
|
974
988
|
|
|
975
989
|
async def main() -> None:
|
|
976
990
|
await client.agents.messages.modify(
|
|
977
|
-
agent_id="
|
|
978
|
-
message_id="
|
|
991
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
992
|
+
message_id="message-123e4567-e89b-42d3-8456-426614174000",
|
|
979
993
|
request=UpdateSystemMessage(
|
|
980
994
|
content="content",
|
|
981
995
|
),
|
|
@@ -1013,6 +1027,7 @@ class AsyncMessagesClient:
|
|
|
1013
1027
|
Parameters
|
|
1014
1028
|
----------
|
|
1015
1029
|
agent_id : str
|
|
1030
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1016
1031
|
|
|
1017
1032
|
messages : typing.Sequence[LettaStreamingRequestMessagesItem]
|
|
1018
1033
|
The messages to be sent to the agent.
|
|
@@ -1066,7 +1081,7 @@ class AsyncMessagesClient:
|
|
|
1066
1081
|
|
|
1067
1082
|
async def main() -> None:
|
|
1068
1083
|
response = await client.agents.messages.create_stream(
|
|
1069
|
-
agent_id="
|
|
1084
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
1070
1085
|
messages=[
|
|
1071
1086
|
MessageCreate(
|
|
1072
1087
|
role="user",
|
|
@@ -1116,6 +1131,7 @@ class AsyncMessagesClient:
|
|
|
1116
1131
|
Parameters
|
|
1117
1132
|
----------
|
|
1118
1133
|
agent_id : str
|
|
1134
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1119
1135
|
|
|
1120
1136
|
run_ids : typing.Optional[typing.Sequence[str]]
|
|
1121
1137
|
Optional list of run IDs to cancel
|
|
@@ -1142,7 +1158,7 @@ class AsyncMessagesClient:
|
|
|
1142
1158
|
|
|
1143
1159
|
async def main() -> None:
|
|
1144
1160
|
await client.agents.messages.cancel(
|
|
1145
|
-
agent_id="
|
|
1161
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
1146
1162
|
)
|
|
1147
1163
|
|
|
1148
1164
|
|
|
@@ -1257,6 +1273,7 @@ class AsyncMessagesClient:
|
|
|
1257
1273
|
Parameters
|
|
1258
1274
|
----------
|
|
1259
1275
|
agent_id : str
|
|
1276
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1260
1277
|
|
|
1261
1278
|
messages : typing.Sequence[LettaAsyncRequestMessagesItem]
|
|
1262
1279
|
The messages to be sent to the agent.
|
|
@@ -1304,7 +1321,7 @@ class AsyncMessagesClient:
|
|
|
1304
1321
|
|
|
1305
1322
|
async def main() -> None:
|
|
1306
1323
|
await client.agents.messages.create_async(
|
|
1307
|
-
agent_id="
|
|
1324
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
1308
1325
|
messages=[
|
|
1309
1326
|
MessageCreate(
|
|
1310
1327
|
role="user",
|
|
@@ -1347,6 +1364,7 @@ class AsyncMessagesClient:
|
|
|
1347
1364
|
Parameters
|
|
1348
1365
|
----------
|
|
1349
1366
|
agent_id : str
|
|
1367
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1350
1368
|
|
|
1351
1369
|
add_default_initial_messages : typing.Optional[bool]
|
|
1352
1370
|
If true, adds the default initial messages after resetting.
|
|
@@ -1373,7 +1391,7 @@ class AsyncMessagesClient:
|
|
|
1373
1391
|
|
|
1374
1392
|
async def main() -> None:
|
|
1375
1393
|
await client.agents.messages.reset(
|
|
1376
|
-
agent_id="
|
|
1394
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
1377
1395
|
add_default_initial_messages=True,
|
|
1378
1396
|
)
|
|
1379
1397
|
|
|
@@ -1398,6 +1416,7 @@ class AsyncMessagesClient:
|
|
|
1398
1416
|
Parameters
|
|
1399
1417
|
----------
|
|
1400
1418
|
agent_id : str
|
|
1419
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1401
1420
|
|
|
1402
1421
|
request : MessagesPreviewRequest
|
|
1403
1422
|
|
|
@@ -1423,7 +1442,7 @@ class AsyncMessagesClient:
|
|
|
1423
1442
|
|
|
1424
1443
|
async def main() -> None:
|
|
1425
1444
|
await client.agents.messages.preview(
|
|
1426
|
-
agent_id="
|
|
1445
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
1427
1446
|
request=LettaRequest(
|
|
1428
1447
|
messages=[
|
|
1429
1448
|
MessageCreate(
|
|
@@ -1456,6 +1475,7 @@ class AsyncMessagesClient:
|
|
|
1456
1475
|
Parameters
|
|
1457
1476
|
----------
|
|
1458
1477
|
agent_id : str
|
|
1478
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1459
1479
|
|
|
1460
1480
|
max_message_length : int
|
|
1461
1481
|
Maximum number of messages to retain after summarization.
|
|
@@ -1481,7 +1501,7 @@ class AsyncMessagesClient:
|
|
|
1481
1501
|
|
|
1482
1502
|
async def main() -> None:
|
|
1483
1503
|
await client.agents.messages.summarize(
|
|
1484
|
-
agent_id="
|
|
1504
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
1485
1505
|
max_message_length=1,
|
|
1486
1506
|
)
|
|
1487
1507
|
|
|
@@ -63,6 +63,7 @@ class RawMessagesClient:
|
|
|
63
63
|
Parameters
|
|
64
64
|
----------
|
|
65
65
|
agent_id : str
|
|
66
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
66
67
|
|
|
67
68
|
before : typing.Optional[str]
|
|
68
69
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -165,6 +166,7 @@ class RawMessagesClient:
|
|
|
165
166
|
Parameters
|
|
166
167
|
----------
|
|
167
168
|
agent_id : str
|
|
169
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
168
170
|
|
|
169
171
|
messages : typing.Sequence[LettaRequestMessagesItem]
|
|
170
172
|
The messages to be sent to the agent.
|
|
@@ -255,8 +257,10 @@ class RawMessagesClient:
|
|
|
255
257
|
Parameters
|
|
256
258
|
----------
|
|
257
259
|
agent_id : str
|
|
260
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
258
261
|
|
|
259
262
|
message_id : str
|
|
263
|
+
The ID of the message in the format 'message-<uuid4>'
|
|
260
264
|
|
|
261
265
|
request : MessagesModifyRequest
|
|
262
266
|
|
|
@@ -331,6 +335,7 @@ class RawMessagesClient:
|
|
|
331
335
|
Parameters
|
|
332
336
|
----------
|
|
333
337
|
agent_id : str
|
|
338
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
334
339
|
|
|
335
340
|
messages : typing.Sequence[LettaStreamingRequestMessagesItem]
|
|
336
341
|
The messages to be sent to the agent.
|
|
@@ -452,6 +457,7 @@ class RawMessagesClient:
|
|
|
452
457
|
Parameters
|
|
453
458
|
----------
|
|
454
459
|
agent_id : str
|
|
460
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
455
461
|
|
|
456
462
|
run_ids : typing.Optional[typing.Sequence[str]]
|
|
457
463
|
Optional list of run IDs to cancel
|
|
@@ -622,6 +628,7 @@ class RawMessagesClient:
|
|
|
622
628
|
Parameters
|
|
623
629
|
----------
|
|
624
630
|
agent_id : str
|
|
631
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
625
632
|
|
|
626
633
|
messages : typing.Sequence[LettaAsyncRequestMessagesItem]
|
|
627
634
|
The messages to be sent to the agent.
|
|
@@ -715,6 +722,7 @@ class RawMessagesClient:
|
|
|
715
722
|
Parameters
|
|
716
723
|
----------
|
|
717
724
|
agent_id : str
|
|
725
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
718
726
|
|
|
719
727
|
add_default_initial_messages : typing.Optional[bool]
|
|
720
728
|
If true, adds the default initial messages after resetting.
|
|
@@ -774,6 +782,7 @@ class RawMessagesClient:
|
|
|
774
782
|
Parameters
|
|
775
783
|
----------
|
|
776
784
|
agent_id : str
|
|
785
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
777
786
|
|
|
778
787
|
request : MessagesPreviewRequest
|
|
779
788
|
|
|
@@ -835,6 +844,7 @@ class RawMessagesClient:
|
|
|
835
844
|
Parameters
|
|
836
845
|
----------
|
|
837
846
|
agent_id : str
|
|
847
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
838
848
|
|
|
839
849
|
max_message_length : int
|
|
840
850
|
Maximum number of messages to retain after summarization.
|
|
@@ -900,6 +910,7 @@ class AsyncRawMessagesClient:
|
|
|
900
910
|
Parameters
|
|
901
911
|
----------
|
|
902
912
|
agent_id : str
|
|
913
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
903
914
|
|
|
904
915
|
before : typing.Optional[str]
|
|
905
916
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -1002,6 +1013,7 @@ class AsyncRawMessagesClient:
|
|
|
1002
1013
|
Parameters
|
|
1003
1014
|
----------
|
|
1004
1015
|
agent_id : str
|
|
1016
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1005
1017
|
|
|
1006
1018
|
messages : typing.Sequence[LettaRequestMessagesItem]
|
|
1007
1019
|
The messages to be sent to the agent.
|
|
@@ -1092,8 +1104,10 @@ class AsyncRawMessagesClient:
|
|
|
1092
1104
|
Parameters
|
|
1093
1105
|
----------
|
|
1094
1106
|
agent_id : str
|
|
1107
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1095
1108
|
|
|
1096
1109
|
message_id : str
|
|
1110
|
+
The ID of the message in the format 'message-<uuid4>'
|
|
1097
1111
|
|
|
1098
1112
|
request : MessagesModifyRequest
|
|
1099
1113
|
|
|
@@ -1168,6 +1182,7 @@ class AsyncRawMessagesClient:
|
|
|
1168
1182
|
Parameters
|
|
1169
1183
|
----------
|
|
1170
1184
|
agent_id : str
|
|
1185
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1171
1186
|
|
|
1172
1187
|
messages : typing.Sequence[LettaStreamingRequestMessagesItem]
|
|
1173
1188
|
The messages to be sent to the agent.
|
|
@@ -1289,6 +1304,7 @@ class AsyncRawMessagesClient:
|
|
|
1289
1304
|
Parameters
|
|
1290
1305
|
----------
|
|
1291
1306
|
agent_id : str
|
|
1307
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1292
1308
|
|
|
1293
1309
|
run_ids : typing.Optional[typing.Sequence[str]]
|
|
1294
1310
|
Optional list of run IDs to cancel
|
|
@@ -1459,6 +1475,7 @@ class AsyncRawMessagesClient:
|
|
|
1459
1475
|
Parameters
|
|
1460
1476
|
----------
|
|
1461
1477
|
agent_id : str
|
|
1478
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1462
1479
|
|
|
1463
1480
|
messages : typing.Sequence[LettaAsyncRequestMessagesItem]
|
|
1464
1481
|
The messages to be sent to the agent.
|
|
@@ -1552,6 +1569,7 @@ class AsyncRawMessagesClient:
|
|
|
1552
1569
|
Parameters
|
|
1553
1570
|
----------
|
|
1554
1571
|
agent_id : str
|
|
1572
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1555
1573
|
|
|
1556
1574
|
add_default_initial_messages : typing.Optional[bool]
|
|
1557
1575
|
If true, adds the default initial messages after resetting.
|
|
@@ -1611,6 +1629,7 @@ class AsyncRawMessagesClient:
|
|
|
1611
1629
|
Parameters
|
|
1612
1630
|
----------
|
|
1613
1631
|
agent_id : str
|
|
1632
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1614
1633
|
|
|
1615
1634
|
request : MessagesPreviewRequest
|
|
1616
1635
|
|
|
@@ -1672,6 +1691,7 @@ class AsyncRawMessagesClient:
|
|
|
1672
1691
|
Parameters
|
|
1673
1692
|
----------
|
|
1674
1693
|
agent_id : str
|
|
1694
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1675
1695
|
|
|
1676
1696
|
max_message_length : int
|
|
1677
1697
|
Maximum number of messages to retain after summarization.
|
|
@@ -46,6 +46,7 @@ class PassagesClient:
|
|
|
46
46
|
Parameters
|
|
47
47
|
----------
|
|
48
48
|
agent_id : str
|
|
49
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
49
50
|
|
|
50
51
|
after : typing.Optional[str]
|
|
51
52
|
Unique ID of the memory to start the query range at.
|
|
@@ -79,7 +80,7 @@ class PassagesClient:
|
|
|
79
80
|
token="YOUR_TOKEN",
|
|
80
81
|
)
|
|
81
82
|
client.agents.passages.list(
|
|
82
|
-
agent_id="
|
|
83
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
83
84
|
after="after",
|
|
84
85
|
before="before",
|
|
85
86
|
limit=1,
|
|
@@ -113,6 +114,7 @@ class PassagesClient:
|
|
|
113
114
|
Parameters
|
|
114
115
|
----------
|
|
115
116
|
agent_id : str
|
|
117
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
116
118
|
|
|
117
119
|
text : str
|
|
118
120
|
Text to write to archival memory.
|
|
@@ -140,7 +142,7 @@ class PassagesClient:
|
|
|
140
142
|
token="YOUR_TOKEN",
|
|
141
143
|
)
|
|
142
144
|
client.agents.passages.create(
|
|
143
|
-
agent_id="
|
|
145
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
144
146
|
text="text",
|
|
145
147
|
)
|
|
146
148
|
"""
|
|
@@ -171,6 +173,7 @@ class PassagesClient:
|
|
|
171
173
|
Parameters
|
|
172
174
|
----------
|
|
173
175
|
agent_id : str
|
|
176
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
174
177
|
|
|
175
178
|
query : str
|
|
176
179
|
String to search for using semantic similarity
|
|
@@ -209,7 +212,7 @@ class PassagesClient:
|
|
|
209
212
|
token="YOUR_TOKEN",
|
|
210
213
|
)
|
|
211
214
|
client.agents.passages.search(
|
|
212
|
-
agent_id="
|
|
215
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
213
216
|
query="query",
|
|
214
217
|
tag_match_mode="any",
|
|
215
218
|
top_k=1,
|
|
@@ -244,6 +247,7 @@ class PassagesClient:
|
|
|
244
247
|
agent_id : str
|
|
245
248
|
|
|
246
249
|
memory_id : str
|
|
250
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
247
251
|
|
|
248
252
|
request_options : typing.Optional[RequestOptions]
|
|
249
253
|
Request-specific configuration.
|
|
@@ -263,7 +267,7 @@ class PassagesClient:
|
|
|
263
267
|
)
|
|
264
268
|
client.agents.passages.delete(
|
|
265
269
|
agent_id="agent_id",
|
|
266
|
-
memory_id="
|
|
270
|
+
memory_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
267
271
|
)
|
|
268
272
|
"""
|
|
269
273
|
_response = self._raw_client.delete(agent_id, memory_id, request_options=request_options)
|
|
@@ -333,6 +337,7 @@ class AsyncPassagesClient:
|
|
|
333
337
|
Parameters
|
|
334
338
|
----------
|
|
335
339
|
agent_id : str
|
|
340
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
336
341
|
|
|
337
342
|
after : typing.Optional[str]
|
|
338
343
|
Unique ID of the memory to start the query range at.
|
|
@@ -371,7 +376,7 @@ class AsyncPassagesClient:
|
|
|
371
376
|
|
|
372
377
|
async def main() -> None:
|
|
373
378
|
await client.agents.passages.list(
|
|
374
|
-
agent_id="
|
|
379
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
375
380
|
after="after",
|
|
376
381
|
before="before",
|
|
377
382
|
limit=1,
|
|
@@ -408,6 +413,7 @@ class AsyncPassagesClient:
|
|
|
408
413
|
Parameters
|
|
409
414
|
----------
|
|
410
415
|
agent_id : str
|
|
416
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
411
417
|
|
|
412
418
|
text : str
|
|
413
419
|
Text to write to archival memory.
|
|
@@ -440,7 +446,7 @@ class AsyncPassagesClient:
|
|
|
440
446
|
|
|
441
447
|
async def main() -> None:
|
|
442
448
|
await client.agents.passages.create(
|
|
443
|
-
agent_id="
|
|
449
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
444
450
|
text="text",
|
|
445
451
|
)
|
|
446
452
|
|
|
@@ -474,6 +480,7 @@ class AsyncPassagesClient:
|
|
|
474
480
|
Parameters
|
|
475
481
|
----------
|
|
476
482
|
agent_id : str
|
|
483
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
477
484
|
|
|
478
485
|
query : str
|
|
479
486
|
String to search for using semantic similarity
|
|
@@ -516,7 +523,7 @@ class AsyncPassagesClient:
|
|
|
516
523
|
|
|
517
524
|
async def main() -> None:
|
|
518
525
|
await client.agents.passages.search(
|
|
519
|
-
agent_id="
|
|
526
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
520
527
|
query="query",
|
|
521
528
|
tag_match_mode="any",
|
|
522
529
|
top_k=1,
|
|
@@ -554,6 +561,7 @@ class AsyncPassagesClient:
|
|
|
554
561
|
agent_id : str
|
|
555
562
|
|
|
556
563
|
memory_id : str
|
|
564
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
557
565
|
|
|
558
566
|
request_options : typing.Optional[RequestOptions]
|
|
559
567
|
Request-specific configuration.
|
|
@@ -578,7 +586,7 @@ class AsyncPassagesClient:
|
|
|
578
586
|
async def main() -> None:
|
|
579
587
|
await client.agents.passages.delete(
|
|
580
588
|
agent_id="agent_id",
|
|
581
|
-
memory_id="
|
|
589
|
+
memory_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
582
590
|
)
|
|
583
591
|
|
|
584
592
|
|
|
@@ -42,6 +42,7 @@ class RawPassagesClient:
|
|
|
42
42
|
Parameters
|
|
43
43
|
----------
|
|
44
44
|
agent_id : str
|
|
45
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
45
46
|
|
|
46
47
|
after : typing.Optional[str]
|
|
47
48
|
Unique ID of the memory to start the query range at.
|
|
@@ -119,6 +120,7 @@ class RawPassagesClient:
|
|
|
119
120
|
Parameters
|
|
120
121
|
----------
|
|
121
122
|
agent_id : str
|
|
123
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
122
124
|
|
|
123
125
|
text : str
|
|
124
126
|
Text to write to archival memory.
|
|
@@ -199,6 +201,7 @@ class RawPassagesClient:
|
|
|
199
201
|
Parameters
|
|
200
202
|
----------
|
|
201
203
|
agent_id : str
|
|
204
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
202
205
|
|
|
203
206
|
query : str
|
|
204
207
|
String to search for using semantic similarity
|
|
@@ -276,6 +279,7 @@ class RawPassagesClient:
|
|
|
276
279
|
agent_id : str
|
|
277
280
|
|
|
278
281
|
memory_id : str
|
|
282
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
279
283
|
|
|
280
284
|
request_options : typing.Optional[RequestOptions]
|
|
281
285
|
Request-specific configuration.
|
|
@@ -370,6 +374,7 @@ class AsyncRawPassagesClient:
|
|
|
370
374
|
Parameters
|
|
371
375
|
----------
|
|
372
376
|
agent_id : str
|
|
377
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
373
378
|
|
|
374
379
|
after : typing.Optional[str]
|
|
375
380
|
Unique ID of the memory to start the query range at.
|
|
@@ -447,6 +452,7 @@ class AsyncRawPassagesClient:
|
|
|
447
452
|
Parameters
|
|
448
453
|
----------
|
|
449
454
|
agent_id : str
|
|
455
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
450
456
|
|
|
451
457
|
text : str
|
|
452
458
|
Text to write to archival memory.
|
|
@@ -527,6 +533,7 @@ class AsyncRawPassagesClient:
|
|
|
527
533
|
Parameters
|
|
528
534
|
----------
|
|
529
535
|
agent_id : str
|
|
536
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
530
537
|
|
|
531
538
|
query : str
|
|
532
539
|
String to search for using semantic similarity
|
|
@@ -604,6 +611,7 @@ class AsyncRawPassagesClient:
|
|
|
604
611
|
agent_id : str
|
|
605
612
|
|
|
606
613
|
memory_id : str
|
|
614
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
607
615
|
|
|
608
616
|
request_options : typing.Optional[RequestOptions]
|
|
609
617
|
Request-specific configuration.
|