letta-client 0.1.254__py3-none-any.whl → 0.1.255__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/agents/templates/client.py +20 -0
- letta_client/agents/templates/raw_client.py +20 -0
- letta_client/core/client_wrapper.py +2 -2
- {letta_client-0.1.254.dist-info → letta_client-0.1.255.dist-info}/METADATA +1 -1
- {letta_client-0.1.254.dist-info → letta_client-0.1.255.dist-info}/RECORD +6 -6
- {letta_client-0.1.254.dist-info → letta_client-0.1.255.dist-info}/WHEEL +0 -0
|
@@ -35,6 +35,7 @@ class TemplatesClient:
|
|
|
35
35
|
return_agent_state: typing.Optional[TemplatesCreateVersionRequestReturnAgentState] = None,
|
|
36
36
|
migrate_deployed_agents: typing.Optional[bool] = OMIT,
|
|
37
37
|
message: typing.Optional[str] = OMIT,
|
|
38
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
38
39
|
request_options: typing.Optional[RequestOptions] = None,
|
|
39
40
|
) -> None:
|
|
40
41
|
"""
|
|
@@ -53,6 +54,9 @@ class TemplatesClient:
|
|
|
53
54
|
|
|
54
55
|
message : typing.Optional[str]
|
|
55
56
|
|
|
57
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
58
|
+
If true, preserves the existing agent's tool environment variables when migrating deployed agents
|
|
59
|
+
|
|
56
60
|
request_options : typing.Optional[RequestOptions]
|
|
57
61
|
Request-specific configuration.
|
|
58
62
|
|
|
@@ -77,6 +81,7 @@ class TemplatesClient:
|
|
|
77
81
|
return_agent_state=return_agent_state,
|
|
78
82
|
migrate_deployed_agents=migrate_deployed_agents,
|
|
79
83
|
message=message,
|
|
84
|
+
preserve_tool_variables=preserve_tool_variables,
|
|
80
85
|
request_options=request_options,
|
|
81
86
|
)
|
|
82
87
|
return _response.data
|
|
@@ -88,6 +93,7 @@ class TemplatesClient:
|
|
|
88
93
|
to_template: str,
|
|
89
94
|
preserve_core_memories: bool,
|
|
90
95
|
variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
96
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
91
97
|
request_options: typing.Optional[RequestOptions] = None,
|
|
92
98
|
) -> TemplatesMigrateResponse:
|
|
93
99
|
"""
|
|
@@ -106,6 +112,9 @@ class TemplatesClient:
|
|
|
106
112
|
variables : typing.Optional[typing.Dict[str, str]]
|
|
107
113
|
If you chose to not preserve core memories, you should provide the new variables for the core memories
|
|
108
114
|
|
|
115
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
116
|
+
If true, preserves the existing agent's tool environment variables instead of using the template's variables
|
|
117
|
+
|
|
109
118
|
request_options : typing.Optional[RequestOptions]
|
|
110
119
|
Request-specific configuration.
|
|
111
120
|
|
|
@@ -133,6 +142,7 @@ class TemplatesClient:
|
|
|
133
142
|
to_template=to_template,
|
|
134
143
|
preserve_core_memories=preserve_core_memories,
|
|
135
144
|
variables=variables,
|
|
145
|
+
preserve_tool_variables=preserve_tool_variables,
|
|
136
146
|
request_options=request_options,
|
|
137
147
|
)
|
|
138
148
|
return _response.data
|
|
@@ -201,6 +211,7 @@ class AsyncTemplatesClient:
|
|
|
201
211
|
return_agent_state: typing.Optional[TemplatesCreateVersionRequestReturnAgentState] = None,
|
|
202
212
|
migrate_deployed_agents: typing.Optional[bool] = OMIT,
|
|
203
213
|
message: typing.Optional[str] = OMIT,
|
|
214
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
204
215
|
request_options: typing.Optional[RequestOptions] = None,
|
|
205
216
|
) -> None:
|
|
206
217
|
"""
|
|
@@ -219,6 +230,9 @@ class AsyncTemplatesClient:
|
|
|
219
230
|
|
|
220
231
|
message : typing.Optional[str]
|
|
221
232
|
|
|
233
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
234
|
+
If true, preserves the existing agent's tool environment variables when migrating deployed agents
|
|
235
|
+
|
|
222
236
|
request_options : typing.Optional[RequestOptions]
|
|
223
237
|
Request-specific configuration.
|
|
224
238
|
|
|
@@ -251,6 +265,7 @@ class AsyncTemplatesClient:
|
|
|
251
265
|
return_agent_state=return_agent_state,
|
|
252
266
|
migrate_deployed_agents=migrate_deployed_agents,
|
|
253
267
|
message=message,
|
|
268
|
+
preserve_tool_variables=preserve_tool_variables,
|
|
254
269
|
request_options=request_options,
|
|
255
270
|
)
|
|
256
271
|
return _response.data
|
|
@@ -262,6 +277,7 @@ class AsyncTemplatesClient:
|
|
|
262
277
|
to_template: str,
|
|
263
278
|
preserve_core_memories: bool,
|
|
264
279
|
variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
280
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
265
281
|
request_options: typing.Optional[RequestOptions] = None,
|
|
266
282
|
) -> TemplatesMigrateResponse:
|
|
267
283
|
"""
|
|
@@ -280,6 +296,9 @@ class AsyncTemplatesClient:
|
|
|
280
296
|
variables : typing.Optional[typing.Dict[str, str]]
|
|
281
297
|
If you chose to not preserve core memories, you should provide the new variables for the core memories
|
|
282
298
|
|
|
299
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
300
|
+
If true, preserves the existing agent's tool environment variables instead of using the template's variables
|
|
301
|
+
|
|
283
302
|
request_options : typing.Optional[RequestOptions]
|
|
284
303
|
Request-specific configuration.
|
|
285
304
|
|
|
@@ -315,6 +334,7 @@ class AsyncTemplatesClient:
|
|
|
315
334
|
to_template=to_template,
|
|
316
335
|
preserve_core_memories=preserve_core_memories,
|
|
317
336
|
variables=variables,
|
|
337
|
+
preserve_tool_variables=preserve_tool_variables,
|
|
318
338
|
request_options=request_options,
|
|
319
339
|
)
|
|
320
340
|
return _response.data
|
|
@@ -32,6 +32,7 @@ class RawTemplatesClient:
|
|
|
32
32
|
return_agent_state: typing.Optional[TemplatesCreateVersionRequestReturnAgentState] = None,
|
|
33
33
|
migrate_deployed_agents: typing.Optional[bool] = OMIT,
|
|
34
34
|
message: typing.Optional[str] = OMIT,
|
|
35
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
35
36
|
request_options: typing.Optional[RequestOptions] = None,
|
|
36
37
|
) -> HttpResponse[None]:
|
|
37
38
|
"""
|
|
@@ -50,6 +51,9 @@ class RawTemplatesClient:
|
|
|
50
51
|
|
|
51
52
|
message : typing.Optional[str]
|
|
52
53
|
|
|
54
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
55
|
+
If true, preserves the existing agent's tool environment variables when migrating deployed agents
|
|
56
|
+
|
|
53
57
|
request_options : typing.Optional[RequestOptions]
|
|
54
58
|
Request-specific configuration.
|
|
55
59
|
|
|
@@ -66,6 +70,7 @@ class RawTemplatesClient:
|
|
|
66
70
|
json={
|
|
67
71
|
"migrate_deployed_agents": migrate_deployed_agents,
|
|
68
72
|
"message": message,
|
|
73
|
+
"preserve_tool_variables": preserve_tool_variables,
|
|
69
74
|
},
|
|
70
75
|
headers={
|
|
71
76
|
"content-type": "application/json",
|
|
@@ -110,6 +115,7 @@ class RawTemplatesClient:
|
|
|
110
115
|
to_template: str,
|
|
111
116
|
preserve_core_memories: bool,
|
|
112
117
|
variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
118
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
113
119
|
request_options: typing.Optional[RequestOptions] = None,
|
|
114
120
|
) -> HttpResponse[TemplatesMigrateResponse]:
|
|
115
121
|
"""
|
|
@@ -128,6 +134,9 @@ class RawTemplatesClient:
|
|
|
128
134
|
variables : typing.Optional[typing.Dict[str, str]]
|
|
129
135
|
If you chose to not preserve core memories, you should provide the new variables for the core memories
|
|
130
136
|
|
|
137
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
138
|
+
If true, preserves the existing agent's tool environment variables instead of using the template's variables
|
|
139
|
+
|
|
131
140
|
request_options : typing.Optional[RequestOptions]
|
|
132
141
|
Request-specific configuration.
|
|
133
142
|
|
|
@@ -143,6 +152,7 @@ class RawTemplatesClient:
|
|
|
143
152
|
"to_template": to_template,
|
|
144
153
|
"variables": variables,
|
|
145
154
|
"preserve_core_memories": preserve_core_memories,
|
|
155
|
+
"preserve_tool_variables": preserve_tool_variables,
|
|
146
156
|
},
|
|
147
157
|
headers={
|
|
148
158
|
"content-type": "application/json",
|
|
@@ -274,6 +284,7 @@ class AsyncRawTemplatesClient:
|
|
|
274
284
|
return_agent_state: typing.Optional[TemplatesCreateVersionRequestReturnAgentState] = None,
|
|
275
285
|
migrate_deployed_agents: typing.Optional[bool] = OMIT,
|
|
276
286
|
message: typing.Optional[str] = OMIT,
|
|
287
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
277
288
|
request_options: typing.Optional[RequestOptions] = None,
|
|
278
289
|
) -> AsyncHttpResponse[None]:
|
|
279
290
|
"""
|
|
@@ -292,6 +303,9 @@ class AsyncRawTemplatesClient:
|
|
|
292
303
|
|
|
293
304
|
message : typing.Optional[str]
|
|
294
305
|
|
|
306
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
307
|
+
If true, preserves the existing agent's tool environment variables when migrating deployed agents
|
|
308
|
+
|
|
295
309
|
request_options : typing.Optional[RequestOptions]
|
|
296
310
|
Request-specific configuration.
|
|
297
311
|
|
|
@@ -308,6 +322,7 @@ class AsyncRawTemplatesClient:
|
|
|
308
322
|
json={
|
|
309
323
|
"migrate_deployed_agents": migrate_deployed_agents,
|
|
310
324
|
"message": message,
|
|
325
|
+
"preserve_tool_variables": preserve_tool_variables,
|
|
311
326
|
},
|
|
312
327
|
headers={
|
|
313
328
|
"content-type": "application/json",
|
|
@@ -352,6 +367,7 @@ class AsyncRawTemplatesClient:
|
|
|
352
367
|
to_template: str,
|
|
353
368
|
preserve_core_memories: bool,
|
|
354
369
|
variables: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
370
|
+
preserve_tool_variables: typing.Optional[bool] = OMIT,
|
|
355
371
|
request_options: typing.Optional[RequestOptions] = None,
|
|
356
372
|
) -> AsyncHttpResponse[TemplatesMigrateResponse]:
|
|
357
373
|
"""
|
|
@@ -370,6 +386,9 @@ class AsyncRawTemplatesClient:
|
|
|
370
386
|
variables : typing.Optional[typing.Dict[str, str]]
|
|
371
387
|
If you chose to not preserve core memories, you should provide the new variables for the core memories
|
|
372
388
|
|
|
389
|
+
preserve_tool_variables : typing.Optional[bool]
|
|
390
|
+
If true, preserves the existing agent's tool environment variables instead of using the template's variables
|
|
391
|
+
|
|
373
392
|
request_options : typing.Optional[RequestOptions]
|
|
374
393
|
Request-specific configuration.
|
|
375
394
|
|
|
@@ -385,6 +404,7 @@ class AsyncRawTemplatesClient:
|
|
|
385
404
|
"to_template": to_template,
|
|
386
405
|
"variables": variables,
|
|
387
406
|
"preserve_core_memories": preserve_core_memories,
|
|
407
|
+
"preserve_tool_variables": preserve_tool_variables,
|
|
388
408
|
},
|
|
389
409
|
headers={
|
|
390
410
|
"content-type": "application/json",
|
|
@@ -24,10 +24,10 @@ class BaseClientWrapper:
|
|
|
24
24
|
|
|
25
25
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
26
26
|
headers: typing.Dict[str, str] = {
|
|
27
|
-
"User-Agent": "letta-client/0.1.
|
|
27
|
+
"User-Agent": "letta-client/0.1.255",
|
|
28
28
|
"X-Fern-Language": "Python",
|
|
29
29
|
"X-Fern-SDK-Name": "letta-client",
|
|
30
|
-
"X-Fern-SDK-Version": "0.1.
|
|
30
|
+
"X-Fern-SDK-Version": "0.1.255",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
|
@@ -40,8 +40,8 @@ letta_client/agents/sources/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23
|
|
|
40
40
|
letta_client/agents/sources/client.py,sha256=lCqB6FF9svrwf0oZSFs41WKlMXc-YRhUeb4FZkHbicM,6868
|
|
41
41
|
letta_client/agents/sources/raw_client.py,sha256=ts4c5UBuXzrHU-lFWWrYniQqrMEc8SN0rfiqNXJLP5Y,12399
|
|
42
42
|
letta_client/agents/templates/__init__.py,sha256=nl2JyHPmf_fwmrqDyrztyGaUXFBxd5sYgDy6rPexk0Y,317
|
|
43
|
-
letta_client/agents/templates/client.py,sha256=
|
|
44
|
-
letta_client/agents/templates/raw_client.py,sha256=
|
|
43
|
+
letta_client/agents/templates/client.py,sha256=ZtIpGT7d1nJKkX-3Hk5Tle1iXmQ4ocwUS7xDuxJsZoc,11549
|
|
44
|
+
letta_client/agents/templates/raw_client.py,sha256=SppZ-tXc3FwdXm4tpmjT72kiPaTesCmrfYuLCXSFF6Q,20321
|
|
45
45
|
letta_client/agents/templates/types/__init__.py,sha256=qTMI52-xwyKNXvdthLkkFFOxetXJbMQpG6YcL0WYQYk,440
|
|
46
46
|
letta_client/agents/templates/types/templates_create_response.py,sha256=C00qcgSgyf3sSFAE55k45UmdC_aC5-zobIO3AavWOPE,807
|
|
47
47
|
letta_client/agents/templates/types/templates_create_version_request_return_agent_state.py,sha256=bHgN0KfiCClqf_ZYsfK6o8ELEm_cvmkW-TlzXTFanO8,177
|
|
@@ -92,7 +92,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
92
92
|
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
|
|
93
93
|
letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
|
|
94
94
|
letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
95
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
95
|
+
letta_client/core/client_wrapper.py,sha256=4i5CiybWeYjh68AA0cCYiil0uVe0uMDdhsplMKG8f3s,2776
|
|
96
96
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
97
97
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
98
98
|
letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -517,6 +517,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
|
517
517
|
letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
518
518
|
letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
|
|
519
519
|
letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
|
|
520
|
-
letta_client-0.1.
|
|
521
|
-
letta_client-0.1.
|
|
522
|
-
letta_client-0.1.
|
|
520
|
+
letta_client-0.1.255.dist-info/METADATA,sha256=rdg-rNaM7d-KrehBPcGb8Jm7gCP-4XfcWuFN5umSj04,5781
|
|
521
|
+
letta_client-0.1.255.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
522
|
+
letta_client-0.1.255.dist-info/RECORD,,
|
|
File without changes
|