letta-client 0.1.180__py3-none-any.whl → 0.1.182__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 (46) hide show
  1. letta_client/agents/blocks/client.py +10 -0
  2. letta_client/agents/client.py +26 -14
  3. letta_client/agents/context/client.py +2 -0
  4. letta_client/agents/core_memory/client.py +2 -0
  5. letta_client/agents/groups/client.py +2 -0
  6. letta_client/agents/memory_variables/client.py +2 -0
  7. letta_client/agents/messages/client.py +12 -0
  8. letta_client/agents/passages/client.py +8 -0
  9. letta_client/agents/sources/client.py +6 -0
  10. letta_client/agents/templates/client.py +6 -0
  11. letta_client/agents/tools/client.py +6 -0
  12. letta_client/base_client.py +8 -0
  13. letta_client/batches/client.py +8 -0
  14. letta_client/blocks/agents/client.py +2 -0
  15. letta_client/blocks/client.py +12 -0
  16. letta_client/client_side_access_tokens/client.py +4 -0
  17. letta_client/core/client_wrapper.py +16 -4
  18. letta_client/embedding_models/client.py +2 -0
  19. letta_client/groups/client.py +12 -16
  20. letta_client/groups/messages/client.py +10 -0
  21. letta_client/health/client.py +2 -0
  22. letta_client/identities/client.py +14 -16
  23. letta_client/identities/properties/client.py +2 -0
  24. letta_client/jobs/client.py +8 -0
  25. letta_client/messages/client.py +2 -0
  26. letta_client/models/client.py +2 -0
  27. letta_client/projects/client.py +2 -0
  28. letta_client/providers/client.py +10 -0
  29. letta_client/runs/client.py +8 -0
  30. letta_client/runs/messages/client.py +2 -0
  31. letta_client/runs/steps/client.py +2 -0
  32. letta_client/runs/usage/client.py +2 -0
  33. letta_client/sources/client.py +16 -0
  34. letta_client/sources/files/client.py +6 -0
  35. letta_client/sources/passages/client.py +2 -0
  36. letta_client/steps/client.py +16 -0
  37. letta_client/steps/feedback/client.py +2 -0
  38. letta_client/tags/client.py +2 -0
  39. letta_client/telemetry/client.py +2 -0
  40. letta_client/templates/agents/client.py +2 -0
  41. letta_client/templates/client.py +2 -0
  42. letta_client/tools/client.py +38 -0
  43. letta_client/voice/client.py +2 -0
  44. {letta_client-0.1.180.dist-info → letta_client-0.1.182.dist-info}/METADATA +4 -1
  45. {letta_client-0.1.180.dist-info → letta_client-0.1.182.dist-info}/RECORD +46 -46
  46. {letta_client-0.1.180.dist-info → letta_client-0.1.182.dist-info}/WHEEL +0 -0
