letta-client 0.1.141__py3-none-any.whl → 0.1.143__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/blocks/client.py +10 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/sources/client.py +20 -0
- letta_client/types/source.py +5 -0
- {letta_client-0.1.141.dist-info → letta_client-0.1.143.dist-info}/METADATA +1 -1
- {letta_client-0.1.141.dist-info → letta_client-0.1.143.dist-info}/RECORD +7 -7
- {letta_client-0.1.141.dist-info → letta_client-0.1.143.dist-info}/WHEEL +0 -0
letta_client/blocks/client.py
CHANGED
|
@@ -31,6 +31,7 @@ class BlocksClient:
|
|
|
31
31
|
name: typing.Optional[str] = None,
|
|
32
32
|
identity_id: typing.Optional[str] = None,
|
|
33
33
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
34
|
+
limit: typing.Optional[int] = None,
|
|
34
35
|
request_options: typing.Optional[RequestOptions] = None,
|
|
35
36
|
) -> typing.List[Block]:
|
|
36
37
|
"""
|
|
@@ -51,6 +52,9 @@ class BlocksClient:
|
|
|
51
52
|
identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
52
53
|
Search agents by identifier keys
|
|
53
54
|
|
|
55
|
+
limit : typing.Optional[int]
|
|
56
|
+
Number of blocks to return
|
|
57
|
+
|
|
54
58
|
request_options : typing.Optional[RequestOptions]
|
|
55
59
|
Request-specific configuration.
|
|
56
60
|
|
|
@@ -77,6 +81,7 @@ class BlocksClient:
|
|
|
77
81
|
"name": name,
|
|
78
82
|
"identity_id": identity_id,
|
|
79
83
|
"identifier_keys": identifier_keys,
|
|
84
|
+
"limit": limit,
|
|
80
85
|
},
|
|
81
86
|
request_options=request_options,
|
|
82
87
|
)
|
|
@@ -469,6 +474,7 @@ class AsyncBlocksClient:
|
|
|
469
474
|
name: typing.Optional[str] = None,
|
|
470
475
|
identity_id: typing.Optional[str] = None,
|
|
471
476
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
477
|
+
limit: typing.Optional[int] = None,
|
|
472
478
|
request_options: typing.Optional[RequestOptions] = None,
|
|
473
479
|
) -> typing.List[Block]:
|
|
474
480
|
"""
|
|
@@ -489,6 +495,9 @@ class AsyncBlocksClient:
|
|
|
489
495
|
identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
490
496
|
Search agents by identifier keys
|
|
491
497
|
|
|
498
|
+
limit : typing.Optional[int]
|
|
499
|
+
Number of blocks to return
|
|
500
|
+
|
|
492
501
|
request_options : typing.Optional[RequestOptions]
|
|
493
502
|
Request-specific configuration.
|
|
494
503
|
|
|
@@ -523,6 +532,7 @@ class AsyncBlocksClient:
|
|
|
523
532
|
"name": name,
|
|
524
533
|
"identity_id": identity_id,
|
|
525
534
|
"identifier_keys": identifier_keys,
|
|
535
|
+
"limit": limit,
|
|
526
536
|
},
|
|
527
537
|
request_options=request_options,
|
|
528
538
|
)
|
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
17
|
"X-Fern-Language": "Python",
|
|
18
18
|
"X-Fern-SDK-Name": "letta-client",
|
|
19
|
-
"X-Fern-SDK-Version": "0.1.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.143",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/sources/client.py
CHANGED
|
@@ -200,6 +200,7 @@ class SourcesClient:
|
|
|
200
200
|
*,
|
|
201
201
|
name: typing.Optional[str] = OMIT,
|
|
202
202
|
description: typing.Optional[str] = OMIT,
|
|
203
|
+
instructions: typing.Optional[str] = OMIT,
|
|
203
204
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
204
205
|
embedding_config: typing.Optional[EmbeddingConfig] = OMIT,
|
|
205
206
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -217,6 +218,9 @@ class SourcesClient:
|
|
|
217
218
|
description : typing.Optional[str]
|
|
218
219
|
The description of the source.
|
|
219
220
|
|
|
221
|
+
instructions : typing.Optional[str]
|
|
222
|
+
Instructions for how to use the source.
|
|
223
|
+
|
|
220
224
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
221
225
|
Metadata associated with the source.
|
|
222
226
|
|
|
@@ -248,6 +252,7 @@ class SourcesClient:
|
|
|
248
252
|
json={
|
|
249
253
|
"name": name,
|
|
250
254
|
"description": description,
|
|
255
|
+
"instructions": instructions,
|
|
251
256
|
"metadata": metadata,
|
|
252
257
|
"embedding_config": convert_and_respect_annotation_metadata(
|
|
253
258
|
object_=embedding_config, annotation=EmbeddingConfig, direction="write"
|
|
@@ -399,6 +404,7 @@ class SourcesClient:
|
|
|
399
404
|
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
400
405
|
embedding_config: typing.Optional[EmbeddingConfig] = OMIT,
|
|
401
406
|
description: typing.Optional[str] = OMIT,
|
|
407
|
+
instructions: typing.Optional[str] = OMIT,
|
|
402
408
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
403
409
|
request_options: typing.Optional[RequestOptions] = None,
|
|
404
410
|
) -> Source:
|
|
@@ -422,6 +428,9 @@ class SourcesClient:
|
|
|
422
428
|
description : typing.Optional[str]
|
|
423
429
|
The description of the source.
|
|
424
430
|
|
|
431
|
+
instructions : typing.Optional[str]
|
|
432
|
+
Instructions for how to use the source.
|
|
433
|
+
|
|
425
434
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
426
435
|
Metadata associated with the source.
|
|
427
436
|
|
|
@@ -455,6 +464,7 @@ class SourcesClient:
|
|
|
455
464
|
object_=embedding_config, annotation=EmbeddingConfig, direction="write"
|
|
456
465
|
),
|
|
457
466
|
"description": description,
|
|
467
|
+
"instructions": instructions,
|
|
458
468
|
"metadata": metadata,
|
|
459
469
|
},
|
|
460
470
|
headers={
|
|
@@ -690,6 +700,7 @@ class AsyncSourcesClient:
|
|
|
690
700
|
*,
|
|
691
701
|
name: typing.Optional[str] = OMIT,
|
|
692
702
|
description: typing.Optional[str] = OMIT,
|
|
703
|
+
instructions: typing.Optional[str] = OMIT,
|
|
693
704
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
694
705
|
embedding_config: typing.Optional[EmbeddingConfig] = OMIT,
|
|
695
706
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -707,6 +718,9 @@ class AsyncSourcesClient:
|
|
|
707
718
|
description : typing.Optional[str]
|
|
708
719
|
The description of the source.
|
|
709
720
|
|
|
721
|
+
instructions : typing.Optional[str]
|
|
722
|
+
Instructions for how to use the source.
|
|
723
|
+
|
|
710
724
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
711
725
|
Metadata associated with the source.
|
|
712
726
|
|
|
@@ -746,6 +760,7 @@ class AsyncSourcesClient:
|
|
|
746
760
|
json={
|
|
747
761
|
"name": name,
|
|
748
762
|
"description": description,
|
|
763
|
+
"instructions": instructions,
|
|
749
764
|
"metadata": metadata,
|
|
750
765
|
"embedding_config": convert_and_respect_annotation_metadata(
|
|
751
766
|
object_=embedding_config, annotation=EmbeddingConfig, direction="write"
|
|
@@ -915,6 +930,7 @@ class AsyncSourcesClient:
|
|
|
915
930
|
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
916
931
|
embedding_config: typing.Optional[EmbeddingConfig] = OMIT,
|
|
917
932
|
description: typing.Optional[str] = OMIT,
|
|
933
|
+
instructions: typing.Optional[str] = OMIT,
|
|
918
934
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
919
935
|
request_options: typing.Optional[RequestOptions] = None,
|
|
920
936
|
) -> Source:
|
|
@@ -938,6 +954,9 @@ class AsyncSourcesClient:
|
|
|
938
954
|
description : typing.Optional[str]
|
|
939
955
|
The description of the source.
|
|
940
956
|
|
|
957
|
+
instructions : typing.Optional[str]
|
|
958
|
+
Instructions for how to use the source.
|
|
959
|
+
|
|
941
960
|
metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
942
961
|
Metadata associated with the source.
|
|
943
962
|
|
|
@@ -979,6 +998,7 @@ class AsyncSourcesClient:
|
|
|
979
998
|
object_=embedding_config, annotation=EmbeddingConfig, direction="write"
|
|
980
999
|
),
|
|
981
1000
|
"description": description,
|
|
1001
|
+
"instructions": instructions,
|
|
982
1002
|
"metadata": metadata,
|
|
983
1003
|
},
|
|
984
1004
|
headers={
|
letta_client/types/source.py
CHANGED
|
@@ -36,6 +36,11 @@ class Source(UncheckedBaseModel):
|
|
|
36
36
|
The description of the source.
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
|
+
instructions: typing.Optional[str] = pydantic.Field(default=None)
|
|
40
|
+
"""
|
|
41
|
+
Instructions for how to use the source.
|
|
42
|
+
"""
|
|
43
|
+
|
|
39
44
|
embedding_config: EmbeddingConfig = pydantic.Field()
|
|
40
45
|
"""
|
|
41
46
|
The embedding configuration used by the source.
|
|
@@ -49,7 +49,7 @@ letta_client/batches/client.py,sha256=3uBs2SZbOP40b-Ck_DvicHuGJe5j3JAsK156zwsofp
|
|
|
49
49
|
letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
|
|
50
50
|
letta_client/blocks/agents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
51
51
|
letta_client/blocks/agents/client.py,sha256=-QywGs_ZfE5PbgzLYf2zzn9zAtpZmzGtHHZ5sXIYw0Y,4904
|
|
52
|
-
letta_client/blocks/client.py,sha256=
|
|
52
|
+
letta_client/blocks/client.py,sha256=nsjg2c2I2SRAEuONMzbvtsw8nD0drsXTgIu5egRyOLw,29951
|
|
53
53
|
letta_client/client.py,sha256=k2mZqqEWciVmEQHgipjCK4kQILk74hpSqzcdNwdql9A,21212
|
|
54
54
|
letta_client/client_side_access_tokens/__init__.py,sha256=z_wHT4UTBK7RzDIfLpdLMtBJBuuDosqgbzdmx-QME_o,763
|
|
55
55
|
letta_client/client_side_access_tokens/client.py,sha256=Qt1nmL-il4QzqWZHxY6XsSvCY8ps9FWXsWtUTPclVCc,12272
|
|
@@ -62,7 +62,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
62
62
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
63
63
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
64
64
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
65
|
-
letta_client/core/client_wrapper.py,sha256
|
|
65
|
+
letta_client/core/client_wrapper.py,sha256=tRBNAIwFSZTh4mSUa-RzVHtW4OfUjfubJ3P_Nq6Yi_A,1998
|
|
66
66
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
67
67
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
68
68
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -123,7 +123,7 @@ letta_client/runs/steps/client.py,sha256=f916x0x6FH7_WzBSl6uw03l-j-QMzr7HzOMNsvC
|
|
|
123
123
|
letta_client/runs/usage/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
124
124
|
letta_client/runs/usage/client.py,sha256=ea7e0R-Lv3VtbkJ-JC4RgYSr4TI2OjD31XeNLiDmUUg,4666
|
|
125
125
|
letta_client/sources/__init__.py,sha256=kswgCv4UdkSVk1Y4tsMM1HadOwvhh_Fr96VTSMV4Umc,128
|
|
126
|
-
letta_client/sources/client.py,sha256=
|
|
126
|
+
letta_client/sources/client.py,sha256=SRxv2SLREAW2eV_vjEYiMKEM5ViSVk_9dEIz75kOElA,33355
|
|
127
127
|
letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
128
128
|
letta_client/sources/files/client.py,sha256=R-9zHK_wWtvW-2K7erQVVh9rR7a5JC4zxmTK3rrWJoU,13289
|
|
129
129
|
letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -331,7 +331,7 @@ letta_client/types/sandbox_environment_variable_update.py,sha256=JMkX6nzvcBNEemj
|
|
|
331
331
|
letta_client/types/sandbox_type.py,sha256=XSWmX3JIFFrDPQ4i89E8LauXY8kjmJEtaz6e_JheGm4,151
|
|
332
332
|
letta_client/types/sleeptime_manager.py,sha256=oKI3CCoA4guwktWs1bbPdCmv9jg94EeMvbXQWvzbt6M,778
|
|
333
333
|
letta_client/types/sleeptime_manager_update.py,sha256=JMzgtvGMDI5VBzlTuzm4FpuFAL7uwPbQgN9TYxip93s,813
|
|
334
|
-
letta_client/types/source.py,sha256=
|
|
334
|
+
letta_client/types/source.py,sha256=BsfE9yrefXREQtskGZnR-TFGqmHkFKIGHC5udtHUi14,2370
|
|
335
335
|
letta_client/types/sse_server_config.py,sha256=b-h5FLm5MELZ5A9bwZt-02Zx_f3UbfKAQS--yHQVOQU,844
|
|
336
336
|
letta_client/types/stdio_server_config.py,sha256=dEQ7bguiLikGemLxYZJ3JCmmEQgAMsSPO_P52oHZSl0,1091
|
|
337
337
|
letta_client/types/step.py,sha256=XE98vMiU34dgUxLPvmJLdp9iWFPjg6E2Pb8xNSURMMg,2988
|
|
@@ -385,6 +385,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
385
385
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
386
386
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
387
387
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
388
|
-
letta_client-0.1.
|
|
389
|
-
letta_client-0.1.
|
|
390
|
-
letta_client-0.1.
|
|
388
|
+
letta_client-0.1.143.dist-info/METADATA,sha256=GE7zyYgWi4LBIhT8Kl-i904EnQTUAwz-9IDUWJWBv2k,5042
|
|
389
|
+
letta_client-0.1.143.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
390
|
+
letta_client-0.1.143.dist-info/RECORD,,
|
|
File without changes
|