letta-client 0.1.181__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 +6 -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.181.dist-info → letta_client-0.1.182.dist-info}/METADATA +4 -1
  45. {letta_client-0.1.181.dist-info → letta_client-0.1.182.dist-info}/RECORD +46 -46
  46. {letta_client-0.1.181.dist-info → letta_client-0.1.182.dist-info}/WHEEL +0 -0
@@ -67,6 +67,7 @@ class LettaBase:
67
67
 
68
68
 
69
69
 
70
+ project : typing.Optional[str]
70
71
  token : typing.Optional[str]
71
72
  timeout : typing.Optional[float]
72
73
  The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
@@ -82,6 +83,7 @@ class LettaBase:
82
83
  from letta_client import Letta
83
84
 
84
85
  client = Letta(
86
+ project="YOUR_PROJECT",
85
87
  token="YOUR_TOKEN",
86
88
  )
87
89
  """
@@ -91,6 +93,7 @@ class LettaBase:
91
93
  *,
92
94
  base_url: typing.Optional[str] = None,
93
95
  environment: LettaEnvironment = LettaEnvironment.LETTA_CLOUD,
96
+ project: typing.Optional[str] = None,
94
97
  token: typing.Optional[str] = None,
95
98
  timeout: typing.Optional[float] = None,
96
99
  follow_redirects: typing.Optional[bool] = True,
@@ -99,6 +102,7 @@ class LettaBase:
99
102
  _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
100
103
  self._client_wrapper = SyncClientWrapper(
101
104
  base_url=_get_base_url(base_url=base_url, environment=environment),
105
+ project=project,
102
106
  token=token,
103
107
  httpx_client=httpx_client
104
108
  if httpx_client is not None
@@ -148,6 +152,7 @@ class AsyncLettaBase:
148
152
 
149
153
 
150
154
 
155
+ project : typing.Optional[str]
151
156
  token : typing.Optional[str]
152
157
  timeout : typing.Optional[float]
153
158
  The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
@@ -163,6 +168,7 @@ class AsyncLettaBase:
163
168
  from letta_client import AsyncLetta
164
169
 
165
170
  client = AsyncLetta(
171
+ project="YOUR_PROJECT",
166
172
  token="YOUR_TOKEN",
167
173
  )
168
174
  """
@@ -172,6 +178,7 @@ class AsyncLettaBase:
172
178
  *,
173
179
  base_url: typing.Optional[str] = None,
174
180
  environment: LettaEnvironment = LettaEnvironment.LETTA_CLOUD,
181
+ project: typing.Optional[str] = None,
175
182
  token: typing.Optional[str] = None,
176
183
  timeout: typing.Optional[float] = None,
177
184
  follow_redirects: typing.Optional[bool] = True,
@@ -180,6 +187,7 @@ class AsyncLettaBase:
180
187
  _defaulted_timeout = timeout if timeout is not None else 60 if httpx_client is None else None
