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
@@ -94,6 +94,7 @@ class StepsClient:
94
94
  from letta_client import Letta
95
95
 
96
96
  client = Letta(
97
+ project="YOUR_PROJECT",
97
98
  token="YOUR_TOKEN",
98
99
  )
99
100
  client.steps.list()
@@ -162,6 +163,7 @@ class StepsClient:
162
163
  from letta_client import Letta
163
164
 
164
165
  client = Letta(
166
+ project="YOUR_PROJECT",
165
167
  token="YOUR_TOKEN",
166
168
  )
167
169
  client.steps.retrieve(
@@ -226,6 +228,7 @@ class StepsClient:
226
228
  from letta_client import Letta
227
229
 
228
230
  client = Letta(
231
+ project="YOUR_PROJECT",
229
232
  token="YOUR_TOKEN",
230
233
  )
231
234
  client.steps.add_feedback(
@@ -344,6 +347,7 @@ class AsyncStepsClient:
344
347
  from letta_client import AsyncLetta
345
348
 
346
349
  client = AsyncLetta(
350
+ project="YOUR_PROJECT",
347
351
  token="YOUR_TOKEN",
348
352
  )
349
353
 
@@ -420,6 +424,7 @@ class AsyncStepsClient:
420
424
  from letta_client import AsyncLetta
421
425
 
422
426
  client = AsyncLetta(
427
+ project="YOUR_PROJECT",
423
428
  token="YOUR_TOKEN",
424
429
  )
425
430
 
@@ -492,6 +497,7 @@ class AsyncStepsClient:
492
497
  from letta_client import AsyncLetta
493
498
 
494
499
  client = AsyncLetta(
500
+ project="YOUR_PROJECT",
495
501
  token="YOUR_TOKEN",
496
502
  )
497
503
 
@@ -31,6 +31,7 @@ class FeedbackClient:
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.steps.feedback.add(
@@ -75,6 +76,7 @@ class AsyncFeedbackClient:
75
76
  from letta_client import AsyncLetta
76
77
 
77
78
  client = AsyncLetta(
79
+ project="YOUR_PROJECT",
78
80
  token="YOUR_TOKEN",
79
81
  )
80
82
 
@@ -47,6 +47,7 @@ class TagsClient:
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.tags.list()
@@ -124,6 +125,7 @@ class AsyncTagsClient:
124
125
  from letta_client import AsyncLetta
125
126
 
126
127
  client = AsyncLetta(
128
+ project="YOUR_PROJECT",
127
129
  token="YOUR_TOKEN",
128
130
  )
129
131
 
@@ -38,6 +38,7 @@ class TelemetryClient:
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.telemetry.retrieve_provider_trace(
@@ -101,6 +102,7 @@ class AsyncTelemetryClient:
101
102
  from letta_client import AsyncLetta
102
103
 
103
104
  client = AsyncLetta(
105
+ project="YOUR_PROJECT",
104
106
  token="YOUR_TOKEN",
105
107
  )
106
108
 
@@ -71,6 +71,7 @@ class AgentsClient:
71
71
  from letta_client import Letta
72
72
 
73
73
  client = Letta(
74
+ project="YOUR_PROJECT",
74
75
  token="YOUR_TOKEN",
75
76
  )
76
77
  client.templates.agents.create(
@@ -176,6 +177,7 @@ class AsyncAgentsClient:
176
177
  from letta_client import AsyncLetta
177
178
 
178
179
  client = AsyncLetta(
180
+ project="YOUR_PROJECT",
179
181
  token="YOUR_TOKEN",
180
182
  )
181
183
 
@@ -52,6 +52,7 @@ class TemplatesClient:
52
52
  from letta_client import Letta
53
53
 
54
54
  client = Letta(
55
+ project="YOUR_PROJECT",
55
56
  token="YOUR_TOKEN",
56
57
  )
57
58
  client.templates.list()
@@ -124,6 +125,7 @@ class AsyncTemplatesClient:
124
125
  from letta_client import AsyncLetta
125
126
 
126
127
  client = AsyncLetta(
128
+ project="YOUR_PROJECT",
127
129
  token="YOUR_TOKEN",
128
130
  )
129
131
 
@@ -54,6 +54,7 @@ class ToolsClient:
54
54
  from letta_client import Letta
55
55
 
56
56
  client = Letta(
57
+ project="YOUR_PROJECT",
57
58
  token="YOUR_TOKEN",
58
59
  )
59
60
  client.tools.retrieve(
@@ -112,6 +113,7 @@ class ToolsClient:
112
113
  from letta_client import Letta
113
114
 
114
115
  client = Letta(
116
+ project="YOUR_PROJECT",
115
117
  token="YOUR_TOKEN",
116
118
  )
117
119
  client.tools.delete(
@@ -205,6 +207,7 @@ class ToolsClient:
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.tools.modify(
@@ -283,6 +286,7 @@ class ToolsClient:
283
286
  from letta_client import Letta
284
287
 
285
288
  client = Letta(
289
+ project="YOUR_PROJECT",
286
290
  token="YOUR_TOKEN",
287
291
  )
288
292
  client.tools.count()
@@ -351,6 +355,7 @@ class ToolsClient:
351
355
  from letta_client import Letta
352
356
 
353
357
  client = Letta(
358
+ project="YOUR_PROJECT",
354
359
  token="YOUR_TOKEN",
355
360
  )
356
361
  client.tools.list()
@@ -444,6 +449,7 @@ class ToolsClient:
444
449
  from letta_client import Letta
445
450
 
446
451
  client = Letta(
452
+ project="YOUR_PROJECT",
447
453
  token="YOUR_TOKEN",
448
454
  )
449
455
  client.tools.create(
@@ -547,6 +553,7 @@ class ToolsClient:
547
553
  from letta_client import Letta
548
554
 
549
555
  client = Letta(
556
+ project="YOUR_PROJECT",
550
557
  token="YOUR_TOKEN",
551
558
  )
552
559
  client.tools.upsert(
@@ -614,6 +621,7 @@ class ToolsClient:
614
621
  from letta_client import Letta
615
622
 
616
623
  client = Letta(
624
+ project="YOUR_PROJECT",
617
625
  token="YOUR_TOKEN",
618
626
  )
619
627
  client.tools.upsert_base_tools()
@@ -702,6 +710,7 @@ class ToolsClient:
702
710
  from letta_client import Letta
703
711
 
704
712
  client = Letta(
713
+ project="YOUR_PROJECT",
705
714
  token="YOUR_TOKEN",
706
715
  )
707
716
  client.tools.run_tool_from_source(
@@ -777,6 +786,7 @@ class ToolsClient:
777
786
  from letta_client import Letta
778
787
 
779
788
  client = Letta(
789
+ project="YOUR_PROJECT",
780
790
  token="YOUR_TOKEN",
781
791
  )
782
792
  client.tools.list_composio_apps()
@@ -836,6 +846,7 @@ class ToolsClient:
836
846
  from letta_client import Letta
837
847
 
838
848
  client = Letta(
849
+ project="YOUR_PROJECT",
839
850
  token="YOUR_TOKEN",
840
851
  )
841
852
  client.tools.list_composio_actions_by_app(
@@ -894,6 +905,7 @@ class ToolsClient:
894
905
  from letta_client import Letta
895
906
 
896
907
  client = Letta(
908
+ project="YOUR_PROJECT",
897
909
  token="YOUR_TOKEN",
898
910
  )
899
911
  client.tools.add_composio_tool(
@@ -952,6 +964,7 @@ class ToolsClient:
952
964
  from letta_client import Letta
953
965
 
954
966
  client = Letta(
967
+ project="YOUR_PROJECT",
955
968
  token="YOUR_TOKEN",
956
969
  )
957
970
  client.tools.list_mcp_servers()
@@ -1011,6 +1024,7 @@ class ToolsClient:
1011
1024
  from letta_client import Letta, StdioServerConfig
1012
1025
 
1013
1026
  client = Letta(
1027
+ project="YOUR_PROJECT",
1014
1028
  token="YOUR_TOKEN",
1015
1029
  )
1016
1030
  client.tools.add_mcp_server(
@@ -1077,6 +1091,7 @@ class ToolsClient:
1077
1091
  from letta_client import Letta
1078
1092
 
1079
1093
  client = Letta(
1094
+ project="YOUR_PROJECT",
1080
1095
  token="YOUR_TOKEN",
1081
1096
  )
1082
1097
  client.tools.list_mcp_tools_by_server(
@@ -1137,6 +1152,7 @@ class ToolsClient:
1137
1152
  from letta_client import Letta
1138
1153
 
1139
1154
  client = Letta(
1155
+ project="YOUR_PROJECT",
1140
1156
  token="YOUR_TOKEN",
1141
1157
  )
1142
1158
  client.tools.add_mcp_tool(
@@ -1196,6 +1212,7 @@ class ToolsClient:
1196
1212
  from letta_client import Letta
1197
1213
 
1198
1214
  client = Letta(
1215
+ project="YOUR_PROJECT",
1199
1216
  token="YOUR_TOKEN",
1200
1217
  )
1201
1218
  client.tools.delete_mcp_server(
@@ -1260,6 +1277,7 @@ class ToolsClient:
1260
1277
  from letta_client import Letta, UpdateSsemcpServer
1261
1278
 
1262
1279
  client = Letta(
1280
+ project="YOUR_PROJECT",
1263
1281
  token="YOUR_TOKEN",
1264
1282
  )
1265
1283
  client.tools.update_mcp_server(
@@ -1324,6 +1342,7 @@ class ToolsClient:
1324
1342
  from letta_client import Letta, StdioServerConfig
1325
1343
 
1326
1344
  client = Letta(
1345
+ project="YOUR_PROJECT",
1327
1346
  token="YOUR_TOKEN",
1328
1347
  )
1329
1348
  client.tools.test_mcp_server(
@@ -1395,6 +1414,7 @@ class AsyncToolsClient:
1395
1414
  from letta_client import AsyncLetta
1396
1415
 
1397
1416
  client = AsyncLetta(
1417
+ project="YOUR_PROJECT",
1398
1418
  token="YOUR_TOKEN",
1399
1419
  )
1400
1420
 
@@ -1461,6 +1481,7 @@ class AsyncToolsClient:
1461
1481
  from letta_client import AsyncLetta
1462
1482
 
1463
1483
  client = AsyncLetta(
1484
+ project="YOUR_PROJECT",
1464
1485
  token="YOUR_TOKEN",
1465
1486
  )
1466
1487
 
@@ -1562,6 +1583,7 @@ class AsyncToolsClient:
1562
1583
  from letta_client import AsyncLetta
1563
1584
 
1564
1585
  client = AsyncLetta(
1586
+ project="YOUR_PROJECT",
1565
1587
  token="YOUR_TOKEN",
1566
1588
  )
1567
1589
 
@@ -1648,6 +1670,7 @@ class AsyncToolsClient:
1648
1670
  from letta_client import AsyncLetta
1649
1671
 
1650
1672
  client = AsyncLetta(
1673
+ project="YOUR_PROJECT",
1651
1674
  token="YOUR_TOKEN",
1652
1675
  )
1653
1676
 
@@ -1724,6 +1747,7 @@ class AsyncToolsClient:
1724
1747
  from letta_client import AsyncLetta
1725
1748
 
1726
1749
  client = AsyncLetta(
1750
+ project="YOUR_PROJECT",
1727
1751
  token="YOUR_TOKEN",
1728
1752
  )
1729
1753
 
@@ -1825,6 +1849,7 @@ class AsyncToolsClient:
1825
1849
  from letta_client import AsyncLetta
1826
1850
 
1827
1851
  client = AsyncLetta(
1852
+ project="YOUR_PROJECT",
1828
1853
  token="YOUR_TOKEN",
1829
1854
  )
1830
1855
 
@@ -1936,6 +1961,7 @@ class AsyncToolsClient:
1936
1961
  from letta_client import AsyncLetta
1937
1962
 
1938
1963
  client = AsyncLetta(
1964
+ project="YOUR_PROJECT",
1939
1965
  token="YOUR_TOKEN",
1940
1966
  )
1941
1967
 
@@ -2011,6 +2037,7 @@ class AsyncToolsClient:
2011
2037
  from letta_client import AsyncLetta
2012
2038
 
2013
2039
  client = AsyncLetta(
2040
+ project="YOUR_PROJECT",
2014
2041
  token="YOUR_TOKEN",
2015
2042
  )
2016
2043
 
@@ -2107,6 +2134,7 @@ class AsyncToolsClient:
2107
2134
  from letta_client import AsyncLetta
2108
2135
 
2109
2136
  client = AsyncLetta(
2137
+ project="YOUR_PROJECT",
2110
2138
  token="YOUR_TOKEN",
2111
2139
  )
2112
2140
 
@@ -2190,6 +2218,7 @@ class AsyncToolsClient:
2190
2218
  from letta_client import AsyncLetta
2191
2219
 
2192
2220
  client = AsyncLetta(
2221
+ project="YOUR_PROJECT",
2193
2222
  token="YOUR_TOKEN",
2194
2223
  )
2195
2224
 
@@ -2257,6 +2286,7 @@ class AsyncToolsClient:
2257
2286
  from letta_client import AsyncLetta
2258
2287
 
2259
2288
  client = AsyncLetta(
2289
+ project="YOUR_PROJECT",
2260
2290
  token="YOUR_TOKEN",
2261
2291
  )
2262
2292
 
@@ -2323,6 +2353,7 @@ class AsyncToolsClient:
2323
2353
  from letta_client import AsyncLetta
2324
2354
 
2325
2355
  client = AsyncLetta(
2356
+ project="YOUR_PROJECT",
2326
2357
  token="YOUR_TOKEN",
2327
2358
  )
2328
2359
 
@@ -2389,6 +2420,7 @@ class AsyncToolsClient:
2389
2420
  from letta_client import AsyncLetta
2390
2421
 
2391
2422
  client = AsyncLetta(
2423
+ project="YOUR_PROJECT",
2392
2424
  token="YOUR_TOKEN",
2393
2425
  )
2394
2426
 
@@ -2456,6 +2488,7 @@ class AsyncToolsClient:
2456
2488
  from letta_client import AsyncLetta, StdioServerConfig
2457
2489
 
2458
2490
  client = AsyncLetta(
2491
+ project="YOUR_PROJECT",
2459
2492
  token="YOUR_TOKEN",
2460
2493
  )
2461
2494
 
@@ -2530,6 +2563,7 @@ class AsyncToolsClient:
2530
2563
  from letta_client import AsyncLetta
2531
2564
 
2532
2565
  client = AsyncLetta(
2566
+ project="YOUR_PROJECT",
2533
2567
  token="YOUR_TOKEN",
2534
2568
  )
2535
2569
 
@@ -2598,6 +2632,7 @@ class AsyncToolsClient:
2598
2632
  from letta_client import AsyncLetta
2599
2633
 
2600
2634
  client = AsyncLetta(
2635
+ project="YOUR_PROJECT",
2601
2636
  token="YOUR_TOKEN",
2602
2637
  )
2603
2638
 
@@ -2665,6 +2700,7 @@ class AsyncToolsClient:
2665
2700
  from letta_client import AsyncLetta
2666
2701
 
2667
2702
  client = AsyncLetta(
2703
+ project="YOUR_PROJECT",
2668
2704
  token="YOUR_TOKEN",
2669
2705
  )
2670
2706
 
@@ -2737,6 +2773,7 @@ class AsyncToolsClient:
2737
2773
  from letta_client import AsyncLetta, UpdateSsemcpServer
2738
2774
 
2739
2775
  client = AsyncLetta(
2776
+ project="YOUR_PROJECT",
2740
2777
  token="YOUR_TOKEN",
2741
2778
  )
2742
2779
 
@@ -2809,6 +2846,7 @@ class AsyncToolsClient:
2809
2846
  from letta_client import AsyncLetta, StdioServerConfig
2810
2847
 
2811
2848
  client = AsyncLetta(
2849
+ project="YOUR_PROJECT",
2812
2850
  token="YOUR_TOKEN",
2813
2851
  )
2814
2852
 
@@ -49,6 +49,7 @@ class VoiceClient:
49
49
  from letta_client import Letta
50
50
 
51
51
  client = Letta(
52
+ project="YOUR_PROJECT",
52
53
  token="YOUR_TOKEN",
53
54
  )
54
55
  client.voice.create_voice_chat_completions(
@@ -127,6 +128,7 @@ class AsyncVoiceClient:
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.181
3
+ Version: 0.1.182
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -50,6 +50,7 @@ Instantiate and use the client with the following:
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.tools.create(
@@ -67,6 +68,7 @@ import asyncio
67
68
  from letta_client import AsyncLetta
68
69
 
69
70
  client = AsyncLetta(
71
+ project="YOUR_PROJECT",
70
72
  token="YOUR_TOKEN",
71
73
  )
72
74
 
@@ -103,6 +105,7 @@ The SDK supports streaming responses, as well, the response will be a generator
103
105
  from letta_client import Letta, MessageCreate, TextContent
104
106
 
105
107
  client = Letta(
108
+ project="YOUR_PROJECT",
106
109
  token="YOUR_TOKEN",
107
110
  )
108
111
  response = client.agents.messages.create_stream(