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
letta_client/sources/client.py
CHANGED
|
@@ -68,6 +68,7 @@ class SourcesClient:
|
|
|
68
68
|
Parameters
|
|
69
69
|
----------
|
|
70
70
|
source_id : str
|
|
71
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
71
72
|
|
|
72
73
|
request_options : typing.Optional[RequestOptions]
|
|
73
74
|
Request-specific configuration.
|
|
@@ -86,7 +87,7 @@ class SourcesClient:
|
|
|
86
87
|
token="YOUR_TOKEN",
|
|
87
88
|
)
|
|
88
89
|
client.sources.retrieve(
|
|
89
|
-
source_id="
|
|
90
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
90
91
|
)
|
|
91
92
|
"""
|
|
92
93
|
_response = self._raw_client.retrieve(source_id, request_options=request_options)
|
|
@@ -101,6 +102,7 @@ class SourcesClient:
|
|
|
101
102
|
Parameters
|
|
102
103
|
----------
|
|
103
104
|
source_id : str
|
|
105
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
104
106
|
|
|
105
107
|
request_options : typing.Optional[RequestOptions]
|
|
106
108
|
Request-specific configuration.
|
|
@@ -119,7 +121,7 @@ class SourcesClient:
|
|
|
119
121
|
token="YOUR_TOKEN",
|
|
120
122
|
)
|
|
121
123
|
client.sources.delete(
|
|
122
|
-
source_id="
|
|
124
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
123
125
|
)
|
|
124
126
|
"""
|
|
125
127
|
_response = self._raw_client.delete(source_id, request_options=request_options)
|
|
@@ -142,6 +144,7 @@ class SourcesClient:
|
|
|
142
144
|
Parameters
|
|
143
145
|
----------
|
|
144
146
|
source_id : str
|
|
147
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
145
148
|
|
|
146
149
|
name : typing.Optional[str]
|
|
147
150
|
The name of the source.
|
|
@@ -175,7 +178,7 @@ class SourcesClient:
|
|
|
175
178
|
token="YOUR_TOKEN",
|
|
176
179
|
)
|
|
177
180
|
client.sources.modify(
|
|
178
|
-
source_id="
|
|
181
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
179
182
|
)
|
|
180
183
|
"""
|
|
181
184
|
_response = self._raw_client.modify(
|
|
@@ -370,6 +373,7 @@ class SourcesClient:
|
|
|
370
373
|
Parameters
|
|
371
374
|
----------
|
|
372
375
|
source_id : str
|
|
376
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
373
377
|
|
|
374
378
|
request_options : typing.Optional[RequestOptions]
|
|
375
379
|
Request-specific configuration.
|
|
@@ -388,7 +392,7 @@ class SourcesClient:
|
|
|
388
392
|
token="YOUR_TOKEN",
|
|
389
393
|
)
|
|
390
394
|
client.sources.get_agents_for_source(
|
|
391
|
-
source_id="
|
|
395
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
392
396
|
)
|
|
393
397
|
"""
|
|
394
398
|
_response = self._raw_client.get_agents_for_source(source_id, request_options=request_options)
|
|
@@ -408,8 +412,10 @@ class SourcesClient:
|
|
|
408
412
|
Parameters
|
|
409
413
|
----------
|
|
410
414
|
source_id : str
|
|
415
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
411
416
|
|
|
412
417
|
file_id : str
|
|
418
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
413
419
|
|
|
414
420
|
include_content : typing.Optional[bool]
|
|
415
421
|
Whether to include full file content
|
|
@@ -431,8 +437,8 @@ class SourcesClient:
|
|
|
431
437
|
token="YOUR_TOKEN",
|
|
432
438
|
)
|
|
433
439
|
client.sources.get_file_metadata(
|
|
434
|
-
source_id="
|
|
435
|
-
file_id="
|
|
440
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
441
|
+
file_id="file-123e4567-e89b-42d3-8456-426614174000",
|
|
436
442
|
include_content=True,
|
|
437
443
|
)
|
|
438
444
|
"""
|
|
@@ -502,6 +508,7 @@ class AsyncSourcesClient:
|
|
|
502
508
|
Parameters
|
|
503
509
|
----------
|
|
504
510
|
source_id : str
|
|
511
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
505
512
|
|
|
506
513
|
request_options : typing.Optional[RequestOptions]
|
|
507
514
|
Request-specific configuration.
|
|
@@ -525,7 +532,7 @@ class AsyncSourcesClient:
|
|
|
525
532
|
|
|
526
533
|
async def main() -> None:
|
|
527
534
|
await client.sources.retrieve(
|
|
528
|
-
source_id="
|
|
535
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
529
536
|
)
|
|
530
537
|
|
|
531
538
|
|
|
@@ -543,6 +550,7 @@ class AsyncSourcesClient:
|
|
|
543
550
|
Parameters
|
|
544
551
|
----------
|
|
545
552
|
source_id : str
|
|
553
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
546
554
|
|
|
547
555
|
request_options : typing.Optional[RequestOptions]
|
|
548
556
|
Request-specific configuration.
|
|
@@ -566,7 +574,7 @@ class AsyncSourcesClient:
|
|
|
566
574
|
|
|
567
575
|
async def main() -> None:
|
|
568
576
|
await client.sources.delete(
|
|
569
|
-
source_id="
|
|
577
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
570
578
|
)
|
|
571
579
|
|
|
572
580
|
|
|
@@ -592,6 +600,7 @@ class AsyncSourcesClient:
|
|
|
592
600
|
Parameters
|
|
593
601
|
----------
|
|
594
602
|
source_id : str
|
|
603
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
595
604
|
|
|
596
605
|
name : typing.Optional[str]
|
|
597
606
|
The name of the source.
|
|
@@ -630,7 +639,7 @@ class AsyncSourcesClient:
|
|
|
630
639
|
|
|
631
640
|
async def main() -> None:
|
|
632
641
|
await client.sources.modify(
|
|
633
|
-
source_id="
|
|
642
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
634
643
|
)
|
|
635
644
|
|
|
636
645
|
|
|
@@ -862,6 +871,7 @@ class AsyncSourcesClient:
|
|
|
862
871
|
Parameters
|
|
863
872
|
----------
|
|
864
873
|
source_id : str
|
|
874
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
865
875
|
|
|
866
876
|
request_options : typing.Optional[RequestOptions]
|
|
867
877
|
Request-specific configuration.
|
|
@@ -885,7 +895,7 @@ class AsyncSourcesClient:
|
|
|
885
895
|
|
|
886
896
|
async def main() -> None:
|
|
887
897
|
await client.sources.get_agents_for_source(
|
|
888
|
-
source_id="
|
|
898
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
889
899
|
)
|
|
890
900
|
|
|
891
901
|
|
|
@@ -908,8 +918,10 @@ class AsyncSourcesClient:
|
|
|
908
918
|
Parameters
|
|
909
919
|
----------
|
|
910
920
|
source_id : str
|
|
921
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
911
922
|
|
|
912
923
|
file_id : str
|
|
924
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
913
925
|
|
|
914
926
|
include_content : typing.Optional[bool]
|
|
915
927
|
Whether to include full file content
|
|
@@ -936,8 +948,8 @@ class AsyncSourcesClient:
|
|
|
936
948
|
|
|
937
949
|
async def main() -> None:
|
|
938
950
|
await client.sources.get_file_metadata(
|
|
939
|
-
source_id="
|
|
940
|
-
file_id="
|
|
951
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
952
|
+
file_id="file-123e4567-e89b-42d3-8456-426614174000",
|
|
941
953
|
include_content=True,
|
|
942
954
|
)
|
|
943
955
|
|
|
@@ -43,6 +43,7 @@ class FilesClient:
|
|
|
43
43
|
Parameters
|
|
44
44
|
----------
|
|
45
45
|
source_id : str
|
|
46
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
46
47
|
|
|
47
48
|
file : core.File
|
|
48
49
|
See core.File for more documentation
|
|
@@ -70,7 +71,7 @@ class FilesClient:
|
|
|
70
71
|
token="YOUR_TOKEN",
|
|
71
72
|
)
|
|
72
73
|
client.sources.files.upload(
|
|
73
|
-
source_id="
|
|
74
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
74
75
|
duplicate_handling="skip",
|
|
75
76
|
name="name",
|
|
76
77
|
)
|
|
@@ -96,6 +97,7 @@ class FilesClient:
|
|
|
96
97
|
Parameters
|
|
97
98
|
----------
|
|
98
99
|
source_id : str
|
|
100
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
99
101
|
|
|
100
102
|
limit : typing.Optional[int]
|
|
101
103
|
Number of files to return
|
|
@@ -126,7 +128,7 @@ class FilesClient:
|
|
|
126
128
|
token="YOUR_TOKEN",
|
|
127
129
|
)
|
|
128
130
|
client.sources.files.list(
|
|
129
|
-
source_id="
|
|
131
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
130
132
|
limit=1,
|
|
131
133
|
after="after",
|
|
132
134
|
include_content=True,
|
|
@@ -150,8 +152,10 @@ class FilesClient:
|
|
|
150
152
|
Parameters
|
|
151
153
|
----------
|
|
152
154
|
source_id : str
|
|
155
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
153
156
|
|
|
154
157
|
file_id : str
|
|
158
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
155
159
|
|
|
156
160
|
request_options : typing.Optional[RequestOptions]
|
|
157
161
|
Request-specific configuration.
|
|
@@ -169,8 +173,8 @@ class FilesClient:
|
|
|
169
173
|
token="YOUR_TOKEN",
|
|
170
174
|
)
|
|
171
175
|
client.sources.files.delete(
|
|
172
|
-
source_id="
|
|
173
|
-
file_id="
|
|
176
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
177
|
+
file_id="file-123e4567-e89b-42d3-8456-426614174000",
|
|
174
178
|
)
|
|
175
179
|
"""
|
|
176
180
|
_response = self._raw_client.delete(source_id, file_id, request_options=request_options)
|
|
@@ -207,6 +211,7 @@ class AsyncFilesClient:
|
|
|
207
211
|
Parameters
|
|
208
212
|
----------
|
|
209
213
|
source_id : str
|
|
214
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
210
215
|
|
|
211
216
|
file : core.File
|
|
212
217
|
See core.File for more documentation
|
|
@@ -239,7 +244,7 @@ class AsyncFilesClient:
|
|
|
239
244
|
|
|
240
245
|
async def main() -> None:
|
|
241
246
|
await client.sources.files.upload(
|
|
242
|
-
source_id="
|
|
247
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
243
248
|
duplicate_handling="skip",
|
|
244
249
|
name="name",
|
|
245
250
|
)
|
|
@@ -268,6 +273,7 @@ class AsyncFilesClient:
|
|
|
268
273
|
Parameters
|
|
269
274
|
----------
|
|
270
275
|
source_id : str
|
|
276
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
271
277
|
|
|
272
278
|
limit : typing.Optional[int]
|
|
273
279
|
Number of files to return
|
|
@@ -303,7 +309,7 @@ class AsyncFilesClient:
|
|
|
303
309
|
|
|
304
310
|
async def main() -> None:
|
|
305
311
|
await client.sources.files.list(
|
|
306
|
-
source_id="
|
|
312
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
307
313
|
limit=1,
|
|
308
314
|
after="after",
|
|
309
315
|
include_content=True,
|
|
@@ -332,8 +338,10 @@ class AsyncFilesClient:
|
|
|
332
338
|
Parameters
|
|
333
339
|
----------
|
|
334
340
|
source_id : str
|
|
341
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
335
342
|
|
|
336
343
|
file_id : str
|
|
344
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
337
345
|
|
|
338
346
|
request_options : typing.Optional[RequestOptions]
|
|
339
347
|
Request-specific configuration.
|
|
@@ -356,8 +364,8 @@ class AsyncFilesClient:
|
|
|
356
364
|
|
|
357
365
|
async def main() -> None:
|
|
358
366
|
await client.sources.files.delete(
|
|
359
|
-
source_id="
|
|
360
|
-
file_id="
|
|
367
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
368
|
+
file_id="file-123e4567-e89b-42d3-8456-426614174000",
|
|
361
369
|
)
|
|
362
370
|
|
|
363
371
|
|
|
@@ -38,6 +38,7 @@ class RawFilesClient:
|
|
|
38
38
|
Parameters
|
|
39
39
|
----------
|
|
40
40
|
source_id : str
|
|
41
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
41
42
|
|
|
42
43
|
file : core.File
|
|
43
44
|
See core.File for more documentation
|
|
@@ -113,6 +114,7 @@ class RawFilesClient:
|
|
|
113
114
|
Parameters
|
|
114
115
|
----------
|
|
115
116
|
source_id : str
|
|
117
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
116
118
|
|
|
117
119
|
limit : typing.Optional[int]
|
|
118
120
|
Number of files to return
|
|
@@ -180,8 +182,10 @@ class RawFilesClient:
|
|
|
180
182
|
Parameters
|
|
181
183
|
----------
|
|
182
184
|
source_id : str
|
|
185
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
183
186
|
|
|
184
187
|
file_id : str
|
|
188
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
185
189
|
|
|
186
190
|
request_options : typing.Optional[RequestOptions]
|
|
187
191
|
Request-specific configuration.
|
|
@@ -234,6 +238,7 @@ class AsyncRawFilesClient:
|
|
|
234
238
|
Parameters
|
|
235
239
|
----------
|
|
236
240
|
source_id : str
|
|
241
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
237
242
|
|
|
238
243
|
file : core.File
|
|
239
244
|
See core.File for more documentation
|
|
@@ -309,6 +314,7 @@ class AsyncRawFilesClient:
|
|
|
309
314
|
Parameters
|
|
310
315
|
----------
|
|
311
316
|
source_id : str
|
|
317
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
312
318
|
|
|
313
319
|
limit : typing.Optional[int]
|
|
314
320
|
Number of files to return
|
|
@@ -376,8 +382,10 @@ class AsyncRawFilesClient:
|
|
|
376
382
|
Parameters
|
|
377
383
|
----------
|
|
378
384
|
source_id : str
|
|
385
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
379
386
|
|
|
380
387
|
file_id : str
|
|
388
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
381
389
|
|
|
382
390
|
request_options : typing.Optional[RequestOptions]
|
|
383
391
|
Request-specific configuration.
|
|
@@ -38,6 +38,7 @@ class PassagesClient:
|
|
|
38
38
|
Parameters
|
|
39
39
|
----------
|
|
40
40
|
source_id : str
|
|
41
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
41
42
|
|
|
42
43
|
after : typing.Optional[str]
|
|
43
44
|
Message after which to retrieve the returned messages.
|
|
@@ -65,7 +66,7 @@ class PassagesClient:
|
|
|
65
66
|
token="YOUR_TOKEN",
|
|
66
67
|
)
|
|
67
68
|
client.sources.passages.list(
|
|
68
|
-
source_id="
|
|
69
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
69
70
|
after="after",
|
|
70
71
|
before="before",
|
|
71
72
|
limit=1,
|
|
@@ -107,6 +108,7 @@ class AsyncPassagesClient:
|
|
|
107
108
|
Parameters
|
|
108
109
|
----------
|
|
109
110
|
source_id : str
|
|
111
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
110
112
|
|
|
111
113
|
after : typing.Optional[str]
|
|
112
114
|
Message after which to retrieve the returned messages.
|
|
@@ -139,7 +141,7 @@ class AsyncPassagesClient:
|
|
|
139
141
|
|
|
140
142
|
async def main() -> None:
|
|
141
143
|
await client.sources.passages.list(
|
|
142
|
-
source_id="
|
|
144
|
+
source_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
143
145
|
after="after",
|
|
144
146
|
before="before",
|
|
145
147
|
limit=1,
|
|
@@ -33,6 +33,7 @@ class RawPassagesClient:
|
|
|
33
33
|
Parameters
|
|
34
34
|
----------
|
|
35
35
|
source_id : str
|
|
36
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
36
37
|
|
|
37
38
|
after : typing.Optional[str]
|
|
38
39
|
Message after which to retrieve the returned messages.
|
|
@@ -107,6 +108,7 @@ class AsyncRawPassagesClient:
|
|
|
107
108
|
Parameters
|
|
108
109
|
----------
|
|
109
110
|
source_id : str
|
|
111
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
110
112
|
|
|
111
113
|
after : typing.Optional[str]
|
|
112
114
|
Message after which to retrieve the returned messages.
|
|
@@ -79,6 +79,7 @@ class RawSourcesClient:
|
|
|
79
79
|
Parameters
|
|
80
80
|
----------
|
|
81
81
|
source_id : str
|
|
82
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
82
83
|
|
|
83
84
|
request_options : typing.Optional[RequestOptions]
|
|
84
85
|
Request-specific configuration.
|
|
@@ -128,6 +129,7 @@ class RawSourcesClient:
|
|
|
128
129
|
Parameters
|
|
129
130
|
----------
|
|
130
131
|
source_id : str
|
|
132
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
131
133
|
|
|
132
134
|
request_options : typing.Optional[RequestOptions]
|
|
133
135
|
Request-specific configuration.
|
|
@@ -187,6 +189,7 @@ class RawSourcesClient:
|
|
|
187
189
|
Parameters
|
|
188
190
|
----------
|
|
189
191
|
source_id : str
|
|
192
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
190
193
|
|
|
191
194
|
name : typing.Optional[str]
|
|
192
195
|
The name of the source.
|
|
@@ -511,6 +514,7 @@ class RawSourcesClient:
|
|
|
511
514
|
Parameters
|
|
512
515
|
----------
|
|
513
516
|
source_id : str
|
|
517
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
514
518
|
|
|
515
519
|
request_options : typing.Optional[RequestOptions]
|
|
516
520
|
Request-specific configuration.
|
|
@@ -565,8 +569,10 @@ class RawSourcesClient:
|
|
|
565
569
|
Parameters
|
|
566
570
|
----------
|
|
567
571
|
source_id : str
|
|
572
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
568
573
|
|
|
569
574
|
file_id : str
|
|
575
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
570
576
|
|
|
571
577
|
include_content : typing.Optional[bool]
|
|
572
578
|
Whether to include full file content
|
|
@@ -672,6 +678,7 @@ class AsyncRawSourcesClient:
|
|
|
672
678
|
Parameters
|
|
673
679
|
----------
|
|
674
680
|
source_id : str
|
|
681
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
675
682
|
|
|
676
683
|
request_options : typing.Optional[RequestOptions]
|
|
677
684
|
Request-specific configuration.
|
|
@@ -721,6 +728,7 @@ class AsyncRawSourcesClient:
|
|
|
721
728
|
Parameters
|
|
722
729
|
----------
|
|
723
730
|
source_id : str
|
|
731
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
724
732
|
|
|
725
733
|
request_options : typing.Optional[RequestOptions]
|
|
726
734
|
Request-specific configuration.
|
|
@@ -780,6 +788,7 @@ class AsyncRawSourcesClient:
|
|
|
780
788
|
Parameters
|
|
781
789
|
----------
|
|
782
790
|
source_id : str
|
|
791
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
783
792
|
|
|
784
793
|
name : typing.Optional[str]
|
|
785
794
|
The name of the source.
|
|
@@ -1106,6 +1115,7 @@ class AsyncRawSourcesClient:
|
|
|
1106
1115
|
Parameters
|
|
1107
1116
|
----------
|
|
1108
1117
|
source_id : str
|
|
1118
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
1109
1119
|
|
|
1110
1120
|
request_options : typing.Optional[RequestOptions]
|
|
1111
1121
|
Request-specific configuration.
|
|
@@ -1160,8 +1170,10 @@ class AsyncRawSourcesClient:
|
|
|
1160
1170
|
Parameters
|
|
1161
1171
|
----------
|
|
1162
1172
|
source_id : str
|
|
1173
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
1163
1174
|
|
|
1164
1175
|
file_id : str
|
|
1176
|
+
The ID of the file in the format 'file-<uuid4>'
|
|
1165
1177
|
|
|
1166
1178
|
include_content : typing.Optional[bool]
|
|
1167
1179
|
Whether to include full file content
|
letta_client/steps/client.py
CHANGED
|
@@ -158,6 +158,7 @@ class StepsClient:
|
|
|
158
158
|
Parameters
|
|
159
159
|
----------
|
|
160
160
|
step_id : str
|
|
161
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
161
162
|
|
|
162
163
|
request_options : typing.Optional[RequestOptions]
|
|
163
164
|
Request-specific configuration.
|
|
@@ -176,7 +177,7 @@ class StepsClient:
|
|
|
176
177
|
token="YOUR_TOKEN",
|
|
177
178
|
)
|
|
178
179
|
client.steps.retrieve(
|
|
179
|
-
step_id="
|
|
180
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
180
181
|
)
|
|
181
182
|
"""
|
|
182
183
|
_response = self._raw_client.retrieve(step_id, request_options=request_options)
|
|
@@ -335,6 +336,7 @@ class AsyncStepsClient:
|
|
|
335
336
|
Parameters
|
|
336
337
|
----------
|
|
337
338
|
step_id : str
|
|
339
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
338
340
|
|
|
339
341
|
request_options : typing.Optional[RequestOptions]
|
|
340
342
|
Request-specific configuration.
|
|
@@ -358,7 +360,7 @@ class AsyncStepsClient:
|
|
|
358
360
|
|
|
359
361
|
async def main() -> None:
|
|
360
362
|
await client.steps.retrieve(
|
|
361
|
-
step_id="
|
|
363
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
362
364
|
)
|
|
363
365
|
|
|
364
366
|
|
|
@@ -41,6 +41,7 @@ class FeedbackClient:
|
|
|
41
41
|
Parameters
|
|
42
42
|
----------
|
|
43
43
|
step_id : str
|
|
44
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
44
45
|
|
|
45
46
|
feedback : typing.Optional[FeedbackType]
|
|
46
47
|
Whether this feedback is positive or negative
|
|
@@ -65,7 +66,7 @@ class FeedbackClient:
|
|
|
65
66
|
token="YOUR_TOKEN",
|
|
66
67
|
)
|
|
67
68
|
client.steps.feedback.create(
|
|
68
|
-
step_id="
|
|
69
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
69
70
|
)
|
|
70
71
|
"""
|
|
71
72
|
_response = self._raw_client.create(step_id, feedback=feedback, tags=tags, request_options=request_options)
|
|
@@ -101,6 +102,7 @@ class AsyncFeedbackClient:
|
|
|
101
102
|
Parameters
|
|
102
103
|
----------
|
|
103
104
|
step_id : str
|
|
105
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
104
106
|
|
|
105
107
|
feedback : typing.Optional[FeedbackType]
|
|
106
108
|
Whether this feedback is positive or negative
|
|
@@ -130,7 +132,7 @@ class AsyncFeedbackClient:
|
|
|
130
132
|
|
|
131
133
|
async def main() -> None:
|
|
132
134
|
await client.steps.feedback.create(
|
|
133
|
-
step_id="
|
|
135
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
134
136
|
)
|
|
135
137
|
|
|
136
138
|
|
|
@@ -36,6 +36,7 @@ class RawFeedbackClient:
|
|
|
36
36
|
Parameters
|
|
37
37
|
----------
|
|
38
38
|
step_id : str
|
|
39
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
39
40
|
|
|
40
41
|
feedback : typing.Optional[FeedbackType]
|
|
41
42
|
Whether this feedback is positive or negative
|
|
@@ -109,6 +110,7 @@ class AsyncRawFeedbackClient:
|
|
|
109
110
|
Parameters
|
|
110
111
|
----------
|
|
111
112
|
step_id : str
|
|
113
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
112
114
|
|
|
113
115
|
feedback : typing.Optional[FeedbackType]
|
|
114
116
|
Whether this feedback is positive or negative
|
|
@@ -41,6 +41,7 @@ class MessagesClient:
|
|
|
41
41
|
Parameters
|
|
42
42
|
----------
|
|
43
43
|
step_id : str
|
|
44
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
44
45
|
|
|
45
46
|
before : typing.Optional[str]
|
|
46
47
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -74,7 +75,7 @@ class MessagesClient:
|
|
|
74
75
|
token="YOUR_TOKEN",
|
|
75
76
|
)
|
|
76
77
|
client.steps.messages.list(
|
|
77
|
-
step_id="
|
|
78
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
78
79
|
before="before",
|
|
79
80
|
after="after",
|
|
80
81
|
limit=1,
|
|
@@ -125,6 +126,7 @@ class AsyncMessagesClient:
|
|
|
125
126
|
Parameters
|
|
126
127
|
----------
|
|
127
128
|
step_id : str
|
|
129
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
128
130
|
|
|
129
131
|
before : typing.Optional[str]
|
|
130
132
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -163,7 +165,7 @@ class AsyncMessagesClient:
|
|
|
163
165
|
|
|
164
166
|
async def main() -> None:
|
|
165
167
|
await client.steps.messages.list(
|
|
166
|
-
step_id="
|
|
168
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
167
169
|
before="before",
|
|
168
170
|
after="after",
|
|
169
171
|
limit=1,
|
|
@@ -36,6 +36,7 @@ class RawMessagesClient:
|
|
|
36
36
|
Parameters
|
|
37
37
|
----------
|
|
38
38
|
step_id : str
|
|
39
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
39
40
|
|
|
40
41
|
before : typing.Optional[str]
|
|
41
42
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -120,6 +121,7 @@ class AsyncRawMessagesClient:
|
|
|
120
121
|
Parameters
|
|
121
122
|
----------
|
|
122
123
|
step_id : str
|
|
124
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
123
125
|
|
|
124
126
|
before : typing.Optional[str]
|
|
125
127
|
Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
|
|
@@ -30,6 +30,7 @@ class MetricsClient:
|
|
|
30
30
|
Parameters
|
|
31
31
|
----------
|
|
32
32
|
step_id : str
|
|
33
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
33
34
|
|
|
34
35
|
request_options : typing.Optional[RequestOptions]
|
|
35
36
|
Request-specific configuration.
|
|
@@ -48,7 +49,7 @@ class MetricsClient:
|
|
|
48
49
|
token="YOUR_TOKEN",
|
|
49
50
|
)
|
|
50
51
|
client.steps.metrics.retrieve(
|
|
51
|
-
step_id="
|
|
52
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
52
53
|
)
|
|
53
54
|
"""
|
|
54
55
|
_response = self._raw_client.retrieve(step_id, request_options=request_options)
|
|
@@ -77,6 +78,7 @@ class AsyncMetricsClient:
|
|
|
77
78
|
Parameters
|
|
78
79
|
----------
|
|
79
80
|
step_id : str
|
|
81
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
80
82
|
|
|
81
83
|
request_options : typing.Optional[RequestOptions]
|
|
82
84
|
Request-specific configuration.
|
|
@@ -100,7 +102,7 @@ class AsyncMetricsClient:
|
|
|
100
102
|
|
|
101
103
|
async def main() -> None:
|
|
102
104
|
await client.steps.metrics.retrieve(
|
|
103
|
-
step_id="
|
|
105
|
+
step_id="step-123e4567-e89b-42d3-8456-426614174000",
|
|
104
106
|
)
|
|
105
107
|
|
|
106
108
|
|
|
@@ -27,6 +27,7 @@ class RawMetricsClient:
|
|
|
27
27
|
Parameters
|
|
28
28
|
----------
|
|
29
29
|
step_id : str
|
|
30
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
30
31
|
|
|
31
32
|
request_options : typing.Optional[RequestOptions]
|
|
32
33
|
Request-specific configuration.
|
|
@@ -81,6 +82,7 @@ class AsyncRawMetricsClient:
|
|
|
81
82
|
Parameters
|
|
82
83
|
----------
|
|
83
84
|
step_id : str
|
|
85
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
84
86
|
|
|
85
87
|
request_options : typing.Optional[RequestOptions]
|
|
86
88
|
Request-specific configuration.
|
letta_client/steps/raw_client.py
CHANGED
|
@@ -148,6 +148,7 @@ class RawStepsClient:
|
|
|
148
148
|
Parameters
|
|
149
149
|
----------
|
|
150
150
|
step_id : str
|
|
151
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
151
152
|
|
|
152
153
|
request_options : typing.Optional[RequestOptions]
|
|
153
154
|
Request-specific configuration.
|
|
@@ -323,6 +324,7 @@ class AsyncRawStepsClient:
|
|
|
323
324
|
Parameters
|
|
324
325
|
----------
|
|
325
326
|
step_id : str
|
|
327
|
+
The ID of the step in the format 'step-<uuid4>'
|
|
326
328
|
|
|
327
329
|
request_options : typing.Optional[RequestOptions]
|
|
328
330
|
Request-specific configuration.
|