@@ -46,6 +46,7 @@ class BlocksClient:
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.agents.blocks.retrieve(
@@ -147,6 +148,7 @@ class BlocksClient:
147
148
  from letta_client import Letta
148
149
 
149
150
  client = Letta(
151
+ project="YOUR_PROJECT",
150
152
  token="YOUR_TOKEN",
151
153
  )
152
154
  client.agents.blocks.modify(
@@ -216,6 +218,7 @@ class BlocksClient:
216
218
  from letta_client import Letta
217
219
 
218
220
  client = Letta(
221
+ project="YOUR_PROJECT",
219
222
  token="YOUR_TOKEN",
220
223
  )
221
224
  client.agents.blocks.list(
@@ -276,6 +279,7 @@ class BlocksClient:
276
279
  from letta_client import Letta
277
280
 
278
281
  client = Letta(
282
+ project="YOUR_PROJECT",
279
283
  token="YOUR_TOKEN",
280
284
  )
281
285
  client.agents.blocks.attach(
@@ -337,6 +341,7 @@ class BlocksClient:
337
341
  from letta_client import Letta
338
342
 
339
343
  client = Letta(
344
+ project="YOUR_PROJECT",
340
345
  token="YOUR_TOKEN",
341
346
  )
342
347
  client.agents.blocks.detach(
@@ -405,6 +410,7 @@ class AsyncBlocksClient:
405
410
  from letta_client import AsyncLetta
406
411
 
407
412
  client = AsyncLetta(
413
+ project="YOUR_PROJECT",
408
414
  token="YOUR_TOKEN",
409
415
  )
410
416
 
@@ -514,6 +520,7 @@ class AsyncBlocksClient:
514
520
  from letta_client import AsyncLetta
515
521
 
516
522
  client = AsyncLetta(
523
+ project="YOUR_PROJECT",
517
524
  token="YOUR_TOKEN",
518
525
  )
519
526
 
@@ -593,6 +600,7 @@ class AsyncBlocksClient:
593
600
  from letta_client import AsyncLetta
594
601
 
595
602
  client = AsyncLetta(
603
+ project="YOUR_PROJECT",
596
604
  token="YOUR_TOKEN",
597
605
  )
598
606
 
@@ -661,6 +669,7 @@ class AsyncBlocksClient:
661
669
  from letta_client import AsyncLetta
662
670
 
663
671
  client = AsyncLetta(
672
+ project="YOUR_PROJECT",
664
673
  token="YOUR_TOKEN",
665
674
  )
666
675
 
@@ -730,6 +739,7 @@ class AsyncBlocksClient:
730
739
  from letta_client import AsyncLetta
731
740
 
732
741
  client = AsyncLetta(
742
+ project="YOUR_PROJECT",
733
743
  token="YOUR_TOKEN",
734
744
  )
735
745
 
@@ -151,6 +151,7 @@ class AgentsClient:
151
151
  from letta_client import Letta
152
152
 
153
153
  client = Letta(
154
+ project="YOUR_PROJECT",
154
155
  token="YOUR_TOKEN",
155
156
  )
156
157
  client.agents.list()
@@ -204,7 +205,6 @@ class AgentsClient:
204
205
  def create(
205
206
  self,
206
207
  *,
207
- project: typing.Optional[str] = None,
208
208
  name: typing.Optional[str] = OMIT,
209
209
  memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
210
210
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
@@ -233,7 +233,7 @@ class AgentsClient:
233
233
  enable_reasoner: typing.Optional[bool] = OMIT,
234
234
  from_template: typing.Optional[str] = OMIT,
235
235
  template: typing.Optional[bool] = OMIT,
236
- create_agent_request_project: typing.Optional[str] = OMIT,
236
+ project: typing.Optional[str] = OMIT,
237
237
  tool_exec_environment_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
238
238
  memory_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
239
239
  project_id: typing.Optional[str] = OMIT,
@@ -251,8 +251,6 @@ class AgentsClient:
251
251
 
252
252
  Parameters
253
253
  ----------
254
- project : typing.Optional[str]
255
-
256
254
  name : typing.Optional[str]
257
255
  The name of the agent.
258
256
 
@@ -337,7 +335,7 @@ class AgentsClient:
337
335
  template : typing.Optional[bool]
338
336
  Whether the agent is a template
339
337
 
340
- create_agent_request_project : typing.Optional[str]
338
+ project : typing.Optional[str]
341
339
  Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.
342
340
 
343
341
  tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
@@ -383,6 +381,7 @@ class AgentsClient:
383
381
  from letta_client import Letta
384
382
 
385
383
  client = Letta(
384
+ project="YOUR_PROJECT",
386
385
  token="YOUR_TOKEN",
387
386
  )
388
387
  client.agents.create()
@@ -429,7 +428,7 @@ class AgentsClient:
429
428
  "enable_reasoner": enable_reasoner,
430
429
  "from_template": from_template,
431
430
  "template": template,
432
- "project": create_agent_request_project,
431
+ "project": project,
433
432
  "tool_exec_environment_variables": tool_exec_environment_variables,
434
433
  "memory_variables": memory_variables,
435
434
  "project_id": project_id,
@@ -445,7 +444,6 @@ class AgentsClient:
445
444
  },
446
445
  headers={
447
446
  "content-type": "application/json",
448
- "X-Project": str(project) if project is not None else None,
449
447
  },
450
448
  request_options=request_options,
451
449
  omit=OMIT,
@@ -493,6 +491,7 @@ class AgentsClient:
493
491
  from letta_client import Letta
494
492
 
495
493
  client = Letta(
494
+ project="YOUR_PROJECT",
496
495
  token="YOUR_TOKEN",
497
496
  )
498
497
  client.agents.count()
@@ -547,6 +546,7 @@ class AgentsClient:
547
546
  from letta_client import Letta
548
547
 
549
548
  client = Letta(
549
+ project="YOUR_PROJECT",
550
550
  token="YOUR_TOKEN",
551
551
  )
552
552
  client.agents.export_file(
@@ -625,6 +625,7 @@ class AgentsClient:
625
625
  from letta_client import Letta
626
626
 
627
627
  client = Letta(
628
+ project="YOUR_PROJECT",
628
629
  token="YOUR_TOKEN",
629
630
  )
630
631
  client.agents.import_file()
@@ -699,6 +700,7 @@ class AgentsClient:
699
700
  from letta_client import Letta
700
701
 
701
702
  client = Letta(
703
+ project="YOUR_PROJECT",
702
704
  token="YOUR_TOKEN",
703
705
  )
704
706
  client.agents.retrieve(
@@ -760,6 +762,7 @@ class AgentsClient:
760
762
  from letta_client import Letta
761
763
 
762
764
  client = Letta(
765
+ project="YOUR_PROJECT",
763
766
  token="YOUR_TOKEN",
764
767
  )
765
768
  client.agents.delete(
@@ -921,6 +924,7 @@ class AgentsClient:
921
924
  from letta_client import Letta
922
925
 
923
926
  client = Letta(
927
+ project="YOUR_PROJECT",
924
928
  token="YOUR_TOKEN",
925
929
  )
926
930
  client.agents.modify(
@@ -1024,6 +1028,7 @@ class AgentsClient:
1024
1028
  from letta_client import Letta
1025
1029
 
1026
1030
  client = Letta(
1031
+ project="YOUR_PROJECT",
1027
1032
  token="YOUR_TOKEN",
1028
1033
  )
1029
1034
  client.agents.summarize_agent_conversation(
@@ -1109,6 +1114,7 @@ class AgentsClient:
1109
1114
  from letta_client import Letta
1110
1115
 
1111
1116
  client = Letta(
1117
+ project="YOUR_PROJECT",
1112
1118
  token="YOUR_TOKEN",
1113
1119
  )
1114
1120
  client.agents.search()
@@ -1250,6 +1256,7 @@ class AsyncAgentsClient:
1250
1256
  from letta_client import AsyncLetta
1251
1257
 
1252
1258
  client = AsyncLetta(
1259
+ project="YOUR_PROJECT",
1253
1260
  token="YOUR_TOKEN",
1254
1261
  )
1255
1262
 
@@ -1309,7 +1316,6 @@ class AsyncAgentsClient:
1309
1316
  async def create(
1310
1317
  self,
1311
1318
  *,
1312
- project: typing.Optional[str] = None,
1313
1319
  name: typing.Optional[str] = OMIT,
1314
1320
  memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
1315
1321
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
@@ -1338,7 +1344,7 @@ class AsyncAgentsClient:
1338
1344
  enable_reasoner: typing.Optional[bool] = OMIT,
1339
1345
  from_template: typing.Optional[str] = OMIT,
1340
1346
  template: typing.Optional[bool] = OMIT,
1341
- create_agent_request_project: typing.Optional[str] = OMIT,
1347
+ project: typing.Optional[str] = OMIT,
1342
1348
  tool_exec_environment_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
1343
1349
  memory_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
1344
1350
  project_id: typing.Optional[str] = OMIT,
@@ -1356,8 +1362,6 @@ class AsyncAgentsClient:
1356
1362
 
1357
1363
  Parameters
1358
1364
  ----------
1359
- project : typing.Optional[str]
1360
-
1361
1365
  name : typing.Optional[str]
1362
1366
  The name of the agent.
1363
1367
 
@@ -1442,7 +1446,7 @@ class AsyncAgentsClient:
1442
1446
  template : typing.Optional[bool]
1443
1447
  Whether the agent is a template
1444
1448
 
1445
- create_agent_request_project : typing.Optional[str]
1449
+ project : typing.Optional[str]
1446
1450
  Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.
1447
1451
 
1448
1452
  tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
@@ -1490,6 +1494,7 @@ class AsyncAgentsClient:
1490
1494
  from letta_client import AsyncLetta
1491
1495
 
1492
1496
  client = AsyncLetta(
1497
+ project="YOUR_PROJECT",
1493
1498
  token="YOUR_TOKEN",
1494
1499
  )
1495
1500
 
@@ -1542,7 +1547,7 @@ class AsyncAgentsClient:
1542
1547
  "enable_reasoner": enable_reasoner,
1543
1548
  "from_template": from_template,
1544
1549
  "template": template,
1545
- "project": create_agent_request_project,
1550
+ "project": project,
1546
1551
  "tool_exec_environment_variables": tool_exec_environment_variables,
1547
1552
  "memory_variables": memory_variables,
1548
1553
  "project_id": project_id,
@@ -1558,7 +1563,6 @@ class AsyncAgentsClient:
1558
1563
  },
1559
1564
  headers={
1560
1565
  "content-type": "application/json",
1561
- "X-Project": str(project) if project is not None else None,
1562
1566
  },
1563
1567
  request_options=request_options,
1564
1568
  omit=OMIT,
@@ -1608,6 +1612,7 @@ class AsyncAgentsClient:
1608
1612
  from letta_client import AsyncLetta
1609
1613
 
1610
1614
  client = AsyncLetta(
1615
+ project="YOUR_PROJECT",
1611
1616
  token="YOUR_TOKEN",
1612
1617
  )
1613
1618
 
@@ -1670,6 +1675,7 @@ class AsyncAgentsClient:
1670
1675
  from letta_client import AsyncLetta
1671
1676
 
1672
1677
  client = AsyncLetta(
1678
+ project="YOUR_PROJECT",
1673
1679
  token="YOUR_TOKEN",
1674
1680
  )
1675
1681
 
@@ -1756,6 +1762,7 @@ class AsyncAgentsClient:
1756
1762
  from letta_client import AsyncLetta
1757
1763
 
1758
1764
  client = AsyncLetta(
1765
+ project="YOUR_PROJECT",
1759
1766
  token="YOUR_TOKEN",
1760
1767
  )
1761
1768
 
@@ -1838,6 +1845,7 @@ class AsyncAgentsClient:
1838
1845
  from letta_client import AsyncLetta
1839
1846
 
1840
1847
  client = AsyncLetta(
1848
+ project="YOUR_PROJECT",
1841
1849
  token="YOUR_TOKEN",
1842
1850
  )
1843
1851
 
@@ -1907,6 +1915,7 @@ class AsyncAgentsClient:
1907
1915
  from letta_client import AsyncLetta
1908
1916
 
1909
1917
  client = AsyncLetta(
1918
+ project="YOUR_PROJECT",
1910
1919
  token="YOUR_TOKEN",
1911
1920
  )
1912
1921
 
@@ -2076,6 +2085,7 @@ class AsyncAgentsClient:
2076
2085
  from letta_client import AsyncLetta
2077
2086
 
2078
2087
  client = AsyncLetta(
2088
+ project="YOUR_PROJECT",
2079
2089
  token="YOUR_TOKEN",
2080
2090
  )
2081
2091
 
@@ -2187,6 +2197,7 @@ class AsyncAgentsClient:
2187
2197
  from letta_client import AsyncLetta
2188
2198
 
2189
2199
  client = AsyncLetta(
2200
+ project="YOUR_PROJECT",
2190
2201
  token="YOUR_TOKEN",
2191
2202
  )
2192
2203
 
@@ -2280,6 +2291,7 @@ class AsyncAgentsClient:
2280
2291
  from letta_client import AsyncLetta
2281
2292
 
2282
2293
  client = AsyncLetta(
2294
+ project="YOUR_PROJECT",
2283
2295
  token="YOUR_TOKEN",
2284
2296
  )
2285
2297
 
@@ -40,6 +40,7 @@ class ContextClient:
40
40
  from letta_client import Letta
41
41
 
42
42
  client = Letta(
43
+ project="YOUR_PROJECT",
43
44
  token="YOUR_TOKEN",
44
45
  )
45
46
  client.agents.context.retrieve(
@@ -105,6 +106,7 @@ class AsyncContextClient:
105
106
  from letta_client import AsyncLetta
106
107
 
107
108
  client = AsyncLetta(
109
+ project="YOUR_PROJECT",
108
110
  token="YOUR_TOKEN",
109
111
  )
110
112
 
@@ -39,6 +39,7 @@ class CoreMemoryClient:
39
39
  from letta_client import Letta
40
40
 
41
41
  client = Letta(
42
+ project="YOUR_PROJECT",
42
43
  token="YOUR_TOKEN",
43
44
  )
44
45
  client.agents.core_memory.retrieve(
@@ -103,6 +104,7 @@ class AsyncCoreMemoryClient:
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
 
@@ -47,6 +47,7 @@ class GroupsClient:
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.agents.groups.list(
@@ -122,6 +123,7 @@ class AsyncGroupsClient:
122
123
  from letta_client import AsyncLetta
123
124
 
124
125
  client = AsyncLetta(
126
+ project="YOUR_PROJECT",
125
127
  token="YOUR_TOKEN",
126
128
  )
127
129
 
@@ -41,6 +41,7 @@ class MemoryVariablesClient:
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.agents.memory_variables.list(
@@ -108,6 +109,7 @@ class AsyncMemoryVariablesClient:
108
109
  from letta_client import AsyncLetta
109
110
 
110
111
  client = AsyncLetta(
112
+ project="YOUR_PROJECT",
111
113
  token="YOUR_TOKEN",
112
114
  )
113
115
 
@@ -85,6 +85,7 @@ class MessagesClient:
85
85
  from letta_client import Letta
86
86
 
87
87
  client = Letta(
88
+ project="YOUR_PROJECT",
88
89
  token="YOUR_TOKEN",
89
90
  )
90
91
  client.agents.messages.list(
@@ -180,6 +181,7 @@ class MessagesClient:
180
181
  from letta_client import Letta, MessageCreate, TextContent
181
182
 
182
183
  client = Letta(
184
+ project="YOUR_PROJECT",
183
185
  token="YOUR_TOKEN",
184
186
  )
185
187
  client.agents.messages.create(
@@ -268,6 +270,7 @@ class MessagesClient:
268
270
  from letta_client import Letta, UpdateSystemMessage
269
271
 
270
272
  client = Letta(
273
+ project="YOUR_PROJECT",
271
274
  token="YOUR_TOKEN",
272
275
  )
273
276
  client.agents.messages.modify(
@@ -367,6 +370,7 @@ class MessagesClient:
367
370
  from letta_client import Letta, MessageCreate, TextContent
368
371
 
369
372
  client = Letta(
373
+ project="YOUR_PROJECT",
370
374
  token="YOUR_TOKEN",
371
375
  )
372
376
  response = client.agents.messages.create_stream(
@@ -488,6 +492,7 @@ class MessagesClient:
488
492
  from letta_client import Letta, MessageCreate, TextContent
489
493
 
490
494
  client = Letta(
495
+ project="YOUR_PROJECT",
491
496
  token="YOUR_TOKEN",
492
497
  )
493
498
  client.agents.messages.create_async(
@@ -578,6 +583,7 @@ class MessagesClient:
578
583
  from letta_client import Letta
579
584
 
580
585
  client = Letta(
586
+ project="YOUR_PROJECT",
581
587
  token="YOUR_TOKEN",
582
588
  )
583
589
  client.agents.messages.reset(
@@ -677,6 +683,7 @@ class AsyncMessagesClient:
677
683
  from letta_client import AsyncLetta
678
684
 
679
685
  client = AsyncLetta(
686
+ project="YOUR_PROJECT",
680
687
  token="YOUR_TOKEN",
681
688
  )
682
689
 
@@ -780,6 +787,7 @@ class AsyncMessagesClient:
780
787
  from letta_client import AsyncLetta, MessageCreate, TextContent
781
788
 
782
789
  client = AsyncLetta(
790
+ project="YOUR_PROJECT",
783
791
  token="YOUR_TOKEN",
784
792
  )
785
793
 
@@ -876,6 +884,7 @@ class AsyncMessagesClient:
876
884
  from letta_client import AsyncLetta, UpdateSystemMessage
877
885
 
878
886
  client = AsyncLetta(
887
+ project="YOUR_PROJECT",
879
888
  token="YOUR_TOKEN",
880
889
  )
881
890
 
@@ -983,6 +992,7 @@ class AsyncMessagesClient:
983
992
  from letta_client import AsyncLetta, MessageCreate, TextContent
984
993
 
985
994
  client = AsyncLetta(
995
+ project="YOUR_PROJECT",
986
996
  token="YOUR_TOKEN",
987
997
  )
988
998
 
@@ -1112,6 +1122,7 @@ class AsyncMessagesClient:
1112
1122
  from letta_client import AsyncLetta, MessageCreate, TextContent
1113
1123
 
1114
1124
  client = AsyncLetta(
1125
+ project="YOUR_PROJECT",
1115
1126
  token="YOUR_TOKEN",
1116
1127
  )
1117
1128
 
@@ -1210,6 +1221,7 @@ class AsyncMessagesClient:
1210
1221
  from letta_client import AsyncLetta
1211
1222
 
1212
1223
  client = AsyncLetta(
1224
+ project="YOUR_PROJECT",
1213
1225
  token="YOUR_TOKEN",
1214
1226
  )
1215
1227
 
@@ -69,6 +69,7 @@ class PassagesClient:
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.agents.passages.list(
@@ -137,6 +138,7 @@ class PassagesClient:
137
138
  from letta_client import Letta
138
139
 
139
140
  client = Letta(
141
+ project="YOUR_PROJECT",
140
142
  token="YOUR_TOKEN",
141
143
  )
142
144
  client.agents.passages.create(
@@ -205,6 +207,7 @@ class PassagesClient:
205
207
  from letta_client import Letta
206
208
 
207
209
  client = Letta(
210
+ project="YOUR_PROJECT",
208
211
  token="YOUR_TOKEN",
209
212
  )
210
213
  client.agents.passages.delete(
@@ -326,6 +329,7 @@ class PassagesClient:
326
329
  from letta_client import Letta
327
330
 
328
331
  client = Letta(
332
+ project="YOUR_PROJECT",
329
333
  token="YOUR_TOKEN",
330
334
  )
331
335
  client.agents.passages.modify(
@@ -438,6 +442,7 @@ class AsyncPassagesClient:
438
442
  from letta_client import AsyncLetta
439
443
 
440
444
  client = AsyncLetta(
445
+ project="YOUR_PROJECT",
441
446
  token="YOUR_TOKEN",
442
447
  )
443
448
 
@@ -514,6 +519,7 @@ class AsyncPassagesClient:
514
519
  from letta_client import AsyncLetta
515
520
 
516
521
  client = AsyncLetta(
522
+ project="YOUR_PROJECT",
517
523
  token="YOUR_TOKEN",
518
524
  )
519
525
 
@@ -590,6 +596,7 @@ class AsyncPassagesClient:
590
596
  from letta_client import AsyncLetta
591
597
 
592
598
  client = AsyncLetta(
599
+ project="YOUR_PROJECT",
593
600
  token="YOUR_TOKEN",
594
601
  )
595
602
 
@@ -719,6 +726,7 @@ class AsyncPassagesClient:
719
726
  from letta_client import AsyncLetta
720
727
 
721
728
  client = AsyncLetta(
729
+ project="YOUR_PROJECT",
722
730
  token="YOUR_TOKEN",
723
731
  )
724
732
 
@@ -43,6 +43,7 @@ class SourcesClient:
43
43
  from letta_client import Letta
44
44
 
45
45
  client = Letta(
46
+ project="YOUR_PROJECT",
46
47
  token="YOUR_TOKEN",
47
48
  )
48
49
  client.agents.sources.attach(
@@ -104,6 +105,7 @@ class SourcesClient:
104
105
  from letta_client import Letta
105
106
 
106
107
  client = Letta(
108
+ project="YOUR_PROJECT",
107
109
  token="YOUR_TOKEN",
108
110
  )
109
111
  client.agents.sources.detach(
@@ -161,6 +163,7 @@ class SourcesClient:
161
163
  from letta_client import Letta
162
164
 
163
165
  client = Letta(
166
+ project="YOUR_PROJECT",
164
167
  token="YOUR_TOKEN",
165
168
  )
166
169
  client.agents.sources.list(
@@ -228,6 +231,7 @@ class AsyncSourcesClient:
228
231
  from letta_client import AsyncLetta
229
232
 
230
233
  client = AsyncLetta(
234
+ project="YOUR_PROJECT",
231
235
  token="YOUR_TOKEN",
232
236
  )
233
237
 
@@ -297,6 +301,7 @@ class AsyncSourcesClient:
297
301
  from letta_client import AsyncLetta
298
302
 
299
303
  client = AsyncLetta(
304
+ project="YOUR_PROJECT",
300
305
  token="YOUR_TOKEN",
301
306
  )
302
307
 
@@ -364,6 +369,7 @@ class AsyncSourcesClient:
364
369
  from letta_client import AsyncLetta
365
370
 
366
371
  client = AsyncLetta(
372
+ project="YOUR_PROJECT",
367
373
  token="YOUR_TOKEN",
368
374
  )
369
375
 
@@ -61,6 +61,7 @@ class TemplatesClient:
61
61
  from letta_client import Letta
62
62
 
63
63
  client = Letta(
64
+ project="YOUR_PROJECT",
64
65
  token="YOUR_TOKEN",
65
66
  )
66
67
  client.agents.templates.create_version(
@@ -149,6 +150,7 @@ class TemplatesClient:
149
150
  from letta_client import Letta
150
151
 
151
152
  client = Letta(
153
+ project="YOUR_PROJECT",
152
154
  token="YOUR_TOKEN",
153
155
  )
154
156
  client.agents.templates.migrate(
@@ -246,6 +248,7 @@ class TemplatesClient:
246
248
  from letta_client import Letta
247
249
 
248
250
  client = Letta(
251
+ project="YOUR_PROJECT",
249
252
  token="YOUR_TOKEN",
250
253
  )
251
254
  client.agents.templates.create(
@@ -332,6 +335,7 @@ class AsyncTemplatesClient:
332
335
  from letta_client import AsyncLetta
333
336
 
334
337
  client = AsyncLetta(
338
+ project="YOUR_PROJECT",
335
339
  token="YOUR_TOKEN",
336
340
  )
337
341
 
@@ -428,6 +432,7 @@ class AsyncTemplatesClient:
428
432
  from letta_client import AsyncLetta
429
433
 
430
434
  client = AsyncLetta(
435
+ project="YOUR_PROJECT",
431
436
  token="YOUR_TOKEN",
432
437
  )
433
438
 
@@ -533,6 +538,7 @@ class AsyncTemplatesClient:
533
538
  from letta_client import AsyncLetta
534
539
 
535
540
  client = AsyncLetta(
541
+ project="YOUR_PROJECT",
536
542
  token="YOUR_TOKEN",
537
543
  )
538
544
 
@@ -39,6 +39,7 @@ class ToolsClient:
39
39
  from letta_client import Letta
40
40
 
41
41
  client = Letta(
42
+ project="YOUR_PROJECT",
42
43
  token="YOUR_TOKEN",
43
44
  )
44
45
  client.agents.tools.list(
@@ -99,6 +100,7 @@ class ToolsClient:
99
100
  from letta_client import Letta
100
101
 
101
102
  client = Letta(
103
+ project="YOUR_PROJECT",
102
104
  token="YOUR_TOKEN",
103
105
  )
104
106
  client.agents.tools.attach(
@@ -160,6 +162,7 @@ class ToolsClient:
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.agents.tools.detach(
@@ -226,6 +229,7 @@ class AsyncToolsClient:
226
229
  from letta_client import AsyncLetta
227
230
 
228
231
  client = AsyncLetta(
232
+ project="YOUR_PROJECT",
229
233
  token="YOUR_TOKEN",
230
234
  )
231
235
 
@@ -294,6 +298,7 @@ class AsyncToolsClient:
294
298
  from letta_client import AsyncLetta
295
299
 
296
300
  client = AsyncLetta(
301
+ project="YOUR_PROJECT",
297
302
  token="YOUR_TOKEN",
298
303
  )
299
304
 
@@ -363,6 +368,7 @@ class AsyncToolsClient:
363
368
  from letta_client import AsyncLetta
364
369
 
365
370
  client = AsyncLetta(
371
+ project="YOUR_PROJECT",
366
372
  token="YOUR_TOKEN",
367
373
  )
368
374