letta-client 0.1.115__py3-none-any.whl → 0.1.117__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 +16 -3
- letta_client/agents/client.py +0 -293
- letta_client/base_client.py +8 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/messages/__init__.py +5 -0
- letta_client/messages/batches/__init__.py +2 -0
- letta_client/messages/batches/client.py +521 -0
- letta_client/messages/client.py +150 -0
- 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/types/__init__.py +2 -2
- letta_client/types/batch_job.py +61 -0
- letta_client/types/job_type.py +1 -1
- {letta_client-0.1.115.dist-info → letta_client-0.1.117.dist-info}/METADATA +1 -1
- {letta_client-0.1.115.dist-info → letta_client-0.1.117.dist-info}/RECORD +24 -13
- letta_client/types/letta_batch_response.py +0 -44
- {letta_client-0.1.115.dist-info → letta_client-0.1.117.dist-info}/WHEEL +0 -0
|
@@ -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
|
letta_client/types/__init__.py
CHANGED
|
@@ -20,6 +20,7 @@ from .auth_response import AuthResponse
|
|
|
20
20
|
from .auth_scheme_field import AuthSchemeField
|
|
21
21
|
from .bad_request_error_body import BadRequestErrorBody
|
|
22
22
|
from .base_tool_rule_schema import BaseToolRuleSchema
|
|
23
|
+
from .batch_job import BatchJob
|
|
23
24
|
from .block import Block
|
|
24
25
|
from .block_update import BlockUpdate
|
|
25
26
|
from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
|
|
@@ -114,7 +115,6 @@ from .job_status import JobStatus
|
|
|
114
115
|
from .job_type import JobType
|
|
115
116
|
from .json_schema import JsonSchema
|
|
116
117
|
from .letta_batch_request import LettaBatchRequest
|
|
117
|
-
from .letta_batch_response import LettaBatchResponse
|
|
118
118
|
from .letta_message_content_union import LettaMessageContentUnion
|
|
119
119
|
from .letta_message_union import LettaMessageUnion
|
|
120
120
|
from .letta_request import LettaRequest
|
|
@@ -245,6 +245,7 @@ __all__ = [
|
|
|
245
245
|
"AuthSchemeField",
|
|
246
246
|
"BadRequestErrorBody",
|
|
247
247
|
"BaseToolRuleSchema",
|
|
248
|
+
"BatchJob",
|
|
248
249
|
"Block",
|
|
249
250
|
"BlockUpdate",
|
|
250
251
|
"ChatCompletionAssistantMessageParam",
|
|
@@ -339,7 +340,6 @@ __all__ = [
|
|
|
339
340
|
"JobType",
|
|
340
341
|
"JsonSchema",
|
|
341
342
|
"LettaBatchRequest",
|
|
342
|
-
"LettaBatchResponse",
|
|
343
343
|
"LettaMessageContentUnion",
|
|
344
344
|
"LettaMessageUnion",
|
|
345
345
|
"LettaRequest",
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import datetime as dt
|
|
7
|
+
from .job_status import JobStatus
|
|
8
|
+
from .job_type import JobType
|
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class BatchJob(UncheckedBaseModel):
|
|
13
|
+
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
14
|
+
"""
|
|
15
|
+
The id of the user that made this object.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
last_updated_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
19
|
+
"""
|
|
20
|
+
The id of the user that made this object.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
24
|
+
"""
|
|
25
|
+
The timestamp when the object was created.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
The timestamp when the object was last updated.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
status: typing.Optional[JobStatus] = pydantic.Field(default=None)
|
|
34
|
+
"""
|
|
35
|
+
The status of the job.
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
completed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
39
|
+
"""
|
|
40
|
+
The unix timestamp of when the job was completed.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
44
|
+
"""
|
|
45
|
+
The metadata of the job.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
job_type: typing.Optional[JobType] = None
|
|
49
|
+
id: typing.Optional[str] = pydantic.Field(default=None)
|
|
50
|
+
"""
|
|
51
|
+
The human-friendly ID of the Job
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
if IS_PYDANTIC_V2:
|
|
55
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
56
|
+
else:
|
|
57
|
+
|
|
58
|
+
class Config:
|
|
59
|
+
frozen = True
|
|
60
|
+
smart_union = True
|
|
61
|
+
extra = pydantic.Extra.allow
|
letta_client/types/job_type.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=oU-1Vq1arydqXE9q_Rp4B7VshBLJO4C3ZIZ6Sg2Q70s,16174
|
|
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
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=ku9SdcBr0WmR5pjwD1kfq4EMuH-BM3WROO-uda2pul4,93545
|
|
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
|
|
@@ -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=37vSxqxIwuotfwpLaJWyqePXUUoNt7ZS6TgJcp4G77c,9503
|
|
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=S7b3SY_tgDb58OaozkpNkuqGQ2s5L2LpUl83woui6nM,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
|
|
@@ -88,8 +88,17 @@ letta_client/identities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPA
|
|
|
88
88
|
letta_client/identities/client.py,sha256=kFcShBwJF3RSmOcEVBYM1-IFTFWD3zvCD0JsHSWDeh4,40986
|
|
89
89
|
letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
90
90
|
letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
|
|
91
|
+
letta_client/messages/__init__.py,sha256=YH5-krRUPFJQGtFgUr_krZfjlEHcRUAIJZ5J1sIE9bM,110
|
|
92
|
+
letta_client/messages/batches/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
93
|
+
letta_client/messages/batches/client.py,sha256=cG5Cq7MwNCtYN3wnQlo4feur9T988XU6lhA7u35ai0E,16797
|
|
94
|
+
letta_client/messages/client.py,sha256=MTBnxo2irqz8Y3i0iDEtW6SWYOIG4XjEqUZRur3edrQ,5016
|
|
91
95
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
92
96
|
letta_client/models/client.py,sha256=Rd9IHjSdXRzzZyabpq8pDTc9XDnwLPnmm5by335g1D0,6306
|
|
97
|
+
letta_client/projects/__init__.py,sha256=CccxELBuPLqC6SfAJMNP3I4tEzYBNNA9CUrhuPk-TVI,243
|
|
98
|
+
letta_client/projects/client.py,sha256=xq3LosG_w5Yk1AjajIOvkthJNffsSGkBu8RQwfvYGZA,4358
|
|
99
|
+
letta_client/projects/types/__init__.py,sha256=SXy0WSkK5BUuFYis1LNUUWGuY9B8n6c6e_3OtrrSfWo,327
|
|
100
|
+
letta_client/projects/types/projects_list_projects_response.py,sha256=NfKqXLGBdi1b5qX1EgEeGhw1w8a1rVUHaFJeMdLHctk,891
|
|
101
|
+
letta_client/projects/types/projects_list_projects_response_projects_item.py,sha256=-pAUwD9lMESWnRM0XlwWKHBk4Yc3Qjpm1CKCZR__hBk,613
|
|
93
102
|
letta_client/providers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
94
103
|
letta_client/providers/client.py,sha256=RLpTHd9iQ5wlZqYEG4cF8YsDCdaQZ0odCFprukauCuc,18228
|
|
95
104
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -105,10 +114,12 @@ letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_p
|
|
|
105
114
|
letta_client/steps/client.py,sha256=g4XUUtdKzkSiRkxJW6ACrYe8ySvJ_tUMGK4ag6QRZT4,11284
|
|
106
115
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
107
116
|
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=
|
|
117
|
+
letta_client/templates/__init__.py,sha256=Vm6KTxJSLP2ORjXRYqv0f-LNPhnvja0MML0n2AvV_0o,349
|
|
118
|
+
letta_client/templates/client.py,sha256=V-4OBGO-SQrUFSAZBNhHn5yhtDCYFgTTldsN4E71Qx0,11204
|
|
119
|
+
letta_client/templates/types/__init__.py,sha256=EK2nGJWTbYTT4PFO9BcnMdw3kd5cKyxARZlleAxpw_I,466
|
|
111
120
|
letta_client/templates/types/templates_create_agents_response.py,sha256=MNyR1Qr0d14_bj_xkQVEBXkDr2xvEsqMy1pzvn7nr4M,642
|
|
121
|
+
letta_client/templates/types/templates_list_templates_response.py,sha256=1aXGfSWPlGm-ZoT4XvRtXiy3zUSHARHAbcppNZT9KSA,903
|
|
122
|
+
letta_client/templates/types/templates_list_templates_response_templates_item.py,sha256=73PdtnZYkCOk9zdU0nRONQldO_0CeZVUysd4F1U9to8,602
|
|
112
123
|
letta_client/tools/__init__.py,sha256=XsuAkxHDA-Z98gLNNW_fiEwFP3fP4XQipflrK2bHl8k,353
|
|
113
124
|
letta_client/tools/client.py,sha256=aJqW1sNecrsjBAs6eFubMo2Up0u3lJxpafo1mkj2fnQ,78344
|
|
114
125
|
letta_client/tools/types/__init__.py,sha256=R11LYBi6lxkud_DRyaHFUHtlnbfnEI93-SEo7FL4tzs,478
|
|
@@ -116,7 +127,7 @@ letta_client/tools/types/add_mcp_server_request.py,sha256=EieZjfOT95sjkpxXdqy7gl
|
|
|
116
127
|
letta_client/tools/types/add_mcp_server_response_item.py,sha256=TWdsKqGb1INhYtpGnAckz0Pw4nZShumSp4pfocRfxCA,270
|
|
117
128
|
letta_client/tools/types/delete_mcp_server_response_item.py,sha256=MeZObU-7tMSCd-S5yuUjNDse6A1hUz1LLjbko0pXaro,273
|
|
118
129
|
letta_client/tools/types/list_mcp_servers_response_value.py,sha256=AIoXu4bO8QNSU7zjL1jj0Rg4313wVtPaTt13W0aevLQ,273
|
|
119
|
-
letta_client/types/__init__.py,sha256=
|
|
130
|
+
letta_client/types/__init__.py,sha256=X-4mwCyHwKdCmS6dQZeoaZT2fCR6ChlNl9mRH1IAdBI,19827
|
|
120
131
|
letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
|
|
121
132
|
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
122
133
|
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
@@ -137,6 +148,7 @@ letta_client/types/auth_response.py,sha256=jtG9Nn0voJcOWkBtvnuGGwhpUhYz9A8O7soOJ
|
|
|
137
148
|
letta_client/types/auth_scheme_field.py,sha256=W4-qgKtKUSpBHaSvjLyzLybOIsGo7Ggk4VECpsoPnqQ,881
|
|
138
149
|
letta_client/types/bad_request_error_body.py,sha256=E4_eWEc9xeW9BkXGViBDrevV8Jf6PjgEweeGS3vJLD4,567
|
|
139
150
|
letta_client/types/base_tool_rule_schema.py,sha256=FbnJy6gb8wY_DPiU3Gs-u1Ol_l4K7-nAmPTc1oR3kOo,582
|
|
151
|
+
letta_client/types/batch_job.py,sha256=SyBdYiC0sI2FqtEjaSfecJsfrV-TJWpxzrv4uWIwbeI,1759
|
|
140
152
|
letta_client/types/block.py,sha256=J8McqSpellhd-KsPYontU8DYg3YV41_fQW5rR-85qMk,2900
|
|
141
153
|
letta_client/types/block_update.py,sha256=oIgxvSnav5vxztBdslRMiWOgRaAp3dh43pinZpoLzxk,1496
|
|
142
154
|
letta_client/types/chat_completion_assistant_message_param.py,sha256=QwxAJ9RQqxtZKnt6g6RfDppuMIt-1RAIlpnfSrVdHgg,1219
|
|
@@ -228,10 +240,9 @@ letta_client/types/input_audio_format.py,sha256=QQFfndI9w66wIbGyHwfmJnk2bEJDPmEs
|
|
|
228
240
|
letta_client/types/internal_server_error_body.py,sha256=xR9n1zptgmImbH6apQAuwBblYOWAYNLFzY8s0SUcEug,653
|
|
229
241
|
letta_client/types/job.py,sha256=VJBdFIY0rwqh4hObTchlU2jrloTjZwUEA44pNtY_JBg,2321
|
|
230
242
|
letta_client/types/job_status.py,sha256=lX5Q0QMQFnw-WiirqHD6kgBvGr6I7r8rKLnMJdqhlT8,239
|
|
231
|
-
letta_client/types/job_type.py,sha256=
|
|
243
|
+
letta_client/types/job_type.py,sha256=HXYrfzPwxI54PqV7OVcMhewSJ_pBNHc14s9LcExr7Ss,154
|
|
232
244
|
letta_client/types/json_schema.py,sha256=EHcLKBSGRsSzCKTpujKFHylcLJG6ODQIBrjQkU4lWDQ,870
|
|
233
245
|
letta_client/types/letta_batch_request.py,sha256=HdIuaaUaqINbau98jPqyIc7Ge84VlCf6VhAQpIhCFvQ,1354
|
|
234
|
-
letta_client/types/letta_batch_response.py,sha256=i1KP1aZh710acu5bKNmcmdiheuPrKbkJr4_e2K2ki_k,1161
|
|
235
246
|
letta_client/types/letta_message_content_union.py,sha256=YxzyXKxUMeqbqWOlDs9LC8HUiqEhgkNCV9a76GS3spg,486
|
|
236
247
|
letta_client/types/letta_message_union.py,sha256=TTQwlur2CZNdZ466Nb_2TFcSFXrgoMliaNzD33t7Ktw,603
|
|
237
248
|
letta_client/types/letta_request.py,sha256=bCPDRJhSJSo5eILJp0mTw_k26O3dZL1vChfAcaZ0rE8,1240
|
|
@@ -341,6 +352,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
341
352
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
342
353
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
343
354
|
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.
|
|
355
|
+
letta_client-0.1.117.dist-info/METADATA,sha256=-ZUQYGScs53WPyFaYLTG_5jN8S-dPf7W4RKvujbJHpI,5042
|
|
356
|
+
letta_client-0.1.117.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
357
|
+
letta_client-0.1.117.dist-info/RECORD,,
|