letta-client 0.1.96__py3-none-any.whl → 0.1.98__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/core/client_wrapper.py +1 -1
- letta_client/runs/client.py +48 -4
- letta_client/types/app_auth_scheme_auth_mode.py +0 -1
- letta_client/types/chat_completion_audio_param_voice.py +12 -1
- {letta_client-0.1.96.dist-info → letta_client-0.1.98.dist-info}/METADATA +1 -1
- {letta_client-0.1.96.dist-info → letta_client-0.1.98.dist-info}/RECORD +7 -7
- {letta_client-0.1.96.dist-info → letta_client-0.1.98.dist-info}/WHEEL +0 -0
|
@@ -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.98",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/runs/client.py
CHANGED
|
@@ -21,12 +21,20 @@ class RunsClient:
|
|
|
21
21
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
22
22
|
self._client_wrapper = client_wrapper
|
|
23
23
|
|
|
24
|
-
def list_runs(
|
|
24
|
+
def list_runs(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
28
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
29
|
+
) -> typing.List[Run]:
|
|
25
30
|
"""
|
|
26
31
|
List all runs.
|
|
27
32
|
|
|
28
33
|
Parameters
|
|
29
34
|
----------
|
|
35
|
+
agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
36
|
+
The unique identifier of the agent associated with the run.
|
|
37
|
+
|
|
30
38
|
request_options : typing.Optional[RequestOptions]
|
|
31
39
|
Request-specific configuration.
|
|
32
40
|
|
|
@@ -47,6 +55,9 @@ class RunsClient:
|
|
|
47
55
|
_response = self._client_wrapper.httpx_client.request(
|
|
48
56
|
"v1/runs/",
|
|
49
57
|
method="GET",
|
|
58
|
+
params={
|
|
59
|
+
"agent_ids": agent_ids,
|
|
60
|
+
},
|
|
50
61
|
request_options=request_options,
|
|
51
62
|
)
|
|
52
63
|
try:
|
|
@@ -73,12 +84,20 @@ class RunsClient:
|
|
|
73
84
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
74
85
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
75
86
|
|
|
76
|
-
def list_active_runs(
|
|
87
|
+
def list_active_runs(
|
|
88
|
+
self,
|
|
89
|
+
*,
|
|
90
|
+
agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
91
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
92
|
+
) -> typing.List[Run]:
|
|
77
93
|
"""
|
|
78
94
|
List all active runs.
|
|
79
95
|
|
|
80
96
|
Parameters
|
|
81
97
|
----------
|
|
98
|
+
agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
99
|
+
The unique identifier of the agent associated with the run.
|
|
100
|
+
|
|
82
101
|
request_options : typing.Optional[RequestOptions]
|
|
83
102
|
Request-specific configuration.
|
|
84
103
|
|
|
@@ -99,6 +118,9 @@ class RunsClient:
|
|
|
99
118
|
_response = self._client_wrapper.httpx_client.request(
|
|
100
119
|
"v1/runs/active",
|
|
101
120
|
method="GET",
|
|
121
|
+
params={
|
|
122
|
+
"agent_ids": agent_ids,
|
|
123
|
+
},
|
|
102
124
|
request_options=request_options,
|
|
103
125
|
)
|
|
104
126
|
try:
|
|
@@ -494,12 +516,20 @@ class AsyncRunsClient:
|
|
|
494
516
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
495
517
|
self._client_wrapper = client_wrapper
|
|
496
518
|
|
|
497
|
-
async def list_runs(
|
|
519
|
+
async def list_runs(
|
|
520
|
+
self,
|
|
521
|
+
*,
|
|
522
|
+
agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
523
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
524
|
+
) -> typing.List[Run]:
|
|
498
525
|
"""
|
|
499
526
|
List all runs.
|
|
500
527
|
|
|
501
528
|
Parameters
|
|
502
529
|
----------
|
|
530
|
+
agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
531
|
+
The unique identifier of the agent associated with the run.
|
|
532
|
+
|
|
503
533
|
request_options : typing.Optional[RequestOptions]
|
|
504
534
|
Request-specific configuration.
|
|
505
535
|
|
|
@@ -528,6 +558,9 @@ class AsyncRunsClient:
|
|
|
528
558
|
_response = await self._client_wrapper.httpx_client.request(
|
|
529
559
|
"v1/runs/",
|
|
530
560
|
method="GET",
|
|
561
|
+
params={
|
|
562
|
+
"agent_ids": agent_ids,
|
|
563
|
+
},
|
|
531
564
|
request_options=request_options,
|
|
532
565
|
)
|
|
533
566
|
try:
|
|
@@ -554,12 +587,20 @@ class AsyncRunsClient:
|
|
|
554
587
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
555
588
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
556
589
|
|
|
557
|
-
async def list_active_runs(
|
|
590
|
+
async def list_active_runs(
|
|
591
|
+
self,
|
|
592
|
+
*,
|
|
593
|
+
agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
594
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
595
|
+
) -> typing.List[Run]:
|
|
558
596
|
"""
|
|
559
597
|
List all active runs.
|
|
560
598
|
|
|
561
599
|
Parameters
|
|
562
600
|
----------
|
|
601
|
+
agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
602
|
+
The unique identifier of the agent associated with the run.
|
|
603
|
+
|
|
563
604
|
request_options : typing.Optional[RequestOptions]
|
|
564
605
|
Request-specific configuration.
|
|
565
606
|
|
|
@@ -588,6 +629,9 @@ class AsyncRunsClient:
|
|
|
588
629
|
_response = await self._client_wrapper.httpx_client.request(
|
|
589
630
|
"v1/runs/active",
|
|
590
631
|
method="GET",
|
|
632
|
+
params={
|
|
633
|
+
"agent_ids": agent_ids,
|
|
634
|
+
},
|
|
591
635
|
request_options=request_options,
|
|
592
636
|
)
|
|
593
637
|
try:
|
|
@@ -3,5 +3,16 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
5
|
ChatCompletionAudioParamVoice = typing.Union[
|
|
6
|
-
|
|
6
|
+
str,
|
|
7
|
+
typing.Literal["alloy"],
|
|
8
|
+
typing.Literal["ash"],
|
|
9
|
+
typing.Literal["ballad"],
|
|
10
|
+
typing.Literal["coral"],
|
|
11
|
+
typing.Literal["echo"],
|
|
12
|
+
typing.Literal["fable"],
|
|
13
|
+
typing.Literal["onyx"],
|
|
14
|
+
typing.Literal["nova"],
|
|
15
|
+
typing.Literal["sage"],
|
|
16
|
+
typing.Literal["shimmer"],
|
|
17
|
+
typing.Literal["verse"],
|
|
7
18
|
]
|
|
@@ -44,7 +44,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
|
|
|
44
44
|
letta_client/client.py,sha256=k2mZqqEWciVmEQHgipjCK4kQILk74hpSqzcdNwdql9A,21212
|
|
45
45
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
46
46
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
47
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
47
|
+
letta_client/core/client_wrapper.py,sha256=eqSnJsbslF_PUL-QYoUEcS3yTRnZ1Yqe9ueTS8XgybI,1997
|
|
48
48
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
49
49
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
50
50
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -84,7 +84,7 @@ letta_client/providers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAK
|
|
|
84
84
|
letta_client/providers/client.py,sha256=RLpTHd9iQ5wlZqYEG4cF8YsDCdaQZ0odCFprukauCuc,18228
|
|
85
85
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
86
|
letta_client/runs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
87
|
-
letta_client/runs/client.py,sha256=
|
|
87
|
+
letta_client/runs/client.py,sha256=l379IYPAH1gttH1kGP1gysaCIzMHsxTTik7IRQD8ctw,35910
|
|
88
88
|
letta_client/sources/__init__.py,sha256=kswgCv4UdkSVk1Y4tsMM1HadOwvhh_Fr96VTSMV4Umc,128
|
|
89
89
|
letta_client/sources/client.py,sha256=5cxPpigLN0YvzlkCOKcySV6g1_k8zknpE0tw7EN2Y1Y,29073
|
|
90
90
|
letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -117,7 +117,7 @@ letta_client/types/agent_state.py,sha256=8HlqbdcES-fgdk_rRCoStUoeJo0AWH0L1Vkri8I
|
|
|
117
117
|
letta_client/types/agent_state_tool_rules_item.py,sha256=jrcYmhULwLq704i85rCxW2GJLdz8XnBK0HxBLSkgs6k,539
|
|
118
118
|
letta_client/types/agent_type.py,sha256=ywCn-ii7Xu0-N1tkK7oQaONlx42wcTVB-8oP71fNbw0,190
|
|
119
119
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
120
|
-
letta_client/types/app_auth_scheme_auth_mode.py,sha256=
|
|
120
|
+
letta_client/types/app_auth_scheme_auth_mode.py,sha256=cEj9XAxLgFcang_Irw6h3koWac9A0tpNeBG05NUeGlw,387
|
|
121
121
|
letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
|
|
122
122
|
letta_client/types/assistant_message.py,sha256=mWtR46DouLZ9IdzMYAngaW4tuWFRRLU6GcGGCu6g_dI,1425
|
|
123
123
|
letta_client/types/assistant_message_content.py,sha256=yKC7GsSHadzc-ye0Zp7TOqq_UBExULCXxdNn5CXJMsQ,241
|
|
@@ -133,7 +133,7 @@ letta_client/types/chat_completion_assistant_message_param_content.py,sha256=CJ7
|
|
|
133
133
|
letta_client/types/chat_completion_assistant_message_param_content_item.py,sha256=tF-E0jNH0ilRJgm4vPTqHguCb-TZZ0LJfTXxOnon23w,405
|
|
134
134
|
letta_client/types/chat_completion_audio_param.py,sha256=l3hMhCWVDglmqmVezfuemQZoEevpndfyKJBDLu0_t-U,795
|
|
135
135
|
letta_client/types/chat_completion_audio_param_format.py,sha256=fuHPqWZGDIOwa4jnVY1hpU4Hx0sLs6qTjnss4PZMqSQ,193
|
|
136
|
-
letta_client/types/chat_completion_audio_param_voice.py,sha256=
|
|
136
|
+
letta_client/types/chat_completion_audio_param_voice.py,sha256=9bpfU_DFyUdFLYZMkigrNlre4VklwqX7mGa0myMt7HQ,453
|
|
137
137
|
letta_client/types/chat_completion_content_part_image_param.py,sha256=dUQIFiDbyebgPEpVJJlDvZ5pcoly3LuGq-4fxojDbBc,674
|
|
138
138
|
letta_client/types/chat_completion_content_part_input_audio_param.py,sha256=-RGWHcpNdJQg82E8QhRve2QJQehma91k8eqGqeH29hc,691
|
|
139
139
|
letta_client/types/chat_completion_content_part_refusal_param.py,sha256=krYl75gasdI3f11V7fxkjWaf0_eyUoAjVZdMr91_BJg,633
|
|
@@ -323,6 +323,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
323
323
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
324
324
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
325
325
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
326
|
-
letta_client-0.1.
|
|
327
|
-
letta_client-0.1.
|
|
328
|
-
letta_client-0.1.
|
|
326
|
+
letta_client-0.1.98.dist-info/METADATA,sha256=bZjfvgPCPtKkfQ16t1t127268GJwpnJLtTc7F2aSL3A,5041
|
|
327
|
+
letta_client-0.1.98.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
328
|
+
letta_client-0.1.98.dist-info/RECORD,,
|
|
File without changes
|