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.
- 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 +16 -0
- letta_client/steps/feedback/client.py +2 -0
- 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.180.dist-info → letta_client-0.1.182.dist-info}/METADATA +4 -1
- {letta_client-0.1.180.dist-info → letta_client-0.1.182.dist-info}/RECORD +46 -46
- {letta_client-0.1.180.dist-info → letta_client-0.1.182.dist-info}/WHEEL +0 -0
letta_client/steps/client.py
CHANGED
|
@@ -35,6 +35,7 @@ class StepsClient:
|
|
|
35
35
|
agent_id: typing.Optional[str] = None,
|
|
36
36
|
trace_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
37
37
|
feedback: typing.Optional[StepsListRequestFeedback] = None,
|
|
38
|
+
has_feedback: typing.Optional[bool] = None,
|
|
38
39
|
tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
39
40
|
request_options: typing.Optional[RequestOptions] = None,
|
|
40
41
|
) -> typing.List[Step]:
|
|
@@ -74,6 +75,9 @@ class StepsClient:
|
|
|
74
75
|
feedback : typing.Optional[StepsListRequestFeedback]
|
|
75
76
|
Filter by feedback
|
|
76
77
|
|
|
78
|
+
has_feedback : typing.Optional[bool]
|
|
79
|
+
Filter by whether steps have feedback (true) or not (false)
|
|
80
|
+
|
|
77
81
|
tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
78
82
|
Filter by tags
|
|
79
83
|
|
|
@@ -90,6 +94,7 @@ class StepsClient:
|
|
|
90
94
|
from letta_client import Letta
|
|
91
95
|
|
|
92
96
|
client = Letta(
|
|
97
|
+
project="YOUR_PROJECT",
|
|
93
98
|
token="YOUR_TOKEN",
|
|
94
99
|
)
|
|
95
100
|
client.steps.list()
|
|
@@ -108,6 +113,7 @@ class StepsClient:
|
|
|
108
113
|
"agent_id": agent_id,
|
|
109
114
|
"trace_ids": trace_ids,
|
|
110
115
|
"feedback": feedback,
|
|
116
|
+
"has_feedback": has_feedback,
|
|
111
117
|
"tags": tags,
|
|
112
118
|
},
|
|
113
119
|
request_options=request_options,
|
|
@@ -157,6 +163,7 @@ class StepsClient:
|
|
|
157
163
|
from letta_client import Letta
|
|
158
164
|
|
|
159
165
|
client = Letta(
|
|
166
|
+
project="YOUR_PROJECT",
|
|
160
167
|
token="YOUR_TOKEN",
|
|
161
168
|
)
|
|
162
169
|
client.steps.retrieve(
|
|
@@ -221,6 +228,7 @@ class StepsClient:
|
|
|
221
228
|
from letta_client import Letta
|
|
222
229
|
|
|
223
230
|
client = Letta(
|
|
231
|
+
project="YOUR_PROJECT",
|
|
224
232
|
token="YOUR_TOKEN",
|
|
225
233
|
)
|
|
226
234
|
client.steps.add_feedback(
|
|
@@ -278,6 +286,7 @@ class AsyncStepsClient:
|
|
|
278
286
|
agent_id: typing.Optional[str] = None,
|
|
279
287
|
trace_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
280
288
|
feedback: typing.Optional[StepsListRequestFeedback] = None,
|
|
289
|
+
has_feedback: typing.Optional[bool] = None,
|
|
281
290
|
tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
282
291
|
request_options: typing.Optional[RequestOptions] = None,
|
|
283
292
|
) -> typing.List[Step]:
|
|
@@ -317,6 +326,9 @@ class AsyncStepsClient:
|
|
|
317
326
|
feedback : typing.Optional[StepsListRequestFeedback]
|
|
318
327
|
Filter by feedback
|
|
319
328
|
|
|
329
|
+
has_feedback : typing.Optional[bool]
|
|
330
|
+
Filter by whether steps have feedback (true) or not (false)
|
|
331
|
+
|
|
320
332
|
tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
321
333
|
Filter by tags
|
|
322
334
|
|
|
@@ -335,6 +347,7 @@ class AsyncStepsClient:
|
|
|
335
347
|
from letta_client import AsyncLetta
|
|
336
348
|
|
|
337
349
|
client = AsyncLetta(
|
|
350
|
+
project="YOUR_PROJECT",
|
|
338
351
|
token="YOUR_TOKEN",
|
|
339
352
|
)
|
|
340
353
|
|
|
@@ -359,6 +372,7 @@ class AsyncStepsClient:
|
|
|
359
372
|
"agent_id": agent_id,
|
|
360
373
|
"trace_ids": trace_ids,
|
|
361
374
|
"feedback": feedback,
|
|
375
|
+
"has_feedback": has_feedback,
|
|
362
376
|
"tags": tags,
|
|
363
377
|
},
|
|
364
378
|
request_options=request_options,
|
|
@@ -410,6 +424,7 @@ class AsyncStepsClient:
|
|
|
410
424
|
from letta_client import AsyncLetta
|
|
411
425
|
|
|
412
426
|
client = AsyncLetta(
|
|
427
|
+
project="YOUR_PROJECT",
|
|
413
428
|
token="YOUR_TOKEN",
|
|
414
429
|
)
|
|
415
430
|
|
|
@@ -482,6 +497,7 @@ class AsyncStepsClient:
|
|
|
482
497
|
from letta_client import AsyncLetta
|
|
483
498
|
|
|
484
499
|
client = AsyncLetta(
|
|
500
|
+
project="YOUR_PROJECT",
|
|
485
501
|
token="YOUR_TOKEN",
|
|
486
502
|
)
|
|
487
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
|
|
letta_client/tags/client.py
CHANGED
|
@@ -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
|
|
letta_client/telemetry/client.py
CHANGED
|
@@ -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
|
|
letta_client/templates/client.py
CHANGED
|
@@ -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
|
|
letta_client/tools/client.py
CHANGED
|
@@ -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
|
|
letta_client/voice/client.py
CHANGED
|
@@ -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.
|
|
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(
|