letta-client 1.0.0a2__py3-none-any.whl → 1.0.0a4__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/__init__.py +12 -0
- letta_client/agents/blocks/client.py +28 -14
- letta_client/agents/blocks/raw_client.py +14 -0
- letta_client/agents/client.py +36 -8
- letta_client/agents/context/client.py +4 -2
- letta_client/agents/context/raw_client.py +2 -0
- letta_client/agents/core_memory/client.py +4 -2
- letta_client/agents/core_memory/raw_client.py +2 -0
- letta_client/agents/files/client.py +24 -12
- letta_client/agents/files/raw_client.py +12 -0
- letta_client/agents/folders/client.py +20 -10
- letta_client/agents/folders/raw_client.py +10 -0
- letta_client/agents/groups/client.py +4 -2
- letta_client/agents/groups/raw_client.py +2 -0
- letta_client/agents/messages/client.py +40 -20
- letta_client/agents/messages/raw_client.py +20 -0
- letta_client/agents/passages/client.py +16 -8
- letta_client/agents/passages/raw_client.py +8 -0
- letta_client/agents/raw_client.py +28 -0
- letta_client/agents/sources/client.py +20 -10
- letta_client/agents/sources/raw_client.py +10 -0
- letta_client/agents/tools/client.py +24 -12
- letta_client/agents/tools/raw_client.py +12 -0
- letta_client/archives/client.py +4 -2
- letta_client/archives/raw_client.py +2 -0
- letta_client/blocks/agents/client.py +4 -2
- letta_client/blocks/agents/raw_client.py +2 -0
- letta_client/blocks/client.py +12 -6
- letta_client/blocks/raw_client.py +6 -0
- letta_client/core/client_wrapper.py +2 -2
- letta_client/groups/client.py +12 -6
- letta_client/groups/messages/client.py +24 -12
- letta_client/groups/messages/raw_client.py +12 -0
- letta_client/groups/raw_client.py +6 -0
- letta_client/identities/agents/client.py +4 -2
- letta_client/identities/agents/raw_client.py +2 -0
- letta_client/identities/blocks/client.py +4 -2
- letta_client/identities/blocks/raw_client.py +2 -0
- letta_client/identities/client.py +12 -6
- letta_client/identities/properties/client.py +4 -2
- letta_client/identities/properties/raw_client.py +2 -0
- letta_client/identities/raw_client.py +6 -0
- letta_client/jobs/client.py +12 -6
- letta_client/jobs/raw_client.py +6 -0
- letta_client/providers/client.py +16 -8
- letta_client/providers/raw_client.py +8 -0
- letta_client/sources/client.py +24 -12
- letta_client/sources/files/client.py +16 -8
- letta_client/sources/files/raw_client.py +8 -0
- letta_client/sources/passages/client.py +4 -2
- letta_client/sources/passages/raw_client.py +2 -0
- letta_client/sources/raw_client.py +12 -0
- letta_client/steps/client.py +4 -2
- letta_client/steps/feedback/client.py +4 -2
- letta_client/steps/feedback/raw_client.py +2 -0
- letta_client/steps/messages/client.py +4 -2
- letta_client/steps/messages/raw_client.py +2 -0
- letta_client/steps/metrics/client.py +4 -2
- letta_client/steps/metrics/raw_client.py +2 -0
- letta_client/steps/raw_client.py +2 -0
- letta_client/steps/trace/client.py +4 -2
- letta_client/steps/trace/raw_client.py +2 -0
- letta_client/templates/__init__.py +8 -0
- letta_client/templates/types/__init__.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py +6 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls.py +14 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_parallel_tool_calls_item.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +6 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution.py +15 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_enable_parallel_execution_item.py +7 -0
- letta_client/tools/client.py +42 -6
- letta_client/tools/raw_client.py +36 -0
- letta_client/types/__init__.py +4 -0
- letta_client/types/approval_request_message.py +12 -0
- letta_client/types/approval_request_message_allowed_tool_calls.py +8 -0
- letta_client/types/approval_request_message_requested_tool_calls.py +8 -0
- letta_client/types/internal_template_agent_create.py +5 -0
- letta_client/types/letta_schemas_agent_file_agent_schema.py +5 -0
- letta_client/types/letta_schemas_agent_file_tool_schema.py +5 -0
- letta_client/types/llm_config.py +5 -0
- letta_client/types/run_metrics.py +5 -0
- letta_client/types/tool.py +5 -0
- letta_client/types/tool_create.py +5 -0
- {letta_client-1.0.0a2.dist-info → letta_client-1.0.0a4.dist-info}/METADATA +1 -1
- {letta_client-1.0.0a2.dist-info → letta_client-1.0.0a4.dist-info}/RECORD +86 -80
- {letta_client-1.0.0a2.dist-info → letta_client-1.0.0a4.dist-info}/WHEEL +0 -0
|
@@ -222,6 +222,7 @@ class RawAgentsClient:
|
|
|
222
222
|
max_files_open: typing.Optional[int] = OMIT,
|
|
223
223
|
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
224
224
|
hidden: typing.Optional[bool] = OMIT,
|
|
225
|
+
parallel_tool_calls: typing.Optional[bool] = OMIT,
|
|
225
226
|
request_options: typing.Optional[RequestOptions] = None,
|
|
226
227
|
) -> HttpResponse[AgentState]:
|
|
227
228
|
"""
|
|
@@ -361,6 +362,9 @@ class RawAgentsClient:
|
|
|
361
362
|
hidden : typing.Optional[bool]
|
|
362
363
|
If set to True, the agent will be hidden.
|
|
363
364
|
|
|
365
|
+
parallel_tool_calls : typing.Optional[bool]
|
|
366
|
+
If set to True, enables parallel tool calling. Defaults to False.
|
|
367
|
+
|
|
364
368
|
request_options : typing.Optional[RequestOptions]
|
|
365
369
|
Request-specific configuration.
|
|
366
370
|
|
|
@@ -429,6 +433,7 @@ class RawAgentsClient:
|
|
|
429
433
|
"max_files_open": max_files_open,
|
|
430
434
|
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
431
435
|
"hidden": hidden,
|
|
436
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
432
437
|
},
|
|
433
438
|
headers={
|
|
434
439
|
"content-type": "application/json",
|
|
@@ -525,6 +530,7 @@ class RawAgentsClient:
|
|
|
525
530
|
Parameters
|
|
526
531
|
----------
|
|
527
532
|
agent_id : str
|
|
533
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
528
534
|
|
|
529
535
|
max_steps : typing.Optional[int]
|
|
530
536
|
|
|
@@ -686,6 +692,7 @@ class RawAgentsClient:
|
|
|
686
692
|
Parameters
|
|
687
693
|
----------
|
|
688
694
|
agent_id : str
|
|
695
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
689
696
|
|
|
690
697
|
include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
691
698
|
Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
@@ -741,6 +748,7 @@ class RawAgentsClient:
|
|
|
741
748
|
Parameters
|
|
742
749
|
----------
|
|
743
750
|
agent_id : str
|
|
751
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
744
752
|
|
|
745
753
|
request_options : typing.Optional[RequestOptions]
|
|
746
754
|
Request-specific configuration.
|
|
@@ -817,6 +825,7 @@ class RawAgentsClient:
|
|
|
817
825
|
max_files_open: typing.Optional[int] = OMIT,
|
|
818
826
|
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
819
827
|
hidden: typing.Optional[bool] = OMIT,
|
|
828
|
+
parallel_tool_calls: typing.Optional[bool] = OMIT,
|
|
820
829
|
request_options: typing.Optional[RequestOptions] = None,
|
|
821
830
|
) -> HttpResponse[AgentState]:
|
|
822
831
|
"""
|
|
@@ -825,6 +834,7 @@ class RawAgentsClient:
|
|
|
825
834
|
Parameters
|
|
826
835
|
----------
|
|
827
836
|
agent_id : str
|
|
837
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
828
838
|
|
|
829
839
|
name : typing.Optional[str]
|
|
830
840
|
The name of the agent.
|
|
@@ -916,6 +926,9 @@ class RawAgentsClient:
|
|
|
916
926
|
hidden : typing.Optional[bool]
|
|
917
927
|
If set to True, the agent will be hidden.
|
|
918
928
|
|
|
929
|
+
parallel_tool_calls : typing.Optional[bool]
|
|
930
|
+
If set to True, enables parallel tool calling. Defaults to False.
|
|
931
|
+
|
|
919
932
|
request_options : typing.Optional[RequestOptions]
|
|
920
933
|
Request-specific configuration.
|
|
921
934
|
|
|
@@ -966,6 +979,7 @@ class RawAgentsClient:
|
|
|
966
979
|
"max_files_open": max_files_open,
|
|
967
980
|
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
968
981
|
"hidden": hidden,
|
|
982
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
969
983
|
},
|
|
970
984
|
headers={
|
|
971
985
|
"content-type": "application/json",
|
|
@@ -1263,6 +1277,7 @@ class AsyncRawAgentsClient:
|
|
|
1263
1277
|
max_files_open: typing.Optional[int] = OMIT,
|
|
1264
1278
|
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
1265
1279
|
hidden: typing.Optional[bool] = OMIT,
|
|
1280
|
+
parallel_tool_calls: typing.Optional[bool] = OMIT,
|
|
1266
1281
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1267
1282
|
) -> AsyncHttpResponse[AgentState]:
|
|
1268
1283
|
"""
|
|
@@ -1402,6 +1417,9 @@ class AsyncRawAgentsClient:
|
|
|
1402
1417
|
hidden : typing.Optional[bool]
|
|
1403
1418
|
If set to True, the agent will be hidden.
|
|
1404
1419
|
|
|
1420
|
+
parallel_tool_calls : typing.Optional[bool]
|
|
1421
|
+
If set to True, enables parallel tool calling. Defaults to False.
|
|
1422
|
+
|
|
1405
1423
|
request_options : typing.Optional[RequestOptions]
|
|
1406
1424
|
Request-specific configuration.
|
|
1407
1425
|
|
|
@@ -1470,6 +1488,7 @@ class AsyncRawAgentsClient:
|
|
|
1470
1488
|
"max_files_open": max_files_open,
|
|
1471
1489
|
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
1472
1490
|
"hidden": hidden,
|
|
1491
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
1473
1492
|
},
|
|
1474
1493
|
headers={
|
|
1475
1494
|
"content-type": "application/json",
|
|
@@ -1566,6 +1585,7 @@ class AsyncRawAgentsClient:
|
|
|
1566
1585
|
Parameters
|
|
1567
1586
|
----------
|
|
1568
1587
|
agent_id : str
|
|
1588
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1569
1589
|
|
|
1570
1590
|
max_steps : typing.Optional[int]
|
|
1571
1591
|
|
|
@@ -1727,6 +1747,7 @@ class AsyncRawAgentsClient:
|
|
|
1727
1747
|
Parameters
|
|
1728
1748
|
----------
|
|
1729
1749
|
agent_id : str
|
|
1750
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1730
1751
|
|
|
1731
1752
|
include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
1732
1753
|
Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
@@ -1782,6 +1803,7 @@ class AsyncRawAgentsClient:
|
|
|
1782
1803
|
Parameters
|
|
1783
1804
|
----------
|
|
1784
1805
|
agent_id : str
|
|
1806
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1785
1807
|
|
|
1786
1808
|
request_options : typing.Optional[RequestOptions]
|
|
1787
1809
|
Request-specific configuration.
|
|
@@ -1858,6 +1880,7 @@ class AsyncRawAgentsClient:
|
|
|
1858
1880
|
max_files_open: typing.Optional[int] = OMIT,
|
|
1859
1881
|
per_file_view_window_char_limit: typing.Optional[int] = OMIT,
|
|
1860
1882
|
hidden: typing.Optional[bool] = OMIT,
|
|
1883
|
+
parallel_tool_calls: typing.Optional[bool] = OMIT,
|
|
1861
1884
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1862
1885
|
) -> AsyncHttpResponse[AgentState]:
|
|
1863
1886
|
"""
|
|
@@ -1866,6 +1889,7 @@ class AsyncRawAgentsClient:
|
|
|
1866
1889
|
Parameters
|
|
1867
1890
|
----------
|
|
1868
1891
|
agent_id : str
|
|
1892
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
1869
1893
|
|
|
1870
1894
|
name : typing.Optional[str]
|
|
1871
1895
|
The name of the agent.
|
|
@@ -1957,6 +1981,9 @@ class AsyncRawAgentsClient:
|
|
|
1957
1981
|
hidden : typing.Optional[bool]
|
|
1958
1982
|
If set to True, the agent will be hidden.
|
|
1959
1983
|
|
|
1984
|
+
parallel_tool_calls : typing.Optional[bool]
|
|
1985
|
+
If set to True, enables parallel tool calling. Defaults to False.
|
|
1986
|
+
|
|
1960
1987
|
request_options : typing.Optional[RequestOptions]
|
|
1961
1988
|
Request-specific configuration.
|
|
1962
1989
|
|
|
@@ -2007,6 +2034,7 @@ class AsyncRawAgentsClient:
|
|
|
2007
2034
|
"max_files_open": max_files_open,
|
|
2008
2035
|
"per_file_view_window_char_limit": per_file_view_window_char_limit,
|
|
2009
2036
|
"hidden": hidden,
|
|
2037
|
+
"parallel_tool_calls": parallel_tool_calls,
|
|
2010
2038
|
},
|
|
2011
2039
|
headers={
|
|
2012
2040
|
"content-type": "application/json",
|
|
@@ -34,8 +34,10 @@ class SourcesClient:
|
|
|
34
34
|
Parameters
|
|
35
35
|
----------
|
|
36
36
|
agent_id : str
|
|
37
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
37
38
|
|
|
38
39
|
source_id : str
|
|
40
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
39
41
|
|
|
40
42
|
request_options : typing.Optional[RequestOptions]
|
|
41
43
|
Request-specific configuration.
|
|
@@ -54,8 +56,8 @@ class SourcesClient:
|
|
|
54
56
|
token="YOUR_TOKEN",
|
|
55
57
|
)
|
|
56
58
|
client.agents.sources.attach(
|
|
57
|
-
agent_id="
|
|
58
|
-
source_id="
|
|
59
|
+
agent_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
60
|
+
source_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
59
61
|
)
|
|
60
62
|
"""
|
|
61
63
|
_response = self._raw_client.attach(agent_id, source_id, request_options=request_options)
|
|
@@ -70,8 +72,10 @@ class SourcesClient:
|
|
|
70
72
|
Parameters
|
|
71
73
|
----------
|
|
72
74
|
agent_id : str
|
|
75
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
73
76
|
|
|
74
77
|
source_id : str
|
|
78
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
75
79
|
|
|
76
80
|
request_options : typing.Optional[RequestOptions]
|
|
77
81
|
Request-specific configuration.
|
|
@@ -90,8 +94,8 @@ class SourcesClient:
|
|
|
90
94
|
token="YOUR_TOKEN",
|
|
91
95
|
)
|
|
92
96
|
client.agents.sources.detach(
|
|
93
|
-
agent_id="
|
|
94
|
-
source_id="
|
|
97
|
+
agent_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
98
|
+
source_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
95
99
|
)
|
|
96
100
|
"""
|
|
97
101
|
_response = self._raw_client.detach(agent_id, source_id, request_options=request_options)
|
|
@@ -114,6 +118,7 @@ class SourcesClient:
|
|
|
114
118
|
Parameters
|
|
115
119
|
----------
|
|
116
120
|
agent_id : str
|
|
121
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
117
122
|
|
|
118
123
|
before : typing.Optional[str]
|
|
119
124
|
Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order
|
|
@@ -147,7 +152,7 @@ class SourcesClient:
|
|
|
147
152
|
token="YOUR_TOKEN",
|
|
148
153
|
)
|
|
149
154
|
client.agents.sources.list(
|
|
150
|
-
agent_id="
|
|
155
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
151
156
|
before="before",
|
|
152
157
|
after="after",
|
|
153
158
|
limit=1,
|
|
@@ -190,8 +195,10 @@ class AsyncSourcesClient:
|
|
|
190
195
|
Parameters
|
|
191
196
|
----------
|
|
192
197
|
agent_id : str
|
|
198
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
193
199
|
|
|
194
200
|
source_id : str
|
|
201
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
195
202
|
|
|
196
203
|
request_options : typing.Optional[RequestOptions]
|
|
197
204
|
Request-specific configuration.
|
|
@@ -215,8 +222,8 @@ class AsyncSourcesClient:
|
|
|
215
222
|
|
|
216
223
|
async def main() -> None:
|
|
217
224
|
await client.agents.sources.attach(
|
|
218
|
-
agent_id="
|
|
219
|
-
source_id="
|
|
225
|
+
agent_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
226
|
+
source_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
220
227
|
)
|
|
221
228
|
|
|
222
229
|
|
|
@@ -234,8 +241,10 @@ class AsyncSourcesClient:
|
|
|
234
241
|
Parameters
|
|
235
242
|
----------
|
|
236
243
|
agent_id : str
|
|
244
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
237
245
|
|
|
238
246
|
source_id : str
|
|
247
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
239
248
|
|
|
240
249
|
request_options : typing.Optional[RequestOptions]
|
|
241
250
|
Request-specific configuration.
|
|
@@ -259,8 +268,8 @@ class AsyncSourcesClient:
|
|
|
259
268
|
|
|
260
269
|
async def main() -> None:
|
|
261
270
|
await client.agents.sources.detach(
|
|
262
|
-
agent_id="
|
|
263
|
-
source_id="
|
|
271
|
+
agent_id="source-123e4567-e89b-42d3-8456-426614174000",
|
|
272
|
+
source_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
264
273
|
)
|
|
265
274
|
|
|
266
275
|
|
|
@@ -286,6 +295,7 @@ class AsyncSourcesClient:
|
|
|
286
295
|
Parameters
|
|
287
296
|
----------
|
|
288
297
|
agent_id : str
|
|
298
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
289
299
|
|
|
290
300
|
before : typing.Optional[str]
|
|
291
301
|
Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order
|
|
@@ -324,7 +334,7 @@ class AsyncSourcesClient:
|
|
|
324
334
|
|
|
325
335
|
async def main() -> None:
|
|
326
336
|
await client.agents.sources.list(
|
|
327
|
-
agent_id="
|
|
337
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
328
338
|
before="before",
|
|
329
339
|
after="after",
|
|
330
340
|
limit=1,
|
|
@@ -29,8 +29,10 @@ class RawSourcesClient:
|
|
|
29
29
|
Parameters
|
|
30
30
|
----------
|
|
31
31
|
agent_id : str
|
|
32
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
32
33
|
|
|
33
34
|
source_id : str
|
|
35
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
34
36
|
|
|
35
37
|
request_options : typing.Optional[RequestOptions]
|
|
36
38
|
Request-specific configuration.
|
|
@@ -80,8 +82,10 @@ class RawSourcesClient:
|
|
|
80
82
|
Parameters
|
|
81
83
|
----------
|
|
82
84
|
agent_id : str
|
|
85
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
83
86
|
|
|
84
87
|
source_id : str
|
|
88
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
85
89
|
|
|
86
90
|
request_options : typing.Optional[RequestOptions]
|
|
87
91
|
Request-specific configuration.
|
|
@@ -139,6 +143,7 @@ class RawSourcesClient:
|
|
|
139
143
|
Parameters
|
|
140
144
|
----------
|
|
141
145
|
agent_id : str
|
|
146
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
142
147
|
|
|
143
148
|
before : typing.Optional[str]
|
|
144
149
|
Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order
|
|
@@ -215,8 +220,10 @@ class AsyncRawSourcesClient:
|
|
|
215
220
|
Parameters
|
|
216
221
|
----------
|
|
217
222
|
agent_id : str
|
|
223
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
218
224
|
|
|
219
225
|
source_id : str
|
|
226
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
220
227
|
|
|
221
228
|
request_options : typing.Optional[RequestOptions]
|
|
222
229
|
Request-specific configuration.
|
|
@@ -266,8 +273,10 @@ class AsyncRawSourcesClient:
|
|
|
266
273
|
Parameters
|
|
267
274
|
----------
|
|
268
275
|
agent_id : str
|
|
276
|
+
The ID of the source in the format 'source-<uuid4>'
|
|
269
277
|
|
|
270
278
|
source_id : str
|
|
279
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
271
280
|
|
|
272
281
|
request_options : typing.Optional[RequestOptions]
|
|
273
282
|
Request-specific configuration.
|
|
@@ -325,6 +334,7 @@ class AsyncRawSourcesClient:
|
|
|
325
334
|
Parameters
|
|
326
335
|
----------
|
|
327
336
|
agent_id : str
|
|
337
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
328
338
|
|
|
329
339
|
before : typing.Optional[str]
|
|
330
340
|
Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order
|
|
@@ -42,6 +42,7 @@ class ToolsClient:
|
|
|
42
42
|
Parameters
|
|
43
43
|
----------
|
|
44
44
|
agent_id : str
|
|
45
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
45
46
|
|
|
46
47
|
before : typing.Optional[str]
|
|
47
48
|
Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
|
|
@@ -75,7 +76,7 @@ class ToolsClient:
|
|
|
75
76
|
token="YOUR_TOKEN",
|
|
76
77
|
)
|
|
77
78
|
client.agents.tools.list(
|
|
78
|
-
agent_id="
|
|
79
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
79
80
|
before="before",
|
|
80
81
|
after="after",
|
|
81
82
|
limit=1,
|
|
@@ -102,8 +103,10 @@ class ToolsClient:
|
|
|
102
103
|
Parameters
|
|
103
104
|
----------
|
|
104
105
|
agent_id : str
|
|
106
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
105
107
|
|
|
106
108
|
tool_id : str
|
|
109
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
107
110
|
|
|
108
111
|
request_options : typing.Optional[RequestOptions]
|
|
109
112
|
Request-specific configuration.
|
|
@@ -122,8 +125,8 @@ class ToolsClient:
|
|
|
122
125
|
token="YOUR_TOKEN",
|
|
123
126
|
)
|
|
124
127
|
client.agents.tools.attach(
|
|
125
|
-
agent_id="
|
|
126
|
-
tool_id="
|
|
128
|
+
agent_id="tool-123e4567-e89b-42d3-8456-426614174000",
|
|
129
|
+
tool_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
127
130
|
)
|
|
128
131
|
"""
|
|
129
132
|
_response = self._raw_client.attach(agent_id, tool_id, request_options=request_options)
|
|
@@ -138,8 +141,10 @@ class ToolsClient:
|
|
|
138
141
|
Parameters
|
|
139
142
|
----------
|
|
140
143
|
agent_id : str
|
|
144
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
141
145
|
|
|
142
146
|
tool_id : str
|
|
147
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
143
148
|
|
|
144
149
|
request_options : typing.Optional[RequestOptions]
|
|
145
150
|
Request-specific configuration.
|
|
@@ -158,8 +163,8 @@ class ToolsClient:
|
|
|
158
163
|
token="YOUR_TOKEN",
|
|
159
164
|
)
|
|
160
165
|
client.agents.tools.detach(
|
|
161
|
-
agent_id="
|
|
162
|
-
tool_id="
|
|
166
|
+
agent_id="tool-123e4567-e89b-42d3-8456-426614174000",
|
|
167
|
+
tool_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
163
168
|
)
|
|
164
169
|
"""
|
|
165
170
|
_response = self._raw_client.detach(agent_id, tool_id, request_options=request_options)
|
|
@@ -179,6 +184,7 @@ class ToolsClient:
|
|
|
179
184
|
Parameters
|
|
180
185
|
----------
|
|
181
186
|
agent_id : str
|
|
187
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
182
188
|
|
|
183
189
|
tool_name : str
|
|
184
190
|
|
|
@@ -201,7 +207,7 @@ class ToolsClient:
|
|
|
201
207
|
token="YOUR_TOKEN",
|
|
202
208
|
)
|
|
203
209
|
client.agents.tools.modify_approval(
|
|
204
|
-
agent_id="
|
|
210
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
205
211
|
tool_name="tool_name",
|
|
206
212
|
requires_approval=True,
|
|
207
213
|
)
|
|
@@ -244,6 +250,7 @@ class AsyncToolsClient:
|
|
|
244
250
|
Parameters
|
|
245
251
|
----------
|
|
246
252
|
agent_id : str
|
|
253
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
247
254
|
|
|
248
255
|
before : typing.Optional[str]
|
|
249
256
|
Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
|
|
@@ -282,7 +289,7 @@ class AsyncToolsClient:
|
|
|
282
289
|
|
|
283
290
|
async def main() -> None:
|
|
284
291
|
await client.agents.tools.list(
|
|
285
|
-
agent_id="
|
|
292
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
286
293
|
before="before",
|
|
287
294
|
after="after",
|
|
288
295
|
limit=1,
|
|
@@ -312,8 +319,10 @@ class AsyncToolsClient:
|
|
|
312
319
|
Parameters
|
|
313
320
|
----------
|
|
314
321
|
agent_id : str
|
|
322
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
315
323
|
|
|
316
324
|
tool_id : str
|
|
325
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
317
326
|
|
|
318
327
|
request_options : typing.Optional[RequestOptions]
|
|
319
328
|
Request-specific configuration.
|
|
@@ -337,8 +346,8 @@ class AsyncToolsClient:
|
|
|
337
346
|
|
|
338
347
|
async def main() -> None:
|
|
339
348
|
await client.agents.tools.attach(
|
|
340
|
-
agent_id="
|
|
341
|
-
tool_id="
|
|
349
|
+
agent_id="tool-123e4567-e89b-42d3-8456-426614174000",
|
|
350
|
+
tool_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
342
351
|
)
|
|
343
352
|
|
|
344
353
|
|
|
@@ -356,8 +365,10 @@ class AsyncToolsClient:
|
|
|
356
365
|
Parameters
|
|
357
366
|
----------
|
|
358
367
|
agent_id : str
|
|
368
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
359
369
|
|
|
360
370
|
tool_id : str
|
|
371
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
361
372
|
|
|
362
373
|
request_options : typing.Optional[RequestOptions]
|
|
363
374
|
Request-specific configuration.
|
|
@@ -381,8 +392,8 @@ class AsyncToolsClient:
|
|
|
381
392
|
|
|
382
393
|
async def main() -> None:
|
|
383
394
|
await client.agents.tools.detach(
|
|
384
|
-
agent_id="
|
|
385
|
-
tool_id="
|
|
395
|
+
agent_id="tool-123e4567-e89b-42d3-8456-426614174000",
|
|
396
|
+
tool_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
386
397
|
)
|
|
387
398
|
|
|
388
399
|
|
|
@@ -405,6 +416,7 @@ class AsyncToolsClient:
|
|
|
405
416
|
Parameters
|
|
406
417
|
----------
|
|
407
418
|
agent_id : str
|
|
419
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
408
420
|
|
|
409
421
|
tool_name : str
|
|
410
422
|
|
|
@@ -432,7 +444,7 @@ class AsyncToolsClient:
|
|
|
432
444
|
|
|
433
445
|
async def main() -> None:
|
|
434
446
|
await client.agents.tools.modify_approval(
|
|
435
|
-
agent_id="
|
|
447
|
+
agent_id="agent-123e4567-e89b-42d3-8456-426614174000",
|
|
436
448
|
tool_name="tool_name",
|
|
437
449
|
requires_approval=True,
|
|
438
450
|
)
|
|
@@ -37,6 +37,7 @@ class RawToolsClient:
|
|
|
37
37
|
Parameters
|
|
38
38
|
----------
|
|
39
39
|
agent_id : str
|
|
40
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
40
41
|
|
|
41
42
|
before : typing.Optional[str]
|
|
42
43
|
Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
|
|
@@ -108,8 +109,10 @@ class RawToolsClient:
|
|
|
108
109
|
Parameters
|
|
109
110
|
----------
|
|
110
111
|
agent_id : str
|
|
112
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
111
113
|
|
|
112
114
|
tool_id : str
|
|
115
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
113
116
|
|
|
114
117
|
request_options : typing.Optional[RequestOptions]
|
|
115
118
|
Request-specific configuration.
|
|
@@ -159,8 +162,10 @@ class RawToolsClient:
|
|
|
159
162
|
Parameters
|
|
160
163
|
----------
|
|
161
164
|
agent_id : str
|
|
165
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
162
166
|
|
|
163
167
|
tool_id : str
|
|
168
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
164
169
|
|
|
165
170
|
request_options : typing.Optional[RequestOptions]
|
|
166
171
|
Request-specific configuration.
|
|
@@ -215,6 +220,7 @@ class RawToolsClient:
|
|
|
215
220
|
Parameters
|
|
216
221
|
----------
|
|
217
222
|
agent_id : str
|
|
223
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
218
224
|
|
|
219
225
|
tool_name : str
|
|
220
226
|
|
|
@@ -284,6 +290,7 @@ class AsyncRawToolsClient:
|
|
|
284
290
|
Parameters
|
|
285
291
|
----------
|
|
286
292
|
agent_id : str
|
|
293
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
287
294
|
|
|
288
295
|
before : typing.Optional[str]
|
|
289
296
|
Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
|
|
@@ -355,8 +362,10 @@ class AsyncRawToolsClient:
|
|
|
355
362
|
Parameters
|
|
356
363
|
----------
|
|
357
364
|
agent_id : str
|
|
365
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
358
366
|
|
|
359
367
|
tool_id : str
|
|
368
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
360
369
|
|
|
361
370
|
request_options : typing.Optional[RequestOptions]
|
|
362
371
|
Request-specific configuration.
|
|
@@ -406,8 +415,10 @@ class AsyncRawToolsClient:
|
|
|
406
415
|
Parameters
|
|
407
416
|
----------
|
|
408
417
|
agent_id : str
|
|
418
|
+
The ID of the tool in the format 'tool-<uuid4>'
|
|
409
419
|
|
|
410
420
|
tool_id : str
|
|
421
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
411
422
|
|
|
412
423
|
request_options : typing.Optional[RequestOptions]
|
|
413
424
|
Request-specific configuration.
|
|
@@ -462,6 +473,7 @@ class AsyncRawToolsClient:
|
|
|
462
473
|
Parameters
|
|
463
474
|
----------
|
|
464
475
|
agent_id : str
|
|
476
|
+
The ID of the agent in the format 'agent-<uuid4>'
|
|
465
477
|
|
|
466
478
|
tool_name : str
|
|
467
479
|
|
letta_client/archives/client.py
CHANGED
|
@@ -150,6 +150,7 @@ class ArchivesClient:
|
|
|
150
150
|
Parameters
|
|
151
151
|
----------
|
|
152
152
|
archive_id : str
|
|
153
|
+
The ID of the archive in the format 'archive-<uuid4>'
|
|
153
154
|
|
|
154
155
|
name : typing.Optional[str]
|
|
155
156
|
|
|
@@ -172,7 +173,7 @@ class ArchivesClient:
|
|
|
172
173
|
token="YOUR_TOKEN",
|
|
173
174
|
)
|
|
174
175
|
client.archives.modify_archive(
|
|
175
|
-
archive_id="
|
|
176
|
+
archive_id="archive-123e4567-e89b-42d3-8456-426614174000",
|
|
176
177
|
)
|
|
177
178
|
"""
|
|
178
179
|
_response = self._raw_client.modify_archive(
|
|
@@ -337,6 +338,7 @@ class AsyncArchivesClient:
|
|
|
337
338
|
Parameters
|
|
338
339
|
----------
|
|
339
340
|
archive_id : str
|
|
341
|
+
The ID of the archive in the format 'archive-<uuid4>'
|
|
340
342
|
|
|
341
343
|
name : typing.Optional[str]
|
|
342
344
|
|
|
@@ -364,7 +366,7 @@ class AsyncArchivesClient:
|
|
|
364
366
|
|
|
365
367
|
async def main() -> None:
|
|
366
368
|
await client.archives.modify_archive(
|
|
367
|
-
archive_id="
|
|
369
|
+
archive_id="archive-123e4567-e89b-42d3-8456-426614174000",
|
|
368
370
|
)
|
|
369
371
|
|
|
370
372
|
|
|
@@ -180,6 +180,7 @@ class RawArchivesClient:
|
|
|
180
180
|
Parameters
|
|
181
181
|
----------
|
|
182
182
|
archive_id : str
|
|
183
|
+
The ID of the archive in the format 'archive-<uuid4>'
|
|
183
184
|
|
|
184
185
|
name : typing.Optional[str]
|
|
185
186
|
|
|
@@ -395,6 +396,7 @@ class AsyncRawArchivesClient:
|
|
|
395
396
|
Parameters
|
|
396
397
|
----------
|
|
397
398
|
archive_id : str
|
|
399
|
+
The ID of the archive in the format 'archive-<uuid4>'
|
|
398
400
|
|
|
399
401
|
name : typing.Optional[str]
|
|
400
402
|
|
|
@@ -43,6 +43,7 @@ class AgentsClient:
|
|
|
43
43
|
Parameters
|
|
44
44
|
----------
|
|
45
45
|
block_id : str
|
|
46
|
+
The ID of the block in the format 'block-<uuid4>'
|
|
46
47
|
|
|
47
48
|
before : typing.Optional[str]
|
|
48
49
|
Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
|
|
@@ -79,7 +80,7 @@ class AgentsClient:
|
|
|
79
80
|
token="YOUR_TOKEN",
|
|
80
81
|
)
|
|
81
82
|
client.blocks.agents.list(
|
|
82
|
-
block_id="
|
|
83
|
+
block_id="block-123e4567-e89b-42d3-8456-426614174000",
|
|
83
84
|
before="before",
|
|
84
85
|
after="after",
|
|
85
86
|
limit=1,
|
|
@@ -133,6 +134,7 @@ class AsyncAgentsClient:
|
|
|
133
134
|
Parameters
|
|
134
135
|
----------
|
|
135
136
|
block_id : str
|
|
137
|
+
The ID of the block in the format 'block-<uuid4>'
|
|
136
138
|
|
|
137
139
|
before : typing.Optional[str]
|
|
138
140
|
Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
|
|
@@ -174,7 +176,7 @@ class AsyncAgentsClient:
|
|
|
174
176
|
|
|
175
177
|
async def main() -> None:
|
|
176
178
|
await client.blocks.agents.list(
|
|
177
|
-
block_id="
|
|
179
|
+
block_id="block-123e4567-e89b-42d3-8456-426614174000",
|
|
178
180
|
before="before",
|
|
179
181
|
after="after",
|
|
180
182
|
limit=1,
|
|
@@ -38,6 +38,7 @@ class RawAgentsClient:
|
|
|
38
38
|
Parameters
|
|
39
39
|
----------
|
|
40
40
|
block_id : str
|
|
41
|
+
The ID of the block in the format 'block-<uuid4>'
|
|
41
42
|
|
|
42
43
|
before : typing.Optional[str]
|
|
43
44
|
Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
|
|
@@ -128,6 +129,7 @@ class AsyncRawAgentsClient:
|
|
|
128
129
|
Parameters
|
|
129
130
|
----------
|
|
130
131
|
block_id : str
|
|
132
|
+
The ID of the block in the format 'block-<uuid4>'
|
|
131
133
|
|
|
132
134
|
before : typing.Optional[str]
|
|
133
135
|
Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
|