letta-client 0.1.207__py3-none-any.whl → 0.1.209__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 +12 -8
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/chat_completion_audio_param_format.py +1 -1
- letta_client/types/completion_create_params_non_streaming_model.py +12 -0
- letta_client/types/completion_create_params_non_streaming_service_tier.py +3 -1
- letta_client/types/completion_create_params_streaming_model.py +12 -0
- letta_client/types/completion_create_params_streaming_service_tier.py +3 -1
- letta_client/types/mcp_tool.py +7 -0
- {letta_client-0.1.207.dist-info → letta_client-0.1.209.dist-info}/METADATA +1 -1
- {letta_client-0.1.207.dist-info → letta_client-0.1.209.dist-info}/RECORD +11 -11
- {letta_client-0.1.207.dist-info → letta_client-0.1.209.dist-info}/WHEEL +0 -0
letta_client/blocks/client.py
CHANGED
|
@@ -323,7 +323,9 @@ class BlocksClient:
|
|
|
323
323
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
324
324
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
325
325
|
|
|
326
|
-
def delete(
|
|
326
|
+
def delete(
|
|
327
|
+
self, block_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
328
|
+
) -> typing.Optional[typing.Any]:
|
|
327
329
|
"""
|
|
328
330
|
Parameters
|
|
329
331
|
----------
|
|
@@ -334,7 +336,7 @@ class BlocksClient:
|
|
|
334
336
|
|
|
335
337
|
Returns
|
|
336
338
|
-------
|
|
337
|
-
|
|
339
|
+
typing.Optional[typing.Any]
|
|
338
340
|
Successful Response
|
|
339
341
|
|
|
340
342
|
Examples
|
|
@@ -357,9 +359,9 @@ class BlocksClient:
|
|
|
357
359
|
try:
|
|
358
360
|
if 200 <= _response.status_code < 300:
|
|
359
361
|
return typing.cast(
|
|
360
|
-
|
|
362
|
+
typing.Optional[typing.Any],
|
|
361
363
|
construct_type(
|
|
362
|
-
type_=
|
|
364
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
363
365
|
object_=_response.json(),
|
|
364
366
|
),
|
|
365
367
|
)
|
|
@@ -824,7 +826,9 @@ class AsyncBlocksClient:
|
|
|
824
826
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
825
827
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
826
828
|
|
|
827
|
-
async def delete(
|
|
829
|
+
async def delete(
|
|
830
|
+
self, block_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
831
|
+
) -> typing.Optional[typing.Any]:
|
|
828
832
|
"""
|
|
829
833
|
Parameters
|
|
830
834
|
----------
|
|
@@ -835,7 +839,7 @@ class AsyncBlocksClient:
|
|
|
835
839
|
|
|
836
840
|
Returns
|
|
837
841
|
-------
|
|
838
|
-
|
|
842
|
+
typing.Optional[typing.Any]
|
|
839
843
|
Successful Response
|
|
840
844
|
|
|
841
845
|
Examples
|
|
@@ -866,9 +870,9 @@ class AsyncBlocksClient:
|
|
|
866
870
|
try:
|
|
867
871
|
if 200 <= _response.status_code < 300:
|
|
868
872
|
return typing.cast(
|
|
869
|
-
|
|
873
|
+
typing.Optional[typing.Any],
|
|
870
874
|
construct_type(
|
|
871
|
-
type_=
|
|
875
|
+
type_=typing.Optional[typing.Any], # type: ignore
|
|
872
876
|
object_=_response.json(),
|
|
873
877
|
),
|
|
874
878
|
)
|
|
@@ -24,7 +24,7 @@ class BaseClientWrapper:
|
|
|
24
24
|
headers: typing.Dict[str, str] = {
|
|
25
25
|
"X-Fern-Language": "Python",
|
|
26
26
|
"X-Fern-SDK-Name": "letta-client",
|
|
27
|
-
"X-Fern-SDK-Version": "0.1.
|
|
27
|
+
"X-Fern-SDK-Version": "0.1.209",
|
|
28
28
|
}
|
|
29
29
|
if self._project is not None:
|
|
30
30
|
headers["X-Project"] = self._project
|
|
@@ -4,6 +4,16 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
CompletionCreateParamsNonStreamingModel = typing.Union[
|
|
6
6
|
str,
|
|
7
|
+
typing.Literal["gpt-4.1"],
|
|
8
|
+
typing.Literal["gpt-4.1-mini"],
|
|
9
|
+
typing.Literal["gpt-4.1-nano"],
|
|
10
|
+
typing.Literal["gpt-4.1-2025-04-14"],
|
|
11
|
+
typing.Literal["gpt-4.1-mini-2025-04-14"],
|
|
12
|
+
typing.Literal["gpt-4.1-nano-2025-04-14"],
|
|
13
|
+
typing.Literal["o4-mini"],
|
|
14
|
+
typing.Literal["o4-mini-2025-04-16"],
|
|
15
|
+
typing.Literal["o3"],
|
|
16
|
+
typing.Literal["o3-2025-04-16"],
|
|
7
17
|
typing.Literal["o3-mini"],
|
|
8
18
|
typing.Literal["o3-mini-2025-01-31"],
|
|
9
19
|
typing.Literal["o1"],
|
|
@@ -19,6 +29,7 @@ CompletionCreateParamsNonStreamingModel = typing.Union[
|
|
|
19
29
|
typing.Literal["gpt-4o-audio-preview"],
|
|
20
30
|
typing.Literal["gpt-4o-audio-preview-2024-10-01"],
|
|
21
31
|
typing.Literal["gpt-4o-audio-preview-2024-12-17"],
|
|
32
|
+
typing.Literal["gpt-4o-audio-preview-2025-06-03"],
|
|
22
33
|
typing.Literal["gpt-4o-mini-audio-preview"],
|
|
23
34
|
typing.Literal["gpt-4o-mini-audio-preview-2024-12-17"],
|
|
24
35
|
typing.Literal["gpt-4o-search-preview"],
|
|
@@ -26,6 +37,7 @@ CompletionCreateParamsNonStreamingModel = typing.Union[
|
|
|
26
37
|
typing.Literal["gpt-4o-search-preview-2025-03-11"],
|
|
27
38
|
typing.Literal["gpt-4o-mini-search-preview-2025-03-11"],
|
|
28
39
|
typing.Literal["chatgpt-4o-latest"],
|
|
40
|
+
typing.Literal["codex-mini-latest"],
|
|
29
41
|
typing.Literal["gpt-4o-mini"],
|
|
30
42
|
typing.Literal["gpt-4o-mini-2024-07-18"],
|
|
31
43
|
typing.Literal["gpt-4-turbo"],
|
|
@@ -2,4 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
|
-
CompletionCreateParamsNonStreamingServiceTier = typing.Union[
|
|
5
|
+
CompletionCreateParamsNonStreamingServiceTier = typing.Union[
|
|
6
|
+
typing.Literal["auto", "default", "flex", "scale", "priority"], typing.Any
|
|
7
|
+
]
|
|
@@ -4,6 +4,16 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
CompletionCreateParamsStreamingModel = typing.Union[
|
|
6
6
|
str,
|
|
7
|
+
typing.Literal["gpt-4.1"],
|
|
8
|
+
typing.Literal["gpt-4.1-mini"],
|
|
9
|
+
typing.Literal["gpt-4.1-nano"],
|
|
10
|
+
typing.Literal["gpt-4.1-2025-04-14"],
|
|
11
|
+
typing.Literal["gpt-4.1-mini-2025-04-14"],
|
|
12
|
+
typing.Literal["gpt-4.1-nano-2025-04-14"],
|
|
13
|
+
typing.Literal["o4-mini"],
|
|
14
|
+
typing.Literal["o4-mini-2025-04-16"],
|
|
15
|
+
typing.Literal["o3"],
|
|
16
|
+
typing.Literal["o3-2025-04-16"],
|
|
7
17
|
typing.Literal["o3-mini"],
|
|
8
18
|
typing.Literal["o3-mini-2025-01-31"],
|
|
9
19
|
typing.Literal["o1"],
|
|
@@ -19,6 +29,7 @@ CompletionCreateParamsStreamingModel = typing.Union[
|
|
|
19
29
|
typing.Literal["gpt-4o-audio-preview"],
|
|
20
30
|
typing.Literal["gpt-4o-audio-preview-2024-10-01"],
|
|
21
31
|
typing.Literal["gpt-4o-audio-preview-2024-12-17"],
|
|
32
|
+
typing.Literal["gpt-4o-audio-preview-2025-06-03"],
|
|
22
33
|
typing.Literal["gpt-4o-mini-audio-preview"],
|
|
23
34
|
typing.Literal["gpt-4o-mini-audio-preview-2024-12-17"],
|
|
24
35
|
typing.Literal["gpt-4o-search-preview"],
|
|
@@ -26,6 +37,7 @@ CompletionCreateParamsStreamingModel = typing.Union[
|
|
|
26
37
|
typing.Literal["gpt-4o-search-preview-2025-03-11"],
|
|
27
38
|
typing.Literal["gpt-4o-mini-search-preview-2025-03-11"],
|
|
28
39
|
typing.Literal["chatgpt-4o-latest"],
|
|
40
|
+
typing.Literal["codex-mini-latest"],
|
|
29
41
|
typing.Literal["gpt-4o-mini"],
|
|
30
42
|
typing.Literal["gpt-4o-mini-2024-07-18"],
|
|
31
43
|
typing.Literal["gpt-4-turbo"],
|
letta_client/types/mcp_tool.py
CHANGED
|
@@ -15,11 +15,18 @@ class McpTool(UncheckedBaseModel):
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
name: str
|
|
18
|
+
title: typing.Optional[str] = None
|
|
18
19
|
description: typing.Optional[str] = None
|
|
19
20
|
input_schema: typing_extensions.Annotated[
|
|
20
21
|
typing.Dict[str, typing.Optional[typing.Any]], FieldMetadata(alias="inputSchema")
|
|
21
22
|
]
|
|
23
|
+
output_schema: typing_extensions.Annotated[
|
|
24
|
+
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="outputSchema")
|
|
25
|
+
] = None
|
|
22
26
|
annotations: typing.Optional[ToolAnnotations] = None
|
|
27
|
+
meta: typing_extensions.Annotated[
|
|
28
|
+
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="_meta")
|
|
29
|
+
] = None
|
|
23
30
|
|
|
24
31
|
if IS_PYDANTIC_V2:
|
|
25
32
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -53,7 +53,7 @@ letta_client/batches/client.py,sha256=DHnsRYHgxVh6OvfAE8etlbno1FMg4cIzAYiydJrfmJ
|
|
|
53
53
|
letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
|
|
54
54
|
letta_client/blocks/agents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
55
55
|
letta_client/blocks/agents/client.py,sha256=2mBOt6CZanLUi_8Nc-bthaGoKhU3WgSA9vL1UjMdZE8,6066
|
|
56
|
-
letta_client/blocks/client.py,sha256=
|
|
56
|
+
letta_client/blocks/client.py,sha256=TSVtPLfkeNJ-l8PenMSE3vskdemKs12KfziwQw1hvxc,32311
|
|
57
57
|
letta_client/client.py,sha256=iXqKTuQ0F9jIjkTwD73apLlLQqUF1IF6V_PhenY_CJo,22470
|
|
58
58
|
letta_client/client_side_access_tokens/__init__.py,sha256=e9NgxUsEnfbJVCM2npPuQ02dAS5jlXmneqU9DS6Q3d8,1561
|
|
59
59
|
letta_client/client_side_access_tokens/client.py,sha256=5aiqgKkzXElPgJszjyT-1wPRsBziH32UJwPVGQdZOFg,18215
|
|
@@ -71,7 +71,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
71
71
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py,sha256=kNHfEWFl7u71Pu8NPqutod0a2NXfvq8il05Hqm0iBB4,284
|
|
72
72
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
73
73
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
74
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
74
|
+
letta_client/core/client_wrapper.py,sha256=r6Ehui45BX8Tlp4JpiBrqR2EIoqQ8nrRHyv4jTZl3E4,2336
|
|
75
75
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
76
76
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
77
77
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -198,7 +198,7 @@ letta_client/types/chat_completion_assistant_message_param.py,sha256=QwxAJ9RQqxt
|
|
|
198
198
|
letta_client/types/chat_completion_assistant_message_param_content.py,sha256=CJ7Z_Jik2fzBYGy0UuvgDk0aLt3-Xpj3qswBLmWM0Sg,323
|
|
199
199
|
letta_client/types/chat_completion_assistant_message_param_content_item.py,sha256=tF-E0jNH0ilRJgm4vPTqHguCb-TZZ0LJfTXxOnon23w,405
|
|
200
200
|
letta_client/types/chat_completion_audio_param.py,sha256=l3hMhCWVDglmqmVezfuemQZoEevpndfyKJBDLu0_t-U,795
|
|
201
|
-
letta_client/types/chat_completion_audio_param_format.py,sha256=
|
|
201
|
+
letta_client/types/chat_completion_audio_param_format.py,sha256=_Jk2jCTMnQIi3tekbyca3izfaX-1Dkj_Jjc7-jai0D0,200
|
|
202
202
|
letta_client/types/chat_completion_audio_param_voice.py,sha256=9bpfU_DFyUdFLYZMkigrNlre4VklwqX7mGa0myMt7HQ,453
|
|
203
203
|
letta_client/types/chat_completion_content_part_image_param.py,sha256=dUQIFiDbyebgPEpVJJlDvZ5pcoly3LuGq-4fxojDbBc,674
|
|
204
204
|
letta_client/types/chat_completion_content_part_input_audio_param.py,sha256=-RGWHcpNdJQg82E8QhRve2QJQehma91k8eqGqeH29hc,691
|
|
@@ -229,20 +229,20 @@ letta_client/types/completion_create_params_non_streaming.py,sha256=hjEJ-wJWuFuT
|
|
|
229
229
|
letta_client/types/completion_create_params_non_streaming_function_call.py,sha256=6iCjgXwsXnflllhfDDKtHRyxzKqtLcX6-HVr7AXlyUM,329
|
|
230
230
|
letta_client/types/completion_create_params_non_streaming_messages_item.py,sha256=pKMxLh1XFgMl7LqcjKJmdeKYTCwlr3FLFPTuvaLf3D0,883
|
|
231
231
|
letta_client/types/completion_create_params_non_streaming_modalities_item.py,sha256=BuyCf2nTCWVhishXFk3CsQphnPwNXj-kBdPMjkb8X10,189
|
|
232
|
-
letta_client/types/completion_create_params_non_streaming_model.py,sha256=
|
|
232
|
+
letta_client/types/completion_create_params_non_streaming_model.py,sha256=dUKLOGKwWGYHVq4liG7SzwRNUynHn93Sw4bCHrEv-4k,2406
|
|
233
233
|
letta_client/types/completion_create_params_non_streaming_reasoning_effort.py,sha256=f1hBX3qksGoGC6O2W5qHblCQXtoZiEhiN8LUy1Rv9Ig,198
|
|
234
234
|
letta_client/types/completion_create_params_non_streaming_response_format.py,sha256=c16kBch59yhxAgMeFTxGNrEBNl4Vu3fPmZ2RqqS6bkU,407
|
|
235
|
-
letta_client/types/completion_create_params_non_streaming_service_tier.py,sha256=
|
|
235
|
+
letta_client/types/completion_create_params_non_streaming_service_tier.py,sha256=ZmQ9USOqB1Tq2XvmbOLxz_BWAgMq1EU1BPxzmSsA38M,223
|
|
236
236
|
letta_client/types/completion_create_params_non_streaming_stop.py,sha256=5vPdgab7iH6eDizESU2_CMieWN5CN3pF8TZs-Zb7rMw,157
|
|
237
237
|
letta_client/types/completion_create_params_non_streaming_tool_choice.py,sha256=jP4qKEF5-TOkBHebni-L9eNpbPnIEpv7fa6v4K_L5U8,346
|
|
238
238
|
letta_client/types/completion_create_params_streaming.py,sha256=sgazDkBKpQTk2NtrJ0l7F0moftbl-zgpw6lkEQt6ha0,3891
|
|
239
239
|
letta_client/types/completion_create_params_streaming_function_call.py,sha256=cxsVe0wAIKPAsndL5vB_BCTy6oSxFph7qB1c1LWmeDw,326
|
|
240
240
|
letta_client/types/completion_create_params_streaming_messages_item.py,sha256=S4E0fe3LgVyetb2PEqhGNxqMj5kgQx4q6Qk2bvvu2Ok,880
|
|
241
241
|
letta_client/types/completion_create_params_streaming_modalities_item.py,sha256=o9ZU7r22WrE6z-BSJ72LJXHtVRIpK499WArVgY-ODgI,186
|
|
242
|
-
letta_client/types/completion_create_params_streaming_model.py,sha256=
|
|
242
|
+
letta_client/types/completion_create_params_streaming_model.py,sha256=dI57gyv65GtQC2CIPnwsstYN3tbp5WXC5EYuGz6SRyc,2403
|
|
243
243
|
letta_client/types/completion_create_params_streaming_reasoning_effort.py,sha256=4-JFyaD92zia-kN7bPyCWwf_AMDnG2xUXWx8GQU1EFE,195
|
|
244
244
|
letta_client/types/completion_create_params_streaming_response_format.py,sha256=31sy6fKZ4r50zvjVTnoOpwNX81Bx7kFM75Mn7-obbYI,404
|
|
245
|
-
letta_client/types/completion_create_params_streaming_service_tier.py,sha256=
|
|
245
|
+
letta_client/types/completion_create_params_streaming_service_tier.py,sha256=sZLi6DuprrhDPrhGRZUBTBjwgLRoFcc-6GB37K8X-Rs,220
|
|
246
246
|
letta_client/types/completion_create_params_streaming_stop.py,sha256=dSyQDu851QyeoRjpoE2JBIyKIYGO5jVx6UIH-bLiQwo,154
|
|
247
247
|
letta_client/types/completion_create_params_streaming_tool_choice.py,sha256=w_JLYtdz8eHzF2lwlMaMGpnOl8_4mjGbsDOSpMyM5cg,343
|
|
248
248
|
letta_client/types/components_schemas_text_content.py,sha256=F21GPPwREb6GodS4dGsT7-4wySEUdhpq6krznF-sOPE,147
|
|
@@ -314,7 +314,7 @@ letta_client/types/manager_type.py,sha256=3ztXv2xWw6PIgDoqqxaHwdIcssDYqdqB0KqUDS
|
|
|
314
314
|
letta_client/types/max_count_per_step_tool_rule.py,sha256=6vBWeGH2FW3ze--lr4DVuqG5aikPjKAAwHd4bfv4YcM,1225
|
|
315
315
|
letta_client/types/max_count_per_step_tool_rule_schema.py,sha256=1Zq4vblRTqFycqk7cBQ3gVCUy-MPWvE_tNXV5Fz0VTs,618
|
|
316
316
|
letta_client/types/mcp_server_type.py,sha256=cEiRY8zJw3YdV0RV6tt4JUYd0AHT_UNeLgxaouU-_4A,172
|
|
317
|
-
letta_client/types/mcp_tool.py,sha256=
|
|
317
|
+
letta_client/types/mcp_tool.py,sha256=CLLpyiyUo0yLWG_ararTJmzzaUYhfANC2dNAhEUfy1Q,1376
|
|
318
318
|
letta_client/types/memory.py,sha256=Fa07vLHBsc4eNK65Yla2zOuzYhtgFGlnPzAGo9GvJ-c,1210
|
|
319
319
|
letta_client/types/message.py,sha256=v5x-ykNKmgVSzQkE9w71nxq4RfrgILCciSKA2sHD_Q4,4734
|
|
320
320
|
letta_client/types/message_content_item.py,sha256=FrwERKfU5MpV4Y8LC5ejKFkoqqSV_Ooww-r32VGBbME,629
|
|
@@ -428,6 +428,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
428
428
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
429
429
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
430
430
|
letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
|
|
431
|
-
letta_client-0.1.
|
|
432
|
-
letta_client-0.1.
|
|
433
|
-
letta_client-0.1.
|
|
431
|
+
letta_client-0.1.209.dist-info/METADATA,sha256=SG9uezLJR2D399F48IGwJtS5N2CHn-qgSOink5D-PM0,5177
|
|
432
|
+
letta_client-0.1.209.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
433
|
+
letta_client-0.1.209.dist-info/RECORD,,
|
|
File without changes
|