letta-client 0.1.181__py3-none-any.whl → 0.1.183__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/agents/blocks/client.py +10 -0
- letta_client/agents/client.py +26 -14
- letta_client/agents/context/client.py +2 -0
- letta_client/agents/core_memory/client.py +2 -0
- letta_client/agents/groups/client.py +2 -0
- letta_client/agents/memory_variables/client.py +2 -0
- letta_client/agents/messages/client.py +12 -0
- letta_client/agents/passages/client.py +8 -0
- letta_client/agents/sources/client.py +6 -0
- letta_client/agents/templates/client.py +6 -0
- letta_client/agents/tools/client.py +6 -0
- letta_client/base_client.py +8 -0
- letta_client/batches/client.py +8 -0
- letta_client/blocks/agents/client.py +2 -0
- letta_client/blocks/client.py +12 -0
- letta_client/client_side_access_tokens/client.py +4 -0
- letta_client/core/client_wrapper.py +16 -4
- letta_client/embedding_models/client.py +2 -0
- letta_client/groups/client.py +12 -16
- letta_client/groups/messages/client.py +10 -0
- letta_client/health/client.py +2 -0
- letta_client/identities/client.py +14 -16
- letta_client/identities/properties/client.py +2 -0
- letta_client/jobs/client.py +8 -0
- letta_client/messages/client.py +2 -0
- letta_client/models/client.py +2 -0
- letta_client/projects/client.py +2 -0
- letta_client/providers/client.py +10 -0
- letta_client/runs/client.py +8 -0
- letta_client/runs/messages/client.py +2 -0
- letta_client/runs/steps/client.py +2 -0
- letta_client/runs/usage/client.py +2 -0
- letta_client/sources/client.py +16 -0
- letta_client/sources/files/client.py +6 -0
- letta_client/sources/passages/client.py +2 -0
- letta_client/steps/client.py +4 -143
- letta_client/steps/feedback/client.py +77 -10
- letta_client/tags/client.py +2 -0
- letta_client/telemetry/client.py +2 -0
- letta_client/templates/agents/client.py +2 -0
- letta_client/templates/client.py +2 -0
- letta_client/tools/client.py +38 -0
- letta_client/voice/client.py +2 -0
- {letta_client-0.1.181.dist-info → letta_client-0.1.183.dist-info}/METADATA +4 -1
- {letta_client-0.1.181.dist-info → letta_client-0.1.183.dist-info}/RECORD +46 -46
- {letta_client-0.1.181.dist-info → letta_client-0.1.183.dist-info}/WHEEL +0 -0
|
@@ -70,6 +70,7 @@ class IdentitiesClient:
|
|
|
70
70
|
from letta_client import Letta
|
|
71
71
|
|
|
72
72
|
client = Letta(
|
|
73
|
+
project="YOUR_PROJECT",
|
|
73
74
|
token="YOUR_TOKEN",
|
|
74
75
|
)
|
|
75
76
|
client.identities.list()
|
|
@@ -118,7 +119,6 @@ class IdentitiesClient:
|
|
|
118
119
|
identifier_key: str,
|
|
119
120
|
name: str,
|
|
120
121
|
identity_type: IdentityType,
|
|
121
|
-
project: typing.Optional[str] = None,
|
|
122
122
|
project_id: typing.Optional[str] = OMIT,
|
|
123
123
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
124
124
|
block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -137,8 +137,6 @@ class IdentitiesClient:
|
|
|
137
137
|
identity_type : IdentityType
|
|
138
138
|
The type of the identity.
|
|
139
139
|
|
|
140
|
-
project : typing.Optional[str]
|
|
141
|
-
|
|
142
140
|
project_id : typing.Optional[str]
|
|
143
141
|
The project id of the identity, if applicable.
|
|
144
142
|
|
|
@@ -164,6 +162,7 @@ class IdentitiesClient:
|
|
|
164
162
|
from letta_client import Letta
|
|
165
163
|
|
|
166
164
|
client = Letta(
|
|
165
|
+
project="YOUR_PROJECT",
|
|
167
166
|
token="YOUR_TOKEN",
|
|
168
167
|
)
|
|
169
168
|
client.identities.create(
|
|
@@ -188,7 +187,6 @@ class IdentitiesClient:
|
|
|
188
187
|
},
|
|
189
188
|
headers={
|
|
190
189
|
"content-type": "application/json",
|
|
191
|
-
"X-Project": str(project) if project is not None else None,
|
|
192
190
|
},
|
|
193
191
|
request_options=request_options,
|
|
194
192
|
omit=OMIT,
|
|
@@ -223,7 +221,6 @@ class IdentitiesClient:
|
|
|
223
221
|
identifier_key: str,
|
|
224
222
|
name: str,
|
|
225
223
|
identity_type: IdentityType,
|
|
226
|
-
project: typing.Optional[str] = None,
|
|
227
224
|
project_id: typing.Optional[str] = OMIT,
|
|
228
225
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
229
226
|
block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -242,8 +239,6 @@ class IdentitiesClient:
|
|
|
242
239
|
identity_type : IdentityType
|
|
243
240
|
The type of the identity.
|
|
244
241
|
|
|
245
|
-
project : typing.Optional[str]
|
|
246
|
-
|
|
247
242
|
project_id : typing.Optional[str]
|
|
248
243
|
The project id of the identity, if applicable.
|
|
249
244
|
|
|
@@ -269,6 +264,7 @@ class IdentitiesClient:
|
|
|
269
264
|
from letta_client import Letta
|
|
270
265
|
|
|
271
266
|
client = Letta(
|
|
267
|
+
project="YOUR_PROJECT",
|
|
272
268
|
token="YOUR_TOKEN",
|
|
273
269
|
)
|
|
274
270
|
client.identities.upsert(
|
|
@@ -293,7 +289,6 @@ class IdentitiesClient:
|
|
|
293
289
|
},
|
|
294
290
|
headers={
|
|
295
291
|
"content-type": "application/json",
|
|
296
|
-
"X-Project": str(project) if project is not None else None,
|
|
297
292
|
},
|
|
298
293
|
request_options=request_options,
|
|
299
294
|
omit=OMIT,
|
|
@@ -341,6 +336,7 @@ class IdentitiesClient:
|
|
|
341
336
|
from letta_client import Letta
|
|
342
337
|
|
|
343
338
|
client = Letta(
|
|
339
|
+
project="YOUR_PROJECT",
|
|
344
340
|
token="YOUR_TOKEN",
|
|
345
341
|
)
|
|
346
342
|
client.identities.count()
|
|
@@ -393,6 +389,7 @@ class IdentitiesClient:
|
|
|
393
389
|
from letta_client import Letta
|
|
394
390
|
|
|
395
391
|
client = Letta(
|
|
392
|
+
project="YOUR_PROJECT",
|
|
396
393
|
token="YOUR_TOKEN",
|
|
397
394
|
)
|
|
398
395
|
client.identities.retrieve(
|
|
@@ -451,6 +448,7 @@ class IdentitiesClient:
|
|
|
451
448
|
from letta_client import Letta
|
|
452
449
|
|
|
453
450
|
client = Letta(
|
|
451
|
+
project="YOUR_PROJECT",
|
|
454
452
|
token="YOUR_TOKEN",
|
|
455
453
|
)
|
|
456
454
|
client.identities.delete(
|
|
@@ -534,6 +532,7 @@ class IdentitiesClient:
|
|
|
534
532
|
from letta_client import Letta
|
|
535
533
|
|
|
536
534
|
client = Letta(
|
|
535
|
+
project="YOUR_PROJECT",
|
|
537
536
|
token="YOUR_TOKEN",
|
|
538
537
|
)
|
|
539
538
|
client.identities.modify(
|
|
@@ -635,6 +634,7 @@ class AsyncIdentitiesClient:
|
|
|
635
634
|
from letta_client import AsyncLetta
|
|
636
635
|
|
|
637
636
|
client = AsyncLetta(
|
|
637
|
+
project="YOUR_PROJECT",
|
|
638
638
|
token="YOUR_TOKEN",
|
|
639
639
|
)
|
|
640
640
|
|
|
@@ -689,7 +689,6 @@ class AsyncIdentitiesClient:
|
|
|
689
689
|
identifier_key: str,
|
|
690
690
|
name: str,
|
|
691
691
|
identity_type: IdentityType,
|
|
692
|
-
project: typing.Optional[str] = None,
|
|
693
692
|
project_id: typing.Optional[str] = OMIT,
|
|
694
693
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
695
694
|
block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -708,8 +707,6 @@ class AsyncIdentitiesClient:
|
|
|
708
707
|
identity_type : IdentityType
|
|
709
708
|
The type of the identity.
|
|
710
709
|
|
|
711
|
-
project : typing.Optional[str]
|
|
712
|
-
|
|
713
710
|
project_id : typing.Optional[str]
|
|
714
711
|
The project id of the identity, if applicable.
|
|
715
712
|
|
|
@@ -737,6 +734,7 @@ class AsyncIdentitiesClient:
|
|
|
737
734
|
from letta_client import AsyncLetta
|
|
738
735
|
|
|
739
736
|
client = AsyncLetta(
|
|
737
|
+
project="YOUR_PROJECT",
|
|
740
738
|
token="YOUR_TOKEN",
|
|
741
739
|
)
|
|
742
740
|
|
|
@@ -767,7 +765,6 @@ class AsyncIdentitiesClient:
|
|
|
767
765
|
},
|
|
768
766
|
headers={
|
|
769
767
|
"content-type": "application/json",
|
|
770
|
-
"X-Project": str(project) if project is not None else None,
|
|
771
768
|
},
|
|
772
769
|
request_options=request_options,
|
|
773
770
|
omit=OMIT,
|
|
@@ -802,7 +799,6 @@ class AsyncIdentitiesClient:
|
|
|
802
799
|
identifier_key: str,
|
|
803
800
|
name: str,
|
|
804
801
|
identity_type: IdentityType,
|
|
805
|
-
project: typing.Optional[str] = None,
|
|
806
802
|
project_id: typing.Optional[str] = OMIT,
|
|
807
803
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
808
804
|
block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -821,8 +817,6 @@ class AsyncIdentitiesClient:
|
|
|
821
817
|
identity_type : IdentityType
|
|
822
818
|
The type of the identity.
|
|
823
819
|
|
|
824
|
-
project : typing.Optional[str]
|
|
825
|
-
|
|
826
820
|
project_id : typing.Optional[str]
|
|
827
821
|
The project id of the identity, if applicable.
|
|
828
822
|
|
|
@@ -850,6 +844,7 @@ class AsyncIdentitiesClient:
|
|
|
850
844
|
from letta_client import AsyncLetta
|
|
851
845
|
|
|
852
846
|
client = AsyncLetta(
|
|
847
|
+
project="YOUR_PROJECT",
|
|
853
848
|
token="YOUR_TOKEN",
|
|
854
849
|
)
|
|
855
850
|
|
|
@@ -880,7 +875,6 @@ class AsyncIdentitiesClient:
|
|
|
880
875
|
},
|
|
881
876
|
headers={
|
|
882
877
|
"content-type": "application/json",
|
|
883
|
-
"X-Project": str(project) if project is not None else None,
|
|
884
878
|
},
|
|
885
879
|
request_options=request_options,
|
|
886
880
|
omit=OMIT,
|
|
@@ -930,6 +924,7 @@ class AsyncIdentitiesClient:
|
|
|
930
924
|
from letta_client import AsyncLetta
|
|
931
925
|
|
|
932
926
|
client = AsyncLetta(
|
|
927
|
+
project="YOUR_PROJECT",
|
|
933
928
|
token="YOUR_TOKEN",
|
|
934
929
|
)
|
|
935
930
|
|
|
@@ -990,6 +985,7 @@ class AsyncIdentitiesClient:
|
|
|
990
985
|
from letta_client import AsyncLetta
|
|
991
986
|
|
|
992
987
|
client = AsyncLetta(
|
|
988
|
+
project="YOUR_PROJECT",
|
|
993
989
|
token="YOUR_TOKEN",
|
|
994
990
|
)
|
|
995
991
|
|
|
@@ -1056,6 +1052,7 @@ class AsyncIdentitiesClient:
|
|
|
1056
1052
|
from letta_client import AsyncLetta
|
|
1057
1053
|
|
|
1058
1054
|
client = AsyncLetta(
|
|
1055
|
+
project="YOUR_PROJECT",
|
|
1059
1056
|
token="YOUR_TOKEN",
|
|
1060
1057
|
)
|
|
1061
1058
|
|
|
@@ -1147,6 +1144,7 @@ class AsyncIdentitiesClient:
|
|
|
1147
1144
|
from letta_client import AsyncLetta
|
|
1148
1145
|
|
|
1149
1146
|
client = AsyncLetta(
|
|
1147
|
+
project="YOUR_PROJECT",
|
|
1150
1148
|
token="YOUR_TOKEN",
|
|
1151
1149
|
)
|
|
1152
1150
|
|
|
@@ -48,6 +48,7 @@ class PropertiesClient:
|
|
|
48
48
|
from letta_client import IdentityProperty, Letta
|
|
49
49
|
|
|
50
50
|
client = Letta(
|
|
51
|
+
project="YOUR_PROJECT",
|
|
51
52
|
token="YOUR_TOKEN",
|
|
52
53
|
)
|
|
53
54
|
client.identities.properties.upsert(
|
|
@@ -128,6 +129,7 @@ class AsyncPropertiesClient:
|
|
|
128
129
|
from letta_client import AsyncLetta, IdentityProperty
|
|
129
130
|
|
|
130
131
|
client = AsyncLetta(
|
|
132
|
+
project="YOUR_PROJECT",
|
|
131
133
|
token="YOUR_TOKEN",
|
|
132
134
|
)
|
|
133
135
|
|
letta_client/jobs/client.py
CHANGED
|
@@ -41,6 +41,7 @@ class JobsClient:
|
|
|
41
41
|
from letta_client import Letta
|
|
42
42
|
|
|
43
43
|
client = Letta(
|
|
44
|
+
project="YOUR_PROJECT",
|
|
44
45
|
token="YOUR_TOKEN",
|
|
45
46
|
)
|
|
46
47
|
client.jobs.list()
|
|
@@ -101,6 +102,7 @@ class JobsClient:
|
|
|
101
102
|
from letta_client import Letta
|
|
102
103
|
|
|
103
104
|
client = Letta(
|
|
105
|
+
project="YOUR_PROJECT",
|
|
104
106
|
token="YOUR_TOKEN",
|
|
105
107
|
)
|
|
106
108
|
client.jobs.list_active()
|
|
@@ -158,6 +160,7 @@ class JobsClient:
|
|
|
158
160
|
from letta_client import Letta
|
|
159
161
|
|
|
160
162
|
client = Letta(
|
|
163
|
+
project="YOUR_PROJECT",
|
|
161
164
|
token="YOUR_TOKEN",
|
|
162
165
|
)
|
|
163
166
|
client.jobs.retrieve(
|
|
@@ -214,6 +217,7 @@ class JobsClient:
|
|
|
214
217
|
from letta_client import Letta
|
|
215
218
|
|
|
216
219
|
client = Letta(
|
|
220
|
+
project="YOUR_PROJECT",
|
|
217
221
|
token="YOUR_TOKEN",
|
|
218
222
|
)
|
|
219
223
|
client.jobs.delete(
|
|
@@ -280,6 +284,7 @@ class AsyncJobsClient:
|
|
|
280
284
|
from letta_client import AsyncLetta
|
|
281
285
|
|
|
282
286
|
client = AsyncLetta(
|
|
287
|
+
project="YOUR_PROJECT",
|
|
283
288
|
token="YOUR_TOKEN",
|
|
284
289
|
)
|
|
285
290
|
|
|
@@ -348,6 +353,7 @@ class AsyncJobsClient:
|
|
|
348
353
|
from letta_client import AsyncLetta
|
|
349
354
|
|
|
350
355
|
client = AsyncLetta(
|
|
356
|
+
project="YOUR_PROJECT",
|
|
351
357
|
token="YOUR_TOKEN",
|
|
352
358
|
)
|
|
353
359
|
|
|
@@ -413,6 +419,7 @@ class AsyncJobsClient:
|
|
|
413
419
|
from letta_client import AsyncLetta
|
|
414
420
|
|
|
415
421
|
client = AsyncLetta(
|
|
422
|
+
project="YOUR_PROJECT",
|
|
416
423
|
token="YOUR_TOKEN",
|
|
417
424
|
)
|
|
418
425
|
|
|
@@ -477,6 +484,7 @@ class AsyncJobsClient:
|
|
|
477
484
|
from letta_client import AsyncLetta
|
|
478
485
|
|
|
479
486
|
client = AsyncLetta(
|
|
487
|
+
project="YOUR_PROJECT",
|
|
480
488
|
token="YOUR_TOKEN",
|
|
481
489
|
)
|
|
482
490
|
|
letta_client/messages/client.py
CHANGED
|
@@ -66,6 +66,7 @@ class MessagesClient:
|
|
|
66
66
|
from letta_client import Letta
|
|
67
67
|
|
|
68
68
|
client = Letta(
|
|
69
|
+
project="YOUR_PROJECT",
|
|
69
70
|
token="YOUR_TOKEN",
|
|
70
71
|
)
|
|
71
72
|
client.messages.list_batch_messages(
|
|
@@ -163,6 +164,7 @@ class AsyncMessagesClient:
|
|
|
163
164
|
from letta_client import AsyncLetta
|
|
164
165
|
|
|
165
166
|
client = AsyncLetta(
|
|
167
|
+
project="YOUR_PROJECT",
|
|
166
168
|
token="YOUR_TOKEN",
|
|
167
169
|
)
|
|
168
170
|
|
letta_client/models/client.py
CHANGED
|
@@ -50,6 +50,7 @@ class ModelsClient:
|
|
|
50
50
|
from letta_client import Letta
|
|
51
51
|
|
|
52
52
|
client = Letta(
|
|
53
|
+
project="YOUR_PROJECT",
|
|
53
54
|
token="YOUR_TOKEN",
|
|
54
55
|
)
|
|
55
56
|
client.models.list()
|
|
@@ -127,6 +128,7 @@ class AsyncModelsClient:
|
|
|
127
128
|
from letta_client import AsyncLetta
|
|
128
129
|
|
|
129
130
|
client = AsyncLetta(
|
|
131
|
+
project="YOUR_PROJECT",
|
|
130
132
|
token="YOUR_TOKEN",
|
|
131
133
|
)
|
|
132
134
|
|
letta_client/projects/client.py
CHANGED
|
@@ -46,6 +46,7 @@ class ProjectsClient:
|
|
|
46
46
|
from letta_client import Letta
|
|
47
47
|
|
|
48
48
|
client = Letta(
|
|
49
|
+
project="YOUR_PROJECT",
|
|
49
50
|
token="YOUR_TOKEN",
|
|
50
51
|
)
|
|
51
52
|
client.projects.list()
|
|
@@ -113,6 +114,7 @@ class AsyncProjectsClient:
|
|
|
113
114
|
from letta_client import AsyncLetta
|
|
114
115
|
|
|
115
116
|
client = AsyncLetta(
|
|
117
|
+
project="YOUR_PROJECT",
|
|
116
118
|
token="YOUR_TOKEN",
|
|
117
119
|
)
|
|
118
120
|
|
letta_client/providers/client.py
CHANGED
|
@@ -56,6 +56,7 @@ class ProvidersClient:
|
|
|
56
56
|
from letta_client import Letta
|
|
57
57
|
|
|
58
58
|
client = Letta(
|
|
59
|
+
project="YOUR_PROJECT",
|
|
59
60
|
token="YOUR_TOKEN",
|
|
60
61
|
)
|
|
61
62
|
client.providers.list()
|
|
@@ -138,6 +139,7 @@ class ProvidersClient:
|
|
|
138
139
|
from letta_client import Letta
|
|
139
140
|
|
|
140
141
|
client = Letta(
|
|
142
|
+
project="YOUR_PROJECT",
|
|
141
143
|
token="YOUR_TOKEN",
|
|
142
144
|
)
|
|
143
145
|
client.providers.create(
|
|
@@ -209,6 +211,7 @@ class ProvidersClient:
|
|
|
209
211
|
from letta_client import Letta
|
|
210
212
|
|
|
211
213
|
client = Letta(
|
|
214
|
+
project="YOUR_PROJECT",
|
|
212
215
|
token="YOUR_TOKEN",
|
|
213
216
|
)
|
|
214
217
|
client.providers.delete(
|
|
@@ -282,6 +285,7 @@ class ProvidersClient:
|
|
|
282
285
|
from letta_client import Letta
|
|
283
286
|
|
|
284
287
|
client = Letta(
|
|
288
|
+
project="YOUR_PROJECT",
|
|
285
289
|
token="YOUR_TOKEN",
|
|
286
290
|
)
|
|
287
291
|
client.providers.modify(
|
|
@@ -344,6 +348,7 @@ class ProvidersClient:
|
|
|
344
348
|
from letta_client import Letta
|
|
345
349
|
|
|
346
350
|
client = Letta(
|
|
351
|
+
project="YOUR_PROJECT",
|
|
347
352
|
token="YOUR_TOKEN",
|
|
348
353
|
)
|
|
349
354
|
client.providers.check()
|
|
@@ -419,6 +424,7 @@ class AsyncProvidersClient:
|
|
|
419
424
|
from letta_client import AsyncLetta
|
|
420
425
|
|
|
421
426
|
client = AsyncLetta(
|
|
427
|
+
project="YOUR_PROJECT",
|
|
422
428
|
token="YOUR_TOKEN",
|
|
423
429
|
)
|
|
424
430
|
|
|
@@ -509,6 +515,7 @@ class AsyncProvidersClient:
|
|
|
509
515
|
from letta_client import AsyncLetta
|
|
510
516
|
|
|
511
517
|
client = AsyncLetta(
|
|
518
|
+
project="YOUR_PROJECT",
|
|
512
519
|
token="YOUR_TOKEN",
|
|
513
520
|
)
|
|
514
521
|
|
|
@@ -588,6 +595,7 @@ class AsyncProvidersClient:
|
|
|
588
595
|
from letta_client import AsyncLetta
|
|
589
596
|
|
|
590
597
|
client = AsyncLetta(
|
|
598
|
+
project="YOUR_PROJECT",
|
|
591
599
|
token="YOUR_TOKEN",
|
|
592
600
|
)
|
|
593
601
|
|
|
@@ -669,6 +677,7 @@ class AsyncProvidersClient:
|
|
|
669
677
|
from letta_client import AsyncLetta
|
|
670
678
|
|
|
671
679
|
client = AsyncLetta(
|
|
680
|
+
project="YOUR_PROJECT",
|
|
672
681
|
token="YOUR_TOKEN",
|
|
673
682
|
)
|
|
674
683
|
|
|
@@ -739,6 +748,7 @@ class AsyncProvidersClient:
|
|
|
739
748
|
from letta_client import AsyncLetta
|
|
740
749
|
|
|
741
750
|
client = AsyncLetta(
|
|
751
|
+
project="YOUR_PROJECT",
|
|
742
752
|
token="YOUR_TOKEN",
|
|
743
753
|
)
|
|
744
754
|
|
letta_client/runs/client.py
CHANGED
|
@@ -53,6 +53,7 @@ class RunsClient:
|
|
|
53
53
|
from letta_client import Letta
|
|
54
54
|
|
|
55
55
|
client = Letta(
|
|
56
|
+
project="YOUR_PROJECT",
|
|
56
57
|
token="YOUR_TOKEN",
|
|
57
58
|
)
|
|
58
59
|
client.runs.list()
|
|
@@ -116,6 +117,7 @@ class RunsClient:
|
|
|
116
117
|
from letta_client import Letta
|
|
117
118
|
|
|
118
119
|
client = Letta(
|
|
120
|
+
project="YOUR_PROJECT",
|
|
119
121
|
token="YOUR_TOKEN",
|
|
120
122
|
)
|
|
121
123
|
client.runs.list_active()
|
|
@@ -173,6 +175,7 @@ class RunsClient:
|
|
|
173
175
|
from letta_client import Letta
|
|
174
176
|
|
|
175
177
|
client = Letta(
|
|
178
|
+
project="YOUR_PROJECT",
|
|
176
179
|
token="YOUR_TOKEN",
|
|
177
180
|
)
|
|
178
181
|
client.runs.retrieve(
|
|
@@ -229,6 +232,7 @@ class RunsClient:
|
|
|
229
232
|
from letta_client import Letta
|
|
230
233
|
|
|
231
234
|
client = Letta(
|
|
235
|
+
project="YOUR_PROJECT",
|
|
232
236
|
token="YOUR_TOKEN",
|
|
233
237
|
)
|
|
234
238
|
client.runs.delete(
|
|
@@ -301,6 +305,7 @@ class AsyncRunsClient:
|
|
|
301
305
|
from letta_client import AsyncLetta
|
|
302
306
|
|
|
303
307
|
client = AsyncLetta(
|
|
308
|
+
project="YOUR_PROJECT",
|
|
304
309
|
token="YOUR_TOKEN",
|
|
305
310
|
)
|
|
306
311
|
|
|
@@ -372,6 +377,7 @@ class AsyncRunsClient:
|
|
|
372
377
|
from letta_client import AsyncLetta
|
|
373
378
|
|
|
374
379
|
client = AsyncLetta(
|
|
380
|
+
project="YOUR_PROJECT",
|
|
375
381
|
token="YOUR_TOKEN",
|
|
376
382
|
)
|
|
377
383
|
|
|
@@ -437,6 +443,7 @@ class AsyncRunsClient:
|
|
|
437
443
|
from letta_client import AsyncLetta
|
|
438
444
|
|
|
439
445
|
client = AsyncLetta(
|
|
446
|
+
project="YOUR_PROJECT",
|
|
440
447
|
token="YOUR_TOKEN",
|
|
441
448
|
)
|
|
442
449
|
|
|
@@ -501,6 +508,7 @@ class AsyncRunsClient:
|
|
|
501
508
|
from letta_client import AsyncLetta
|
|
502
509
|
|
|
503
510
|
client = AsyncLetta(
|
|
511
|
+
project="YOUR_PROJECT",
|
|
504
512
|
token="YOUR_TOKEN",
|
|
505
513
|
)
|
|
506
514
|
|
|
@@ -77,6 +77,7 @@ class MessagesClient:
|
|
|
77
77
|
from letta_client import Letta
|
|
78
78
|
|
|
79
79
|
client = Letta(
|
|
80
|
+
project="YOUR_PROJECT",
|
|
80
81
|
token="YOUR_TOKEN",
|
|
81
82
|
)
|
|
82
83
|
client.runs.messages.list(
|
|
@@ -185,6 +186,7 @@ class AsyncMessagesClient:
|
|
|
185
186
|
from letta_client import AsyncLetta
|
|
186
187
|
|
|
187
188
|
client = AsyncLetta(
|
|
189
|
+
project="YOUR_PROJECT",
|
|
188
190
|
token="YOUR_TOKEN",
|
|
189
191
|
)
|
|
190
192
|
|
|
@@ -69,6 +69,7 @@ class StepsClient:
|
|
|
69
69
|
from letta_client import Letta
|
|
70
70
|
|
|
71
71
|
client = Letta(
|
|
72
|
+
project="YOUR_PROJECT",
|
|
72
73
|
token="YOUR_TOKEN",
|
|
73
74
|
)
|
|
74
75
|
client.runs.steps.list(
|
|
@@ -169,6 +170,7 @@ class AsyncStepsClient:
|
|
|
169
170
|
from letta_client import AsyncLetta
|
|
170
171
|
|
|
171
172
|
client = AsyncLetta(
|
|
173
|
+
project="YOUR_PROJECT",
|
|
172
174
|
token="YOUR_TOKEN",
|
|
173
175
|
)
|
|
174
176
|
|
|
@@ -38,6 +38,7 @@ class UsageClient:
|
|
|
38
38
|
from letta_client import Letta
|
|
39
39
|
|
|
40
40
|
client = Letta(
|
|
41
|
+
project="YOUR_PROJECT",
|
|
41
42
|
token="YOUR_TOKEN",
|
|
42
43
|
)
|
|
43
44
|
client.runs.usage.retrieve(
|
|
@@ -103,6 +104,7 @@ class AsyncUsageClient:
|
|
|
103
104
|
from letta_client import AsyncLetta
|
|
104
105
|
|
|
105
106
|
client = AsyncLetta(
|
|
107
|
+
project="YOUR_PROJECT",
|
|
106
108
|
token="YOUR_TOKEN",
|
|
107
109
|
)
|
|
108
110
|
|
letta_client/sources/client.py
CHANGED
|
@@ -48,6 +48,7 @@ class SourcesClient:
|
|
|
48
48
|
from letta_client import Letta
|
|
49
49
|
|
|
50
50
|
client = Letta(
|
|
51
|
+
project="YOUR_PROJECT",
|
|
51
52
|
token="YOUR_TOKEN",
|
|
52
53
|
)
|
|
53
54
|
client.sources.count()
|
|
@@ -102,6 +103,7 @@ class SourcesClient:
|
|
|
102
103
|
from letta_client import Letta
|
|
103
104
|
|
|
104
105
|
client = Letta(
|
|
106
|
+
project="YOUR_PROJECT",
|
|
105
107
|
token="YOUR_TOKEN",
|
|
106
108
|
)
|
|
107
109
|
client.sources.retrieve(
|
|
@@ -160,6 +162,7 @@ class SourcesClient:
|
|
|
160
162
|
from letta_client import Letta
|
|
161
163
|
|
|
162
164
|
client = Letta(
|
|
165
|
+
project="YOUR_PROJECT",
|
|
163
166
|
token="YOUR_TOKEN",
|
|
164
167
|
)
|
|
165
168
|
client.sources.delete(
|
|
@@ -241,6 +244,7 @@ class SourcesClient:
|
|
|
241
244
|
from letta_client import Letta
|
|
242
245
|
|
|
243
246
|
client = Letta(
|
|
247
|
+
project="YOUR_PROJECT",
|
|
244
248
|
token="YOUR_TOKEN",
|
|
245
249
|
)
|
|
246
250
|
client.sources.modify(
|
|
@@ -310,6 +314,7 @@ class SourcesClient:
|
|
|
310
314
|
from letta_client import Letta
|
|
311
315
|
|
|
312
316
|
client = Letta(
|
|
317
|
+
project="YOUR_PROJECT",
|
|
313
318
|
token="YOUR_TOKEN",
|
|
314
319
|
)
|
|
315
320
|
client.sources.retrieve_by_name(
|
|
@@ -364,6 +369,7 @@ class SourcesClient:
|
|
|
364
369
|
from letta_client import Letta
|
|
365
370
|
|
|
366
371
|
client = Letta(
|
|
372
|
+
project="YOUR_PROJECT",
|
|
367
373
|
token="YOUR_TOKEN",
|
|
368
374
|
)
|
|
369
375
|
client.sources.list()
|
|
@@ -448,6 +454,7 @@ class SourcesClient:
|
|
|
448
454
|
from letta_client import Letta
|
|
449
455
|
|
|
450
456
|
client = Letta(
|
|
457
|
+
project="YOUR_PROJECT",
|
|
451
458
|
token="YOUR_TOKEN",
|
|
452
459
|
)
|
|
453
460
|
client.sources.create(
|
|
@@ -531,6 +538,7 @@ class SourcesClient:
|
|
|
531
538
|
from letta_client import Letta
|
|
532
539
|
|
|
533
540
|
client = Letta(
|
|
541
|
+
project="YOUR_PROJECT",
|
|
534
542
|
token="YOUR_TOKEN",
|
|
535
543
|
)
|
|
536
544
|
client.sources.get_file_metadata(
|
|
@@ -598,6 +606,7 @@ class AsyncSourcesClient:
|
|
|
598
606
|
from letta_client import AsyncLetta
|
|
599
607
|
|
|
600
608
|
client = AsyncLetta(
|
|
609
|
+
project="YOUR_PROJECT",
|
|
601
610
|
token="YOUR_TOKEN",
|
|
602
611
|
)
|
|
603
612
|
|
|
@@ -660,6 +669,7 @@ class AsyncSourcesClient:
|
|
|
660
669
|
from letta_client import AsyncLetta
|
|
661
670
|
|
|
662
671
|
client = AsyncLetta(
|
|
672
|
+
project="YOUR_PROJECT",
|
|
663
673
|
token="YOUR_TOKEN",
|
|
664
674
|
)
|
|
665
675
|
|
|
@@ -726,6 +736,7 @@ class AsyncSourcesClient:
|
|
|
726
736
|
from letta_client import AsyncLetta
|
|
727
737
|
|
|
728
738
|
client = AsyncLetta(
|
|
739
|
+
project="YOUR_PROJECT",
|
|
729
740
|
token="YOUR_TOKEN",
|
|
730
741
|
)
|
|
731
742
|
|
|
@@ -815,6 +826,7 @@ class AsyncSourcesClient:
|
|
|
815
826
|
from letta_client import AsyncLetta
|
|
816
827
|
|
|
817
828
|
client = AsyncLetta(
|
|
829
|
+
project="YOUR_PROJECT",
|
|
818
830
|
token="YOUR_TOKEN",
|
|
819
831
|
)
|
|
820
832
|
|
|
@@ -894,6 +906,7 @@ class AsyncSourcesClient:
|
|
|
894
906
|
from letta_client import AsyncLetta
|
|
895
907
|
|
|
896
908
|
client = AsyncLetta(
|
|
909
|
+
project="YOUR_PROJECT",
|
|
897
910
|
token="YOUR_TOKEN",
|
|
898
911
|
)
|
|
899
912
|
|
|
@@ -956,6 +969,7 @@ class AsyncSourcesClient:
|
|
|
956
969
|
from letta_client import AsyncLetta
|
|
957
970
|
|
|
958
971
|
client = AsyncLetta(
|
|
972
|
+
project="YOUR_PROJECT",
|
|
959
973
|
token="YOUR_TOKEN",
|
|
960
974
|
)
|
|
961
975
|
|
|
@@ -1048,6 +1062,7 @@ class AsyncSourcesClient:
|
|
|
1048
1062
|
from letta_client import AsyncLetta
|
|
1049
1063
|
|
|
1050
1064
|
client = AsyncLetta(
|
|
1065
|
+
project="YOUR_PROJECT",
|
|
1051
1066
|
token="YOUR_TOKEN",
|
|
1052
1067
|
)
|
|
1053
1068
|
|
|
@@ -1139,6 +1154,7 @@ class AsyncSourcesClient:
|
|
|
1139
1154
|
from letta_client import AsyncLetta
|
|
1140
1155
|
|
|
1141
1156
|
client = AsyncLetta(
|
|
1157
|
+
project="YOUR_PROJECT",
|
|
1142
1158
|
token="YOUR_TOKEN",
|
|
1143
1159
|
)
|
|
1144
1160
|
|
|
@@ -47,6 +47,7 @@ class FilesClient:
|
|
|
47
47
|
from letta_client import Letta
|
|
48
48
|
|
|
49
49
|
client = Letta(
|
|
50
|
+
project="YOUR_PROJECT",
|
|
50
51
|
token="YOUR_TOKEN",
|
|
51
52
|
)
|
|
52
53
|
client.sources.files.upload(
|
|
@@ -125,6 +126,7 @@ class FilesClient:
|
|
|
125
126
|
from letta_client import Letta
|
|
126
127
|
|
|
127
128
|
client = Letta(
|
|
129
|
+
project="YOUR_PROJECT",
|
|
128
130
|
token="YOUR_TOKEN",
|
|
129
131
|
)
|
|
130
132
|
client.sources.files.list(
|
|
@@ -187,6 +189,7 @@ class FilesClient:
|
|
|
187
189
|
from letta_client import Letta
|
|
188
190
|
|
|
189
191
|
client = Letta(
|
|
192
|
+
project="YOUR_PROJECT",
|
|
190
193
|
token="YOUR_TOKEN",
|
|
191
194
|
)
|
|
192
195
|
client.sources.files.delete(
|
|
@@ -250,6 +253,7 @@ class AsyncFilesClient:
|
|
|
250
253
|
from letta_client import AsyncLetta
|
|
251
254
|
|
|
252
255
|
client = AsyncLetta(
|
|
256
|
+
project="YOUR_PROJECT",
|
|
253
257
|
token="YOUR_TOKEN",
|
|
254
258
|
)
|
|
255
259
|
|
|
@@ -336,6 +340,7 @@ class AsyncFilesClient:
|
|
|
336
340
|
from letta_client import AsyncLetta
|
|
337
341
|
|
|
338
342
|
client = AsyncLetta(
|
|
343
|
+
project="YOUR_PROJECT",
|
|
339
344
|
token="YOUR_TOKEN",
|
|
340
345
|
)
|
|
341
346
|
|
|
@@ -408,6 +413,7 @@ class AsyncFilesClient:
|
|
|
408
413
|
from letta_client import AsyncLetta
|
|
409
414
|
|
|
410
415
|
client = AsyncLetta(
|
|
416
|
+
project="YOUR_PROJECT",
|
|
411
417
|
token="YOUR_TOKEN",
|
|
412
418
|
)
|
|
413
419
|
|
|
@@ -55,6 +55,7 @@ class PassagesClient:
|
|
|
55
55
|
from letta_client import Letta
|
|
56
56
|
|
|
57
57
|
client = Letta(
|
|
58
|
+
project="YOUR_PROJECT",
|
|
58
59
|
token="YOUR_TOKEN",
|
|
59
60
|
)
|
|
60
61
|
client.sources.passages.list(
|
|
@@ -140,6 +141,7 @@ class AsyncPassagesClient:
|
|
|
140
141
|
from letta_client import AsyncLetta
|
|
141
142
|
|
|
142
143
|
client = AsyncLetta(
|
|
144
|
+
project="YOUR_PROJECT",
|
|
143
145
|
token="YOUR_TOKEN",
|
|
144
146
|
)
|
|
145
147
|
|