letta-client 0.1.39__py3-none-any.whl → 0.1.40__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/client.py +14 -14
- letta_client/core/client_wrapper.py +1 -1
- letta_client/identities/client.py +12 -12
- letta_client/types/identity.py +3 -3
- {letta_client-0.1.39.dist-info → letta_client-0.1.40.dist-info}/METADATA +1 -1
- {letta_client-0.1.39.dist-info → letta_client-0.1.40.dist-info}/RECORD +7 -7
- {letta_client-0.1.39.dist-info → letta_client-0.1.40.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -171,7 +171,7 @@ class AgentsClient:
|
|
|
171
171
|
def create(
|
|
172
172
|
self,
|
|
173
173
|
*,
|
|
174
|
-
|
|
174
|
+
project: typing.Optional[str] = None,
|
|
175
175
|
name: typing.Optional[str] = OMIT,
|
|
176
176
|
memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
|
|
177
177
|
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -196,7 +196,7 @@ class AgentsClient:
|
|
|
196
196
|
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
197
197
|
from_template: typing.Optional[str] = OMIT,
|
|
198
198
|
template: typing.Optional[bool] = OMIT,
|
|
199
|
-
|
|
199
|
+
create_agent_request_project: typing.Optional[str] = OMIT,
|
|
200
200
|
tool_exec_environment_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
201
201
|
memory_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
202
202
|
project_id: typing.Optional[str] = OMIT,
|
|
@@ -211,7 +211,7 @@ class AgentsClient:
|
|
|
211
211
|
|
|
212
212
|
Parameters
|
|
213
213
|
----------
|
|
214
|
-
|
|
214
|
+
project : typing.Optional[str]
|
|
215
215
|
|
|
216
216
|
name : typing.Optional[str]
|
|
217
217
|
The name of the agent.
|
|
@@ -285,8 +285,8 @@ class AgentsClient:
|
|
|
285
285
|
template : typing.Optional[bool]
|
|
286
286
|
Whether the agent is a template
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
Deprecated: Project should now be passed via the
|
|
288
|
+
create_agent_request_project : typing.Optional[str]
|
|
289
|
+
Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.
|
|
290
290
|
|
|
291
291
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
292
292
|
The environment variables for tool execution specific to this agent.
|
|
@@ -364,7 +364,7 @@ class AgentsClient:
|
|
|
364
364
|
"embedding_chunk_size": embedding_chunk_size,
|
|
365
365
|
"from_template": from_template,
|
|
366
366
|
"template": template,
|
|
367
|
-
"project":
|
|
367
|
+
"project": create_agent_request_project,
|
|
368
368
|
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
369
369
|
"memory_variables": memory_variables,
|
|
370
370
|
"project_id": project_id,
|
|
@@ -375,7 +375,7 @@ class AgentsClient:
|
|
|
375
375
|
},
|
|
376
376
|
headers={
|
|
377
377
|
"content-type": "application/json",
|
|
378
|
-
"
|
|
378
|
+
"X-Project": str(project) if project is not None else None,
|
|
379
379
|
},
|
|
380
380
|
request_options=request_options,
|
|
381
381
|
omit=OMIT,
|
|
@@ -963,7 +963,7 @@ class AsyncAgentsClient:
|
|
|
963
963
|
async def create(
|
|
964
964
|
self,
|
|
965
965
|
*,
|
|
966
|
-
|
|
966
|
+
project: typing.Optional[str] = None,
|
|
967
967
|
name: typing.Optional[str] = OMIT,
|
|
968
968
|
memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
|
|
969
969
|
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -988,7 +988,7 @@ class AsyncAgentsClient:
|
|
|
988
988
|
embedding_chunk_size: typing.Optional[int] = OMIT,
|
|
989
989
|
from_template: typing.Optional[str] = OMIT,
|
|
990
990
|
template: typing.Optional[bool] = OMIT,
|
|
991
|
-
|
|
991
|
+
create_agent_request_project: typing.Optional[str] = OMIT,
|
|
992
992
|
tool_exec_environment_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
993
993
|
memory_variables: typing.Optional[typing.Dict[str, typing.Optional[str]]] = OMIT,
|
|
994
994
|
project_id: typing.Optional[str] = OMIT,
|
|
@@ -1003,7 +1003,7 @@ class AsyncAgentsClient:
|
|
|
1003
1003
|
|
|
1004
1004
|
Parameters
|
|
1005
1005
|
----------
|
|
1006
|
-
|
|
1006
|
+
project : typing.Optional[str]
|
|
1007
1007
|
|
|
1008
1008
|
name : typing.Optional[str]
|
|
1009
1009
|
The name of the agent.
|
|
@@ -1077,8 +1077,8 @@ class AsyncAgentsClient:
|
|
|
1077
1077
|
template : typing.Optional[bool]
|
|
1078
1078
|
Whether the agent is a template
|
|
1079
1079
|
|
|
1080
|
-
|
|
1081
|
-
Deprecated: Project should now be passed via the
|
|
1080
|
+
create_agent_request_project : typing.Optional[str]
|
|
1081
|
+
Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below.
|
|
1082
1082
|
|
|
1083
1083
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
1084
1084
|
The environment variables for tool execution specific to this agent.
|
|
@@ -1164,7 +1164,7 @@ class AsyncAgentsClient:
|
|
|
1164
1164
|
"embedding_chunk_size": embedding_chunk_size,
|
|
1165
1165
|
"from_template": from_template,
|
|
1166
1166
|
"template": template,
|
|
1167
|
-
"project":
|
|
1167
|
+
"project": create_agent_request_project,
|
|
1168
1168
|
"tool_exec_environment_variables": tool_exec_environment_variables,
|
|
1169
1169
|
"memory_variables": memory_variables,
|
|
1170
1170
|
"project_id": project_id,
|
|
@@ -1175,7 +1175,7 @@ class AsyncAgentsClient:
|
|
|
1175
1175
|
},
|
|
1176
1176
|
headers={
|
|
1177
1177
|
"content-type": "application/json",
|
|
1178
|
-
"
|
|
1178
|
+
"X-Project": str(project) if project is not None else None,
|
|
1179
1179
|
},
|
|
1180
1180
|
request_options=request_options,
|
|
1181
1181
|
omit=OMIT,
|
|
@@ -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.40",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -109,7 +109,7 @@ class IdentitiesClient:
|
|
|
109
109
|
identifier_key: str,
|
|
110
110
|
name: str,
|
|
111
111
|
identity_type: IdentityType,
|
|
112
|
-
|
|
112
|
+
project: typing.Optional[str] = None,
|
|
113
113
|
project_id: typing.Optional[str] = OMIT,
|
|
114
114
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
115
115
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -126,7 +126,7 @@ class IdentitiesClient:
|
|
|
126
126
|
identity_type : IdentityType
|
|
127
127
|
The type of the identity.
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
project : typing.Optional[str]
|
|
130
130
|
|
|
131
131
|
project_id : typing.Optional[str]
|
|
132
132
|
The project id of the identity, if applicable.
|
|
@@ -166,7 +166,7 @@ class IdentitiesClient:
|
|
|
166
166
|
"agent_ids": agent_ids,
|
|
167
167
|
},
|
|
168
168
|
headers={
|
|
169
|
-
"
|
|
169
|
+
"X-Project": str(project) if project is not None else None,
|
|
170
170
|
},
|
|
171
171
|
request_options=request_options,
|
|
172
172
|
omit=OMIT,
|
|
@@ -201,7 +201,7 @@ class IdentitiesClient:
|
|
|
201
201
|
identifier_key: str,
|
|
202
202
|
name: str,
|
|
203
203
|
identity_type: IdentityType,
|
|
204
|
-
|
|
204
|
+
project: typing.Optional[str] = None,
|
|
205
205
|
project_id: typing.Optional[str] = OMIT,
|
|
206
206
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
207
207
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -218,7 +218,7 @@ class IdentitiesClient:
|
|
|
218
218
|
identity_type : IdentityType
|
|
219
219
|
The type of the identity.
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
project : typing.Optional[str]
|
|
222
222
|
|
|
223
223
|
project_id : typing.Optional[str]
|
|
224
224
|
The project id of the identity, if applicable.
|
|
@@ -258,7 +258,7 @@ class IdentitiesClient:
|
|
|
258
258
|
"agent_ids": agent_ids,
|
|
259
259
|
},
|
|
260
260
|
headers={
|
|
261
|
-
"
|
|
261
|
+
"X-Project": str(project) if project is not None else None,
|
|
262
262
|
},
|
|
263
263
|
request_options=request_options,
|
|
264
264
|
omit=OMIT,
|
|
@@ -582,7 +582,7 @@ class AsyncIdentitiesClient:
|
|
|
582
582
|
identifier_key: str,
|
|
583
583
|
name: str,
|
|
584
584
|
identity_type: IdentityType,
|
|
585
|
-
|
|
585
|
+
project: typing.Optional[str] = None,
|
|
586
586
|
project_id: typing.Optional[str] = OMIT,
|
|
587
587
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
588
588
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -599,7 +599,7 @@ class AsyncIdentitiesClient:
|
|
|
599
599
|
identity_type : IdentityType
|
|
600
600
|
The type of the identity.
|
|
601
601
|
|
|
602
|
-
|
|
602
|
+
project : typing.Optional[str]
|
|
603
603
|
|
|
604
604
|
project_id : typing.Optional[str]
|
|
605
605
|
The project id of the identity, if applicable.
|
|
@@ -647,7 +647,7 @@ class AsyncIdentitiesClient:
|
|
|
647
647
|
"agent_ids": agent_ids,
|
|
648
648
|
},
|
|
649
649
|
headers={
|
|
650
|
-
"
|
|
650
|
+
"X-Project": str(project) if project is not None else None,
|
|
651
651
|
},
|
|
652
652
|
request_options=request_options,
|
|
653
653
|
omit=OMIT,
|
|
@@ -682,7 +682,7 @@ class AsyncIdentitiesClient:
|
|
|
682
682
|
identifier_key: str,
|
|
683
683
|
name: str,
|
|
684
684
|
identity_type: IdentityType,
|
|
685
|
-
|
|
685
|
+
project: typing.Optional[str] = None,
|
|
686
686
|
project_id: typing.Optional[str] = OMIT,
|
|
687
687
|
agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
688
688
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -699,7 +699,7 @@ class AsyncIdentitiesClient:
|
|
|
699
699
|
identity_type : IdentityType
|
|
700
700
|
The type of the identity.
|
|
701
701
|
|
|
702
|
-
|
|
702
|
+
project : typing.Optional[str]
|
|
703
703
|
|
|
704
704
|
project_id : typing.Optional[str]
|
|
705
705
|
The project id of the identity, if applicable.
|
|
@@ -747,7 +747,7 @@ class AsyncIdentitiesClient:
|
|
|
747
747
|
"agent_ids": agent_ids,
|
|
748
748
|
},
|
|
749
749
|
headers={
|
|
750
|
-
"
|
|
750
|
+
"X-Project": str(project) if project is not None else None,
|
|
751
751
|
},
|
|
752
752
|
request_options=request_options,
|
|
753
753
|
omit=OMIT,
|
letta_client/types/identity.py
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
4
5
|
import pydantic
|
|
5
6
|
from .identity_type import IdentityType
|
|
6
|
-
import typing
|
|
7
7
|
from .agent_state import AgentState
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Identity(UncheckedBaseModel):
|
|
12
|
-
id: str = pydantic.Field()
|
|
12
|
+
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
13
|
"""
|
|
14
|
-
The
|
|
14
|
+
The human-friendly ID of the Identity
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
identifier_key: str = pydantic.Field()
|
|
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=tXi5mMvEqZvaU_Jw3fLkw6BykuW9ORjhFPv77b3h_jA,5990
|
|
|
2
2
|
letta_client/agents/__init__.py,sha256=oPpRVaXnXW2hn4dVhGw_cRcu6apXpOyQ9DnxEHXYb_8,22240
|
|
3
3
|
letta_client/agents/archival_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/archival_memory/client.py,sha256=VTlL-cGmYBYdVI5owY8Gbbj4dscUCtSzL34Gm_5Nvk4,14872
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=t9r0M23VbTlB03Innp6TAPUDqakZZHtGo47xB0Lv3r8,63119
|
|
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
|
|
@@ -206,7 +206,7 @@ letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU
|
|
|
206
206
|
letta_client/client.py,sha256=y2cXN0ApFul2Lz-fVh5TbeYbQ8oUjnXcwJ6wUczEf2c,2457
|
|
207
207
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
208
208
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
209
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
209
|
+
letta_client/core/client_wrapper.py,sha256=KNi1YSxXjhuxy-tBMbd5x2RhrpNQ6SlIvlAv82cqvxM,1997
|
|
210
210
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
211
211
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
212
212
|
letta_client/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
|
@@ -226,7 +226,7 @@ letta_client/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBR
|
|
|
226
226
|
letta_client/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
227
227
|
letta_client/health/client.py,sha256=6BjXH83ZhsLt_MD4QA2hiTsvgfeIgxMT1KSN0Oj6e1I,3242
|
|
228
228
|
letta_client/identities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
229
|
-
letta_client/identities/client.py,sha256=
|
|
229
|
+
letta_client/identities/client.py,sha256=njx24NRGVvUKGSjKNIPqdzpVnmZtZh1-FGzr1-hJrhw,31458
|
|
230
230
|
letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
231
231
|
letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
|
|
232
232
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -503,7 +503,7 @@ letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlr
|
|
|
503
503
|
letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
|
|
504
504
|
letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
|
|
505
505
|
letta_client/types/http_validation_error.py,sha256=yHa4_NHIMB-VKNZpk7agjLTwWIg7mv7ml3d7I-Bqiog,661
|
|
506
|
-
letta_client/types/identity.py,sha256
|
|
506
|
+
letta_client/types/identity.py,sha256=-geehHsgVIhaD8YqRlH60MRl86vluAqWB13UchEjHi8,1285
|
|
507
507
|
letta_client/types/identity_create.py,sha256=eG6urqbZZsRiExBQmcgs_uytEn5IRLoj5kAB8BrvaQc,1173
|
|
508
508
|
letta_client/types/identity_type.py,sha256=YeGvqit1VLK7q0GpNuTyfbCxXO7BJjq-hFSiFZexswk,160
|
|
509
509
|
letta_client/types/image_url.py,sha256=re4N2AsAvOFl2nS6v8jOi3jVFppBs-3zhwpBKHSuCLs,648
|
|
@@ -579,6 +579,6 @@ letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wD
|
|
|
579
579
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
580
580
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
581
581
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
582
|
-
letta_client-0.1.
|
|
583
|
-
letta_client-0.1.
|
|
584
|
-
letta_client-0.1.
|
|
582
|
+
letta_client-0.1.40.dist-info/METADATA,sha256=Ib1etZBbAcSc9jDwIi5uek9iGeX4EGEbIMTCJgN6efg,4942
|
|
583
|
+
letta_client-0.1.40.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
584
|
+
letta_client-0.1.40.dist-info/RECORD,,
|
|
File without changes
|