letta-client 0.1.309__py3-none-any.whl → 0.1.311__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 +10 -0
- letta_client/agents/blocks/raw_client.py +10 -0
- letta_client/agents/passages/client.py +12 -12
- letta_client/agents/passages/raw_client.py +17 -16
- letta_client/blocks/client.py +20 -0
- letta_client/blocks/raw_client.py +20 -0
- letta_client/core/client_wrapper.py +2 -2
- letta_client/groups/client.py +10 -0
- letta_client/groups/raw_client.py +10 -0
- letta_client/types/__init__.py +12 -0
- letta_client/types/block.py +5 -0
- letta_client/types/block_schema.py +5 -0
- letta_client/types/block_update.py +5 -0
- letta_client/types/create_block.py +5 -0
- letta_client/types/file_block.py +5 -0
- letta_client/types/group.py +5 -0
- letta_client/types/group_schema.py +5 -0
- letta_client/types/internal_template_agent_create.py +256 -0
- letta_client/types/internal_template_agent_create_response_format.py +11 -0
- letta_client/types/internal_template_agent_create_tool_rules_item.py +25 -0
- letta_client/types/internal_template_block_create.py +93 -0
- letta_client/types/internal_template_group_create.py +68 -0
- letta_client/types/internal_template_group_create_manager_config.py +13 -0
- {letta_client-0.1.309.dist-info → letta_client-0.1.311.dist-info}/METADATA +1 -1
- {letta_client-0.1.309.dist-info → letta_client-0.1.311.dist-info}/RECORD +27 -21
- {letta_client-0.1.309.dist-info → letta_client-0.1.311.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -153,6 +153,12 @@ from .types import (
|
|
|
153
153
|
InitToolRule,
|
|
154
154
|
InputAudio,
|
|
155
155
|
InputAudioFormat,
|
|
156
|
+
InternalTemplateAgentCreate,
|
|
157
|
+
InternalTemplateAgentCreateResponseFormat,
|
|
158
|
+
InternalTemplateAgentCreateToolRulesItem,
|
|
159
|
+
InternalTemplateBlockCreate,
|
|
160
|
+
InternalTemplateGroupCreate,
|
|
161
|
+
InternalTemplateGroupCreateManagerConfig,
|
|
156
162
|
Job,
|
|
157
163
|
JobStatus,
|
|
158
164
|
JobType,
|
|
@@ -614,6 +620,12 @@ __all__ = [
|
|
|
614
620
|
"InitToolRule",
|
|
615
621
|
"InputAudio",
|
|
616
622
|
"InputAudioFormat",
|
|
623
|
+
"InternalTemplateAgentCreate",
|
|
624
|
+
"InternalTemplateAgentCreateResponseFormat",
|
|
625
|
+
"InternalTemplateAgentCreateToolRulesItem",
|
|
626
|
+
"InternalTemplateBlockCreate",
|
|
627
|
+
"InternalTemplateGroupCreate",
|
|
628
|
+
"InternalTemplateGroupCreateManagerConfig",
|
|
617
629
|
"Job",
|
|
618
630
|
"JobStatus",
|
|
619
631
|
"JobType",
|
|
@@ -81,6 +81,7 @@ class BlocksClient:
|
|
|
81
81
|
read_only: typing.Optional[bool] = OMIT,
|
|
82
82
|
description: typing.Optional[str] = OMIT,
|
|
83
83
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
84
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
84
85
|
request_options: typing.Optional[RequestOptions] = None,
|
|
85
86
|
) -> Block:
|
|
86
87
|
"""
|
|
@@ -131,6 +132,9 @@ class BlocksClient:
|
|
|
131
132
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
132
133
|
Metadata of the block.
|
|
133
134
|
|
|
135
|
+
hidden : typing.Optional[bool]
|
|
136
|
+
If set to True, the block will be hidden.
|
|
137
|
+
|
|
134
138
|
request_options : typing.Optional[RequestOptions]
|
|
135
139
|
Request-specific configuration.
|
|
136
140
|
|
|
@@ -168,6 +172,7 @@ class BlocksClient:
|
|
|
168
172
|
read_only=read_only,
|
|
169
173
|
description=description,
|
|
170
174
|
metadata=metadata,
|
|
175
|
+
hidden=hidden,
|
|
171
176
|
request_options=request_options,
|
|
172
177
|
)
|
|
173
178
|
return _response.data
|
|
@@ -353,6 +358,7 @@ class AsyncBlocksClient:
|
|
|
353
358
|
read_only: typing.Optional[bool] = OMIT,
|
|
354
359
|
description: typing.Optional[str] = OMIT,
|
|
355
360
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
361
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
356
362
|
request_options: typing.Optional[RequestOptions] = None,
|
|
357
363
|
) -> Block:
|
|
358
364
|
"""
|
|
@@ -403,6 +409,9 @@ class AsyncBlocksClient:
|
|
|
403
409
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
404
410
|
Metadata of the block.
|
|
405
411
|
|
|
412
|
+
hidden : typing.Optional[bool]
|
|
413
|
+
If set to True, the block will be hidden.
|
|
414
|
+
|
|
406
415
|
request_options : typing.Optional[RequestOptions]
|
|
407
416
|
Request-specific configuration.
|
|
408
417
|
|
|
@@ -448,6 +457,7 @@ class AsyncBlocksClient:
|
|
|
448
457
|
read_only=read_only,
|
|
449
458
|
description=description,
|
|
450
459
|
metadata=metadata,
|
|
460
|
+
hidden=hidden,
|
|
451
461
|
request_options=request_options,
|
|
452
462
|
)
|
|
453
463
|
return _response.data
|
|
@@ -91,6 +91,7 @@ class RawBlocksClient:
|
|
|
91
91
|
read_only: typing.Optional[bool] = OMIT,
|
|
92
92
|
description: typing.Optional[str] = OMIT,
|
|
93
93
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
94
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
94
95
|
request_options: typing.Optional[RequestOptions] = None,
|
|
95
96
|
) -> HttpResponse[Block]:
|
|
96
97
|
"""
|
|
@@ -141,6 +142,9 @@ class RawBlocksClient:
|
|
|
141
142
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
142
143
|
Metadata of the block.
|
|
143
144
|
|
|
145
|
+
hidden : typing.Optional[bool]
|
|
146
|
+
If set to True, the block will be hidden.
|
|
147
|
+
|
|
144
148
|
request_options : typing.Optional[RequestOptions]
|
|
145
149
|
Request-specific configuration.
|
|
146
150
|
|
|
@@ -166,6 +170,7 @@ class RawBlocksClient:
|
|
|
166
170
|
"read_only": read_only,
|
|
167
171
|
"description": description,
|
|
168
172
|
"metadata": metadata,
|
|
173
|
+
"hidden": hidden,
|
|
169
174
|
},
|
|
170
175
|
headers={
|
|
171
176
|
"content-type": "application/json",
|
|
@@ -424,6 +429,7 @@ class AsyncRawBlocksClient:
|
|
|
424
429
|
read_only: typing.Optional[bool] = OMIT,
|
|
425
430
|
description: typing.Optional[str] = OMIT,
|
|
426
431
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
432
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
427
433
|
request_options: typing.Optional[RequestOptions] = None,
|
|
428
434
|
) -> AsyncHttpResponse[Block]:
|
|
429
435
|
"""
|
|
@@ -474,6 +480,9 @@ class AsyncRawBlocksClient:
|
|
|
474
480
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
475
481
|
Metadata of the block.
|
|
476
482
|
|
|
483
|
+
hidden : typing.Optional[bool]
|
|
484
|
+
If set to True, the block will be hidden.
|
|
485
|
+
|
|
477
486
|
request_options : typing.Optional[RequestOptions]
|
|
478
487
|
Request-specific configuration.
|
|
479
488
|
|
|
@@ -499,6 +508,7 @@ class AsyncRawBlocksClient:
|
|
|
499
508
|
"read_only": read_only,
|
|
500
509
|
"description": description,
|
|
501
510
|
"metadata": metadata,
|
|
511
|
+
"hidden": hidden,
|
|
502
512
|
},
|
|
503
513
|
headers={
|
|
504
514
|
"content-type": "application/json",
|
|
@@ -152,8 +152,8 @@ class PassagesClient:
|
|
|
152
152
|
tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
153
153
|
tag_match_mode: typing.Optional[PassagesSearchRequestTagMatchMode] = None,
|
|
154
154
|
top_k: typing.Optional[int] = None,
|
|
155
|
-
start_datetime: typing.Optional[
|
|
156
|
-
end_datetime: typing.Optional[
|
|
155
|
+
start_datetime: typing.Optional[dt.datetime] = None,
|
|
156
|
+
end_datetime: typing.Optional[dt.datetime] = None,
|
|
157
157
|
request_options: typing.Optional[RequestOptions] = None,
|
|
158
158
|
) -> ArchivalMemorySearchResponse:
|
|
159
159
|
"""
|
|
@@ -179,11 +179,11 @@ class PassagesClient:
|
|
|
179
179
|
top_k : typing.Optional[int]
|
|
180
180
|
Maximum number of results to return. Uses system default if not specified
|
|
181
181
|
|
|
182
|
-
start_datetime : typing.Optional[
|
|
183
|
-
Filter results to passages created after this datetime
|
|
182
|
+
start_datetime : typing.Optional[dt.datetime]
|
|
183
|
+
Filter results to passages created after this datetime
|
|
184
184
|
|
|
185
|
-
end_datetime : typing.Optional[
|
|
186
|
-
Filter results to passages created before this datetime
|
|
185
|
+
end_datetime : typing.Optional[dt.datetime]
|
|
186
|
+
Filter results to passages created before this datetime
|
|
187
187
|
|
|
188
188
|
request_options : typing.Optional[RequestOptions]
|
|
189
189
|
Request-specific configuration.
|
|
@@ -440,8 +440,8 @@ class AsyncPassagesClient:
|
|
|
440
440
|
tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
441
441
|
tag_match_mode: typing.Optional[PassagesSearchRequestTagMatchMode] = None,
|
|
442
442
|
top_k: typing.Optional[int] = None,
|
|
443
|
-
start_datetime: typing.Optional[
|
|
444
|
-
end_datetime: typing.Optional[
|
|
443
|
+
start_datetime: typing.Optional[dt.datetime] = None,
|
|
444
|
+
end_datetime: typing.Optional[dt.datetime] = None,
|
|
445
445
|
request_options: typing.Optional[RequestOptions] = None,
|
|
446
446
|
) -> ArchivalMemorySearchResponse:
|
|
447
447
|
"""
|
|
@@ -467,11 +467,11 @@ class AsyncPassagesClient:
|
|
|
467
467
|
top_k : typing.Optional[int]
|
|
468
468
|
Maximum number of results to return. Uses system default if not specified
|
|
469
469
|
|
|
470
|
-
start_datetime : typing.Optional[
|
|
471
|
-
Filter results to passages created after this datetime
|
|
470
|
+
start_datetime : typing.Optional[dt.datetime]
|
|
471
|
+
Filter results to passages created after this datetime
|
|
472
472
|
|
|
473
|
-
end_datetime : typing.Optional[
|
|
474
|
-
Filter results to passages created before this datetime
|
|
473
|
+
end_datetime : typing.Optional[dt.datetime]
|
|
474
|
+
Filter results to passages created before this datetime
|
|
475
475
|
|
|
476
476
|
request_options : typing.Optional[RequestOptions]
|
|
477
477
|
Request-specific configuration.
|
|
@@ -6,6 +6,7 @@ from json.decoder import JSONDecodeError
|
|
|
6
6
|
|
|
7
7
|
from ...core.api_error import ApiError
|
|
8
8
|
from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
9
|
+
from ...core.datetime_utils import serialize_datetime
|
|
9
10
|
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
|
10
11
|
from ...core.jsonable_encoder import jsonable_encoder
|
|
11
12
|
from ...core.request_options import RequestOptions
|
|
@@ -184,8 +185,8 @@ class RawPassagesClient:
|
|
|
184
185
|
tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
185
186
|
tag_match_mode: typing.Optional[PassagesSearchRequestTagMatchMode] = None,
|
|
186
187
|
top_k: typing.Optional[int] = None,
|
|
187
|
-
start_datetime: typing.Optional[
|
|
188
|
-
end_datetime: typing.Optional[
|
|
188
|
+
start_datetime: typing.Optional[dt.datetime] = None,
|
|
189
|
+
end_datetime: typing.Optional[dt.datetime] = None,
|
|
189
190
|
request_options: typing.Optional[RequestOptions] = None,
|
|
190
191
|
) -> HttpResponse[ArchivalMemorySearchResponse]:
|
|
191
192
|
"""
|
|
@@ -211,11 +212,11 @@ class RawPassagesClient:
|
|
|
211
212
|
top_k : typing.Optional[int]
|
|
212
213
|
Maximum number of results to return. Uses system default if not specified
|
|
213
214
|
|
|
214
|
-
start_datetime : typing.Optional[
|
|
215
|
-
Filter results to passages created after this datetime
|
|
215
|
+
start_datetime : typing.Optional[dt.datetime]
|
|
216
|
+
Filter results to passages created after this datetime
|
|
216
217
|
|
|
217
|
-
end_datetime : typing.Optional[
|
|
218
|
-
Filter results to passages created before this datetime
|
|
218
|
+
end_datetime : typing.Optional[dt.datetime]
|
|
219
|
+
Filter results to passages created before this datetime
|
|
219
220
|
|
|
220
221
|
request_options : typing.Optional[RequestOptions]
|
|
221
222
|
Request-specific configuration.
|
|
@@ -233,8 +234,8 @@ class RawPassagesClient:
|
|
|
233
234
|
"tags": tags,
|
|
234
235
|
"tag_match_mode": tag_match_mode,
|
|
235
236
|
"top_k": top_k,
|
|
236
|
-
"start_datetime": start_datetime,
|
|
237
|
-
"end_datetime": end_datetime,
|
|
237
|
+
"start_datetime": serialize_datetime(start_datetime) if start_datetime is not None else None,
|
|
238
|
+
"end_datetime": serialize_datetime(end_datetime) if end_datetime is not None else None,
|
|
238
239
|
},
|
|
239
240
|
request_options=request_options,
|
|
240
241
|
)
|
|
@@ -512,8 +513,8 @@ class AsyncRawPassagesClient:
|
|
|
512
513
|
tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
513
514
|
tag_match_mode: typing.Optional[PassagesSearchRequestTagMatchMode] = None,
|
|
514
515
|
top_k: typing.Optional[int] = None,
|
|
515
|
-
start_datetime: typing.Optional[
|
|
516
|
-
end_datetime: typing.Optional[
|
|
516
|
+
start_datetime: typing.Optional[dt.datetime] = None,
|
|
517
|
+
end_datetime: typing.Optional[dt.datetime] = None,
|
|
517
518
|
request_options: typing.Optional[RequestOptions] = None,
|
|
518
519
|
) -> AsyncHttpResponse[ArchivalMemorySearchResponse]:
|
|
519
520
|
"""
|
|
@@ -539,11 +540,11 @@ class AsyncRawPassagesClient:
|
|
|
539
540
|
top_k : typing.Optional[int]
|
|
540
541
|
Maximum number of results to return. Uses system default if not specified
|
|
541
542
|
|
|
542
|
-
start_datetime : typing.Optional[
|
|
543
|
-
Filter results to passages created after this datetime
|
|
543
|
+
start_datetime : typing.Optional[dt.datetime]
|
|
544
|
+
Filter results to passages created after this datetime
|
|
544
545
|
|
|
545
|
-
end_datetime : typing.Optional[
|
|
546
|
-
Filter results to passages created before this datetime
|
|
546
|
+
end_datetime : typing.Optional[dt.datetime]
|
|
547
|
+
Filter results to passages created before this datetime
|
|
547
548
|
|
|
548
549
|
request_options : typing.Optional[RequestOptions]
|
|
549
550
|
Request-specific configuration.
|
|
@@ -561,8 +562,8 @@ class AsyncRawPassagesClient:
|
|
|
561
562
|
"tags": tags,
|
|
562
563
|
"tag_match_mode": tag_match_mode,
|
|
563
564
|
"top_k": top_k,
|
|
564
|
-
"start_datetime": start_datetime,
|
|
565
|
-
"end_datetime": end_datetime,
|
|
565
|
+
"start_datetime": serialize_datetime(start_datetime) if start_datetime is not None else None,
|
|
566
|
+
"end_datetime": serialize_datetime(end_datetime) if end_datetime is not None else None,
|
|
566
567
|
},
|
|
567
568
|
request_options=request_options,
|
|
568
569
|
)
|
letta_client/blocks/client.py
CHANGED
|
@@ -150,6 +150,7 @@ class BlocksClient:
|
|
|
150
150
|
read_only: typing.Optional[bool] = OMIT,
|
|
151
151
|
description: typing.Optional[str] = OMIT,
|
|
152
152
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
153
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
153
154
|
request_options: typing.Optional[RequestOptions] = None,
|
|
154
155
|
) -> Block:
|
|
155
156
|
"""
|
|
@@ -193,6 +194,9 @@ class BlocksClient:
|
|
|
193
194
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
194
195
|
Metadata of the block.
|
|
195
196
|
|
|
197
|
+
hidden : typing.Optional[bool]
|
|
198
|
+
If set to True, the block will be hidden.
|
|
199
|
+
|
|
196
200
|
request_options : typing.Optional[RequestOptions]
|
|
197
201
|
Request-specific configuration.
|
|
198
202
|
|
|
@@ -228,6 +232,7 @@ class BlocksClient:
|
|
|
228
232
|
read_only=read_only,
|
|
229
233
|
description=description,
|
|
230
234
|
metadata=metadata,
|
|
235
|
+
hidden=hidden,
|
|
231
236
|
request_options=request_options,
|
|
232
237
|
)
|
|
233
238
|
return _response.data
|
|
@@ -336,6 +341,7 @@ class BlocksClient:
|
|
|
336
341
|
read_only: typing.Optional[bool] = OMIT,
|
|
337
342
|
description: typing.Optional[str] = OMIT,
|
|
338
343
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
344
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
339
345
|
request_options: typing.Optional[RequestOptions] = None,
|
|
340
346
|
) -> Block:
|
|
341
347
|
"""
|
|
@@ -382,6 +388,9 @@ class BlocksClient:
|
|
|
382
388
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
383
389
|
Metadata of the block.
|
|
384
390
|
|
|
391
|
+
hidden : typing.Optional[bool]
|
|
392
|
+
If set to True, the block will be hidden.
|
|
393
|
+
|
|
385
394
|
request_options : typing.Optional[RequestOptions]
|
|
386
395
|
Request-specific configuration.
|
|
387
396
|
|
|
@@ -417,6 +426,7 @@ class BlocksClient:
|
|
|
417
426
|
read_only=read_only,
|
|
418
427
|
description=description,
|
|
419
428
|
metadata=metadata,
|
|
429
|
+
hidden=hidden,
|
|
420
430
|
request_options=request_options,
|
|
421
431
|
)
|
|
422
432
|
return _response.data
|
|
@@ -568,6 +578,7 @@ class AsyncBlocksClient:
|
|
|
568
578
|
read_only: typing.Optional[bool] = OMIT,
|
|
569
579
|
description: typing.Optional[str] = OMIT,
|
|
570
580
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
581
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
571
582
|
request_options: typing.Optional[RequestOptions] = None,
|
|
572
583
|
) -> Block:
|
|
573
584
|
"""
|
|
@@ -611,6 +622,9 @@ class AsyncBlocksClient:
|
|
|
611
622
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
612
623
|
Metadata of the block.
|
|
613
624
|
|
|
625
|
+
hidden : typing.Optional[bool]
|
|
626
|
+
If set to True, the block will be hidden.
|
|
627
|
+
|
|
614
628
|
request_options : typing.Optional[RequestOptions]
|
|
615
629
|
Request-specific configuration.
|
|
616
630
|
|
|
@@ -654,6 +668,7 @@ class AsyncBlocksClient:
|
|
|
654
668
|
read_only=read_only,
|
|
655
669
|
description=description,
|
|
656
670
|
metadata=metadata,
|
|
671
|
+
hidden=hidden,
|
|
657
672
|
request_options=request_options,
|
|
658
673
|
)
|
|
659
674
|
return _response.data
|
|
@@ -786,6 +801,7 @@ class AsyncBlocksClient:
|
|
|
786
801
|
read_only: typing.Optional[bool] = OMIT,
|
|
787
802
|
description: typing.Optional[str] = OMIT,
|
|
788
803
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
804
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
789
805
|
request_options: typing.Optional[RequestOptions] = None,
|
|
790
806
|
) -> Block:
|
|
791
807
|
"""
|
|
@@ -832,6 +848,9 @@ class AsyncBlocksClient:
|
|
|
832
848
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
833
849
|
Metadata of the block.
|
|
834
850
|
|
|
851
|
+
hidden : typing.Optional[bool]
|
|
852
|
+
If set to True, the block will be hidden.
|
|
853
|
+
|
|
835
854
|
request_options : typing.Optional[RequestOptions]
|
|
836
855
|
Request-specific configuration.
|
|
837
856
|
|
|
@@ -875,6 +894,7 @@ class AsyncBlocksClient:
|
|
|
875
894
|
read_only=read_only,
|
|
876
895
|
description=description,
|
|
877
896
|
metadata=metadata,
|
|
897
|
+
hidden=hidden,
|
|
878
898
|
request_options=request_options,
|
|
879
899
|
)
|
|
880
900
|
return _response.data
|
|
@@ -161,6 +161,7 @@ class RawBlocksClient:
|
|
|
161
161
|
read_only: typing.Optional[bool] = OMIT,
|
|
162
162
|
description: typing.Optional[str] = OMIT,
|
|
163
163
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
164
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
164
165
|
request_options: typing.Optional[RequestOptions] = None,
|
|
165
166
|
) -> HttpResponse[Block]:
|
|
166
167
|
"""
|
|
@@ -204,6 +205,9 @@ class RawBlocksClient:
|
|
|
204
205
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
205
206
|
Metadata of the block.
|
|
206
207
|
|
|
208
|
+
hidden : typing.Optional[bool]
|
|
209
|
+
If set to True, the block will be hidden.
|
|
210
|
+
|
|
207
211
|
request_options : typing.Optional[RequestOptions]
|
|
208
212
|
Request-specific configuration.
|
|
209
213
|
|
|
@@ -229,6 +233,7 @@ class RawBlocksClient:
|
|
|
229
233
|
"read_only": read_only,
|
|
230
234
|
"description": description,
|
|
231
235
|
"metadata": metadata,
|
|
236
|
+
"hidden": hidden,
|
|
232
237
|
},
|
|
233
238
|
headers={
|
|
234
239
|
"content-type": "application/json",
|
|
@@ -420,6 +425,7 @@ class RawBlocksClient:
|
|
|
420
425
|
read_only: typing.Optional[bool] = OMIT,
|
|
421
426
|
description: typing.Optional[str] = OMIT,
|
|
422
427
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
428
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
423
429
|
request_options: typing.Optional[RequestOptions] = None,
|
|
424
430
|
) -> HttpResponse[Block]:
|
|
425
431
|
"""
|
|
@@ -466,6 +472,9 @@ class RawBlocksClient:
|
|
|
466
472
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
467
473
|
Metadata of the block.
|
|
468
474
|
|
|
475
|
+
hidden : typing.Optional[bool]
|
|
476
|
+
If set to True, the block will be hidden.
|
|
477
|
+
|
|
469
478
|
request_options : typing.Optional[RequestOptions]
|
|
470
479
|
Request-specific configuration.
|
|
471
480
|
|
|
@@ -491,6 +500,7 @@ class RawBlocksClient:
|
|
|
491
500
|
"read_only": read_only,
|
|
492
501
|
"description": description,
|
|
493
502
|
"metadata": metadata,
|
|
503
|
+
"hidden": hidden,
|
|
494
504
|
},
|
|
495
505
|
headers={
|
|
496
506
|
"content-type": "application/json",
|
|
@@ -669,6 +679,7 @@ class AsyncRawBlocksClient:
|
|
|
669
679
|
read_only: typing.Optional[bool] = OMIT,
|
|
670
680
|
description: typing.Optional[str] = OMIT,
|
|
671
681
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
682
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
672
683
|
request_options: typing.Optional[RequestOptions] = None,
|
|
673
684
|
) -> AsyncHttpResponse[Block]:
|
|
674
685
|
"""
|
|
@@ -712,6 +723,9 @@ class AsyncRawBlocksClient:
|
|
|
712
723
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
713
724
|
Metadata of the block.
|
|
714
725
|
|
|
726
|
+
hidden : typing.Optional[bool]
|
|
727
|
+
If set to True, the block will be hidden.
|
|
728
|
+
|
|
715
729
|
request_options : typing.Optional[RequestOptions]
|
|
716
730
|
Request-specific configuration.
|
|
717
731
|
|
|
@@ -737,6 +751,7 @@ class AsyncRawBlocksClient:
|
|
|
737
751
|
"read_only": read_only,
|
|
738
752
|
"description": description,
|
|
739
753
|
"metadata": metadata,
|
|
754
|
+
"hidden": hidden,
|
|
740
755
|
},
|
|
741
756
|
headers={
|
|
742
757
|
"content-type": "application/json",
|
|
@@ -928,6 +943,7 @@ class AsyncRawBlocksClient:
|
|
|
928
943
|
read_only: typing.Optional[bool] = OMIT,
|
|
929
944
|
description: typing.Optional[str] = OMIT,
|
|
930
945
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
946
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
931
947
|
request_options: typing.Optional[RequestOptions] = None,
|
|
932
948
|
) -> AsyncHttpResponse[Block]:
|
|
933
949
|
"""
|
|
@@ -974,6 +990,9 @@ class AsyncRawBlocksClient:
|
|
|
974
990
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
975
991
|
Metadata of the block.
|
|
976
992
|
|
|
993
|
+
hidden : typing.Optional[bool]
|
|
994
|
+
If set to True, the block will be hidden.
|
|
995
|
+
|
|
977
996
|
request_options : typing.Optional[RequestOptions]
|
|
978
997
|
Request-specific configuration.
|
|
979
998
|
|
|
@@ -999,6 +1018,7 @@ class AsyncRawBlocksClient:
|
|
|
999
1018
|
"read_only": read_only,
|
|
1000
1019
|
"description": description,
|
|
1001
1020
|
"metadata": metadata,
|
|
1021
|
+
"hidden": hidden,
|
|
1002
1022
|
},
|
|
1003
1023
|
headers={
|
|
1004
1024
|
"content-type": "application/json",
|
|
@@ -24,10 +24,10 @@ class BaseClientWrapper:
|
|
|
24
24
|
|
|
25
25
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
26
26
|
headers: typing.Dict[str, str] = {
|
|
27
|
-
"User-Agent": "letta-client/0.1.
|
|
27
|
+
"User-Agent": "letta-client/0.1.311",
|
|
28
28
|
"X-Fern-Language": "Python",
|
|
29
29
|
"X-Fern-SDK-Name": "letta-client",
|
|
30
|
-
"X-Fern-SDK-Version": "0.1.
|
|
30
|
+
"X-Fern-SDK-Version": "0.1.311",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
letta_client/groups/client.py
CHANGED
|
@@ -97,6 +97,7 @@ class GroupsClient:
|
|
|
97
97
|
manager_config: typing.Optional[GroupCreateManagerConfig] = OMIT,
|
|
98
98
|
project_id: typing.Optional[str] = OMIT,
|
|
99
99
|
shared_block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
100
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
100
101
|
request_options: typing.Optional[RequestOptions] = None,
|
|
101
102
|
) -> Group:
|
|
102
103
|
"""
|
|
@@ -119,6 +120,9 @@ class GroupsClient:
|
|
|
119
120
|
shared_block_ids : typing.Optional[typing.Sequence[str]]
|
|
120
121
|
|
|
121
122
|
|
|
123
|
+
hidden : typing.Optional[bool]
|
|
124
|
+
If set to True, the group will be hidden.
|
|
125
|
+
|
|
122
126
|
request_options : typing.Optional[RequestOptions]
|
|
123
127
|
Request-specific configuration.
|
|
124
128
|
|
|
@@ -146,6 +150,7 @@ class GroupsClient:
|
|
|
146
150
|
manager_config=manager_config,
|
|
147
151
|
project_id=project_id,
|
|
148
152
|
shared_block_ids=shared_block_ids,
|
|
153
|
+
hidden=hidden,
|
|
149
154
|
request_options=request_options,
|
|
150
155
|
)
|
|
151
156
|
return _response.data
|
|
@@ -396,6 +401,7 @@ class AsyncGroupsClient:
|
|
|
396
401
|
manager_config: typing.Optional[GroupCreateManagerConfig] = OMIT,
|
|
397
402
|
project_id: typing.Optional[str] = OMIT,
|
|
398
403
|
shared_block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
404
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
399
405
|
request_options: typing.Optional[RequestOptions] = None,
|
|
400
406
|
) -> Group:
|
|
401
407
|
"""
|
|
@@ -418,6 +424,9 @@ class AsyncGroupsClient:
|
|
|
418
424
|
shared_block_ids : typing.Optional[typing.Sequence[str]]
|
|
419
425
|
|
|
420
426
|
|
|
427
|
+
hidden : typing.Optional[bool]
|
|
428
|
+
If set to True, the group will be hidden.
|
|
429
|
+
|
|
421
430
|
request_options : typing.Optional[RequestOptions]
|
|
422
431
|
Request-specific configuration.
|
|
423
432
|
|
|
@@ -453,6 +462,7 @@ class AsyncGroupsClient:
|
|
|
453
462
|
manager_config=manager_config,
|
|
454
463
|
project_id=project_id,
|
|
455
464
|
shared_block_ids=shared_block_ids,
|
|
465
|
+
hidden=hidden,
|
|
456
466
|
request_options=request_options,
|
|
457
467
|
)
|
|
458
468
|
return _response.data
|
|
@@ -109,6 +109,7 @@ class RawGroupsClient:
|
|
|
109
109
|
manager_config: typing.Optional[GroupCreateManagerConfig] = OMIT,
|
|
110
110
|
project_id: typing.Optional[str] = OMIT,
|
|
111
111
|
shared_block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
112
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
112
113
|
request_options: typing.Optional[RequestOptions] = None,
|
|
113
114
|
) -> HttpResponse[Group]:
|
|
114
115
|
"""
|
|
@@ -131,6 +132,9 @@ class RawGroupsClient:
|
|
|
131
132
|
shared_block_ids : typing.Optional[typing.Sequence[str]]
|
|
132
133
|
|
|
133
134
|
|
|
135
|
+
hidden : typing.Optional[bool]
|
|
136
|
+
If set to True, the group will be hidden.
|
|
137
|
+
|
|
134
138
|
request_options : typing.Optional[RequestOptions]
|
|
135
139
|
Request-specific configuration.
|
|
136
140
|
|
|
@@ -150,6 +154,7 @@ class RawGroupsClient:
|
|
|
150
154
|
),
|
|
151
155
|
"project_id": project_id,
|
|
152
156
|
"shared_block_ids": shared_block_ids,
|
|
157
|
+
"hidden": hidden,
|
|
153
158
|
},
|
|
154
159
|
headers={
|
|
155
160
|
"content-type": "application/json",
|
|
@@ -502,6 +507,7 @@ class AsyncRawGroupsClient:
|
|
|
502
507
|
manager_config: typing.Optional[GroupCreateManagerConfig] = OMIT,
|
|
503
508
|
project_id: typing.Optional[str] = OMIT,
|
|
504
509
|
shared_block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
510
|
+
hidden: typing.Optional[bool] = OMIT,
|
|
505
511
|
request_options: typing.Optional[RequestOptions] = None,
|
|
506
512
|
) -> AsyncHttpResponse[Group]:
|
|
507
513
|
"""
|
|
@@ -524,6 +530,9 @@ class AsyncRawGroupsClient:
|
|
|
524
530
|
shared_block_ids : typing.Optional[typing.Sequence[str]]
|
|
525
531
|
|
|
526
532
|
|
|
533
|
+
hidden : typing.Optional[bool]
|
|
534
|
+
If set to True, the group will be hidden.
|
|
535
|
+
|
|
527
536
|
request_options : typing.Optional[RequestOptions]
|
|
528
537
|
Request-specific configuration.
|
|
529
538
|
|
|
@@ -543,6 +552,7 @@ class AsyncRawGroupsClient:
|
|
|
543
552
|
),
|
|
544
553
|
"project_id": project_id,
|
|
545
554
|
"shared_block_ids": shared_block_ids,
|
|
555
|
+
"hidden": hidden,
|
|
546
556
|
},
|
|
547
557
|
headers={
|
|
548
558
|
"content-type": "application/json",
|
letta_client/types/__init__.py
CHANGED
|
@@ -152,6 +152,12 @@ from .imported_agents_response import ImportedAgentsResponse
|
|
|
152
152
|
from .init_tool_rule import InitToolRule
|
|
153
153
|
from .input_audio import InputAudio
|
|
154
154
|
from .input_audio_format import InputAudioFormat
|
|
155
|
+
from .internal_template_agent_create import InternalTemplateAgentCreate
|
|
156
|
+
from .internal_template_agent_create_response_format import InternalTemplateAgentCreateResponseFormat
|
|
157
|
+
from .internal_template_agent_create_tool_rules_item import InternalTemplateAgentCreateToolRulesItem
|
|
158
|
+
from .internal_template_block_create import InternalTemplateBlockCreate
|
|
159
|
+
from .internal_template_group_create import InternalTemplateGroupCreate
|
|
160
|
+
from .internal_template_group_create_manager_config import InternalTemplateGroupCreateManagerConfig
|
|
155
161
|
from .job import Job
|
|
156
162
|
from .job_status import JobStatus
|
|
157
163
|
from .job_type import JobType
|
|
@@ -493,6 +499,12 @@ __all__ = [
|
|
|
493
499
|
"InitToolRule",
|
|
494
500
|
"InputAudio",
|
|
495
501
|
"InputAudioFormat",
|
|
502
|
+
"InternalTemplateAgentCreate",
|
|
503
|
+
"InternalTemplateAgentCreateResponseFormat",
|
|
504
|
+
"InternalTemplateAgentCreateToolRulesItem",
|
|
505
|
+
"InternalTemplateBlockCreate",
|
|
506
|
+
"InternalTemplateGroupCreate",
|
|
507
|
+
"InternalTemplateGroupCreateManagerConfig",
|
|
496
508
|
"Job",
|
|
497
509
|
"JobStatus",
|
|
498
510
|
"JobType",
|
letta_client/types/block.py
CHANGED
|
@@ -88,6 +88,11 @@ class Block(UncheckedBaseModel):
|
|
|
88
88
|
Metadata of the block.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
+
hidden: typing.Optional[bool] = pydantic.Field(default=None)
|
|
92
|
+
"""
|
|
93
|
+
If set to True, the block will be hidden.
|
|
94
|
+
"""
|
|
95
|
+
|
|
91
96
|
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
92
97
|
"""
|
|
93
98
|
The human-friendly ID of the Block
|
|
@@ -73,6 +73,11 @@ class BlockSchema(UncheckedBaseModel):
|
|
|
73
73
|
Metadata of the block.
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
+
hidden: typing.Optional[bool] = pydantic.Field(default=None)
|
|
77
|
+
"""
|
|
78
|
+
If set to True, the block will be hidden.
|
|
79
|
+
"""
|
|
80
|
+
|
|
76
81
|
id: str = pydantic.Field()
|
|
77
82
|
"""
|
|
78
83
|
Human-readable identifier for this block in the file
|
|
@@ -77,6 +77,11 @@ class BlockUpdate(UncheckedBaseModel):
|
|
|
77
77
|
Metadata of the block.
|
|
78
78
|
"""
|
|
79
79
|
|
|
80
|
+
hidden: typing.Optional[bool] = pydantic.Field(default=None)
|
|
81
|
+
"""
|
|
82
|
+
If set to True, the block will be hidden.
|
|
83
|
+
"""
|
|
84
|
+
|
|
80
85
|
if IS_PYDANTIC_V2:
|
|
81
86
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
82
87
|
else:
|
|
@@ -73,6 +73,11 @@ class CreateBlock(UncheckedBaseModel):
|
|
|
73
73
|
Metadata of the block.
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
+
hidden: typing.Optional[bool] = pydantic.Field(default=None)
|
|
77
|
+
"""
|
|
78
|
+
If set to True, the block will be hidden.
|
|
79
|
+
"""
|
|
80
|
+
|
|
76
81
|
if IS_PYDANTIC_V2:
|
|
77
82
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
78
83
|
else:
|
letta_client/types/file_block.py
CHANGED
|
@@ -74,6 +74,11 @@ class FileBlock(UncheckedBaseModel):
|
|
|
74
74
|
Metadata of the block.
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
|
+
hidden: typing.Optional[bool] = pydantic.Field(default=None)
|
|
78
|
+
"""
|
|
79
|
+
If set to True, the block will be hidden.
|
|
80
|
+
"""
|
|
81
|
+
|
|
77
82
|
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
78
83
|
"""
|
|
79
84
|
The human-friendly ID of the Block
|