letta-client 0.1.96__py3-none-any.whl → 0.1.97__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.

@@ -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.96",
19
+ "X-Fern-SDK-Version": "0.1.97",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -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(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Run]:
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(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Run]:
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(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Run]:
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(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Run]:
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.96
3
+ Version: 0.1.97
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -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=zXG2nWGvdMtp-xl4wVnL9vatC7glk0oYa2opfVXNGEM,1997
47
+ letta_client/core/client_wrapper.py,sha256=17Voldv1_yBqRmr6-YqUwpgz1HxNYWsKLNSb_cLiXIU,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=fu6RNu6qkG5kOkT7rfIjeuHp_REW5ZGxNwzFqTmhb-o,34546
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
@@ -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.96.dist-info/METADATA,sha256=NcHpwkHQjYzZV-H9EzBd-0cpBSXAJ-Cj0cugqwTVwI0,5041
327
- letta_client-0.1.96.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
328
- letta_client-0.1.96.dist-info/RECORD,,
326
+ letta_client-0.1.97.dist-info/METADATA,sha256=WeW-1trYlRo-A2qYt0sVZ01JpZxdjsSzd6aQGPZ3rjA,5041
327
+ letta_client-0.1.97.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
328
+ letta_client-0.1.97.dist-info/RECORD,,