letta-client 0.1.123__py3-none-any.whl → 0.1.125__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 -4
- letta_client/agents/__init__.py +4 -0
- letta_client/agents/client.py +34 -88
- letta_client/agents/types/__init__.py +4 -0
- letta_client/agents/types/create_agent_request_response_format.py +8 -0
- letta_client/agents/types/update_agent_response_format.py +8 -0
- letta_client/base_client.py +4 -12
- letta_client/batches/client.py +50 -8
- letta_client/core/client_wrapper.py +1 -1
- letta_client/providers/client.py +20 -196
- letta_client/runs/client.py +4 -78
- letta_client/tags/client.py +85 -8
- letta_client/types/__init__.py +8 -0
- letta_client/types/agent_state.py +6 -0
- letta_client/types/agent_state_response_format.py +8 -0
- letta_client/types/json_object_response_format.py +23 -0
- letta_client/types/json_schema_response_format.py +27 -0
- letta_client/types/text_response_format.py +23 -0
- {letta_client-0.1.123.dist-info → letta_client-0.1.125.dist-info}/METADATA +1 -1
- {letta_client-0.1.123.dist-info → letta_client-0.1.125.dist-info}/RECORD +21 -19
- letta_client/messages/__init__.py +0 -2
- letta_client/messages/client.py +0 -146
- letta_client/tag/__init__.py +0 -2
- letta_client/tag/client.py +0 -169
- {letta_client-0.1.123.dist-info → letta_client-0.1.125.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class JsonObjectResponseFormat(UncheckedBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Response format for JSON object responses.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
type: typing.Literal["json_object"] = "json_object"
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class JsonSchemaResponseFormat(UncheckedBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Response format for JSON schema-based responses.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
type: typing.Literal["json_schema"] = "json_schema"
|
|
15
|
+
json_schema: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
|
|
16
|
+
"""
|
|
17
|
+
The JSON schema of the response.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
if IS_PYDANTIC_V2:
|
|
21
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
+
else:
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TextResponseFormat(UncheckedBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Response format for plain text responses.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
type: typing.Literal["text"] = "text"
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
2
|
-
letta_client/agents/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=R3neG9CgcQqil-7rjghhSMtUCN-gq_Vnv9qaDfzeFpk,16181
|
|
2
|
+
letta_client/agents/__init__.py,sha256=C46uidjw-_nowv5mqI7lsXUKvoW49utJHL_k-F7HIyY,1616
|
|
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
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=SG_YblTKfnuUS2sOC7yiLDTaVZ4lCqchiDt4gz4XcJw,76390
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -30,7 +30,7 @@ letta_client/agents/templates/types/templates_create_response.py,sha256=kKjkyjv3
|
|
|
30
30
|
letta_client/agents/templates/types/templates_migrate_response.py,sha256=7N4JtAaiao-LrNdi72K7XB01uXJVkczaKYIJIMf0QYs,577
|
|
31
31
|
letta_client/agents/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
32
32
|
letta_client/agents/tools/client.py,sha256=xZMRZhG8mI_h8_QqgI4lXh3FieRCLeoPwdtB56GB-XU,12685
|
|
33
|
-
letta_client/agents/types/__init__.py,sha256=
|
|
33
|
+
letta_client/agents/types/__init__.py,sha256=vvqKyhe98ZbR5QoK7VWHSVrjLYPuUo-Xlky1aAAv8Ek,1386
|
|
34
34
|
letta_client/agents/types/agents_search_request_search_item.py,sha256=oIWRth_5r-3Fd_rROsEsc7XIvC0yRYv4BxdPKuUl6CI,634
|
|
35
35
|
letta_client/agents/types/agents_search_request_search_item_one.py,sha256=ECWv-hDZen6AomM01zmRsOz0PlXVEwIwLHjid9yko9o,779
|
|
36
36
|
letta_client/agents/types/agents_search_request_search_item_one_operator.py,sha256=S1qYdfdUqUgZ0DzQ53x7GN_qa_4NypO7-qNkkxgsbQc,182
|
|
@@ -38,11 +38,13 @@ letta_client/agents/types/agents_search_request_search_item_operator.py,sha256=q
|
|
|
38
38
|
letta_client/agents/types/agents_search_request_search_item_two.py,sha256=YBC-rhz_ToN948VyRy5VB1yT4JqtYcLD_V9hNrkgnfQ,690
|
|
39
39
|
letta_client/agents/types/agents_search_request_search_item_zero.py,sha256=tGjwnFqSofFMBSAogmPLEflDQZ2rMqoMfFUtaIpND18,630
|
|
40
40
|
letta_client/agents/types/agents_search_response.py,sha256=AQJVKps-bjCx2ujqESzW1Iy9ZYFS17hH_UFIeBeK4S8,815
|
|
41
|
+
letta_client/agents/types/create_agent_request_response_format.py,sha256=1GUV3rFMj46bYpRHOB_H_WMNrQ5FkKIidKg60u8szHM,409
|
|
41
42
|
letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=L3FNsFTG9kVmuPbQhbCKNg3H2E5bB2Rgp92gWmGd-LM,689
|
|
43
|
+
letta_client/agents/types/update_agent_response_format.py,sha256=oCoGofTKP7no6gNbDV6nJOpF8IlIplr1iPn5_7BA0cU,402
|
|
42
44
|
letta_client/agents/types/update_agent_tool_rules_item.py,sha256=k9MmcVPsK-EGl8XlT3JQwdlBNLgpGw528jmi8fCFS7g,682
|
|
43
|
-
letta_client/base_client.py,sha256=
|
|
45
|
+
letta_client/base_client.py,sha256=yhzh-KitRM5idpGSn16_rJ8d9RRviTnWdaZ_14ooHo4,9769
|
|
44
46
|
letta_client/batches/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
45
|
-
letta_client/batches/client.py,sha256=
|
|
47
|
+
letta_client/batches/client.py,sha256=AyfQpG9d856XS9BYHjxCIwu08ye03KQjuwA-jd-9kWQ,18774
|
|
46
48
|
letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
|
|
47
49
|
letta_client/blocks/agents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
48
50
|
letta_client/blocks/agents/client.py,sha256=-QywGs_ZfE5PbgzLYf2zzn9zAtpZmzGtHHZ5sXIYw0Y,4904
|
|
@@ -59,7 +61,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
59
61
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
60
62
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
61
63
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
62
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
64
|
+
letta_client/core/client_wrapper.py,sha256=IJ36LzDINxp8HDD5t-XZWsLGC98S25sbkF7e8QJ6sDA,1998
|
|
63
65
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
64
66
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
65
67
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -98,8 +100,6 @@ letta_client/identities/properties/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV
|
|
|
98
100
|
letta_client/identities/properties/client.py,sha256=Nv7jOi5O8TmeZ1g0-TqnqiJ0hLcHMe2ZIfqAkEDB2Bk,6053
|
|
99
101
|
letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
100
102
|
letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
|
|
101
|
-
letta_client/messages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
102
|
-
letta_client/messages/client.py,sha256=WCY_8drM56WMMgtUysaryBvHkyavt1G3BG7zxYoeMAc,4774
|
|
103
103
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
104
104
|
letta_client/models/client.py,sha256=aY9ipKT5Fj4b8dvjvmr_5htaNSJxGA84knTl6e1WZCs,3373
|
|
105
105
|
letta_client/projects/__init__.py,sha256=Mg9xvTJ4N4xDkj521w3jvmCgrbW3CYx9LxG7kkdoyzs,211
|
|
@@ -108,10 +108,10 @@ letta_client/projects/types/__init__.py,sha256=1nE8QFsR2GukiQxkaRFQfBuk1u_yuO-em
|
|
|
108
108
|
letta_client/projects/types/projects_list_response.py,sha256=LdWVSnP8fqrVTcRfkd73N4wIa5_VkxrAUS-GFftkqHo,858
|
|
109
109
|
letta_client/projects/types/projects_list_response_projects_item.py,sha256=7mFQdVQCNqvl2zBzVWzClENfF9N35T1Wpv3lgYbbAz0,605
|
|
110
110
|
letta_client/providers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
111
|
-
letta_client/providers/client.py,sha256=
|
|
111
|
+
letta_client/providers/client.py,sha256=xMy-Riwjr63GiCqR552xJGx1QEFb1hCVVUaSw_Wcw-o,17921
|
|
112
112
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
113
113
|
letta_client/runs/__init__.py,sha256=0Mn3wMqzm7ppXeiwu9zfY_KlyzBbWSM1wt_rsx0NmM0,144
|
|
114
|
-
letta_client/runs/client.py,sha256=
|
|
114
|
+
letta_client/runs/client.py,sha256=6A0i8-fWzRgK1U5P4jeKKav-cRSjaaN5ttMh66ihwe8,17234
|
|
115
115
|
letta_client/runs/messages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
116
116
|
letta_client/runs/messages/client.py,sha256=1qAtPmu2RM5_Hz8lf3X-yvDquOlCT47pEmc7aWFRaTo,9013
|
|
117
117
|
letta_client/runs/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -126,10 +126,8 @@ letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1
|
|
|
126
126
|
letta_client/sources/passages/client.py,sha256=n0QVtLC0W1X6_SjhiEGSl9oZexocnsLZYeYRAqV2BCk,4767
|
|
127
127
|
letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
128
128
|
letta_client/steps/client.py,sha256=ZMc2yPjqa0JgsPSMY5QHatPRm0mZRjxrsNQwm7p_xSU,13314
|
|
129
|
-
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
130
|
-
letta_client/tag/client.py,sha256=TBAotdb0e2_x2pANF4dOE1qmWY3GIgb7nOhvN7iZ3_4,5183
|
|
131
129
|
letta_client/tags/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
132
|
-
letta_client/tags/client.py,sha256=
|
|
130
|
+
letta_client/tags/client.py,sha256=1xIPtMWJ6ssAhPEFgl5CyJHyvND9MHCLIbEzQWxntZ0,5167
|
|
133
131
|
letta_client/templates/__init__.py,sha256=6kqaRnkWVngMoV08wPrkA6urr_lCnE6FRIVq4jj4z1M,313
|
|
134
132
|
letta_client/templates/agents/__init__.py,sha256=1tdurb6H9iIIc-Lq68A1xpuidIej7LU1Lz9zCSO4seM,141
|
|
135
133
|
letta_client/templates/agents/client.py,sha256=Eyd3Hutky11j1BiSKsfpykq2oMZ2aGNUIYivZAdm9ic,7083
|
|
@@ -146,14 +144,15 @@ letta_client/tools/types/add_mcp_server_request.py,sha256=EieZjfOT95sjkpxXdqy7gl
|
|
|
146
144
|
letta_client/tools/types/add_mcp_server_response_item.py,sha256=TWdsKqGb1INhYtpGnAckz0Pw4nZShumSp4pfocRfxCA,270
|
|
147
145
|
letta_client/tools/types/delete_mcp_server_response_item.py,sha256=MeZObU-7tMSCd-S5yuUjNDse6A1hUz1LLjbko0pXaro,273
|
|
148
146
|
letta_client/tools/types/list_mcp_servers_response_value.py,sha256=AIoXu4bO8QNSU7zjL1jj0Rg4313wVtPaTt13W0aevLQ,273
|
|
149
|
-
letta_client/types/__init__.py,sha256=
|
|
147
|
+
letta_client/types/__init__.py,sha256=Gm9Radho5CQ6iVkbeqInK3v779ZQ9vzVlN6VN5c6xCM,20200
|
|
150
148
|
letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
|
|
151
149
|
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
152
150
|
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
153
151
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
154
152
|
letta_client/types/agent_schema.py,sha256=uTSjFAsnEYdOX-PRD2vHbn69JBe8GKbctvlDOP85k_U,1784
|
|
155
153
|
letta_client/types/agent_schema_tool_rules_item.py,sha256=TTP7uKYPSe-EAl4p03j0Kd-W9tG5T6gfaWIUBAOVv9U,482
|
|
156
|
-
letta_client/types/agent_state.py,sha256=
|
|
154
|
+
letta_client/types/agent_state.py,sha256=oLgHlraP7C5FnSGzzDBqKsXwKHJz-OYFbToAqFUQ8iI,5621
|
|
155
|
+
letta_client/types/agent_state_response_format.py,sha256=HISBgCumQxw6nQeDUMBu-IlghaLeWRb7BHHNaz_e8Hc,377
|
|
157
156
|
letta_client/types/agent_state_tool_rules_item.py,sha256=WB-N4uyDTfhYBjQYDcLZDxDj73Xu1mQasBkdofUM-XU,625
|
|
158
157
|
letta_client/types/agent_type.py,sha256=ywCn-ii7Xu0-N1tkK7oQaONlx42wcTVB-8oP71fNbw0,190
|
|
159
158
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
@@ -260,7 +259,9 @@ letta_client/types/internal_server_error_body.py,sha256=xR9n1zptgmImbH6apQAuwBbl
|
|
|
260
259
|
letta_client/types/job.py,sha256=yCIUmvvyoN5n92toD7vyMByXjWxHAPCbsf7PMYkrbKY,2763
|
|
261
260
|
letta_client/types/job_status.py,sha256=lX5Q0QMQFnw-WiirqHD6kgBvGr6I7r8rKLnMJdqhlT8,239
|
|
262
261
|
letta_client/types/job_type.py,sha256=HXYrfzPwxI54PqV7OVcMhewSJ_pBNHc14s9LcExr7Ss,154
|
|
262
|
+
letta_client/types/json_object_response_format.py,sha256=kz1wkWKO2H9Ad9GgLzLHgnY9MT2AcpXjnQ8CVEY7r2E,675
|
|
263
263
|
letta_client/types/json_schema.py,sha256=EHcLKBSGRsSzCKTpujKFHylcLJG6ODQIBrjQkU4lWDQ,870
|
|
264
|
+
letta_client/types/json_schema_response_format.py,sha256=vTBC5qyuUm9u1uf1IZmNyEH-wSXm8c_7cOwd7ua_aJw,816
|
|
264
265
|
letta_client/types/letta_batch_request.py,sha256=HdIuaaUaqINbau98jPqyIc7Ge84VlCf6VhAQpIhCFvQ,1354
|
|
265
266
|
letta_client/types/letta_message_content_union.py,sha256=YxzyXKxUMeqbqWOlDs9LC8HUiqEhgkNCV9a76GS3spg,486
|
|
266
267
|
letta_client/types/letta_message_union.py,sha256=TTQwlur2CZNdZ466Nb_2TFcSFXrgoMliaNzD33t7Ktw,603
|
|
@@ -332,6 +333,7 @@ letta_client/types/system_message.py,sha256=xht_heFJW7P8OGljZXbCFjalqh-49p2ISZwT
|
|
|
332
333
|
letta_client/types/tag_schema.py,sha256=FEszKlRD2FqezKlX99OLqTqf46dONlcGPo1m43osdNo,553
|
|
333
334
|
letta_client/types/terminal_tool_rule.py,sha256=82a7AnohOqCFBSOt7OwsKeh7gHgq8KTlgojxlm3t76E,863
|
|
334
335
|
letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
|
|
336
|
+
letta_client/types/text_response_format.py,sha256=daIziOp-O4cEDqFH1CSIqb0p5BL721_kA0JSOtWlt0k,654
|
|
335
337
|
letta_client/types/tool.py,sha256=Mj2jm6dtDDMdTFLx4BZeJQ5oVCxIlGBjq3glQBuDUKM,2838
|
|
336
338
|
letta_client/types/tool_call.py,sha256=EKGAFwzoa6zMTpOkG55hWzFn_AgPrbLXSOu5M84x8WU,594
|
|
337
339
|
letta_client/types/tool_call_content.py,sha256=5aceJgOQSkL05Hw5LXG49yxN8CmTcp6jj9aeQp-Wtks,995
|
|
@@ -371,6 +373,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
371
373
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
372
374
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
373
375
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
374
|
-
letta_client-0.1.
|
|
375
|
-
letta_client-0.1.
|
|
376
|
-
letta_client-0.1.
|
|
376
|
+
letta_client-0.1.125.dist-info/METADATA,sha256=h-l2m2t6nyCOcsoxybkLYooY0zLMFQYANtF0CGDRq8M,5042
|
|
377
|
+
letta_client-0.1.125.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
378
|
+
letta_client-0.1.125.dist-info/RECORD,,
|
letta_client/messages/client.py
DELETED
|
@@ -1,146 +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.jsonable_encoder import jsonable_encoder
|
|
7
|
-
from ..core.unchecked_base_model import construct_type
|
|
8
|
-
from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
9
|
-
from ..types.http_validation_error import HttpValidationError
|
|
10
|
-
from json.decoder import JSONDecodeError
|
|
11
|
-
from ..core.api_error import ApiError
|
|
12
|
-
from ..core.client_wrapper import AsyncClientWrapper
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class MessagesClient:
|
|
16
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
17
|
-
self._client_wrapper = client_wrapper
|
|
18
|
-
|
|
19
|
-
def cancel_batch_run(
|
|
20
|
-
self, batch_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
21
|
-
) -> typing.Optional[typing.Any]:
|
|
22
|
-
"""
|
|
23
|
-
Cancel a batch run.
|
|
24
|
-
|
|
25
|
-
Parameters
|
|
26
|
-
----------
|
|
27
|
-
batch_id : str
|
|
28
|
-
|
|
29
|
-
request_options : typing.Optional[RequestOptions]
|
|
30
|
-
Request-specific configuration.
|
|
31
|
-
|
|
32
|
-
Returns
|
|
33
|
-
-------
|
|
34
|
-
typing.Optional[typing.Any]
|
|
35
|
-
Successful Response
|
|
36
|
-
|
|
37
|
-
Examples
|
|
38
|
-
--------
|
|
39
|
-
from letta_client import Letta
|
|
40
|
-
|
|
41
|
-
client = Letta(
|
|
42
|
-
token="YOUR_TOKEN",
|
|
43
|
-
)
|
|
44
|
-
client.messages.cancel_batch_run(
|
|
45
|
-
batch_id="batch_id",
|
|
46
|
-
)
|
|
47
|
-
"""
|
|
48
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
49
|
-
f"v1/messages/batches/{jsonable_encoder(batch_id)}/cancel",
|
|
50
|
-
method="PATCH",
|
|
51
|
-
request_options=request_options,
|
|
52
|
-
)
|
|
53
|
-
try:
|
|
54
|
-
if 200 <= _response.status_code < 300:
|
|
55
|
-
return typing.cast(
|
|
56
|
-
typing.Optional[typing.Any],
|
|
57
|
-
construct_type(
|
|
58
|
-
type_=typing.Optional[typing.Any], # type: ignore
|
|
59
|
-
object_=_response.json(),
|
|
60
|
-
),
|
|
61
|
-
)
|
|
62
|
-
if _response.status_code == 422:
|
|
63
|
-
raise UnprocessableEntityError(
|
|
64
|
-
typing.cast(
|
|
65
|
-
HttpValidationError,
|
|
66
|
-
construct_type(
|
|
67
|
-
type_=HttpValidationError, # type: ignore
|
|
68
|
-
object_=_response.json(),
|
|
69
|
-
),
|
|
70
|
-
)
|
|
71
|
-
)
|
|
72
|
-
_response_json = _response.json()
|
|
73
|
-
except JSONDecodeError:
|
|
74
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
75
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncMessagesClient:
|
|
79
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
80
|
-
self._client_wrapper = client_wrapper
|
|
81
|
-
|
|
82
|
-
async def cancel_batch_run(
|
|
83
|
-
self, batch_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
84
|
-
) -> typing.Optional[typing.Any]:
|
|
85
|
-
"""
|
|
86
|
-
Cancel a batch run.
|
|
87
|
-
|
|
88
|
-
Parameters
|
|
89
|
-
----------
|
|
90
|
-
batch_id : str
|
|
91
|
-
|
|
92
|
-
request_options : typing.Optional[RequestOptions]
|
|
93
|
-
Request-specific configuration.
|
|
94
|
-
|
|
95
|
-
Returns
|
|
96
|
-
-------
|
|
97
|
-
typing.Optional[typing.Any]
|
|
98
|
-
Successful Response
|
|
99
|
-
|
|
100
|
-
Examples
|
|
101
|
-
--------
|
|
102
|
-
import asyncio
|
|
103
|
-
|
|
104
|
-
from letta_client import AsyncLetta
|
|
105
|
-
|
|
106
|
-
client = AsyncLetta(
|
|
107
|
-
token="YOUR_TOKEN",
|
|
108
|
-
)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
async def main() -> None:
|
|
112
|
-
await client.messages.cancel_batch_run(
|
|
113
|
-
batch_id="batch_id",
|
|
114
|
-
)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
asyncio.run(main())
|
|
118
|
-
"""
|
|
119
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
120
|
-
f"v1/messages/batches/{jsonable_encoder(batch_id)}/cancel",
|
|
121
|
-
method="PATCH",
|
|
122
|
-
request_options=request_options,
|
|
123
|
-
)
|
|
124
|
-
try:
|
|
125
|
-
if 200 <= _response.status_code < 300:
|
|
126
|
-
return typing.cast(
|
|
127
|
-
typing.Optional[typing.Any],
|
|
128
|
-
construct_type(
|
|
129
|
-
type_=typing.Optional[typing.Any], # type: ignore
|
|
130
|
-
object_=_response.json(),
|
|
131
|
-
),
|
|
132
|
-
)
|
|
133
|
-
if _response.status_code == 422:
|
|
134
|
-
raise UnprocessableEntityError(
|
|
135
|
-
typing.cast(
|
|
136
|
-
HttpValidationError,
|
|
137
|
-
construct_type(
|
|
138
|
-
type_=HttpValidationError, # type: ignore
|
|
139
|
-
object_=_response.json(),
|
|
140
|
-
),
|
|
141
|
-
)
|
|
142
|
-
)
|
|
143
|
-
_response_json = _response.json()
|
|
144
|
-
except JSONDecodeError:
|
|
145
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
146
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
letta_client/tag/__init__.py
DELETED
letta_client/tag/client.py
DELETED
|
@@ -1,169 +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 TagClient:
|
|
15
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
16
|
-
self._client_wrapper = client_wrapper
|
|
17
|
-
|
|
18
|
-
def list_tags(
|
|
19
|
-
self,
|
|
20
|
-
*,
|
|
21
|
-
after: typing.Optional[str] = None,
|
|
22
|
-
limit: typing.Optional[int] = None,
|
|
23
|
-
query_text: typing.Optional[str] = None,
|
|
24
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
25
|
-
) -> typing.List[str]:
|
|
26
|
-
"""
|
|
27
|
-
Get a list of all tags in the database
|
|
28
|
-
|
|
29
|
-
Parameters
|
|
30
|
-
----------
|
|
31
|
-
after : typing.Optional[str]
|
|
32
|
-
|
|
33
|
-
limit : typing.Optional[int]
|
|
34
|
-
|
|
35
|
-
query_text : typing.Optional[str]
|
|
36
|
-
|
|
37
|
-
request_options : typing.Optional[RequestOptions]
|
|
38
|
-
Request-specific configuration.
|
|
39
|
-
|
|
40
|
-
Returns
|
|
41
|
-
-------
|
|
42
|
-
typing.List[str]
|
|
43
|
-
Successful Response
|
|
44
|
-
|
|
45
|
-
Examples
|
|
46
|
-
--------
|
|
47
|
-
from letta_client import Letta
|
|
48
|
-
|
|
49
|
-
client = Letta(
|
|
50
|
-
token="YOUR_TOKEN",
|
|
51
|
-
)
|
|
52
|
-
client.tag.list_tags()
|
|
53
|
-
"""
|
|
54
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
55
|
-
"v1/tags/",
|
|
56
|
-
method="GET",
|
|
57
|
-
params={
|
|
58
|
-
"after": after,
|
|
59
|
-
"limit": limit,
|
|
60
|
-
"query_text": query_text,
|
|
61
|
-
},
|
|
62
|
-
request_options=request_options,
|
|
63
|
-
)
|
|
64
|
-
try:
|
|
65
|
-
if 200 <= _response.status_code < 300:
|
|
66
|
-
return typing.cast(
|
|
67
|
-
typing.List[str],
|
|
68
|
-
construct_type(
|
|
69
|
-
type_=typing.List[str], # type: ignore
|
|
70
|
-
object_=_response.json(),
|
|
71
|
-
),
|
|
72
|
-
)
|
|
73
|
-
if _response.status_code == 422:
|
|
74
|
-
raise UnprocessableEntityError(
|
|
75
|
-
typing.cast(
|
|
76
|
-
HttpValidationError,
|
|
77
|
-
construct_type(
|
|
78
|
-
type_=HttpValidationError, # type: ignore
|
|
79
|
-
object_=_response.json(),
|
|
80
|
-
),
|
|
81
|
-
)
|
|
82
|
-
)
|
|
83
|
-
_response_json = _response.json()
|
|
84
|
-
except JSONDecodeError:
|
|
85
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
86
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
class AsyncTagClient:
|
|
90
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
91
|
-
self._client_wrapper = client_wrapper
|
|
92
|
-
|
|
93
|
-
async def list_tags(
|
|
94
|
-
self,
|
|
95
|
-
*,
|
|
96
|
-
after: typing.Optional[str] = None,
|
|
97
|
-
limit: typing.Optional[int] = None,
|
|
98
|
-
query_text: typing.Optional[str] = None,
|
|
99
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
100
|
-
) -> typing.List[str]:
|
|
101
|
-
"""
|
|
102
|
-
Get a list of all tags in the database
|
|
103
|
-
|
|
104
|
-
Parameters
|
|
105
|
-
----------
|
|
106
|
-
after : typing.Optional[str]
|
|
107
|
-
|
|
108
|
-
limit : typing.Optional[int]
|
|
109
|
-
|
|
110
|
-
query_text : typing.Optional[str]
|
|
111
|
-
|
|
112
|
-
request_options : typing.Optional[RequestOptions]
|
|
113
|
-
Request-specific configuration.
|
|
114
|
-
|
|
115
|
-
Returns
|
|
116
|
-
-------
|
|
117
|
-
typing.List[str]
|
|
118
|
-
Successful Response
|
|
119
|
-
|
|
120
|
-
Examples
|
|
121
|
-
--------
|
|
122
|
-
import asyncio
|
|
123
|
-
|
|
124
|
-
from letta_client import AsyncLetta
|
|
125
|
-
|
|
126
|
-
client = AsyncLetta(
|
|
127
|
-
token="YOUR_TOKEN",
|
|
128
|
-
)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
async def main() -> None:
|
|
132
|
-
await client.tag.list_tags()
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
asyncio.run(main())
|
|
136
|
-
"""
|
|
137
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
138
|
-
"v1/tags/",
|
|
139
|
-
method="GET",
|
|
140
|
-
params={
|
|
141
|
-
"after": after,
|
|
142
|
-
"limit": limit,
|
|
143
|
-
"query_text": query_text,
|
|
144
|
-
},
|
|
145
|
-
request_options=request_options,
|
|
146
|
-
)
|
|
147
|
-
try:
|
|
148
|
-
if 200 <= _response.status_code < 300:
|
|
149
|
-
return typing.cast(
|
|
150
|
-
typing.List[str],
|
|
151
|
-
construct_type(
|
|
152
|
-
type_=typing.List[str], # type: ignore
|
|
153
|
-
object_=_response.json(),
|
|
154
|
-
),
|
|
155
|
-
)
|
|
156
|
-
if _response.status_code == 422:
|
|
157
|
-
raise UnprocessableEntityError(
|
|
158
|
-
typing.cast(
|
|
159
|
-
HttpValidationError,
|
|
160
|
-
construct_type(
|
|
161
|
-
type_=HttpValidationError, # type: ignore
|
|
162
|
-
object_=_response.json(),
|
|
163
|
-
),
|
|
164
|
-
)
|
|
165
|
-
)
|
|
166
|
-
_response_json = _response.json()
|
|
167
|
-
except JSONDecodeError:
|
|
168
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
169
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
File without changes
|