letta-client 0.1.71__py3-none-any.whl → 0.1.72__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/core/client_wrapper.py +1 -1
- letta_client/sources/client.py +22 -2
- {letta_client-0.1.71.dist-info → letta_client-0.1.72.dist-info}/METADATA +1 -1
- {letta_client-0.1.71.dist-info → letta_client-0.1.72.dist-info}/RECORD +5 -5
- {letta_client-0.1.71.dist-info → letta_client-0.1.72.dist-info}/WHEEL +0 -0
|
@@ -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.72",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/sources/client.py
CHANGED
|
@@ -343,6 +343,8 @@ class SourcesClient:
|
|
|
343
343
|
self,
|
|
344
344
|
*,
|
|
345
345
|
name: str,
|
|
346
|
+
embedding: typing.Optional[str] = OMIT,
|
|
347
|
+
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
346
348
|
embedding_config: typing.Optional[EmbeddingConfig] = OMIT,
|
|
347
349
|
description: typing.Optional[str] = OMIT,
|
|
348
350
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
@@ -356,8 +358,14 @@ class SourcesClient:
|
|
|
356
358
|
name : str
|
|
357
359
|
The name of the source.
|
|
358
360
|
|
|
361
|
+
embedding : typing.Optional[str]
|
|
362
|
+
The hande for the embedding config used by the source.
|
|
363
|
+
|
|
364
|
+
embedding_chunk_size : typing.Optional[int]
|
|
365
|
+
The chunk size of the embedding.
|
|
366
|
+
|
|
359
367
|
embedding_config : typing.Optional[EmbeddingConfig]
|
|
360
|
-
The embedding configuration used by the source.
|
|
368
|
+
(Legacy) The embedding configuration used by the source.
|
|
361
369
|
|
|
362
370
|
description : typing.Optional[str]
|
|
363
371
|
The description of the source.
|
|
@@ -389,6 +397,8 @@ class SourcesClient:
|
|
|
389
397
|
method="POST",
|
|
390
398
|
json={
|
|
391
399
|
"name": name,
|
|
400
|
+
"embedding": embedding,
|
|
401
|
+
"embedding_chunk_size": embedding_chunk_size,
|
|
392
402
|
"embedding_config": convert_and_respect_annotation_metadata(
|
|
393
403
|
object_=embedding_config, annotation=EmbeddingConfig, direction="write"
|
|
394
404
|
),
|
|
@@ -787,6 +797,8 @@ class AsyncSourcesClient:
|
|
|
787
797
|
self,
|
|
788
798
|
*,
|
|
789
799
|
name: str,
|
|
800
|
+
embedding: typing.Optional[str] = OMIT,
|
|
801
|
+
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
790
802
|
embedding_config: typing.Optional[EmbeddingConfig] = OMIT,
|
|
791
803
|
description: typing.Optional[str] = OMIT,
|
|
792
804
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
@@ -800,8 +812,14 @@ class AsyncSourcesClient:
|
|
|
800
812
|
name : str
|
|
801
813
|
The name of the source.
|
|
802
814
|
|
|
815
|
+
embedding : typing.Optional[str]
|
|
816
|
+
The hande for the embedding config used by the source.
|
|
817
|
+
|
|
818
|
+
embedding_chunk_size : typing.Optional[int]
|
|
819
|
+
The chunk size of the embedding.
|
|
820
|
+
|
|
803
821
|
embedding_config : typing.Optional[EmbeddingConfig]
|
|
804
|
-
The embedding configuration used by the source.
|
|
822
|
+
(Legacy) The embedding configuration used by the source.
|
|
805
823
|
|
|
806
824
|
description : typing.Optional[str]
|
|
807
825
|
The description of the source.
|
|
@@ -841,6 +859,8 @@ class AsyncSourcesClient:
|
|
|
841
859
|
method="POST",
|
|
842
860
|
json={
|
|
843
861
|
"name": name,
|
|
862
|
+
"embedding": embedding,
|
|
863
|
+
"embedding_chunk_size": embedding_chunk_size,
|
|
844
864
|
"embedding_config": convert_and_respect_annotation_metadata(
|
|
845
865
|
object_=embedding_config, annotation=EmbeddingConfig, direction="write"
|
|
846
866
|
),
|
|
@@ -228,7 +228,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
|
|
|
228
228
|
letta_client/client.py,sha256=xdSrD4IkWokZHujowd1r7zESBoVgKGNvo6RqgZ3f0Fg,12808
|
|
229
229
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
230
230
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
231
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
231
|
+
letta_client/core/client_wrapper.py,sha256=9dcuqc6rP8ulK41Vq8XJceIN5ghX3GT5KQEOXSsmpCk,1997
|
|
232
232
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
233
233
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
234
234
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -261,7 +261,7 @@ letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
261
261
|
letta_client/runs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
262
262
|
letta_client/runs/client.py,sha256=fu6RNu6qkG5kOkT7rfIjeuHp_REW5ZGxNwzFqTmhb-o,34546
|
|
263
263
|
letta_client/sources/__init__.py,sha256=kswgCv4UdkSVk1Y4tsMM1HadOwvhh_Fr96VTSMV4Umc,128
|
|
264
|
-
letta_client/sources/client.py,sha256=
|
|
264
|
+
letta_client/sources/client.py,sha256=5cxPpigLN0YvzlkCOKcySV6g1_k8zknpE0tw7EN2Y1Y,29073
|
|
265
265
|
letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
266
266
|
letta_client/sources/files/client.py,sha256=R-9zHK_wWtvW-2K7erQVVh9rR7a5JC4zxmTK3rrWJoU,13289
|
|
267
267
|
letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -676,6 +676,6 @@ letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7Vvnip
|
|
|
676
676
|
letta_client/voice/client.py,sha256=O38dLq__WTwLPlFTtvw1hgqaPYK9alds_ft12Bnp5fs,6475
|
|
677
677
|
letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
|
|
678
678
|
letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
|
|
679
|
-
letta_client-0.1.
|
|
680
|
-
letta_client-0.1.
|
|
681
|
-
letta_client-0.1.
|
|
679
|
+
letta_client-0.1.72.dist-info/METADATA,sha256=ZSU2EqsPKAUEtu7lQJuB6H4Pk8vZSqVaLvi2EONj9tI,5041
|
|
680
|
+
letta_client-0.1.72.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
681
|
+
letta_client-0.1.72.dist-info/RECORD,,
|
|
File without changes
|