letta-client 0.1.134__py3-none-any.whl → 0.1.136__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 +0 -2
- letta_client/base_client.py +0 -4
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/assistant_message.py +1 -0
- letta_client/types/hidden_reasoning_message.py +1 -0
- letta_client/types/message.py +5 -0
- letta_client/types/reasoning_message.py +1 -0
- letta_client/types/system_message.py +1 -0
- letta_client/types/tool_call_message.py +1 -0
- letta_client/types/tool_return_message.py +1 -0
- letta_client/types/user_message.py +1 -0
- {letta_client-0.1.134.dist-info → letta_client-0.1.136.dist-info}/METADATA +1 -1
- {letta_client-0.1.134.dist-info → letta_client-0.1.136.dist-info}/RECORD +14 -16
- letta_client/embeddings/__init__.py +0 -2
- letta_client/embeddings/client.py +0 -141
- {letta_client-0.1.134.dist-info → letta_client-0.1.136.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -237,7 +237,6 @@ from . import (
|
|
|
237
237
|
blocks,
|
|
238
238
|
client_side_access_tokens,
|
|
239
239
|
embedding_models,
|
|
240
|
-
embeddings,
|
|
241
240
|
groups,
|
|
242
241
|
health,
|
|
243
242
|
identities,
|
|
@@ -559,7 +558,6 @@ __all__ = [
|
|
|
559
558
|
"blocks",
|
|
560
559
|
"client_side_access_tokens",
|
|
561
560
|
"embedding_models",
|
|
562
|
-
"embeddings",
|
|
563
561
|
"groups",
|
|
564
562
|
"health",
|
|
565
563
|
"identities",
|
letta_client/base_client.py
CHANGED
|
@@ -20,7 +20,6 @@ from .steps.client import StepsClient
|
|
|
20
20
|
from .tags.client import TagsClient
|
|
21
21
|
from .batches.client import BatchesClient
|
|
22
22
|
from .voice.client import VoiceClient
|
|
23
|
-
from .embeddings.client import EmbeddingsClient
|
|
24
23
|
from .templates.client import TemplatesClient
|
|
25
24
|
from .client_side_access_tokens.client import ClientSideAccessTokensClient
|
|
26
25
|
from .projects.client import ProjectsClient
|
|
@@ -41,7 +40,6 @@ from .steps.client import AsyncStepsClient
|
|
|
41
40
|
from .tags.client import AsyncTagsClient
|
|
42
41
|
from .batches.client import AsyncBatchesClient
|
|
43
42
|
from .voice.client import AsyncVoiceClient
|
|
44
|
-
from .embeddings.client import AsyncEmbeddingsClient
|
|
45
43
|
from .templates.client import AsyncTemplatesClient
|
|
46
44
|
from .client_side_access_tokens.client import AsyncClientSideAccessTokensClient
|
|
47
45
|
from .projects.client import AsyncProjectsClient
|
|
@@ -121,7 +119,6 @@ class LettaBase:
|
|
|
121
119
|
self.tags = TagsClient(client_wrapper=self._client_wrapper)
|
|
122
120
|
self.batches = BatchesClient(client_wrapper=self._client_wrapper)
|
|
123
121
|
self.voice = VoiceClient(client_wrapper=self._client_wrapper)
|
|
124
|
-
self.embeddings = EmbeddingsClient(client_wrapper=self._client_wrapper)
|
|
125
122
|
self.templates = TemplatesClient(client_wrapper=self._client_wrapper)
|
|
126
123
|
self.client_side_access_tokens = ClientSideAccessTokensClient(client_wrapper=self._client_wrapper)
|
|
127
124
|
self.projects = ProjectsClient(client_wrapper=self._client_wrapper)
|
|
@@ -201,7 +198,6 @@ class AsyncLettaBase:
|
|
|
201
198
|
self.tags = AsyncTagsClient(client_wrapper=self._client_wrapper)
|
|
202
199
|
self.batches = AsyncBatchesClient(client_wrapper=self._client_wrapper)
|
|
203
200
|
self.voice = AsyncVoiceClient(client_wrapper=self._client_wrapper)
|
|
204
|
-
self.embeddings = AsyncEmbeddingsClient(client_wrapper=self._client_wrapper)
|
|
205
201
|
self.templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper)
|
|
206
202
|
self.client_side_access_tokens = AsyncClientSideAccessTokensClient(client_wrapper=self._client_wrapper)
|
|
207
203
|
self.projects = AsyncProjectsClient(client_wrapper=self._client_wrapper)
|
|
@@ -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.136",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -25,6 +25,7 @@ class AssistantMessage(UncheckedBaseModel):
|
|
|
25
25
|
message_type: typing.Literal["assistant_message"] = "assistant_message"
|
|
26
26
|
otid: typing.Optional[str] = None
|
|
27
27
|
sender_id: typing.Optional[str] = None
|
|
28
|
+
step_id: typing.Optional[str] = None
|
|
28
29
|
content: AssistantMessageContent = pydantic.Field()
|
|
29
30
|
"""
|
|
30
31
|
The message content sent by the agent (can be a string or an array of content parts)
|
|
@@ -28,6 +28,7 @@ class HiddenReasoningMessage(UncheckedBaseModel):
|
|
|
28
28
|
message_type: typing.Literal["hidden_reasoning_message"] = "hidden_reasoning_message"
|
|
29
29
|
otid: typing.Optional[str] = None
|
|
30
30
|
sender_id: typing.Optional[str] = None
|
|
31
|
+
step_id: typing.Optional[str] = None
|
|
31
32
|
state: HiddenReasoningMessageState
|
|
32
33
|
hidden_reasoning: typing.Optional[str] = None
|
|
33
34
|
|
letta_client/types/message.py
CHANGED
|
@@ -26,6 +26,11 @@ class Message(UncheckedBaseModel):
|
|
|
26
26
|
created_at (datetime): The time the message was created.
|
|
27
27
|
tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
|
|
28
28
|
tool_call_id (str): The id of the tool call.
|
|
29
|
+
step_id (str): The id of the step that this message was created in.
|
|
30
|
+
otid (str): The offline threading id associated with this message.
|
|
31
|
+
tool_returns (List[ToolReturn]): The list of tool returns requested.
|
|
32
|
+
group_id (str): The multi-agent group that the message was sent in.
|
|
33
|
+
sender_id (str): The id of the sender of the message, can be an identity id or agent id.
|
|
29
34
|
"""
|
|
30
35
|
|
|
31
36
|
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -28,6 +28,7 @@ class ReasoningMessage(UncheckedBaseModel):
|
|
|
28
28
|
message_type: typing.Literal["reasoning_message"] = "reasoning_message"
|
|
29
29
|
otid: typing.Optional[str] = None
|
|
30
30
|
sender_id: typing.Optional[str] = None
|
|
31
|
+
step_id: typing.Optional[str] = None
|
|
31
32
|
source: typing.Optional[ReasoningMessageSource] = None
|
|
32
33
|
reasoning: str
|
|
33
34
|
signature: typing.Optional[str] = None
|
|
@@ -24,6 +24,7 @@ class SystemMessage(UncheckedBaseModel):
|
|
|
24
24
|
message_type: typing.Literal["system_message"] = "system_message"
|
|
25
25
|
otid: typing.Optional[str] = None
|
|
26
26
|
sender_id: typing.Optional[str] = None
|
|
27
|
+
step_id: typing.Optional[str] = None
|
|
27
28
|
content: str = pydantic.Field()
|
|
28
29
|
"""
|
|
29
30
|
The message content sent by the system
|
|
@@ -25,6 +25,7 @@ class ToolCallMessage(UncheckedBaseModel):
|
|
|
25
25
|
message_type: typing.Literal["tool_call_message"] = "tool_call_message"
|
|
26
26
|
otid: typing.Optional[str] = None
|
|
27
27
|
sender_id: typing.Optional[str] = None
|
|
28
|
+
step_id: typing.Optional[str] = None
|
|
28
29
|
tool_call: ToolCallMessageToolCall
|
|
29
30
|
|
|
30
31
|
if IS_PYDANTIC_V2:
|
|
@@ -29,6 +29,7 @@ class ToolReturnMessage(UncheckedBaseModel):
|
|
|
29
29
|
message_type: typing.Literal["tool_return_message"] = "tool_return_message"
|
|
30
30
|
otid: typing.Optional[str] = None
|
|
31
31
|
sender_id: typing.Optional[str] = None
|
|
32
|
+
step_id: typing.Optional[str] = None
|
|
32
33
|
tool_return: str
|
|
33
34
|
status: ToolReturnMessageStatus
|
|
34
35
|
tool_call_id: str
|
|
@@ -25,6 +25,7 @@ class UserMessage(UncheckedBaseModel):
|
|
|
25
25
|
message_type: typing.Literal["user_message"] = "user_message"
|
|
26
26
|
otid: typing.Optional[str] = None
|
|
27
27
|
sender_id: typing.Optional[str] = None
|
|
28
|
+
step_id: typing.Optional[str] = None
|
|
28
29
|
content: UserMessageContent = pydantic.Field()
|
|
29
30
|
"""
|
|
30
31
|
The message content sent by the user (can be a string or an array of multi-modal content parts)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=Bb13waIc2Pl3Rb3qoqUZmWmGxkegsWXxz9mWRiA9qIc,16523
|
|
2
2
|
letta_client/agents/__init__.py,sha256=3oFWVxaaxkphkjGJVk31Llb9ll9dKoCGx3B_r3qqtes,1716
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=u5zvutxoH_DqfSLWhRtNSRBC9_ezQDx682cxkxDz3JA,23822
|
|
@@ -43,7 +43,7 @@ letta_client/agents/types/create_agent_request_response_format.py,sha256=1GUV3rF
|
|
|
43
43
|
letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=L3FNsFTG9kVmuPbQhbCKNg3H2E5bB2Rgp92gWmGd-LM,689
|
|
44
44
|
letta_client/agents/types/update_agent_response_format.py,sha256=oCoGofTKP7no6gNbDV6nJOpF8IlIplr1iPn5_7BA0cU,402
|
|
45
45
|
letta_client/agents/types/update_agent_tool_rules_item.py,sha256=k9MmcVPsK-EGl8XlT3JQwdlBNLgpGw528jmi8fCFS7g,682
|
|
46
|
-
letta_client/base_client.py,sha256=
|
|
46
|
+
letta_client/base_client.py,sha256=SV7ST7-_3E_DXxbJiCcjq_ONjoRMhjg7SAZkq6Fhlxk,9813
|
|
47
47
|
letta_client/batches/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
48
48
|
letta_client/batches/client.py,sha256=AyfQpG9d856XS9BYHjxCIwu08ye03KQjuwA-jd-9kWQ,18774
|
|
49
49
|
letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
|
|
@@ -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=mo9Jcxb58h-1yQ0EFZyzL8pgdtGC-isZ9-ZtCtej1IY,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
|
|
@@ -75,8 +75,6 @@ letta_client/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_
|
|
|
75
75
|
letta_client/core/unchecked_base_model.py,sha256=zliEPgLnK9yQ1dZ0mHP6agQ7H0bTZk8AvX6VC1r9oPQ,10754
|
|
76
76
|
letta_client/embedding_models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
77
77
|
letta_client/embedding_models/client.py,sha256=3D_iX5yokSmW6QkHzHT0SRuZtv2ZVQ9s0hdlKrFbk9k,3489
|
|
78
|
-
letta_client/embeddings/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
79
|
-
letta_client/embeddings/client.py,sha256=ZQCACTa_DlDB55BDgelB-8TTnnxaFgxOBLyhUUCnUlM,4677
|
|
80
78
|
letta_client/environment.py,sha256=91gYLF9bT4-hTPQ9dcPfmub4LgEl-T4a5kW7NXzRIJU,198
|
|
81
79
|
letta_client/errors/__init__.py,sha256=sf5qYBpvBUchcwEIvulM7AYVGJkiVxknC9OX6TOpOdo,433
|
|
82
80
|
letta_client/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcsZe1HKV9GDWJY,264
|
|
@@ -161,7 +159,7 @@ letta_client/types/agent_type.py,sha256=BgiG_S0olC5uPmqVlDL6OG5-F6CcEK4k-pkfuT36
|
|
|
161
159
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
162
160
|
letta_client/types/app_auth_scheme_auth_mode.py,sha256=cEj9XAxLgFcang_Irw6h3koWac9A0tpNeBG05NUeGlw,387
|
|
163
161
|
letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
|
|
164
|
-
letta_client/types/assistant_message.py,sha256=
|
|
162
|
+
letta_client/types/assistant_message.py,sha256=q9Ouy1AJYimcXJ6pykEW9WIBKy2HuKyEjTMCgCK9wUE,1509
|
|
165
163
|
letta_client/types/assistant_message_content.py,sha256=yKC7GsSHadzc-ye0Zp7TOqq_UBExULCXxdNn5CXJMsQ,241
|
|
166
164
|
letta_client/types/audio.py,sha256=aCgzL9SmkmM4yU7hy2IWwPrC-wtllplo3dQF9mjk7Fg,548
|
|
167
165
|
letta_client/types/auth_request.py,sha256=q63VMj39aCmljDuzUeAClXEqyaoa_HKv5IraSv8ry9M,683
|
|
@@ -245,7 +243,7 @@ letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlr
|
|
|
245
243
|
letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
|
|
246
244
|
letta_client/types/group.py,sha256=6Cv30-JOOfRsOG_T9d1rifW40-eYj9g6OR9BvdP7Ppc,2106
|
|
247
245
|
letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
|
|
248
|
-
letta_client/types/hidden_reasoning_message.py,sha256=
|
|
246
|
+
letta_client/types/hidden_reasoning_message.py,sha256=J1NaNwWrEVaLPN9k_f-x_Rha63t4Yr3rdU9GIb4llss,1569
|
|
249
247
|
letta_client/types/hidden_reasoning_message_state.py,sha256=qotAgF_P4T7OEHzbhGDVFaLZYOs1ULMPVHmiFvoRIfM,174
|
|
250
248
|
letta_client/types/http_validation_error.py,sha256=yHa4_NHIMB-VKNZpk7agjLTwWIg7mv7ml3d7I-Bqiog,661
|
|
251
249
|
letta_client/types/identity.py,sha256=ODegiJaCyiFFfYd177v-hRdJBnIwbCQImB9U_fk4s4E,1591
|
|
@@ -283,7 +281,7 @@ letta_client/types/max_count_per_step_tool_rule_schema.py,sha256=1Zq4vblRTqFycqk
|
|
|
283
281
|
letta_client/types/mcp_server_type.py,sha256=Hv45mKMPzmey2UVjwrTAvWXP1sDd13UwAtvtogBloLo,153
|
|
284
282
|
letta_client/types/mcp_tool.py,sha256=_GSTb0k8l-IUEflRkQ6-v45UnbTcA4Nv1N8sgmExJQ0,912
|
|
285
283
|
letta_client/types/memory.py,sha256=KD5MkDQB-vbRPT9f_-yFBWY1WUW_NWxYEI0IiflG6P8,1035
|
|
286
|
-
letta_client/types/message.py,sha256=
|
|
284
|
+
letta_client/types/message.py,sha256=_FX0mKsGmcY0XSYgeVmohjweG1SjBVAgCAgWTST2SgQ,4337
|
|
287
285
|
letta_client/types/message_content_item.py,sha256=mg2npSBRXsH7-fAwhx9YhkVbeCF3cM8pE6fPYtUDIyc,550
|
|
288
286
|
letta_client/types/message_create.py,sha256=FkABWA09E1Ra47o0g53zf7b6DqgMfT_9XXQUv30tCdw,1445
|
|
289
287
|
letta_client/types/message_create_content.py,sha256=KL3XAVKVrdsh4DZwdxKofUyehS-vnOT_VJNVzZDpE20,226
|
|
@@ -307,7 +305,7 @@ letta_client/types/pip_requirement.py,sha256=Hmh7VpJhdSfFkafh6QwAehCp0MQUBXv1YAo
|
|
|
307
305
|
letta_client/types/provider.py,sha256=qPLMJ-9oDl94YGP_5DaRTWblHHjKFc1PkS5OPp1lUwo,1304
|
|
308
306
|
letta_client/types/provider_type.py,sha256=uEUNL2qcGizQfQp5kr9-egi6uBY-JJ4ASJA5J33utXw,443
|
|
309
307
|
letta_client/types/reasoning_content.py,sha256=aId-87QjQ4sm_fuCmzIdZZghr-9DFeVV-Lv9x5iVw3I,995
|
|
310
|
-
letta_client/types/reasoning_message.py,sha256=
|
|
308
|
+
letta_client/types/reasoning_message.py,sha256=YzZMr_orwDVcrbiSED_kN3004MA579xGe-iRW9hLngg,1606
|
|
311
309
|
letta_client/types/reasoning_message_source.py,sha256=GYOWGm2mje1yYbR8E2kbAeQS--VDrGlpsobEBQHE2cU,186
|
|
312
310
|
letta_client/types/redacted_reasoning_content.py,sha256=ROAcdqOjM-kaw23HrVJrh0a49TRYuijanHDaCqcMErM,735
|
|
313
311
|
letta_client/types/response_format_json_object.py,sha256=ZSWmwdN8itFr5q77mxuBhEWRBh2CubAonJUCi88UjbA,611
|
|
@@ -333,7 +331,7 @@ letta_client/types/stdio_server_config.py,sha256=dEQ7bguiLikGemLxYZJ3JCmmEQgAMsS
|
|
|
333
331
|
letta_client/types/step.py,sha256=XE98vMiU34dgUxLPvmJLdp9iWFPjg6E2Pb8xNSURMMg,2988
|
|
334
332
|
letta_client/types/supervisor_manager.py,sha256=VdR1ySp4k43apxM8Bb5uNoBvADsvz8oMEEtDy2F5K6M,676
|
|
335
333
|
letta_client/types/supervisor_manager_update.py,sha256=UJ_TcWcF_PK152Gni0tgRCe3bthCgJbQHCZIb5LLsL0,711
|
|
336
|
-
letta_client/types/system_message.py,sha256=
|
|
334
|
+
letta_client/types/system_message.py,sha256=Dn1GkT1INUGLHkwBsqJL0HtkcGXx0CAKqzSl34jZ4xM,1302
|
|
337
335
|
letta_client/types/tag_schema.py,sha256=FEszKlRD2FqezKlX99OLqTqf46dONlcGPo1m43osdNo,553
|
|
338
336
|
letta_client/types/terminal_tool_rule.py,sha256=82a7AnohOqCFBSOt7OwsKeh7gHgq8KTlgojxlm3t76E,863
|
|
339
337
|
letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
|
|
@@ -342,14 +340,14 @@ letta_client/types/tool.py,sha256=Mj2jm6dtDDMdTFLx4BZeJQ5oVCxIlGBjq3glQBuDUKM,28
|
|
|
342
340
|
letta_client/types/tool_call.py,sha256=EKGAFwzoa6zMTpOkG55hWzFn_AgPrbLXSOu5M84x8WU,594
|
|
343
341
|
letta_client/types/tool_call_content.py,sha256=5aceJgOQSkL05Hw5LXG49yxN8CmTcp6jj9aeQp-Wtks,995
|
|
344
342
|
letta_client/types/tool_call_delta.py,sha256=wGeZwJ9pwYHD5-f4Unf5-vJqefK40eHw9i0w3bCjRoE,671
|
|
345
|
-
letta_client/types/tool_call_message.py,sha256=
|
|
343
|
+
letta_client/types/tool_call_message.py,sha256=dWyusIkL4MECPAsJpOhwaYQywA_jT-DrKLSIPhpw4jY,1318
|
|
346
344
|
letta_client/types/tool_call_message_tool_call.py,sha256=twtq5-vZIeh1nShqm8iTCN9YFtY7LUIL-bFYuUfhF1o,219
|
|
347
345
|
letta_client/types/tool_create.py,sha256=VSMd23Kkd77SPbLv2oRHEzXqR2Eexc0ervjxXYLHiqc,1522
|
|
348
346
|
letta_client/types/tool_env_var_schema.py,sha256=-YFJaXkjIO4BoPgyEQpaOGMNK5zBWlLkIuUjGX9DqHU,660
|
|
349
347
|
letta_client/types/tool_json_schema.py,sha256=EgCxNOxeoF4y_-BDLAp6z_qcxTc87w_uSuZdjZpn3Gk,754
|
|
350
348
|
letta_client/types/tool_return.py,sha256=f-6zaRo8Bwl0i0Q0rHl8vKOfzymFHN_tVRoC2lMWksI,984
|
|
351
349
|
letta_client/types/tool_return_content.py,sha256=0CdaO0-oM9iwGQoDX0MmzcT9liNgOOuItvDUY0QNYWA,956
|
|
352
|
-
letta_client/types/tool_return_message.py,sha256=
|
|
350
|
+
letta_client/types/tool_return_message.py,sha256=xi9bF7ccbfy1cAUvG9NnfiujjtF_Dh1A1HaCg6gYeYk,1813
|
|
353
351
|
letta_client/types/tool_return_message_status.py,sha256=FvFOMaG9mnmgnHi2UBQVQQMtHFabbWnQnHTxGUDgVl0,167
|
|
354
352
|
letta_client/types/tool_return_status.py,sha256=TQjwYprn5F_jU9kIbrtiyk7Gw2SjcmFFZLjFbGDpBM0,160
|
|
355
353
|
letta_client/types/tool_schema.py,sha256=q5iRbpiIqWpNvXeDCi7BUyDbQzBKUnTIXEIAujn1bxw,1122
|
|
@@ -365,7 +363,7 @@ letta_client/types/usage_statistics_completion_token_details.py,sha256=2PypCq-Uk
|
|
|
365
363
|
letta_client/types/usage_statistics_prompt_token_details.py,sha256=c4r4UUIbDI-UO3coX141C9_qCw698E18Zh3emVV3sUA,611
|
|
366
364
|
letta_client/types/user.py,sha256=z_v1uqQ6HYwV_Pp7wDDqS6QWhslHgdUH-AldV-jnmKQ,1349
|
|
367
365
|
letta_client/types/user_create.py,sha256=prQea3xb2-Cm64wv6Y84OfhWNWrA2P8SH5yhUxejzOI,616
|
|
368
|
-
letta_client/types/user_message.py,sha256=
|
|
366
|
+
letta_client/types/user_message.py,sha256=WMvZbsXf8APFTQlBrYRyHEzwgRos4ch9SqX1eVS9e4U,1514
|
|
369
367
|
letta_client/types/user_message_content.py,sha256=JHOtxDEVm7FKDb6Ac2Hw7tAl5HCTDDLDylM6ulhHmIY,236
|
|
370
368
|
letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wDLkP4,731
|
|
371
369
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
@@ -381,6 +379,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
381
379
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
382
380
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
383
381
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
384
|
-
letta_client-0.1.
|
|
385
|
-
letta_client-0.1.
|
|
386
|
-
letta_client-0.1.
|
|
382
|
+
letta_client-0.1.136.dist-info/METADATA,sha256=JW013KNYabNdU3b85PGLH5ZQbp0ZuHesgi0XOCTnSk4,5042
|
|
383
|
+
letta_client-0.1.136.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
384
|
+
letta_client-0.1.136.dist-info/RECORD,,
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
-
import typing
|
|
5
|
-
from ..core.request_options import RequestOptions
|
|
6
|
-
from ..core.unchecked_base_model import construct_type
|
|
7
|
-
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
8
|
-
from ..types.http_validation_error import HttpValidationError
|
|
9
|
-
from json.decoder import JSONDecodeError
|
|
10
|
-
from ..core.api_error import ApiError
|
|
11
|
-
from ..core.client_wrapper import AsyncClientWrapper
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class EmbeddingsClient:
|
|
15
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
16
|
-
self._client_wrapper = client_wrapper
|
|
17
|
-
|
|
18
|
-
def get_embeddings_total_storage_size(self, *, request_options: typing.Optional[RequestOptions] = None) -> float:
|
|
19
|
-
"""
|
|
20
|
-
Get the total size of all embeddings in the database for a user in the storage unit given.
|
|
21
|
-
|
|
22
|
-
Parameters
|
|
23
|
-
----------
|
|
24
|
-
request_options : typing.Optional[RequestOptions]
|
|
25
|
-
Request-specific configuration.
|
|
26
|
-
|
|
27
|
-
Returns
|
|
28
|
-
-------
|
|
29
|
-
float
|
|
30
|
-
Successful Response
|
|
31
|
-
|
|
32
|
-
Examples
|
|
33
|
-
--------
|
|
34
|
-
from letta_client import Letta
|
|
35
|
-
|
|
36
|
-
client = Letta(
|
|
37
|
-
token="YOUR_TOKEN",
|
|
38
|
-
)
|
|
39
|
-
client.embeddings.get_embeddings_total_storage_size()
|
|
40
|
-
"""
|
|
41
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
42
|
-
"v1/embeddings/total_storage_size",
|
|
43
|
-
method="GET",
|
|
44
|
-
headers={
|
|
45
|
-
"storage-unit": "GB",
|
|
46
|
-
},
|
|
47
|
-
request_options=request_options,
|
|
48
|
-
)
|
|
49
|
-
try:
|
|
50
|
-
if 200 <= _response.status_code < 300:
|
|
51
|
-
return typing.cast(
|
|
52
|
-
float,
|
|
53
|
-
construct_type(
|
|
54
|
-
type_=float, # type: ignore
|
|
55
|
-
object_=_response.json(),
|
|
56
|
-
),
|
|
57
|
-
)
|
|
58
|
-
if _response.status_code == 422:
|
|
59
|
-
raise UnprocessableEntityError(
|
|
60
|
-
typing.cast(
|
|
61
|
-
HttpValidationError,
|
|
62
|
-
construct_type(
|
|
63
|
-
type_=HttpValidationError, # type: ignore
|
|
64
|
-
object_=_response.json(),
|
|
65
|
-
),
|
|
66
|
-
)
|
|
67
|
-
)
|
|
68
|
-
_response_json = _response.json()
|
|
69
|
-
except JSONDecodeError:
|
|
70
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
71
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
class AsyncEmbeddingsClient:
|
|
75
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
76
|
-
self._client_wrapper = client_wrapper
|
|
77
|
-
|
|
78
|
-
async def get_embeddings_total_storage_size(
|
|
79
|
-
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
80
|
-
) -> float:
|
|
81
|
-
"""
|
|
82
|
-
Get the total size of all embeddings in the database for a user in the storage unit given.
|
|
83
|
-
|
|
84
|
-
Parameters
|
|
85
|
-
----------
|
|
86
|
-
request_options : typing.Optional[RequestOptions]
|
|
87
|
-
Request-specific configuration.
|
|
88
|
-
|
|
89
|
-
Returns
|
|
90
|
-
-------
|
|
91
|
-
float
|
|
92
|
-
Successful Response
|
|
93
|
-
|
|
94
|
-
Examples
|
|
95
|
-
--------
|
|
96
|
-
import asyncio
|
|
97
|
-
|
|
98
|
-
from letta_client import AsyncLetta
|
|
99
|
-
|
|
100
|
-
client = AsyncLetta(
|
|
101
|
-
token="YOUR_TOKEN",
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
async def main() -> None:
|
|
106
|
-
await client.embeddings.get_embeddings_total_storage_size()
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
asyncio.run(main())
|
|
110
|
-
"""
|
|
111
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
112
|
-
"v1/embeddings/total_storage_size",
|
|
113
|
-
method="GET",
|
|
114
|
-
headers={
|
|
115
|
-
"storage-unit": "GB",
|
|
116
|
-
},
|
|
117
|
-
request_options=request_options,
|
|
118
|
-
)
|
|
119
|
-
try:
|
|
120
|
-
if 200 <= _response.status_code < 300:
|
|
121
|
-
return typing.cast(
|
|
122
|
-
float,
|
|
123
|
-
construct_type(
|
|
124
|
-
type_=float, # type: ignore
|
|
125
|
-
object_=_response.json(),
|
|
126
|
-
),
|
|
127
|
-
)
|
|
128
|
-
if _response.status_code == 422:
|
|
129
|
-
raise UnprocessableEntityError(
|
|
130
|
-
typing.cast(
|
|
131
|
-
HttpValidationError,
|
|
132
|
-
construct_type(
|
|
133
|
-
type_=HttpValidationError, # type: ignore
|
|
134
|
-
object_=_response.json(),
|
|
135
|
-
),
|
|
136
|
-
)
|
|
137
|
-
)
|
|
138
|
-
_response_json = _response.json()
|
|
139
|
-
except JSONDecodeError:
|
|
140
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
141
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
File without changes
|