letta-client 0.1.36__py3-none-any.whl → 0.1.38__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 +8 -1
- letta_client/agents/client.py +10 -2
- letta_client/base_client.py +4 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/identities/__init__.py +2 -0
- letta_client/identities/client.py +995 -0
- letta_client/types/__init__.py +6 -0
- letta_client/types/action_parameters_model.py +1 -0
- letta_client/types/action_response_model.py +1 -0
- letta_client/types/app_auth_scheme_auth_mode.py +1 -1
- letta_client/types/identity.py +49 -0
- letta_client/types/identity_create.py +43 -0
- letta_client/types/identity_type.py +5 -0
- {letta_client-0.1.36.dist-info → letta_client-0.1.38.dist-info}/METADATA +1 -1
- {letta_client-0.1.36.dist-info → letta_client-0.1.38.dist-info}/RECORD +16 -11
- {letta_client-0.1.36.dist-info → letta_client-0.1.38.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -84,6 +84,9 @@ from .types import (
|
|
|
84
84
|
FunctionTool,
|
|
85
85
|
Health,
|
|
86
86
|
HttpValidationError,
|
|
87
|
+
Identity,
|
|
88
|
+
IdentityCreate,
|
|
89
|
+
IdentityType,
|
|
87
90
|
ImageUrl,
|
|
88
91
|
ImageUrlDetail,
|
|
89
92
|
InitToolRule,
|
|
@@ -158,7 +161,7 @@ from .types import (
|
|
|
158
161
|
ValidationErrorLocItem,
|
|
159
162
|
)
|
|
160
163
|
from .errors import ConflictError, InternalServerError, NotFoundError, UnprocessableEntityError
|
|
161
|
-
from . import agents, blocks, health, jobs, models, providers, runs, sources, steps, tag, templates, tools
|
|
164
|
+
from . import agents, blocks, health, identities, jobs, models, providers, runs, sources, steps, tag, templates, tools
|
|
162
165
|
from .agents import (
|
|
163
166
|
AgentsSearchRequestSearchItem,
|
|
164
167
|
AgentsSearchRequestSearchItemField,
|
|
@@ -755,6 +758,9 @@ __all__ = [
|
|
|
755
758
|
"FunctionTool",
|
|
756
759
|
"Health",
|
|
757
760
|
"HttpValidationError",
|
|
761
|
+
"Identity",
|
|
762
|
+
"IdentityCreate",
|
|
763
|
+
"IdentityType",
|
|
758
764
|
"ImageUrl",
|
|
759
765
|
"ImageUrlDetail",
|
|
760
766
|
"InitToolRule",
|
|
@@ -1000,6 +1006,7 @@ __all__ = [
|
|
|
1000
1006
|
"agents",
|
|
1001
1007
|
"blocks",
|
|
1002
1008
|
"health",
|
|
1009
|
+
"identities",
|
|
1003
1010
|
"jobs",
|
|
1004
1011
|
"models",
|
|
1005
1012
|
"providers",
|
letta_client/agents/client.py
CHANGED
|
@@ -171,6 +171,7 @@ class AgentsClient:
|
|
|
171
171
|
def create(
|
|
172
172
|
self,
|
|
173
173
|
*,
|
|
174
|
+
project_slug: typing.Optional[str] = None,
|
|
174
175
|
name: typing.Optional[str] = OMIT,
|
|
175
176
|
memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
|
|
176
177
|
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -209,6 +210,8 @@ class AgentsClient:
|
|
|
209
210
|
|
|
210
211
|
Parameters
|
|
211
212
|
----------
|
|
213
|
+
project_slug : typing.Optional[str]
|
|
214
|
+
|
|
212
215
|
name : typing.Optional[str]
|
|
213
216
|
The name of the agent.
|
|
214
217
|
|
|
@@ -279,7 +282,7 @@ class AgentsClient:
|
|
|
279
282
|
Whether the agent is a template
|
|
280
283
|
|
|
281
284
|
project : typing.Optional[str]
|
|
282
|
-
|
|
285
|
+
Deprecated: Project should now be passed via the project-slug header instead of in the request body. If using the sdk, this can be done via the new project_slug field below.
|
|
283
286
|
|
|
284
287
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
285
288
|
The environment variables for tool execution specific to this agent.
|
|
@@ -367,6 +370,7 @@ class AgentsClient:
|
|
|
367
370
|
},
|
|
368
371
|
headers={
|
|
369
372
|
"content-type": "application/json",
|
|
373
|
+
"project-slug": str(project_slug) if project_slug is not None else None,
|
|
370
374
|
},
|
|
371
375
|
request_options=request_options,
|
|
372
376
|
omit=OMIT,
|
|
@@ -954,6 +958,7 @@ class AsyncAgentsClient:
|
|
|
954
958
|
async def create(
|
|
955
959
|
self,
|
|
956
960
|
*,
|
|
961
|
+
project_slug: typing.Optional[str] = None,
|
|
957
962
|
name: typing.Optional[str] = OMIT,
|
|
958
963
|
memory_blocks: typing.Optional[typing.Sequence[CreateBlock]] = OMIT,
|
|
959
964
|
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
@@ -992,6 +997,8 @@ class AsyncAgentsClient:
|
|
|
992
997
|
|
|
993
998
|
Parameters
|
|
994
999
|
----------
|
|
1000
|
+
project_slug : typing.Optional[str]
|
|
1001
|
+
|
|
995
1002
|
name : typing.Optional[str]
|
|
996
1003
|
The name of the agent.
|
|
997
1004
|
|
|
@@ -1062,7 +1069,7 @@ class AsyncAgentsClient:
|
|
|
1062
1069
|
Whether the agent is a template
|
|
1063
1070
|
|
|
1064
1071
|
project : typing.Optional[str]
|
|
1065
|
-
|
|
1072
|
+
Deprecated: Project should now be passed via the project-slug header instead of in the request body. If using the sdk, this can be done via the new project_slug field below.
|
|
1066
1073
|
|
|
1067
1074
|
tool_exec_environment_variables : typing.Optional[typing.Dict[str, typing.Optional[str]]]
|
|
1068
1075
|
The environment variables for tool execution specific to this agent.
|
|
@@ -1158,6 +1165,7 @@ class AsyncAgentsClient:
|
|
|
1158
1165
|
},
|
|
1159
1166
|
headers={
|
|
1160
1167
|
"content-type": "application/json",
|
|
1168
|
+
"project-slug": str(project_slug) if project_slug is not None else None,
|
|
1161
1169
|
},
|
|
1162
1170
|
request_options=request_options,
|
|
1163
1171
|
omit=OMIT,
|
letta_client/base_client.py
CHANGED
|
@@ -7,6 +7,7 @@ from .core.client_wrapper import SyncClientWrapper
|
|
|
7
7
|
from .tools.client import ToolsClient
|
|
8
8
|
from .sources.client import SourcesClient
|
|
9
9
|
from .agents.client import AgentsClient
|
|
10
|
+
from .identities.client import IdentitiesClient
|
|
10
11
|
from .models.client import ModelsClient
|
|
11
12
|
from .blocks.client import BlocksClient
|
|
12
13
|
from .jobs.client import JobsClient
|
|
@@ -20,6 +21,7 @@ from .core.client_wrapper import AsyncClientWrapper
|
|
|
20
21
|
from .tools.client import AsyncToolsClient
|
|
21
22
|
from .sources.client import AsyncSourcesClient
|
|
22
23
|
from .agents.client import AsyncAgentsClient
|
|
24
|
+
from .identities.client import AsyncIdentitiesClient
|
|
23
25
|
from .models.client import AsyncModelsClient
|
|
24
26
|
from .blocks.client import AsyncBlocksClient
|
|
25
27
|
from .jobs.client import AsyncJobsClient
|
|
@@ -92,6 +94,7 @@ class LettaBase:
|
|
|
92
94
|
self.tools = ToolsClient(client_wrapper=self._client_wrapper)
|
|
93
95
|
self.sources = SourcesClient(client_wrapper=self._client_wrapper)
|
|
94
96
|
self.agents = AgentsClient(client_wrapper=self._client_wrapper)
|
|
97
|
+
self.identities = IdentitiesClient(client_wrapper=self._client_wrapper)
|
|
95
98
|
self.models = ModelsClient(client_wrapper=self._client_wrapper)
|
|
96
99
|
self.blocks = BlocksClient(client_wrapper=self._client_wrapper)
|
|
97
100
|
self.jobs = JobsClient(client_wrapper=self._client_wrapper)
|
|
@@ -164,6 +167,7 @@ class AsyncLettaBase:
|
|
|
164
167
|
self.tools = AsyncToolsClient(client_wrapper=self._client_wrapper)
|
|
165
168
|
self.sources = AsyncSourcesClient(client_wrapper=self._client_wrapper)
|
|
166
169
|
self.agents = AsyncAgentsClient(client_wrapper=self._client_wrapper)
|
|
170
|
+
self.identities = AsyncIdentitiesClient(client_wrapper=self._client_wrapper)
|
|
167
171
|
self.models = AsyncModelsClient(client_wrapper=self._client_wrapper)
|
|
168
172
|
self.blocks = AsyncBlocksClient(client_wrapper=self._client_wrapper)
|
|
169
173
|
self.jobs = AsyncJobsClient(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.38",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|