181
188
  self._client_wrapper = AsyncClientWrapper(
182
189
  base_url=_get_base_url(base_url=base_url, environment=environment),
190
+ project=project,
183
191
  token=token,
184
192
  httpx_client=httpx_client
185
193
  if httpx_client is not None
@@ -41,6 +41,7 @@ class BatchesClient:
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.batches.list()
@@ -106,6 +107,7 @@ class BatchesClient:
106
107
  from letta_client import Letta, LettaBatchRequest, MessageCreate, TextContent
107
108
 
108
109
  client = Letta(
110
+ project="YOUR_PROJECT",
109
111
  token="YOUR_TOKEN",
110
112
  )
111
113
  client.batches.create(
@@ -186,6 +188,7 @@ class BatchesClient:
186
188
  from letta_client import Letta
187
189
 
188
190
  client = Letta(
191
+ project="YOUR_PROJECT",
189
192
  token="YOUR_TOKEN",
190
193
  )
191
194
  client.batches.retrieve(
@@ -244,6 +247,7 @@ class BatchesClient:
244
247
  from letta_client import Letta
245
248
 
246
249
  client = Letta(
250
+ project="YOUR_PROJECT",
247
251
  token="YOUR_TOKEN",
248
252
  )
249
253
  client.batches.cancel(
@@ -305,6 +309,7 @@ class AsyncBatchesClient:
305
309
  from letta_client import AsyncLetta
306
310
 
307
311
  client = AsyncLetta(
312
+ project="YOUR_PROJECT",
308
313
  token="YOUR_TOKEN",
309
314
  )
310
315
 
@@ -383,6 +388,7 @@ class AsyncBatchesClient:
383
388
  )
384
389
 
385
390
  client = AsyncLetta(
391
+ project="YOUR_PROJECT",
386
392
  token="YOUR_TOKEN",
387
393
  )
388
394
 
@@ -471,6 +477,7 @@ class AsyncBatchesClient:
471
477
  from letta_client import AsyncLetta
472
478
 
473
479
  client = AsyncLetta(
480
+ project="YOUR_PROJECT",
474
481
  token="YOUR_TOKEN",
475
482
  )
476
483
 
@@ -537,6 +544,7 @@ class AsyncBatchesClient:
537
544
  from letta_client import AsyncLetta
538
545
 
539
546
  client = AsyncLetta(
547
+ project="YOUR_PROJECT",
540
548
  token="YOUR_TOKEN",
541
549
  )
542
550
 
@@ -41,6 +41,7 @@ class AgentsClient:
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.blocks.agents.list(
@@ -107,6 +108,7 @@ class AsyncAgentsClient:
107
108
  from letta_client import AsyncLetta
108
109
 
109
110
  client = AsyncLetta(
111
+ project="YOUR_PROJECT",
110
112
  token="YOUR_TOKEN",
111
113
  )
112
114
 
@@ -68,6 +68,7 @@ class BlocksClient:
68
68
  from letta_client import Letta
69
69
 
70
70
  client = Letta(
71
+ project="YOUR_PROJECT",
71
72
  token="YOUR_TOKEN",
72
73
  )
73
74
  client.blocks.list()
@@ -165,6 +166,7 @@ class BlocksClient:
165
166
  from letta_client import Letta
166
167
 
167
168
  client = Letta(
169
+ project="YOUR_PROJECT",
168
170
  token="YOUR_TOKEN",
169
171
  )
170
172
  client.blocks.create(
@@ -232,6 +234,7 @@ class BlocksClient:
232
234
  from letta_client import Letta
233
235
 
234
236
  client = Letta(
237
+ project="YOUR_PROJECT",
235
238
  token="YOUR_TOKEN",
236
239
  )
237
240
  client.blocks.count()
@@ -284,6 +287,7 @@ class BlocksClient:
284
287
  from letta_client import Letta
285
288
 
286
289
  client = Letta(
290
+ project="YOUR_PROJECT",
287
291
  token="YOUR_TOKEN",
288
292
  )
289
293
  client.blocks.retrieve(
@@ -338,6 +342,7 @@ class BlocksClient:
338
342
  from letta_client import Letta
339
343
 
340
344
  client = Letta(
345
+ project="YOUR_PROJECT",
341
346
  token="YOUR_TOKEN",
342
347
  )
343
348
  client.blocks.delete(
@@ -433,6 +438,7 @@ class BlocksClient:
433
438
  from letta_client import Letta
434
439
 
435
440
  client = Letta(
441
+ project="YOUR_PROJECT",
436
442
  token="YOUR_TOKEN",
437
443
  )
438
444
  client.blocks.modify(
@@ -533,6 +539,7 @@ class AsyncBlocksClient:
533
539
  from letta_client import AsyncLetta
534
540
 
535
541
  client = AsyncLetta(
542
+ project="YOUR_PROJECT",
536
543
  token="YOUR_TOKEN",
537
544
  )
538
545
 
@@ -638,6 +645,7 @@ class AsyncBlocksClient:
638
645
  from letta_client import AsyncLetta
639
646
 
640
647
  client = AsyncLetta(
648
+ project="YOUR_PROJECT",
641
649
  token="YOUR_TOKEN",
642
650
  )
643
651
 
@@ -713,6 +721,7 @@ class AsyncBlocksClient:
713
721
  from letta_client import AsyncLetta
714
722
 
715
723
  client = AsyncLetta(
724
+ project="YOUR_PROJECT",
716
725
  token="YOUR_TOKEN",
717
726
  )
718
727
 
@@ -773,6 +782,7 @@ class AsyncBlocksClient:
773
782
  from letta_client import AsyncLetta
774
783
 
775
784
  client = AsyncLetta(
785
+ project="YOUR_PROJECT",
776
786
  token="YOUR_TOKEN",
777
787
  )
778
788
 
@@ -835,6 +845,7 @@ class AsyncBlocksClient:
835
845
  from letta_client import AsyncLetta
836
846
 
837
847
  client = AsyncLetta(
848
+ project="YOUR_PROJECT",
838
849
  token="YOUR_TOKEN",
839
850
  )
840
851
 
@@ -938,6 +949,7 @@ class AsyncBlocksClient:
938
949
  from letta_client import AsyncLetta
939
950
 
940
951
  client = AsyncLetta(
952
+ project="YOUR_PROJECT",
941
953
  token="YOUR_TOKEN",
942
954
  )
943
955
 
@@ -58,6 +58,7 @@ class ClientSideAccessTokensClient:
58
58
  )
59
59
 
60
60
  client = Letta(
61
+ project="YOUR_PROJECT",
61
62
  token="YOUR_TOKEN",
62
63
  )
63
64
  client.client_side_access_tokens.create(
@@ -142,6 +143,7 @@ class ClientSideAccessTokensClient:
142
143
  from letta_client import Letta
143
144
 
144
145
  client = Letta(
146
+ project="YOUR_PROJECT",
145
147
  token="YOUR_TOKEN",
146
148
  )
147
149
  client.client_side_access_tokens.delete(
@@ -224,6 +226,7 @@ class AsyncClientSideAccessTokensClient:
224
226
  )
225
227
 
226
228
  client = AsyncLetta(
229
+ project="YOUR_PROJECT",
227
230
  token="YOUR_TOKEN",
228
231
  )
229
232
 
@@ -316,6 +319,7 @@ class AsyncClientSideAccessTokensClient:
316
319
  from letta_client import AsyncLetta
317
320
 
318
321
  client = AsyncLetta(
322
+ project="YOUR_PROJECT",
319
323
  token="YOUR_TOKEN",
320
324
  )
321
325
 
@@ -7,7 +7,15 @@ from .http_client import AsyncHttpClient
7
7
 
8
8
 
9
9
  class BaseClientWrapper:
10
- def __init__(self, *, token: typing.Optional[str] = None, base_url: str, timeout: typing.Optional[float] = None):
10
+ def __init__(
11
+ self,
12
+ *,
13
+ project: typing.Optional[str] = None,
14
+ token: typing.Optional[str] = None,
15
+ base_url: str,
16
+ timeout: typing.Optional[float] = None,
17
+ ):
18
+ self._project = project
11
19
  self.token = token
12
20
  self._base_url = base_url
13
21
  self._timeout = timeout
@@ -16,8 +24,10 @@ class BaseClientWrapper:
16
24
  headers: typing.Dict[str, str] = {
17
25
  "X-Fern-Language": "Python",
18
26
  "X-Fern-SDK-Name": "letta-client",
19
- "X-Fern-SDK-Version": "0.1.181",
27
+ "X-Fern-SDK-Version": "0.1.182",
20
28
  }
29
+ if self._project is not None:
30
+ headers["X-Project"] = self._project
21
31
  if self.token is not None:
22
32
  headers["Authorization"] = f"Bearer {self.token}"
23
33
  return headers
@@ -33,12 +43,13 @@ class SyncClientWrapper(BaseClientWrapper):
33
43
  def __init__(
34
44
  self,
35
45
  *,
46
+ project: typing.Optional[str] = None,
36
47
  token: typing.Optional[str] = None,
37
48
  base_url: str,
38
49
  timeout: typing.Optional[float] = None,
39
50
  httpx_client: httpx.Client,
40
51
  ):
41
- super().__init__(token=token, base_url=base_url, timeout=timeout)
52
+ super().__init__(project=project, token=token, base_url=base_url, timeout=timeout)
42
53
  self.httpx_client = HttpClient(
43
54
  httpx_client=httpx_client,
44
55
  base_headers=self.get_headers,
@@ -51,12 +62,13 @@ class AsyncClientWrapper(BaseClientWrapper):
51
62
  def __init__(
52
63
  self,
53
64
  *,
65
+ project: typing.Optional[str] = None,
54
66
  token: typing.Optional[str] = None,
55
67
  base_url: str,
56
68
  timeout: typing.Optional[float] = None,
57
69
  httpx_client: httpx.AsyncClient,
58
70
  ):
59
- super().__init__(token=token, base_url=base_url, timeout=timeout)
71
+ super().__init__(project=project, token=token, base_url=base_url, timeout=timeout)
60
72
  self.httpx_client = AsyncHttpClient(
61
73
  httpx_client=httpx_client,
62
74
  base_headers=self.get_headers,
@@ -35,6 +35,7 @@ class EmbeddingModelsClient:
35
35
  from letta_client import Letta
36
36
 
37
37
  client = Letta(
38
+ project="YOUR_PROJECT",
38
39
  token="YOUR_TOKEN",
39
40
  )
40
41
  client.embedding_models.list()
@@ -94,6 +95,7 @@ class AsyncEmbeddingModelsClient:
94
95
  from letta_client import AsyncLetta
95
96
 
96
97
  client = AsyncLetta(
98
+ project="YOUR_PROJECT",
97
99
  token="YOUR_TOKEN",
98
100
  )
99
101
 
@@ -70,6 +70,7 @@ class GroupsClient:
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.groups.list()
@@ -115,7 +116,6 @@ class GroupsClient:
115
116
  *,
116
117
  agent_ids: typing.Sequence[str],
117
118
  description: str,
118
- project: typing.Optional[str] = None,
119
119
  manager_config: typing.Optional[GroupCreateManagerConfig] = OMIT,
120
120
  shared_block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
121
121
  request_options: typing.Optional[RequestOptions] = None,
@@ -131,8 +131,6 @@ class GroupsClient:
131
131
  description : str
132
132
 
133
133
 
134
- project : typing.Optional[str]
135
-
136
134
  manager_config : typing.Optional[GroupCreateManagerConfig]
137
135
 
138
136
 
@@ -152,6 +150,7 @@ class GroupsClient:
152
150
  from letta_client import Letta
153
151
 
154
152
  client = Letta(
153
+ project="YOUR_PROJECT",
155
154
  token="YOUR_TOKEN",
156
155
  )
157
156
  client.groups.create(
@@ -172,7 +171,6 @@ class GroupsClient:
172
171
  },
173
172
  headers={
174
173
  "content-type": "application/json",
175
- "X-Project": str(project) if project is not None else None,
176
174
  },
177
175
  request_options=request_options,
178
176
  omit=OMIT,
@@ -220,6 +218,7 @@ class GroupsClient:
220
218
  from letta_client import Letta
221
219
 
222
220
  client = Letta(
221
+ project="YOUR_PROJECT",
223
222
  token="YOUR_TOKEN",
224
223
  )
225
224
  client.groups.count()
@@ -274,6 +273,7 @@ class GroupsClient:
274
273
  from letta_client import Letta
275
274
 
276
275
  client = Letta(
276
+ project="YOUR_PROJECT",
277
277
  token="YOUR_TOKEN",
278
278
  )
279
279
  client.groups.retrieve(
@@ -332,6 +332,7 @@ class GroupsClient:
332
332
  from letta_client import Letta
333
333
 
334
334
  client = Letta(
335
+ project="YOUR_PROJECT",
335
336
  token="YOUR_TOKEN",
336
337
  )
337
338
  client.groups.delete(
@@ -371,7 +372,6 @@ class GroupsClient:
371
372
  self,
372
373
  group_id: str,
373
374
  *,
374
- project: typing.Optional[str] = None,
375
375
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
376
376
  description: typing.Optional[str] = OMIT,
377
377
  manager_config: typing.Optional[GroupUpdateManagerConfig] = OMIT,
@@ -385,8 +385,6 @@ class GroupsClient:
385
385
  ----------
386
386
  group_id : str
387
387
 
388
- project : typing.Optional[str]
389
-
390
388
  agent_ids : typing.Optional[typing.Sequence[str]]
391
389
 
392
390
 
@@ -412,6 +410,7 @@ class GroupsClient:
412
410
  from letta_client import Letta
413
411
 
414
412
  client = Letta(
413
+ project="YOUR_PROJECT",
415
414
  token="YOUR_TOKEN",
416
415
  )
417
416
  client.groups.modify(
@@ -431,7 +430,6 @@ class GroupsClient:
431
430
  },
432
431
  headers={
433
432
  "content-type": "application/json",
434
- "X-Project": str(project) if project is not None else None,
435
433
  },
436
434
  request_options=request_options,
437
435
  omit=OMIT,
@@ -511,6 +509,7 @@ class AsyncGroupsClient:
511
509
  from letta_client import AsyncLetta
512
510
 
513
511
  client = AsyncLetta(
512
+ project="YOUR_PROJECT",
514
513
  token="YOUR_TOKEN",
515
514
  )
516
515
 
@@ -562,7 +561,6 @@ class AsyncGroupsClient:
562
561
  *,
563
562
  agent_ids: typing.Sequence[str],
564
563
  description: str,
565
- project: typing.Optional[str] = None,
566
564
  manager_config: typing.Optional[GroupCreateManagerConfig] = OMIT,
567
565
  shared_block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
568
566
  request_options: typing.Optional[RequestOptions] = None,
@@ -578,8 +576,6 @@ class AsyncGroupsClient:
578
576
  description : str
579
577
 
580
578
 
581
- project : typing.Optional[str]
582
-
583
579
  manager_config : typing.Optional[GroupCreateManagerConfig]
584
580
 
585
581
 
@@ -601,6 +597,7 @@ class AsyncGroupsClient:
601
597
  from letta_client import AsyncLetta
602
598
 
603
599
  client = AsyncLetta(
600
+ project="YOUR_PROJECT",
604
601
  token="YOUR_TOKEN",
605
602
  )
606
603
 
@@ -627,7 +624,6 @@ class AsyncGroupsClient:
627
624
  },
628
625
  headers={
629
626
  "content-type": "application/json",
630
- "X-Project": str(project) if project is not None else None,
631
627
  },
632
628
  request_options=request_options,
633
629
  omit=OMIT,
@@ -677,6 +673,7 @@ class AsyncGroupsClient:
677
673
  from letta_client import AsyncLetta
678
674
 
679
675
  client = AsyncLetta(
676
+ project="YOUR_PROJECT",
680
677
  token="YOUR_TOKEN",
681
678
  )
682
679
 
@@ -739,6 +736,7 @@ class AsyncGroupsClient:
739
736
  from letta_client import AsyncLetta
740
737
 
741
738
  client = AsyncLetta(
739
+ project="YOUR_PROJECT",
742
740
  token="YOUR_TOKEN",
743
741
  )
744
742
 
@@ -805,6 +803,7 @@ class AsyncGroupsClient:
805
803
  from letta_client import AsyncLetta
806
804
 
807
805
  client = AsyncLetta(
806
+ project="YOUR_PROJECT",
808
807
  token="YOUR_TOKEN",
809
808
  )
810
809
 
@@ -850,7 +849,6 @@ class AsyncGroupsClient:
850
849
  self,
851
850
  group_id: str,
852
851
  *,
853
- project: typing.Optional[str] = None,
854
852
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
855
853
  description: typing.Optional[str] = OMIT,
856
854
  manager_config: typing.Optional[GroupUpdateManagerConfig] = OMIT,
@@ -864,8 +862,6 @@ class AsyncGroupsClient:
864
862
  ----------
865
863
  group_id : str
866
864
 
867
- project : typing.Optional[str]
868
-
869
865
  agent_ids : typing.Optional[typing.Sequence[str]]
870
866
 
871
867
 
@@ -893,6 +889,7 @@ class AsyncGroupsClient:
893
889
  from letta_client import AsyncLetta
894
890
 
895
891
  client = AsyncLetta(
892
+ project="YOUR_PROJECT",
896
893
  token="YOUR_TOKEN",
897
894
  )
898
895
 
@@ -918,7 +915,6 @@ class AsyncGroupsClient:
918
915
  },
919
916
  headers={
920
917
  "content-type": "application/json",
921
- "X-Project": str(project) if project is not None else None,
922
918
  },
923
919
  request_options=request_options,
924
920
  omit=OMIT,
@@ -79,6 +79,7 @@ class MessagesClient:
79
79
  from letta_client import Letta
80
80
 
81
81
  client = Letta(
82
+ project="YOUR_PROJECT",
82
83
  token="YOUR_TOKEN",
83
84
  )
84
85
  client.groups.messages.list(
@@ -173,6 +174,7 @@ class MessagesClient:
173
174
  from letta_client import Letta, MessageCreate, TextContent
174
175
 
175
176
  client = Letta(
177
+ project="YOUR_PROJECT",
176
178
  token="YOUR_TOKEN",
177
179
  )
178
180
  client.groups.messages.create(
@@ -285,6 +287,7 @@ class MessagesClient:
285
287
  from letta_client import Letta, MessageCreate, TextContent
286
288
 
287
289
  client = Letta(
290
+ project="YOUR_PROJECT",
288
291
  token="YOUR_TOKEN",
289
292
  )
290
293
  response = client.groups.messages.create_stream(
@@ -383,6 +386,7 @@ class MessagesClient:
383
386
  from letta_client import Letta, UpdateSystemMessage
384
387
 
385
388
  client = Letta(
389
+ project="YOUR_PROJECT",
386
390
  token="YOUR_TOKEN",
387
391
  )
388
392
  client.groups.messages.modify(
@@ -449,6 +453,7 @@ class MessagesClient:
449
453
  from letta_client import Letta
450
454
 
451
455
  client = Letta(
456
+ project="YOUR_PROJECT",
452
457
  token="YOUR_TOKEN",
453
458
  )
454
459
  client.groups.messages.reset(
@@ -541,6 +546,7 @@ class AsyncMessagesClient:
541
546
  from letta_client import AsyncLetta
542
547
 
543
548
  client = AsyncLetta(
549
+ project="YOUR_PROJECT",
544
550
  token="YOUR_TOKEN",
545
551
  )
546
552
 
@@ -643,6 +649,7 @@ class AsyncMessagesClient:
643
649
  from letta_client import AsyncLetta, MessageCreate, TextContent
644
650
 
645
651
  client = AsyncLetta(
652
+ project="YOUR_PROJECT",
646
653
  token="YOUR_TOKEN",
647
654
  )
648
655
 
@@ -763,6 +770,7 @@ class AsyncMessagesClient:
763
770
  from letta_client import AsyncLetta, MessageCreate, TextContent
764
771
 
765
772
  client = AsyncLetta(
773
+ project="YOUR_PROJECT",
766
774
  token="YOUR_TOKEN",
767
775
  )
768
776
 
@@ -869,6 +877,7 @@ class AsyncMessagesClient:
869
877
  from letta_client import AsyncLetta, UpdateSystemMessage
870
878
 
871
879
  client = AsyncLetta(
880
+ project="YOUR_PROJECT",
872
881
  token="YOUR_TOKEN",
873
882
  )
874
883
 
@@ -943,6 +952,7 @@ class AsyncMessagesClient:
943
952
  from letta_client import AsyncLetta
944
953
 
945
954
  client = AsyncLetta(
955
+ project="YOUR_PROJECT",
946
956
  token="YOUR_TOKEN",
947
957
  )
948
958
 
@@ -31,6 +31,7 @@ class HealthClient:
31
31
  from letta_client import Letta
32
32
 
33
33
  client = Letta(
34
+ project="YOUR_PROJECT",
34
35
  token="YOUR_TOKEN",
35
36
  )
36
37
  client.health.check()
@@ -78,6 +79,7 @@ class AsyncHealthClient:
78
79
  from letta_client import AsyncLetta
79
80
 
80
81
  client = AsyncLetta(
82
+ project="YOUR_PROJECT",
81
83
  token="YOUR_TOKEN",
82
84
  )
83
85