letta-client 1.0.0a7__py3-none-any.whl → 1.0.0a9__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/_version.py +1 -1
- letta_client/pagination.py +280 -0
- letta_client/resources/agents/agents.py +12 -10
- letta_client/resources/agents/blocks.py +12 -10
- letta_client/resources/agents/files.py +13 -10
- letta_client/resources/agents/folders.py +13 -10
- letta_client/resources/agents/groups.py +14 -11
- letta_client/resources/agents/messages.py +13 -10
- letta_client/resources/agents/tools.py +19 -16
- letta_client/resources/archives.py +20 -10
- letta_client/resources/batches/batches.py +12 -10
- letta_client/resources/batches/messages.py +14 -11
- letta_client/resources/blocks/agents.py +14 -11
- letta_client/resources/blocks/blocks.py +12 -10
- letta_client/resources/folders/agents.py +13 -10
- letta_client/resources/folders/files.py +12 -9
- letta_client/resources/folders/folders.py +12 -10
- letta_client/resources/groups/groups.py +12 -10
- letta_client/resources/groups/messages.py +13 -10
- letta_client/resources/identities/agents.py +14 -11
- letta_client/resources/identities/blocks.py +14 -11
- letta_client/resources/identities/identities.py +12 -10
- letta_client/resources/runs/messages.py +14 -11
- letta_client/resources/runs/runs.py +13 -11
- letta_client/resources/runs/steps.py +14 -11
- letta_client/resources/steps/messages.py +14 -11
- letta_client/resources/steps/steps.py +13 -11
- letta_client/resources/tags.py +13 -10
- letta_client/resources/tools.py +12 -10
- letta_client/types/__init__.py +0 -10
- letta_client/types/agents/__init__.py +0 -4
- letta_client/types/agents/file_list_response.py +3 -14
- letta_client/types/agents/folder_list_response.py +3 -7
- letta_client/types/archive_list_params.py +3 -0
- letta_client/types/batches/__init__.py +0 -1
- letta_client/types/blocks/__init__.py +0 -1
- letta_client/types/folders/agent_list_response.py +1 -2
- letta_client/types/folders/file_list_response.py +4 -7
- letta_client/types/groups/__init__.py +0 -1
- letta_client/types/identities/__init__.py +0 -2
- letta_client/types/runs/__init__.py +0 -2
- letta_client/types/steps/message_list_response.py +3 -5
- letta_client/types/tag_list_response.py +1 -2
- {letta_client-1.0.0a7.dist-info → letta_client-1.0.0a9.dist-info}/METADATA +1 -1
- {letta_client-1.0.0a7.dist-info → letta_client-1.0.0a9.dist-info}/RECORD +47 -67
- letta_client/types/agent_list_response.py +0 -10
- letta_client/types/agents/block_list_response.py +0 -10
- letta_client/types/agents/group_list_response.py +0 -10
- letta_client/types/agents/message_list_response.py +0 -10
- letta_client/types/agents/tool_list_response.py +0 -10
- letta_client/types/archive_list_response.py +0 -10
- letta_client/types/batch_list_response.py +0 -10
- letta_client/types/batches/message_list_response.py +0 -12
- letta_client/types/block_list_response.py +0 -10
- letta_client/types/blocks/agent_list_response.py +0 -10
- letta_client/types/folder_list_response.py +0 -10
- letta_client/types/group_list_response.py +0 -10
- letta_client/types/groups/message_list_response.py +0 -10
- letta_client/types/identities/agent_list_response.py +0 -10
- letta_client/types/identities/block_list_response.py +0 -10
- letta_client/types/identity_list_response.py +0 -10
- letta_client/types/run_list_response.py +0 -10
- letta_client/types/runs/message_list_response.py +0 -10
- letta_client/types/runs/step_list_response.py +0 -10
- letta_client/types/step_list_response.py +0 -10
- letta_client/types/tool_list_response.py +0 -10
- {letta_client-1.0.0a7.dist-info → letta_client-1.0.0a9.dist-info}/WHEEL +0 -0
- {letta_client-1.0.0a7.dist-info → letta_client-1.0.0a9.dist-info}/licenses/LICENSE +0 -0
|
@@ -25,7 +25,7 @@ from .metrics import (
|
|
|
25
25
|
AsyncMetricsResourceWithStreamingResponse,
|
|
26
26
|
)
|
|
27
27
|
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
|
|
28
|
-
from ..._utils import maybe_transform, strip_not_given
|
|
28
|
+
from ..._utils import maybe_transform, strip_not_given
|
|
29
29
|
from .feedback import (
|
|
30
30
|
FeedbackResource,
|
|
31
31
|
AsyncFeedbackResource,
|
|
@@ -50,9 +50,9 @@ from ..._response import (
|
|
|
50
50
|
async_to_raw_response_wrapper,
|
|
51
51
|
async_to_streamed_response_wrapper,
|
|
52
52
|
)
|
|
53
|
+
from ...pagination import SyncArrayPage, AsyncArrayPage
|
|
53
54
|
from ...types.step import Step
|
|
54
|
-
from ..._base_client import make_request_options
|
|
55
|
-
from ...types.step_list_response import StepListResponse
|
|
55
|
+
from ..._base_client import AsyncPaginator, make_request_options
|
|
56
56
|
|
|
57
57
|
__all__ = ["StepsResource", "AsyncStepsResource"]
|
|
58
58
|
|
|
@@ -152,7 +152,7 @@ class StepsResource(SyncAPIResource):
|
|
|
152
152
|
extra_query: Query | None = None,
|
|
153
153
|
extra_body: Body | None = None,
|
|
154
154
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
155
|
-
) ->
|
|
155
|
+
) -> SyncArrayPage[Step]:
|
|
156
156
|
"""
|
|
157
157
|
List steps with optional pagination and date filters.
|
|
158
158
|
|
|
@@ -197,8 +197,9 @@ class StepsResource(SyncAPIResource):
|
|
|
197
197
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
198
198
|
"""
|
|
199
199
|
extra_headers = {**strip_not_given({"X-Project": x_project}), **(extra_headers or {})}
|
|
200
|
-
return self.
|
|
200
|
+
return self._get_api_list(
|
|
201
201
|
"/v1/steps/",
|
|
202
|
+
page=SyncArrayPage[Step],
|
|
202
203
|
options=make_request_options(
|
|
203
204
|
extra_headers=extra_headers,
|
|
204
205
|
extra_query=extra_query,
|
|
@@ -224,7 +225,7 @@ class StepsResource(SyncAPIResource):
|
|
|
224
225
|
step_list_params.StepListParams,
|
|
225
226
|
),
|
|
226
227
|
),
|
|
227
|
-
|
|
228
|
+
model=Step,
|
|
228
229
|
)
|
|
229
230
|
|
|
230
231
|
|
|
@@ -299,7 +300,7 @@ class AsyncStepsResource(AsyncAPIResource):
|
|
|
299
300
|
cast_to=Step,
|
|
300
301
|
)
|
|
301
302
|
|
|
302
|
-
|
|
303
|
+
def list(
|
|
303
304
|
self,
|
|
304
305
|
*,
|
|
305
306
|
after: Optional[str] | Omit = omit,
|
|
@@ -323,7 +324,7 @@ class AsyncStepsResource(AsyncAPIResource):
|
|
|
323
324
|
extra_query: Query | None = None,
|
|
324
325
|
extra_body: Body | None = None,
|
|
325
326
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
326
|
-
) ->
|
|
327
|
+
) -> AsyncPaginator[Step, AsyncArrayPage[Step]]:
|
|
327
328
|
"""
|
|
328
329
|
List steps with optional pagination and date filters.
|
|
329
330
|
|
|
@@ -368,14 +369,15 @@ class AsyncStepsResource(AsyncAPIResource):
|
|
|
368
369
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
369
370
|
"""
|
|
370
371
|
extra_headers = {**strip_not_given({"X-Project": x_project}), **(extra_headers or {})}
|
|
371
|
-
return
|
|
372
|
+
return self._get_api_list(
|
|
372
373
|
"/v1/steps/",
|
|
374
|
+
page=AsyncArrayPage[Step],
|
|
373
375
|
options=make_request_options(
|
|
374
376
|
extra_headers=extra_headers,
|
|
375
377
|
extra_query=extra_query,
|
|
376
378
|
extra_body=extra_body,
|
|
377
379
|
timeout=timeout,
|
|
378
|
-
query=
|
|
380
|
+
query=maybe_transform(
|
|
379
381
|
{
|
|
380
382
|
"after": after,
|
|
381
383
|
"agent_id": agent_id,
|
|
@@ -395,7 +397,7 @@ class AsyncStepsResource(AsyncAPIResource):
|
|
|
395
397
|
step_list_params.StepListParams,
|
|
396
398
|
),
|
|
397
399
|
),
|
|
398
|
-
|
|
400
|
+
model=Step,
|
|
399
401
|
)
|
|
400
402
|
|
|
401
403
|
|
letta_client/resources/tags.py
CHANGED
|
@@ -9,7 +9,7 @@ import httpx
|
|
|
9
9
|
|
|
10
10
|
from ..types import tag_list_params
|
|
11
11
|
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
12
|
-
from .._utils import maybe_transform
|
|
12
|
+
from .._utils import maybe_transform
|
|
13
13
|
from .._compat import cached_property
|
|
14
14
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
15
15
|
from .._response import (
|
|
@@ -18,7 +18,8 @@ from .._response import (
|
|
|
18
18
|
async_to_raw_response_wrapper,
|
|
19
19
|
async_to_streamed_response_wrapper,
|
|
20
20
|
)
|
|
21
|
-
from ..
|
|
21
|
+
from ..pagination import SyncArrayPage, AsyncArrayPage
|
|
22
|
+
from .._base_client import AsyncPaginator, make_request_options
|
|
22
23
|
from ..types.tag_list_response import TagListResponse
|
|
23
24
|
|
|
24
25
|
__all__ = ["TagsResource", "AsyncTagsResource"]
|
|
@@ -60,7 +61,7 @@ class TagsResource(SyncAPIResource):
|
|
|
60
61
|
extra_query: Query | None = None,
|
|
61
62
|
extra_body: Body | None = None,
|
|
62
63
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
63
|
-
) -> TagListResponse:
|
|
64
|
+
) -> SyncArrayPage[TagListResponse]:
|
|
64
65
|
"""
|
|
65
66
|
Get the list of all agent tags that have been created.
|
|
66
67
|
|
|
@@ -90,8 +91,9 @@ class TagsResource(SyncAPIResource):
|
|
|
90
91
|
|
|
91
92
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
92
93
|
"""
|
|
93
|
-
return self.
|
|
94
|
+
return self._get_api_list(
|
|
94
95
|
"/v1/tags/",
|
|
96
|
+
page=SyncArrayPage[TagListResponse],
|
|
95
97
|
options=make_request_options(
|
|
96
98
|
extra_headers=extra_headers,
|
|
97
99
|
extra_query=extra_query,
|
|
@@ -110,7 +112,7 @@ class TagsResource(SyncAPIResource):
|
|
|
110
112
|
tag_list_params.TagListParams,
|
|
111
113
|
),
|
|
112
114
|
),
|
|
113
|
-
|
|
115
|
+
model=str,
|
|
114
116
|
)
|
|
115
117
|
|
|
116
118
|
|
|
@@ -134,7 +136,7 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
134
136
|
"""
|
|
135
137
|
return AsyncTagsResourceWithStreamingResponse(self)
|
|
136
138
|
|
|
137
|
-
|
|
139
|
+
def list(
|
|
138
140
|
self,
|
|
139
141
|
*,
|
|
140
142
|
after: Optional[str] | Omit = omit,
|
|
@@ -150,7 +152,7 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
150
152
|
extra_query: Query | None = None,
|
|
151
153
|
extra_body: Body | None = None,
|
|
152
154
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
153
|
-
) -> TagListResponse:
|
|
155
|
+
) -> AsyncPaginator[TagListResponse, AsyncArrayPage[TagListResponse]]:
|
|
154
156
|
"""
|
|
155
157
|
Get the list of all agent tags that have been created.
|
|
156
158
|
|
|
@@ -180,14 +182,15 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
180
182
|
|
|
181
183
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
182
184
|
"""
|
|
183
|
-
return
|
|
185
|
+
return self._get_api_list(
|
|
184
186
|
"/v1/tags/",
|
|
187
|
+
page=AsyncArrayPage[TagListResponse],
|
|
185
188
|
options=make_request_options(
|
|
186
189
|
extra_headers=extra_headers,
|
|
187
190
|
extra_query=extra_query,
|
|
188
191
|
extra_body=extra_body,
|
|
189
192
|
timeout=timeout,
|
|
190
|
-
query=
|
|
193
|
+
query=maybe_transform(
|
|
191
194
|
{
|
|
192
195
|
"after": after,
|
|
193
196
|
"before": before,
|
|
@@ -200,7 +203,7 @@ class AsyncTagsResource(AsyncAPIResource):
|
|
|
200
203
|
tag_list_params.TagListParams,
|
|
201
204
|
),
|
|
202
205
|
),
|
|
203
|
-
|
|
206
|
+
model=str,
|
|
204
207
|
)
|
|
205
208
|
|
|
206
209
|
|
letta_client/resources/tools.py
CHANGED
|
@@ -18,9 +18,9 @@ from .._response import (
|
|
|
18
18
|
async_to_raw_response_wrapper,
|
|
19
19
|
async_to_streamed_response_wrapper,
|
|
20
20
|
)
|
|
21
|
+
from ..pagination import SyncArrayPage, AsyncArrayPage
|
|
21
22
|
from ..types.tool import Tool
|
|
22
|
-
from .._base_client import make_request_options
|
|
23
|
-
from ..types.tool_list_response import ToolListResponse
|
|
23
|
+
from .._base_client import AsyncPaginator, make_request_options
|
|
24
24
|
from ..types.tool_count_response import ToolCountResponse
|
|
25
25
|
from ..types.npm_requirement_param import NpmRequirementParam
|
|
26
26
|
from ..types.pip_requirement_param import PipRequirementParam
|
|
@@ -276,7 +276,7 @@ class ToolsResource(SyncAPIResource):
|
|
|
276
276
|
extra_query: Query | None = None,
|
|
277
277
|
extra_body: Body | None = None,
|
|
278
278
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
279
|
-
) ->
|
|
279
|
+
) -> SyncArrayPage[Tool]:
|
|
280
280
|
"""
|
|
281
281
|
Get a list of all tools available to agents.
|
|
282
282
|
|
|
@@ -316,8 +316,9 @@ class ToolsResource(SyncAPIResource):
|
|
|
316
316
|
|
|
317
317
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
318
318
|
"""
|
|
319
|
-
return self.
|
|
319
|
+
return self._get_api_list(
|
|
320
320
|
"/v1/tools/",
|
|
321
|
+
page=SyncArrayPage[Tool],
|
|
321
322
|
options=make_request_options(
|
|
322
323
|
extra_headers=extra_headers,
|
|
323
324
|
extra_query=extra_query,
|
|
@@ -341,7 +342,7 @@ class ToolsResource(SyncAPIResource):
|
|
|
341
342
|
tool_list_params.ToolListParams,
|
|
342
343
|
),
|
|
343
344
|
),
|
|
344
|
-
|
|
345
|
+
model=Tool,
|
|
345
346
|
)
|
|
346
347
|
|
|
347
348
|
def delete(
|
|
@@ -774,7 +775,7 @@ class AsyncToolsResource(AsyncAPIResource):
|
|
|
774
775
|
cast_to=Tool,
|
|
775
776
|
)
|
|
776
777
|
|
|
777
|
-
|
|
778
|
+
def list(
|
|
778
779
|
self,
|
|
779
780
|
*,
|
|
780
781
|
after: Optional[str] | Omit = omit,
|
|
@@ -795,7 +796,7 @@ class AsyncToolsResource(AsyncAPIResource):
|
|
|
795
796
|
extra_query: Query | None = None,
|
|
796
797
|
extra_body: Body | None = None,
|
|
797
798
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
798
|
-
) ->
|
|
799
|
+
) -> AsyncPaginator[Tool, AsyncArrayPage[Tool]]:
|
|
799
800
|
"""
|
|
800
801
|
Get a list of all tools available to agents.
|
|
801
802
|
|
|
@@ -835,14 +836,15 @@ class AsyncToolsResource(AsyncAPIResource):
|
|
|
835
836
|
|
|
836
837
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
837
838
|
"""
|
|
838
|
-
return
|
|
839
|
+
return self._get_api_list(
|
|
839
840
|
"/v1/tools/",
|
|
841
|
+
page=AsyncArrayPage[Tool],
|
|
840
842
|
options=make_request_options(
|
|
841
843
|
extra_headers=extra_headers,
|
|
842
844
|
extra_query=extra_query,
|
|
843
845
|
extra_body=extra_body,
|
|
844
846
|
timeout=timeout,
|
|
845
|
-
query=
|
|
847
|
+
query=maybe_transform(
|
|
846
848
|
{
|
|
847
849
|
"after": after,
|
|
848
850
|
"before": before,
|
|
@@ -860,7 +862,7 @@ class AsyncToolsResource(AsyncAPIResource):
|
|
|
860
862
|
tool_list_params.ToolListParams,
|
|
861
863
|
),
|
|
862
864
|
),
|
|
863
|
-
|
|
865
|
+
model=Tool,
|
|
864
866
|
)
|
|
865
867
|
|
|
866
868
|
async def delete(
|
letta_client/types/__init__.py
CHANGED
|
@@ -37,30 +37,23 @@ from .group_list_params import GroupListParams as GroupListParams
|
|
|
37
37
|
from .identity_property import IdentityProperty as IdentityProperty
|
|
38
38
|
from .model_list_params import ModelListParams as ModelListParams
|
|
39
39
|
from .provider_category import ProviderCategory as ProviderCategory
|
|
40
|
-
from .run_list_response import RunListResponse as RunListResponse
|
|
41
40
|
from .tag_list_response import TagListResponse as TagListResponse
|
|
42
41
|
from .tool_count_params import ToolCountParams as ToolCountParams
|
|
43
42
|
from .continue_tool_rule import ContinueToolRule as ContinueToolRule
|
|
44
43
|
from .create_block_param import CreateBlockParam as CreateBlockParam
|
|
45
44
|
from .folder_list_params import FolderListParams as FolderListParams
|
|
46
|
-
from .step_list_response import StepListResponse as StepListResponse
|
|
47
45
|
from .terminal_tool_rule import TerminalToolRule as TerminalToolRule
|
|
48
46
|
from .tool_create_params import ToolCreateParams as ToolCreateParams
|
|
49
|
-
from .tool_list_response import ToolListResponse as ToolListResponse
|
|
50
47
|
from .tool_update_params import ToolUpdateParams as ToolUpdateParams
|
|
51
48
|
from .tool_upsert_params import ToolUpsertParams as ToolUpsertParams
|
|
52
49
|
from .vector_db_provider import VectorDBProvider as VectorDBProvider
|
|
53
50
|
from .agent_create_params import AgentCreateParams as AgentCreateParams
|
|
54
|
-
from .agent_list_response import AgentListResponse as AgentListResponse
|
|
55
51
|
from .agent_update_params import AgentUpdateParams as AgentUpdateParams
|
|
56
52
|
from .archive_list_params import ArchiveListParams as ArchiveListParams
|
|
57
53
|
from .batch_create_params import BatchCreateParams as BatchCreateParams
|
|
58
|
-
from .batch_list_response import BatchListResponse as BatchListResponse
|
|
59
54
|
from .block_create_params import BlockCreateParams as BlockCreateParams
|
|
60
|
-
from .block_list_response import BlockListResponse as BlockListResponse
|
|
61
55
|
from .block_update_params import BlockUpdateParams as BlockUpdateParams
|
|
62
56
|
from .group_create_params import GroupCreateParams as GroupCreateParams
|
|
63
|
-
from .group_list_response import GroupListResponse as GroupListResponse
|
|
64
57
|
from .group_update_params import GroupUpdateParams as GroupUpdateParams
|
|
65
58
|
from .model_list_response import ModelListResponse as ModelListResponse
|
|
66
59
|
from .tool_count_response import ToolCountResponse as ToolCountResponse
|
|
@@ -68,7 +61,6 @@ from .tool_return_message import ToolReturnMessage as ToolReturnMessage
|
|
|
68
61
|
from .agent_count_response import AgentCountResponse as AgentCountResponse
|
|
69
62
|
from .block_count_response import BlockCountResponse as BlockCountResponse
|
|
70
63
|
from .folder_create_params import FolderCreateParams as FolderCreateParams
|
|
71
|
-
from .folder_list_response import FolderListResponse as FolderListResponse
|
|
72
64
|
from .folder_update_params import FolderUpdateParams as FolderUpdateParams
|
|
73
65
|
from .group_count_response import GroupCountResponse as GroupCountResponse
|
|
74
66
|
from .identity_list_params import IdentityListParams as IdentityListParams
|
|
@@ -77,7 +69,6 @@ from .message_create_param import MessageCreateParam as MessageCreateParam
|
|
|
77
69
|
from .text_response_format import TextResponseFormat as TextResponseFormat
|
|
78
70
|
from .agent_retrieve_params import AgentRetrieveParams as AgentRetrieveParams
|
|
79
71
|
from .archive_create_params import ArchiveCreateParams as ArchiveCreateParams
|
|
80
|
-
from .archive_list_response import ArchiveListResponse as ArchiveListResponse
|
|
81
72
|
from .archive_update_params import ArchiveUpdateParams as ArchiveUpdateParams
|
|
82
73
|
from .child_tool_rule_param import ChildToolRuleParam as ChildToolRuleParam
|
|
83
74
|
from .conditional_tool_rule import ConditionalToolRule as ConditionalToolRule
|
|
@@ -87,7 +78,6 @@ from .npm_requirement_param import NpmRequirementParam as NpmRequirementParam
|
|
|
87
78
|
from .pip_requirement_param import PipRequirementParam as PipRequirementParam
|
|
88
79
|
from .embedding_config_param import EmbeddingConfigParam as EmbeddingConfigParam
|
|
89
80
|
from .identity_create_params import IdentityCreateParams as IdentityCreateParams
|
|
90
|
-
from .identity_list_response import IdentityListResponse as IdentityListResponse
|
|
91
81
|
from .identity_update_params import IdentityUpdateParams as IdentityUpdateParams
|
|
92
82
|
from .identity_upsert_params import IdentityUpsertParams as IdentityUpsertParams
|
|
93
83
|
from .parent_tool_rule_param import ParentToolRuleParam as ParentToolRuleParam
|
|
@@ -31,10 +31,7 @@ from .file_list_response import FileListResponse as FileListResponse
|
|
|
31
31
|
from .file_open_response import FileOpenResponse as FileOpenResponse
|
|
32
32
|
from .folder_list_params import FolderListParams as FolderListParams
|
|
33
33
|
from .text_content_param import TextContentParam as TextContentParam
|
|
34
|
-
from .tool_list_response import ToolListResponse as ToolListResponse
|
|
35
|
-
from .block_list_response import BlockListResponse as BlockListResponse
|
|
36
34
|
from .block_update_params import BlockUpdateParams as BlockUpdateParams
|
|
37
|
-
from .group_list_response import GroupListResponse as GroupListResponse
|
|
38
35
|
from .image_content_param import ImageContentParam as ImageContentParam
|
|
39
36
|
from .letta_message_union import LettaMessageUnion as LettaMessageUnion
|
|
40
37
|
from .message_list_params import MessageListParams as MessageListParams
|
|
@@ -44,7 +41,6 @@ from .folder_list_response import FolderListResponse as FolderListResponse
|
|
|
44
41
|
from .message_reset_params import MessageResetParams as MessageResetParams
|
|
45
42
|
from .approval_create_param import ApprovalCreateParam as ApprovalCreateParam
|
|
46
43
|
from .message_cancel_params import MessageCancelParams as MessageCancelParams
|
|
47
|
-
from .message_list_response import MessageListResponse as MessageListResponse
|
|
48
44
|
from .message_stream_params import MessageStreamParams as MessageStreamParams
|
|
49
45
|
from .message_update_params import MessageUpdateParams as MessageUpdateParams
|
|
50
46
|
from .file_close_all_response import FileCloseAllResponse as FileCloseAllResponse
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Optional
|
|
4
4
|
from datetime import datetime
|
|
5
5
|
|
|
6
6
|
from ..._models import BaseModel
|
|
7
7
|
|
|
8
|
-
__all__ = ["FileListResponse"
|
|
8
|
+
__all__ = ["FileListResponse"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class FileListResponse(BaseModel):
|
|
12
12
|
id: str
|
|
13
13
|
"""Unique identifier of the file-agent relationship"""
|
|
14
14
|
|
|
@@ -38,14 +38,3 @@ class File(BaseModel):
|
|
|
38
38
|
|
|
39
39
|
visible_content: Optional[str] = None
|
|
40
40
|
"""Portion of the file visible to the agent if open"""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class FileListResponse(BaseModel):
|
|
44
|
-
files: List[File]
|
|
45
|
-
"""List of file attachments for the agent"""
|
|
46
|
-
|
|
47
|
-
has_more: bool
|
|
48
|
-
"""Whether more results exist after this page"""
|
|
49
|
-
|
|
50
|
-
next_cursor: Optional[str] = None
|
|
51
|
-
"""Cursor for fetching the next page (file-agent relationship ID)"""
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import Dict,
|
|
3
|
+
from typing import Dict, Optional
|
|
4
4
|
from datetime import datetime
|
|
5
|
-
from typing_extensions import TypeAlias
|
|
6
5
|
|
|
7
6
|
from ..._models import BaseModel
|
|
8
7
|
from ..embedding_config import EmbeddingConfig
|
|
9
8
|
from ..vector_db_provider import VectorDBProvider
|
|
10
9
|
|
|
11
|
-
__all__ = ["FolderListResponse"
|
|
10
|
+
__all__ = ["FolderListResponse"]
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
class
|
|
13
|
+
class FolderListResponse(BaseModel):
|
|
15
14
|
embedding_config: EmbeddingConfig
|
|
16
15
|
"""The embedding configuration used by the source."""
|
|
17
16
|
|
|
@@ -44,6 +43,3 @@ class FolderListResponseItem(BaseModel):
|
|
|
44
43
|
|
|
45
44
|
vector_db_provider: Optional[VectorDBProvider] = None
|
|
46
45
|
"""The vector database provider used for this source's passages"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
FolderListResponse: TypeAlias = List[FolderListResponseItem]
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
4
3
|
from typing_extensions import TypeAlias
|
|
5
4
|
|
|
6
5
|
__all__ = ["AgentListResponse"]
|
|
7
6
|
|
|
8
|
-
AgentListResponse: TypeAlias =
|
|
7
|
+
AgentListResponse: TypeAlias = str
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Optional
|
|
4
4
|
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
5
|
+
from typing_extensions import Literal
|
|
6
6
|
|
|
7
7
|
from ..._models import BaseModel
|
|
8
8
|
|
|
9
|
-
__all__ = ["FileListResponse"
|
|
9
|
+
__all__ = ["FileListResponse"]
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
12
|
+
class FileListResponse(BaseModel):
|
|
13
13
|
source_id: str
|
|
14
14
|
"""The unique identifier of the source associated with the document."""
|
|
15
15
|
|
|
@@ -63,6 +63,3 @@ class FileListResponseItem(BaseModel):
|
|
|
63
63
|
|
|
64
64
|
updated_at: Optional[datetime] = None
|
|
65
65
|
"""The update date of the file."""
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
FileListResponse: TypeAlias = List[FileListResponseItem]
|
|
@@ -4,7 +4,6 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from .message_list_params import MessageListParams as MessageListParams
|
|
6
6
|
from .message_send_params import MessageSendParams as MessageSendParams
|
|
7
|
-
from .message_list_response import MessageListResponse as MessageListResponse
|
|
8
7
|
from .message_stream_params import MessageStreamParams as MessageStreamParams
|
|
9
8
|
from .message_update_params import MessageUpdateParams as MessageUpdateParams
|
|
10
9
|
from .message_update_response import MessageUpdateResponse as MessageUpdateResponse
|
|
@@ -4,6 +4,4 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from .agent_list_params import AgentListParams as AgentListParams
|
|
6
6
|
from .block_list_params import BlockListParams as BlockListParams
|
|
7
|
-
from .agent_list_response import AgentListResponse as AgentListResponse
|
|
8
|
-
from .block_list_response import BlockListResponse as BlockListResponse
|
|
9
7
|
from .property_upsert_params import PropertyUpsertParams as PropertyUpsertParams
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from .step_list_params import StepListParams as StepListParams
|
|
6
|
-
from .step_list_response import StepListResponse as StepListResponse
|
|
7
6
|
from .message_list_params import MessageListParams as MessageListParams
|
|
8
|
-
from .message_list_response import MessageListResponse as MessageListResponse
|
|
9
7
|
from .message_stream_params import MessageStreamParams as MessageStreamParams
|
|
10
8
|
from .usage_retrieve_response import UsageRetrieveResponse as UsageRetrieveResponse
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Union
|
|
4
4
|
from typing_extensions import Annotated, TypeAlias
|
|
5
5
|
|
|
6
6
|
from ..._utils import PropertyInfo
|
|
@@ -14,9 +14,9 @@ from ..agents.approval_request_message import ApprovalRequestMessage
|
|
|
14
14
|
from ..agents.hidden_reasoning_message import HiddenReasoningMessage
|
|
15
15
|
from ..agents.approval_response_message import ApprovalResponseMessage
|
|
16
16
|
|
|
17
|
-
__all__ = ["MessageListResponse"
|
|
17
|
+
__all__ = ["MessageListResponse"]
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
MessageListResponse: TypeAlias = Annotated[
|
|
20
20
|
Union[
|
|
21
21
|
SystemMessage,
|
|
22
22
|
UserMessage,
|
|
@@ -30,5 +30,3 @@ MessageListResponseItem: TypeAlias = Annotated[
|
|
|
30
30
|
],
|
|
31
31
|
PropertyInfo(discriminator="message_type"),
|
|
32
32
|
]
|
|
33
|
-
|
|
34
|
-
MessageListResponse: TypeAlias = List[MessageListResponseItem]
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List
|
|
4
3
|
from typing_extensions import TypeAlias
|
|
5
4
|
|
|
6
5
|
__all__ = ["TagListResponse"]
|
|
7
6
|
|
|
8
|
-
TagListResponse: TypeAlias =
|
|
7
|
+
TagListResponse: TypeAlias = str
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: letta-client
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a9
|
|
4
4
|
Summary: The official Python library for the letta API
|
|
5
5
|
Project-URL: Homepage, https://github.com/letta-ai/letta-python
|
|
6
6
|
Project-URL: Repository, https://github.com/letta-ai/letta-python
|