letta-client 1.0.0a12__py3-none-any.whl → 1.0.0a13__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/resources/groups/messages.py +8 -2
- letta_client/resources/runs/messages.py +8 -2
- {letta_client-1.0.0a12.dist-info → letta_client-1.0.0a13.dist-info}/METADATA +1 -1
- {letta_client-1.0.0a12.dist-info → letta_client-1.0.0a13.dist-info}/RECORD +7 -7
- {letta_client-1.0.0a12.dist-info → letta_client-1.0.0a13.dist-info}/WHEEL +0 -0
- {letta_client-1.0.0a12.dist-info → letta_client-1.0.0a13.dist-info}/licenses/LICENSE +0 -0
letta_client/_version.py
CHANGED
|
@@ -17,6 +17,7 @@ from ..._response import (
|
|
|
17
17
|
async_to_raw_response_wrapper,
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
|
+
from ..._streaming import Stream, AsyncStream
|
|
20
21
|
from ...pagination import SyncArrayPage, AsyncArrayPage
|
|
21
22
|
from ..._base_client import AsyncPaginator, make_request_options
|
|
22
23
|
from ...types.groups import message_list_params, message_send_params, message_modify_params, message_stream_params
|
|
@@ -24,6 +25,7 @@ from ...types.agents.message_type import MessageType
|
|
|
24
25
|
from ...types.agents.letta_response import LettaResponse
|
|
25
26
|
from ...types.agents.letta_message_union import LettaMessageUnion
|
|
26
27
|
from ...types.groups.message_modify_response import MessageModifyResponse
|
|
28
|
+
from ...types.agents.letta_streaming_response import LettaStreamingResponse
|
|
27
29
|
from ...types.agents.letta_user_message_content_union_param import LettaUserMessageContentUnionParam
|
|
28
30
|
from ...types.agents.letta_assistant_message_content_union_param import LettaAssistantMessageContentUnionParam
|
|
29
31
|
|
|
@@ -446,7 +448,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
446
448
|
extra_query: Query | None = None,
|
|
447
449
|
extra_body: Body | None = None,
|
|
448
450
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
449
|
-
) ->
|
|
451
|
+
) -> Stream[LettaStreamingResponse]:
|
|
450
452
|
"""Process a user message and return the group's responses.
|
|
451
453
|
|
|
452
454
|
This endpoint accepts a
|
|
@@ -515,6 +517,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
515
517
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
516
518
|
),
|
|
517
519
|
cast_to=object,
|
|
520
|
+
stream=True,
|
|
521
|
+
stream_cls=Stream[LettaStreamingResponse],
|
|
518
522
|
)
|
|
519
523
|
|
|
520
524
|
|
|
@@ -934,7 +938,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
934
938
|
extra_query: Query | None = None,
|
|
935
939
|
extra_body: Body | None = None,
|
|
936
940
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
937
|
-
) ->
|
|
941
|
+
) -> AsyncStream[LettaStreamingResponse]:
|
|
938
942
|
"""Process a user message and return the group's responses.
|
|
939
943
|
|
|
940
944
|
This endpoint accepts a
|
|
@@ -1003,6 +1007,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
1003
1007
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1004
1008
|
),
|
|
1005
1009
|
cast_to=object,
|
|
1010
|
+
stream=True,
|
|
1011
|
+
stream_cls=AsyncStream[LettaStreamingResponse],
|
|
1006
1012
|
)
|
|
1007
1013
|
|
|
1008
1014
|
|
|
@@ -17,10 +17,12 @@ from ..._response import (
|
|
|
17
17
|
async_to_raw_response_wrapper,
|
|
18
18
|
async_to_streamed_response_wrapper,
|
|
19
19
|
)
|
|
20
|
+
from ..._streaming import Stream, AsyncStream
|
|
20
21
|
from ...pagination import SyncArrayPage, AsyncArrayPage
|
|
21
22
|
from ...types.runs import message_list_params, message_stream_params
|
|
22
23
|
from ..._base_client import AsyncPaginator, make_request_options
|
|
23
24
|
from ...types.agents.letta_message_union import LettaMessageUnion
|
|
25
|
+
from ...types.agents.letta_streaming_response import LettaStreamingResponse
|
|
24
26
|
|
|
25
27
|
__all__ = ["MessagesResource", "AsyncMessagesResource"]
|
|
26
28
|
|
|
@@ -124,7 +126,7 @@ class MessagesResource(SyncAPIResource):
|
|
|
124
126
|
extra_query: Query | None = None,
|
|
125
127
|
extra_body: Body | None = None,
|
|
126
128
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
127
|
-
) ->
|
|
129
|
+
) -> Stream[LettaStreamingResponse]:
|
|
128
130
|
"""
|
|
129
131
|
Retrieve Stream
|
|
130
132
|
|
|
@@ -164,6 +166,8 @@ class MessagesResource(SyncAPIResource):
|
|
|
164
166
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
165
167
|
),
|
|
166
168
|
cast_to=object,
|
|
169
|
+
stream=True,
|
|
170
|
+
stream_cls=Stream[LettaStreamingResponse],
|
|
167
171
|
)
|
|
168
172
|
|
|
169
173
|
|
|
@@ -266,7 +270,7 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
266
270
|
extra_query: Query | None = None,
|
|
267
271
|
extra_body: Body | None = None,
|
|
268
272
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
269
|
-
) ->
|
|
273
|
+
) -> AsyncStream[LettaStreamingResponse]:
|
|
270
274
|
"""
|
|
271
275
|
Retrieve Stream
|
|
272
276
|
|
|
@@ -306,6 +310,8 @@ class AsyncMessagesResource(AsyncAPIResource):
|
|
|
306
310
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
307
311
|
),
|
|
308
312
|
cast_to=object,
|
|
313
|
+
stream=True,
|
|
314
|
+
stream_cls=AsyncStream[LettaStreamingResponse],
|
|
309
315
|
)
|
|
310
316
|
|
|
311
317
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: letta-client
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a13
|
|
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
|
|
@@ -11,7 +11,7 @@ letta_client/_resource.py,sha256=usdu71d9SVBhsKu3-JpcwE4ZYyIZJTEIFhNNUR2i-qI,109
|
|
|
11
11
|
letta_client/_response.py,sha256=BKfNWi9r9l3FTwBirPt64_mnVss9gK8OYZkHb0MLL1A,28840
|
|
12
12
|
letta_client/_streaming.py,sha256=IhQrxmf7HMjkKLynITPcJBzqg30SI5e2O35zFOP1AMk,11283
|
|
13
13
|
letta_client/_types.py,sha256=dz_siM5FFPTKJs3m9q2ocNjY26xAZ98zPp7sQlsSm0U,7242
|
|
14
|
-
letta_client/_version.py,sha256=
|
|
14
|
+
letta_client/_version.py,sha256=JkDHYdSYcrQ-zg_-0-46-gcf3jpEFQwwjGGrU_cEByk,173
|
|
15
15
|
letta_client/pagination.py,sha256=lQ8asLHRqlok2V6OLrTR6TVgvvqFxvYm5IFJSNYFXxE,7967
|
|
16
16
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
letta_client/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
@@ -51,7 +51,7 @@ letta_client/resources/folders/files.py,sha256=nNtsVaok4mIxkNWuW-coZipFQGLGemkuV
|
|
|
51
51
|
letta_client/resources/folders/folders.py,sha256=9WGYvy0b-3EwLLh87K5XoW2eqvPUZ35R8XrYNJ9svxQ,29045
|
|
52
52
|
letta_client/resources/groups/__init__.py,sha256=XRg7EgECFtIm8h8RjGcNEJyiZpw6XJqoG0aJwGsUADw,1028
|
|
53
53
|
letta_client/resources/groups/groups.py,sha256=ieqdZUSFtm7-svHEMFQ85tt4VSGJt45lyVGgSTRf8Sw,27542
|
|
54
|
-
letta_client/resources/groups/messages.py,sha256=
|
|
54
|
+
letta_client/resources/groups/messages.py,sha256=Gb9ZbK2ftCGVgEFAgJJBMb9rUON0fBO4I_ICcHllxIA,45765
|
|
55
55
|
letta_client/resources/identities/__init__.py,sha256=DaxkyrCra0xPWgEyZVRgVapuasUybvZokYssYq_QnyM,2006
|
|
56
56
|
letta_client/resources/identities/agents.py,sha256=KeejDcc4xDrqCQMV79QvK1VDRTCSIS4GqvgQUCFQRIc,9709
|
|
57
57
|
letta_client/resources/identities/blocks.py,sha256=JnvtUXjXQe_SyWlLqljAAc8tZ68rLj-3Hof4ccca2YA,8720
|
|
@@ -65,7 +65,7 @@ letta_client/resources/models/__init__.py,sha256=Tvswac6gTvPG6C45MOrEYYjWY6dEdWa
|
|
|
65
65
|
letta_client/resources/models/embeddings.py,sha256=1y7h-pd_LW7Dyf9q_7CV1MF6KVfSRHCfLlPuaM5B-KE,5238
|
|
66
66
|
letta_client/resources/models/models.py,sha256=hL_X-WVFOIzxpbnfgeAU-yPTSOn0mj5YTaiqKKcVIL4,8217
|
|
67
67
|
letta_client/resources/runs/__init__.py,sha256=Oz3VS4QWQ-W1ZkMdw1EuuH33QdUIgyxFhtAROdmI7RQ,1876
|
|
68
|
-
letta_client/resources/runs/messages.py,sha256=
|
|
68
|
+
letta_client/resources/runs/messages.py,sha256=UqdiizM0A4OGq6oIZObQT3K5H6SjJ9E53WqnJoesb9Y,14005
|
|
69
69
|
letta_client/resources/runs/runs.py,sha256=x79KGrUTCePKG1XYhn4fQgDrZRyqgyfdiOSLSzplceA,16614
|
|
70
70
|
letta_client/resources/runs/steps.py,sha256=hR33PtnoHUFrxLSj8-Rb3kAMRebyzlYjaSxqn8vyEXc,7981
|
|
71
71
|
letta_client/resources/runs/usage.py,sha256=rsarShRjn8sylRDfsO2BcM25dk2xGr0Njal9CKbeDgs,5824
|
|
@@ -306,7 +306,7 @@ letta_client/types/steps/message_list_response.py,sha256=KOOB_tmBTiMjXRPtuZocvn_
|
|
|
306
306
|
letta_client/types/steps/metric_retrieve_response.py,sha256=2rqlYkeGpwu4JYBPg9PszUKbT63x4AEDfo8wAJSdoew,1385
|
|
307
307
|
letta_client/types/templates/__init__.py,sha256=eRs8IaeLPk-OtK1SeqFlKxHQ1_thE0sgK2BZ2ioSyUw,195
|
|
308
308
|
letta_client/types/templates/agent_create_params.py,sha256=kvmC7ldFkNdx7kf6r_CK3O88BATWZjKW3kdzc475rFk,1406
|
|
309
|
-
letta_client-1.0.
|
|
310
|
-
letta_client-1.0.
|
|
311
|
-
letta_client-1.0.
|
|
312
|
-
letta_client-1.0.
|
|
309
|
+
letta_client-1.0.0a13.dist-info/METADATA,sha256=6XkeWOnnOgpNIrfHKZ5q8uvin-AU5t7f3FdL4T8-HjU,15982
|
|
310
|
+
letta_client-1.0.0a13.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
311
|
+
letta_client-1.0.0a13.dist-info/licenses/LICENSE,sha256=BzGFjaxYQ82_SHPlYaZdGvoP71_alR_yRWyWASLnPe0,11335
|
|
312
|
+
letta_client-1.0.0a13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|