letta-client 0.1.115__py3-none-any.whl → 0.1.116__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 -1
- letta_client/base_client.py +4 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/projects/__init__.py +5 -0
- letta_client/projects/client.py +148 -0
- letta_client/projects/types/__init__.py +6 -0
- letta_client/projects/types/projects_list_projects_response.py +23 -0
- letta_client/projects/types/projects_list_projects_response_projects_item.py +21 -0
- letta_client/templates/__init__.py +10 -2
- letta_client/templates/client.py +137 -0
- letta_client/templates/types/__init__.py +7 -1
- letta_client/templates/types/templates_list_templates_response.py +23 -0
- letta_client/templates/types/templates_list_templates_response_templates_item.py +20 -0
- {letta_client-0.1.115.dist-info → letta_client-0.1.116.dist-info}/METADATA +1 -1
- {letta_client-0.1.115.dist-info → letta_client-0.1.116.dist-info}/RECORD +16 -9
- {letta_client-0.1.115.dist-info → letta_client-0.1.116.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -231,6 +231,7 @@ from . import (
|
|
|
231
231
|
identities,
|
|
232
232
|
jobs,
|
|
233
233
|
models,
|
|
234
|
+
projects,
|
|
234
235
|
providers,
|
|
235
236
|
runs,
|
|
236
237
|
sources,
|
|
@@ -262,7 +263,12 @@ from .client_side_access_tokens import (
|
|
|
262
263
|
)
|
|
263
264
|
from .environment import LettaEnvironment
|
|
264
265
|
from .groups import GroupCreateManagerConfig, GroupUpdateManagerConfig
|
|
265
|
-
from .
|
|
266
|
+
from .projects import ProjectsListProjectsResponse, ProjectsListProjectsResponseProjectsItem
|
|
267
|
+
from .templates import (
|
|
268
|
+
TemplatesCreateAgentsResponse,
|
|
269
|
+
TemplatesListTemplatesResponse,
|
|
270
|
+
TemplatesListTemplatesResponseTemplatesItem,
|
|
271
|
+
)
|
|
266
272
|
from .tools import (
|
|
267
273
|
AddMcpServerRequest,
|
|
268
274
|
AddMcpServerResponseItem,
|
|
@@ -454,6 +460,8 @@ __all__ = [
|
|
|
454
460
|
"ParentToolRule",
|
|
455
461
|
"Passage",
|
|
456
462
|
"PipRequirement",
|
|
463
|
+
"ProjectsListProjectsResponse",
|
|
464
|
+
"ProjectsListProjectsResponseProjectsItem",
|
|
457
465
|
"Provider",
|
|
458
466
|
"ReasoningContent",
|
|
459
467
|
"ReasoningMessage",
|
|
@@ -485,6 +493,8 @@ __all__ = [
|
|
|
485
493
|
"SystemMessage",
|
|
486
494
|
"TagSchema",
|
|
487
495
|
"TemplatesCreateAgentsResponse",
|
|
496
|
+
"TemplatesListTemplatesResponse",
|
|
497
|
+
"TemplatesListTemplatesResponseTemplatesItem",
|
|
488
498
|
"TerminalToolRule",
|
|
489
499
|
"TextContent",
|
|
490
500
|
"Tool",
|
|
@@ -532,6 +542,7 @@ __all__ = [
|
|
|
532
542
|
"identities",
|
|
533
543
|
"jobs",
|
|
534
544
|
"models",
|
|
545
|
+
"projects",
|
|
535
546
|
"providers",
|
|
536
547
|
"runs",
|
|
537
548
|
"sources",
|
letta_client/base_client.py
CHANGED
|
@@ -20,6 +20,7 @@ from .tag.client import TagClient
|
|
|
20
20
|
from .voice.client import VoiceClient
|
|
21
21
|
from .templates.client import TemplatesClient
|
|
22
22
|
from .client_side_access_tokens.client import ClientSideAccessTokensClient
|
|
23
|
+
from .projects.client import ProjectsClient
|
|
23
24
|
from .core.client_wrapper import AsyncClientWrapper
|
|
24
25
|
from .tools.client import AsyncToolsClient
|
|
25
26
|
from .sources.client import AsyncSourcesClient
|
|
@@ -37,6 +38,7 @@ from .tag.client import AsyncTagClient
|
|
|
37
38
|
from .voice.client import AsyncVoiceClient
|
|
38
39
|
from .templates.client import AsyncTemplatesClient
|
|
39
40
|
from .client_side_access_tokens.client import AsyncClientSideAccessTokensClient
|
|
41
|
+
from .projects.client import AsyncProjectsClient
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
class LettaBase:
|
|
@@ -113,6 +115,7 @@ class LettaBase:
|
|
|
113
115
|
self.voice = VoiceClient(client_wrapper=self._client_wrapper)
|
|
114
116
|
self.templates = TemplatesClient(client_wrapper=self._client_wrapper)
|
|
115
117
|
self.client_side_access_tokens = ClientSideAccessTokensClient(client_wrapper=self._client_wrapper)
|
|
118
|
+
self.projects = ProjectsClient(client_wrapper=self._client_wrapper)
|
|
116
119
|
|
|
117
120
|
|
|
118
121
|
class AsyncLettaBase:
|
|
@@ -189,6 +192,7 @@ class AsyncLettaBase:
|
|
|
189
192
|
self.voice = AsyncVoiceClient(client_wrapper=self._client_wrapper)
|
|
190
193
|
self.templates = AsyncTemplatesClient(client_wrapper=self._client_wrapper)
|
|
191
194
|
self.client_side_access_tokens = AsyncClientSideAccessTokensClient(client_wrapper=self._client_wrapper)
|
|
195
|
+
self.projects = AsyncProjectsClient(client_wrapper=self._client_wrapper)
|
|
192
196
|
|
|
193
197
|
|
|
194
198
|
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: LettaEnvironment) -> str:
|
|
@@ -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.116",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -0,0 +1,148 @@
|
|
|
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 .types.projects_list_projects_response import ProjectsListProjectsResponse
|
|
7
|
+
from ..core.unchecked_base_model import construct_type
|
|
8
|
+
from json.decoder import JSONDecodeError
|
|
9
|
+
from ..core.api_error import ApiError
|
|
10
|
+
from ..core.client_wrapper import AsyncClientWrapper
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ProjectsClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._client_wrapper = client_wrapper
|
|
16
|
+
|
|
17
|
+
def listprojects(
|
|
18
|
+
self,
|
|
19
|
+
*,
|
|
20
|
+
name: typing.Optional[str] = None,
|
|
21
|
+
offset: typing.Optional[float] = None,
|
|
22
|
+
limit: typing.Optional[float] = None,
|
|
23
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
24
|
+
) -> ProjectsListProjectsResponse:
|
|
25
|
+
"""
|
|
26
|
+
List all projects
|
|
27
|
+
|
|
28
|
+
Parameters
|
|
29
|
+
----------
|
|
30
|
+
name : typing.Optional[str]
|
|
31
|
+
|
|
32
|
+
offset : typing.Optional[float]
|
|
33
|
+
|
|
34
|
+
limit : typing.Optional[float]
|
|
35
|
+
|
|
36
|
+
request_options : typing.Optional[RequestOptions]
|
|
37
|
+
Request-specific configuration.
|
|
38
|
+
|
|
39
|
+
Returns
|
|
40
|
+
-------
|
|
41
|
+
ProjectsListProjectsResponse
|
|
42
|
+
200
|
|
43
|
+
|
|
44
|
+
Examples
|
|
45
|
+
--------
|
|
46
|
+
from letta_client import Letta
|
|
47
|
+
|
|
48
|
+
client = Letta(
|
|
49
|
+
token="YOUR_TOKEN",
|
|
50
|
+
)
|
|
51
|
+
client.projects.listprojects()
|
|
52
|
+
"""
|
|
53
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
54
|
+
"v1/projects",
|
|
55
|
+
method="GET",
|
|
56
|
+
params={
|
|
57
|
+
"name": name,
|
|
58
|
+
"offset": offset,
|
|
59
|
+
"limit": limit,
|
|
60
|
+
},
|
|
61
|
+
request_options=request_options,
|
|
62
|
+
)
|
|
63
|
+
try:
|
|
64
|
+
if 200 <= _response.status_code < 300:
|
|
65
|
+
return typing.cast(
|
|
66
|
+
ProjectsListProjectsResponse,
|
|
67
|
+
construct_type(
|
|
68
|
+
type_=ProjectsListProjectsResponse, # type: ignore
|
|
69
|
+
object_=_response.json(),
|
|
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 AsyncProjectsClient:
|
|
79
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
80
|
+
self._client_wrapper = client_wrapper
|
|
81
|
+
|
|
82
|
+
async def listprojects(
|
|
83
|
+
self,
|
|
84
|
+
*,
|
|
85
|
+
name: typing.Optional[str] = None,
|
|
86
|
+
offset: typing.Optional[float] = None,
|
|
87
|
+
limit: typing.Optional[float] = None,
|
|
88
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
89
|
+
) -> ProjectsListProjectsResponse:
|
|
90
|
+
"""
|
|
91
|
+
List all projects
|
|
92
|
+
|
|
93
|
+
Parameters
|
|
94
|
+
----------
|
|
95
|
+
name : typing.Optional[str]
|
|
96
|
+
|
|
97
|
+
offset : typing.Optional[float]
|
|
98
|
+
|
|
99
|
+
limit : typing.Optional[float]
|
|
100
|
+
|
|
101
|
+
request_options : typing.Optional[RequestOptions]
|
|
102
|
+
Request-specific configuration.
|
|
103
|
+
|
|
104
|
+
Returns
|
|
105
|
+
-------
|
|
106
|
+
ProjectsListProjectsResponse
|
|
107
|
+
200
|
|
108
|
+
|
|
109
|
+
Examples
|
|
110
|
+
--------
|
|
111
|
+
import asyncio
|
|
112
|
+
|
|
113
|
+
from letta_client import AsyncLetta
|
|
114
|
+
|
|
115
|
+
client = AsyncLetta(
|
|
116
|
+
token="YOUR_TOKEN",
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
async def main() -> None:
|
|
121
|
+
await client.projects.listprojects()
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
asyncio.run(main())
|
|
125
|
+
"""
|
|
126
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
127
|
+
"v1/projects",
|
|
128
|
+
method="GET",
|
|
129
|
+
params={
|
|
130
|
+
"name": name,
|
|
131
|
+
"offset": offset,
|
|
132
|
+
"limit": limit,
|
|
133
|
+
},
|
|
134
|
+
request_options=request_options,
|
|
135
|
+
)
|
|
136
|
+
try:
|
|
137
|
+
if 200 <= _response.status_code < 300:
|
|
138
|
+
return typing.cast(
|
|
139
|
+
ProjectsListProjectsResponse,
|
|
140
|
+
construct_type(
|
|
141
|
+
type_=ProjectsListProjectsResponse, # type: ignore
|
|
142
|
+
object_=_response.json(),
|
|
143
|
+
),
|
|
144
|
+
)
|
|
145
|
+
_response_json = _response.json()
|
|
146
|
+
except JSONDecodeError:
|
|
147
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
148
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from .projects_list_projects_response import ProjectsListProjectsResponse
|
|
4
|
+
from .projects_list_projects_response_projects_item import ProjectsListProjectsResponseProjectsItem
|
|
5
|
+
|
|
6
|
+
__all__ = ["ProjectsListProjectsResponse", "ProjectsListProjectsResponseProjectsItem"]
|
|
@@ -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 .projects_list_projects_response_projects_item import ProjectsListProjectsResponseProjectsItem
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.serialization import FieldMetadata
|
|
8
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ProjectsListProjectsResponse(UncheckedBaseModel):
|
|
13
|
+
projects: typing.List[ProjectsListProjectsResponseProjectsItem]
|
|
14
|
+
has_next_page: typing_extensions.Annotated[bool, FieldMetadata(alias="hasNextPage")]
|
|
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,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ProjectsListProjectsResponseProjectsItem(UncheckedBaseModel):
|
|
10
|
+
name: str
|
|
11
|
+
slug: str
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from .types import
|
|
3
|
+
from .types import (
|
|
4
|
+
TemplatesCreateAgentsResponse,
|
|
5
|
+
TemplatesListTemplatesResponse,
|
|
6
|
+
TemplatesListTemplatesResponseTemplatesItem,
|
|
7
|
+
)
|
|
4
8
|
|
|
5
|
-
__all__ = [
|
|
9
|
+
__all__ = [
|
|
10
|
+
"TemplatesCreateAgentsResponse",
|
|
11
|
+
"TemplatesListTemplatesResponse",
|
|
12
|
+
"TemplatesListTemplatesResponseTemplatesItem",
|
|
13
|
+
]
|
letta_client/templates/client.py
CHANGED
|
@@ -8,6 +8,7 @@ from ..core.jsonable_encoder import jsonable_encoder
|
|
|
8
8
|
from ..core.unchecked_base_model import construct_type
|
|
9
9
|
from json.decoder import JSONDecodeError
|
|
10
10
|
from ..core.api_error import ApiError
|
|
11
|
+
from .types.templates_list_templates_response import TemplatesListTemplatesResponse
|
|
11
12
|
from ..core.client_wrapper import AsyncClientWrapper
|
|
12
13
|
|
|
13
14
|
# this is used as the default value for optional parameters
|
|
@@ -106,6 +107,70 @@ class TemplatesClient:
|
|
|
106
107
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
107
108
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
108
109
|
|
|
110
|
+
def listtemplates(
|
|
111
|
+
self,
|
|
112
|
+
*,
|
|
113
|
+
limit: typing.Optional[float] = None,
|
|
114
|
+
offset: typing.Optional[float] = None,
|
|
115
|
+
name: typing.Optional[str] = None,
|
|
116
|
+
project_id: typing.Optional[str] = None,
|
|
117
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
118
|
+
) -> TemplatesListTemplatesResponse:
|
|
119
|
+
"""
|
|
120
|
+
List all templates
|
|
121
|
+
|
|
122
|
+
Parameters
|
|
123
|
+
----------
|
|
124
|
+
limit : typing.Optional[float]
|
|
125
|
+
|
|
126
|
+
offset : typing.Optional[float]
|
|
127
|
+
|
|
128
|
+
name : typing.Optional[str]
|
|
129
|
+
|
|
130
|
+
project_id : typing.Optional[str]
|
|
131
|
+
|
|
132
|
+
request_options : typing.Optional[RequestOptions]
|
|
133
|
+
Request-specific configuration.
|
|
134
|
+
|
|
135
|
+
Returns
|
|
136
|
+
-------
|
|
137
|
+
TemplatesListTemplatesResponse
|
|
138
|
+
200
|
|
139
|
+
|
|
140
|
+
Examples
|
|
141
|
+
--------
|
|
142
|
+
from letta_client import Letta
|
|
143
|
+
|
|
144
|
+
client = Letta(
|
|
145
|
+
token="YOUR_TOKEN",
|
|
146
|
+
)
|
|
147
|
+
client.templates.listtemplates()
|
|
148
|
+
"""
|
|
149
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
150
|
+
"v1/templates",
|
|
151
|
+
method="GET",
|
|
152
|
+
params={
|
|
153
|
+
"limit": limit,
|
|
154
|
+
"offset": offset,
|
|
155
|
+
"name": name,
|
|
156
|
+
"projectId": project_id,
|
|
157
|
+
},
|
|
158
|
+
request_options=request_options,
|
|
159
|
+
)
|
|
160
|
+
try:
|
|
161
|
+
if 200 <= _response.status_code < 300:
|
|
162
|
+
return typing.cast(
|
|
163
|
+
TemplatesListTemplatesResponse,
|
|
164
|
+
construct_type(
|
|
165
|
+
type_=TemplatesListTemplatesResponse, # type: ignore
|
|
166
|
+
object_=_response.json(),
|
|
167
|
+
),
|
|
168
|
+
)
|
|
169
|
+
_response_json = _response.json()
|
|
170
|
+
except JSONDecodeError:
|
|
171
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
172
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
173
|
+
|
|
109
174
|
|
|
110
175
|
class AsyncTemplatesClient:
|
|
111
176
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
@@ -206,3 +271,75 @@ class AsyncTemplatesClient:
|
|
|
206
271
|
except JSONDecodeError:
|
|
207
272
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
208
273
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
274
|
+
|
|
275
|
+
async def listtemplates(
|
|
276
|
+
self,
|
|
277
|
+
*,
|
|
278
|
+
limit: typing.Optional[float] = None,
|
|
279
|
+
offset: typing.Optional[float] = None,
|
|
280
|
+
name: typing.Optional[str] = None,
|
|
281
|
+
project_id: typing.Optional[str] = None,
|
|
282
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
283
|
+
) -> TemplatesListTemplatesResponse:
|
|
284
|
+
"""
|
|
285
|
+
List all templates
|
|
286
|
+
|
|
287
|
+
Parameters
|
|
288
|
+
----------
|
|
289
|
+
limit : typing.Optional[float]
|
|
290
|
+
|
|
291
|
+
offset : typing.Optional[float]
|
|
292
|
+
|
|
293
|
+
name : typing.Optional[str]
|
|
294
|
+
|
|
295
|
+
project_id : typing.Optional[str]
|
|
296
|
+
|
|
297
|
+
request_options : typing.Optional[RequestOptions]
|
|
298
|
+
Request-specific configuration.
|
|
299
|
+
|
|
300
|
+
Returns
|
|
301
|
+
-------
|
|
302
|
+
TemplatesListTemplatesResponse
|
|
303
|
+
200
|
|
304
|
+
|
|
305
|
+
Examples
|
|
306
|
+
--------
|
|
307
|
+
import asyncio
|
|
308
|
+
|
|
309
|
+
from letta_client import AsyncLetta
|
|
310
|
+
|
|
311
|
+
client = AsyncLetta(
|
|
312
|
+
token="YOUR_TOKEN",
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
async def main() -> None:
|
|
317
|
+
await client.templates.listtemplates()
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
asyncio.run(main())
|
|
321
|
+
"""
|
|
322
|
+
_response = await self._client_wrapper.httpx_client.request(
|
|
323
|
+
"v1/templates",
|
|
324
|
+
method="GET",
|
|
325
|
+
params={
|
|
326
|
+
"limit": limit,
|
|
327
|
+
"offset": offset,
|
|
328
|
+
"name": name,
|
|
329
|
+
"projectId": project_id,
|
|
330
|
+
},
|
|
331
|
+
request_options=request_options,
|
|
332
|
+
)
|
|
333
|
+
try:
|
|
334
|
+
if 200 <= _response.status_code < 300:
|
|
335
|
+
return typing.cast(
|
|
336
|
+
TemplatesListTemplatesResponse,
|
|
337
|
+
construct_type(
|
|
338
|
+
type_=TemplatesListTemplatesResponse, # type: ignore
|
|
339
|
+
object_=_response.json(),
|
|
340
|
+
),
|
|
341
|
+
)
|
|
342
|
+
_response_json = _response.json()
|
|
343
|
+
except JSONDecodeError:
|
|
344
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
345
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from .templates_create_agents_response import TemplatesCreateAgentsResponse
|
|
4
|
+
from .templates_list_templates_response import TemplatesListTemplatesResponse
|
|
5
|
+
from .templates_list_templates_response_templates_item import TemplatesListTemplatesResponseTemplatesItem
|
|
4
6
|
|
|
5
|
-
__all__ = [
|
|
7
|
+
__all__ = [
|
|
8
|
+
"TemplatesCreateAgentsResponse",
|
|
9
|
+
"TemplatesListTemplatesResponse",
|
|
10
|
+
"TemplatesListTemplatesResponseTemplatesItem",
|
|
11
|
+
]
|
|
@@ -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 .templates_list_templates_response_templates_item import TemplatesListTemplatesResponseTemplatesItem
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.serialization import FieldMetadata
|
|
8
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TemplatesListTemplatesResponse(UncheckedBaseModel):
|
|
13
|
+
templates: typing.List[TemplatesListTemplatesResponseTemplatesItem]
|
|
14
|
+
has_next_page: typing_extensions.Annotated[bool, FieldMetadata(alias="hasNextPage")]
|
|
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,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
|
+
import typing
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TemplatesListTemplatesResponseTemplatesItem(UncheckedBaseModel):
|
|
10
|
+
name: str
|
|
11
|
+
id: str
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=8odG3X3w-YCoHYdIinxLvVvTRJh6e2vrmeTjerbSnXk,16164
|
|
2
2
|
letta_client/agents/__init__.py,sha256=CveigJGrnkw3yZ8S9yZ2DpK1HV0v1fU-khsiLJJ0uaU,1452
|
|
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
|
|
@@ -38,7 +38,7 @@ letta_client/agents/types/agents_search_request_search_item_zero.py,sha256=tGjwn
|
|
|
38
38
|
letta_client/agents/types/agents_search_response.py,sha256=AQJVKps-bjCx2ujqESzW1Iy9ZYFS17hH_UFIeBeK4S8,815
|
|
39
39
|
letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=L3FNsFTG9kVmuPbQhbCKNg3H2E5bB2Rgp92gWmGd-LM,689
|
|
40
40
|
letta_client/agents/types/update_agent_tool_rules_item.py,sha256=k9MmcVPsK-EGl8XlT3JQwdlBNLgpGw528jmi8fCFS7g,682
|
|
41
|
-
letta_client/base_client.py,sha256=
|
|
41
|
+
letta_client/base_client.py,sha256=G8Ag35gITyN71r_CDrb_hsmJ3PlHPgIK6cCEMU2fVw0,9253
|
|
42
42
|
letta_client/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
43
43
|
letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw,30082
|
|
44
44
|
letta_client/client.py,sha256=k2mZqqEWciVmEQHgipjCK4kQILk74hpSqzcdNwdql9A,21212
|
|
@@ -53,7 +53,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_cl
|
|
|
53
53
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_client_side_access_token_response_policy_data_item_access_item.py,sha256=vefuUVB3pLCbCNBJACXMsEKZuwhMAGvLwSU3TU3Q4l4,275
|
|
54
54
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
55
55
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
56
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
56
|
+
letta_client/core/client_wrapper.py,sha256=60C6g_Z9X2ZqS7osrPIqdXkJqLaAQOwLKTN3nmztSM0,1998
|
|
57
57
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
58
58
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
59
59
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -90,6 +90,11 @@ letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw
|
|
|
90
90
|
letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
|
|
91
91
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
92
92
|
letta_client/models/client.py,sha256=Rd9IHjSdXRzzZyabpq8pDTc9XDnwLPnmm5by335g1D0,6306
|
|
93
|
+
letta_client/projects/__init__.py,sha256=CccxELBuPLqC6SfAJMNP3I4tEzYBNNA9CUrhuPk-TVI,243
|
|
94
|
+
letta_client/projects/client.py,sha256=xq3LosG_w5Yk1AjajIOvkthJNffsSGkBu8RQwfvYGZA,4358
|
|
95
|
+
letta_client/projects/types/__init__.py,sha256=SXy0WSkK5BUuFYis1LNUUWGuY9B8n6c6e_3OtrrSfWo,327
|
|
96
|
+
letta_client/projects/types/projects_list_projects_response.py,sha256=NfKqXLGBdi1b5qX1EgEeGhw1w8a1rVUHaFJeMdLHctk,891
|
|
97
|
+
letta_client/projects/types/projects_list_projects_response_projects_item.py,sha256=-pAUwD9lMESWnRM0XlwWKHBk4Yc3Qjpm1CKCZR__hBk,613
|
|
93
98
|
letta_client/providers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
94
99
|
letta_client/providers/client.py,sha256=RLpTHd9iQ5wlZqYEG4cF8YsDCdaQZ0odCFprukauCuc,18228
|
|
95
100
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -105,10 +110,12 @@ letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_p
|
|
|
105
110
|
letta_client/steps/client.py,sha256=g4XUUtdKzkSiRkxJW6ACrYe8ySvJ_tUMGK4ag6QRZT4,11284
|
|
106
111
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
107
112
|
letta_client/tag/client.py,sha256=TBAotdb0e2_x2pANF4dOE1qmWY3GIgb7nOhvN7iZ3_4,5183
|
|
108
|
-
letta_client/templates/__init__.py,sha256=
|
|
109
|
-
letta_client/templates/client.py,sha256=
|
|
110
|
-
letta_client/templates/types/__init__.py,sha256=
|
|
113
|
+
letta_client/templates/__init__.py,sha256=Vm6KTxJSLP2ORjXRYqv0f-LNPhnvja0MML0n2AvV_0o,349
|
|
114
|
+
letta_client/templates/client.py,sha256=V-4OBGO-SQrUFSAZBNhHn5yhtDCYFgTTldsN4E71Qx0,11204
|
|
115
|
+
letta_client/templates/types/__init__.py,sha256=EK2nGJWTbYTT4PFO9BcnMdw3kd5cKyxARZlleAxpw_I,466
|
|
111
116
|
letta_client/templates/types/templates_create_agents_response.py,sha256=MNyR1Qr0d14_bj_xkQVEBXkDr2xvEsqMy1pzvn7nr4M,642
|
|
117
|
+
letta_client/templates/types/templates_list_templates_response.py,sha256=1aXGfSWPlGm-ZoT4XvRtXiy3zUSHARHAbcppNZT9KSA,903
|
|
118
|
+
letta_client/templates/types/templates_list_templates_response_templates_item.py,sha256=73PdtnZYkCOk9zdU0nRONQldO_0CeZVUysd4F1U9to8,602
|
|
112
119
|
letta_client/tools/__init__.py,sha256=XsuAkxHDA-Z98gLNNW_fiEwFP3fP4XQipflrK2bHl8k,353
|
|
113
120
|
letta_client/tools/client.py,sha256=aJqW1sNecrsjBAs6eFubMo2Up0u3lJxpafo1mkj2fnQ,78344
|
|
114
121
|
letta_client/tools/types/__init__.py,sha256=R11LYBi6lxkud_DRyaHFUHtlnbfnEI93-SEo7FL4tzs,478
|
|
@@ -341,6 +348,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
341
348
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
342
349
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
343
350
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
344
|
-
letta_client-0.1.
|
|
345
|
-
letta_client-0.1.
|
|
346
|
-
letta_client-0.1.
|
|
351
|
+
letta_client-0.1.116.dist-info/METADATA,sha256=gzBG41gPHxqDKIDINM2rLVUrGZdzl37tSYjutqsVhL4,5042
|
|
352
|
+
letta_client-0.1.116.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
353
|
+
letta_client-0.1.116.dist-info/RECORD,,
|
|
File without changes
|