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

@@ -24,10 +24,10 @@ class BaseClientWrapper:
24
24
 
25
25
  def get_headers(self) -> typing.Dict[str, str]:
26
26
  headers: typing.Dict[str, str] = {
27
- "User-Agent": "letta-client/0.1.320",
27
+ "User-Agent": "letta-client/0.1.321",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.320",
30
+ "X-Fern-SDK-Version": "0.1.321",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -39,6 +39,7 @@ class RunsClient:
39
39
  def list(
40
40
  self,
41
41
  *,
42
+ agent_id: typing.Optional[str] = None,
42
43
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
43
44
  background: typing.Optional[bool] = None,
44
45
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -54,9 +55,12 @@ class RunsClient:
54
55
 
55
56
  Parameters
56
57
  ----------
57
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
58
+ agent_id : typing.Optional[str]
58
59
  The unique identifier of the agent associated with the run.
59
60
 
61
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
62
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
63
+
60
64
  background : typing.Optional[bool]
61
65
  If True, filters for runs that were created in background mode.
62
66
 
@@ -97,6 +101,7 @@ class RunsClient:
97
101
  client.runs.list()
98
102
  """
99
103
  _response = self._raw_client.list(
104
+ agent_id=agent_id,
100
105
  agent_ids=agent_ids,
101
106
  background=background,
102
107
  stop_reason=stop_reason,
@@ -112,7 +117,7 @@ class RunsClient:
112
117
  def list_active(
113
118
  self,
114
119
  *,
115
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
120
+ agent_id: typing.Optional[str] = None,
116
121
  background: typing.Optional[bool] = None,
117
122
  request_options: typing.Optional[RequestOptions] = None,
118
123
  ) -> typing.List[Run]:
@@ -121,7 +126,7 @@ class RunsClient:
121
126
 
122
127
  Parameters
123
128
  ----------
124
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
129
+ agent_id : typing.Optional[str]
125
130
  The unique identifier of the agent associated with the run.
126
131
 
127
132
  background : typing.Optional[bool]
@@ -146,7 +151,7 @@ class RunsClient:
146
151
  client.runs.list_active()
147
152
  """
148
153
  _response = self._raw_client.list_active(
149
- agent_ids=agent_ids, background=background, request_options=request_options
154
+ agent_id=agent_id, background=background, request_options=request_options
150
155
  )
151
156
  return _response.data
152
157
 
@@ -295,6 +300,7 @@ class AsyncRunsClient:
295
300
  async def list(
296
301
  self,
297
302
  *,
303
+ agent_id: typing.Optional[str] = None,
298
304
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
299
305
  background: typing.Optional[bool] = None,
300
306
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -310,9 +316,12 @@ class AsyncRunsClient:
310
316
 
311
317
  Parameters
312
318
  ----------
313
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
319
+ agent_id : typing.Optional[str]
314
320
  The unique identifier of the agent associated with the run.
315
321
 
322
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
323
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
324
+
316
325
  background : typing.Optional[bool]
317
326
  If True, filters for runs that were created in background mode.
318
327
 
@@ -361,6 +370,7 @@ class AsyncRunsClient:
361
370
  asyncio.run(main())
362
371
  """
363
372
  _response = await self._raw_client.list(
373
+ agent_id=agent_id,
364
374
  agent_ids=agent_ids,
365
375
  background=background,
366
376
  stop_reason=stop_reason,
@@ -376,7 +386,7 @@ class AsyncRunsClient:
376
386
  async def list_active(
377
387
  self,
378
388
  *,
379
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
389
+ agent_id: typing.Optional[str] = None,
380
390
  background: typing.Optional[bool] = None,
381
391
  request_options: typing.Optional[RequestOptions] = None,
382
392
  ) -> typing.List[Run]:
@@ -385,7 +395,7 @@ class AsyncRunsClient:
385
395
 
386
396
  Parameters
387
397
  ----------
388
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
398
+ agent_id : typing.Optional[str]
389
399
  The unique identifier of the agent associated with the run.
390
400
 
391
401
  background : typing.Optional[bool]
@@ -418,7 +428,7 @@ class AsyncRunsClient:
418
428
  asyncio.run(main())
419
429
  """
420
430
  _response = await self._raw_client.list_active(
421
- agent_ids=agent_ids, background=background, request_options=request_options
431
+ agent_id=agent_id, background=background, request_options=request_options
422
432
  )
423
433
  return _response.data
424
434
 
@@ -29,6 +29,7 @@ class RawRunsClient:
29
29
  def list(
30
30
  self,
31
31
  *,
32
+ agent_id: typing.Optional[str] = None,
32
33
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
33
34
  background: typing.Optional[bool] = None,
34
35
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -44,9 +45,12 @@ class RawRunsClient:
44
45
 
45
46
  Parameters
46
47
  ----------
47
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
48
+ agent_id : typing.Optional[str]
48
49
  The unique identifier of the agent associated with the run.
49
50
 
51
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
52
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
53
+
50
54
  background : typing.Optional[bool]
51
55
  If True, filters for runs that were created in background mode.
52
56
 
@@ -80,6 +84,7 @@ class RawRunsClient:
80
84
  "v1/runs/",
81
85
  method="GET",
82
86
  params={
87
+ "agent_id": agent_id,
83
88
  "agent_ids": agent_ids,
84
89
  "background": background,
85
90
  "stop_reason": stop_reason,
@@ -120,7 +125,7 @@ class RawRunsClient:
120
125
  def list_active(
121
126
  self,
122
127
  *,
123
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
128
+ agent_id: typing.Optional[str] = None,
124
129
  background: typing.Optional[bool] = None,
125
130
  request_options: typing.Optional[RequestOptions] = None,
126
131
  ) -> HttpResponse[typing.List[Run]]:
@@ -129,7 +134,7 @@ class RawRunsClient:
129
134
 
130
135
  Parameters
131
136
  ----------
132
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
137
+ agent_id : typing.Optional[str]
133
138
  The unique identifier of the agent associated with the run.
134
139
 
135
140
  background : typing.Optional[bool]
@@ -147,7 +152,7 @@ class RawRunsClient:
147
152
  "v1/runs/active",
148
153
  method="GET",
149
154
  params={
150
- "agent_ids": agent_ids,
155
+ "agent_id": agent_id,
151
156
  "background": background,
152
157
  },
153
158
  request_options=request_options,
@@ -375,6 +380,7 @@ class AsyncRawRunsClient:
375
380
  async def list(
376
381
  self,
377
382
  *,
383
+ agent_id: typing.Optional[str] = None,
378
384
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
379
385
  background: typing.Optional[bool] = None,
380
386
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -390,9 +396,12 @@ class AsyncRawRunsClient:
390
396
 
391
397
  Parameters
392
398
  ----------
393
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
399
+ agent_id : typing.Optional[str]
394
400
  The unique identifier of the agent associated with the run.
395
401
 
402
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
403
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
404
+
396
405
  background : typing.Optional[bool]
397
406
  If True, filters for runs that were created in background mode.
398
407
 
@@ -426,6 +435,7 @@ class AsyncRawRunsClient:
426
435
  "v1/runs/",
427
436
  method="GET",
428
437
  params={
438
+ "agent_id": agent_id,
429
439
  "agent_ids": agent_ids,
430
440
  "background": background,
431
441
  "stop_reason": stop_reason,
@@ -466,7 +476,7 @@ class AsyncRawRunsClient:
466
476
  async def list_active(
467
477
  self,
468
478
  *,
469
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
479
+ agent_id: typing.Optional[str] = None,
470
480
  background: typing.Optional[bool] = None,
471
481
  request_options: typing.Optional[RequestOptions] = None,
472
482
  ) -> AsyncHttpResponse[typing.List[Run]]:
@@ -475,7 +485,7 @@ class AsyncRawRunsClient:
475
485
 
476
486
  Parameters
477
487
  ----------
478
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
488
+ agent_id : typing.Optional[str]
479
489
  The unique identifier of the agent associated with the run.
480
490
 
481
491
  background : typing.Optional[bool]
@@ -493,7 +503,7 @@ class AsyncRawRunsClient:
493
503
  "v1/runs/active",
494
504
  method="GET",
495
505
  params={
496
- "agent_ids": agent_ids,
506
+ "agent_id": agent_id,
497
507
  "background": background,
498
508
  },
499
509
  request_options=request_options,
@@ -53,6 +53,16 @@ class BatchJob(UncheckedBaseModel):
53
53
  """
54
54
 
55
55
  job_type: typing.Optional[JobType] = None
56
+ background: typing.Optional[bool] = pydantic.Field(default=None)
57
+ """
58
+ Whether the job was created in background mode.
59
+ """
60
+
61
+ agent_id: typing.Optional[str] = pydantic.Field(default=None)
62
+ """
63
+ The agent associated with this job/run.
64
+ """
65
+
56
66
  callback_url: typing.Optional[str] = pydantic.Field(default=None)
57
67
  """
58
68
  If set, POST to this URL when the job completes.
letta_client/types/job.py CHANGED
@@ -68,6 +68,16 @@ class Job(UncheckedBaseModel):
68
68
  The type of the job.
69
69
  """
70
70
 
71
+ background: typing.Optional[bool] = pydantic.Field(default=None)
72
+ """
73
+ Whether the job was created in background mode.
74
+ """
75
+
76
+ agent_id: typing.Optional[str] = pydantic.Field(default=None)
77
+ """
78
+ The agent associated with this job/run.
79
+ """
80
+
71
81
  callback_url: typing.Optional[str] = pydantic.Field(default=None)
72
82
  """
73
83
  If set, POST to this URL when the job completes.
letta_client/types/run.py CHANGED
@@ -66,6 +66,16 @@ class Run(UncheckedBaseModel):
66
66
  """
67
67
 
68
68
  job_type: typing.Optional[JobType] = None
69
+ background: typing.Optional[bool] = pydantic.Field(default=None)
70
+ """
71
+ Whether the job was created in background mode.
72
+ """
73
+
74
+ agent_id: typing.Optional[str] = pydantic.Field(default=None)
75
+ """
76
+ The agent associated with this job/run.
77
+ """
78
+
69
79
  callback_url: typing.Optional[str] = pydantic.Field(default=None)
70
80
  """
71
81
  If set, POST to this URL when the job completes.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.320
3
+ Version: 0.1.321
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -111,7 +111,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
111
111
  letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py,sha256=kNHfEWFl7u71Pu8NPqutod0a2NXfvq8il05Hqm0iBB4,284
112
112
  letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
113
113
  letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
114
- letta_client/core/client_wrapper.py,sha256=rDiJNHqfu-gHgUhq95Mi2_unv-fwvW6pZ_wrWeF9Cxc,2776
114
+ letta_client/core/client_wrapper.py,sha256=--Qxy6G9D5LNPXWqN6pUtVO4gJfL2uznJvOvkh4C9B8,2776
115
115
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
116
116
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
117
117
  letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -210,13 +210,13 @@ letta_client/providers/types/__init__.py,sha256=jVDiT7mqApU4Q2VZxWEhbljTDDdKn_0I
210
210
  letta_client/providers/types/providers_list_request_order.py,sha256=gKYmSfL5MoQ5bI3wHkN7Ax8SDN-Niyfk4yhOFwhmiqg,164
211
211
  letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
212
212
  letta_client/runs/__init__.py,sha256=QD9MFbOrf_jxsxTQMFJc3TNxL_VMPnPLa_30UAr0GEk,307
213
- letta_client/runs/client.py,sha256=4czIhFQ0vY2YiMhJj02r7Cu-6t0Z6nsLelULRtpjlqY,16206
213
+ letta_client/runs/client.py,sha256=S6G4NDz3xHZZ-GtgMeRMYpZGtzDhWF1YfLq5o2VpF7Q,16466
214
214
  letta_client/runs/messages/__init__.py,sha256=4Drz3WiTGJ6WVnWez4m6bLbjGw9ol_OtAGH0mx1a2ic,169
215
215
  letta_client/runs/messages/client.py,sha256=u0ipd-pFDnw1VKSOFw4CDeVZ7bkXTNJtVAgzaDV2jso,4850
216
216
  letta_client/runs/messages/raw_client.py,sha256=XZG7G9qbXj8cWZq0wil5ZVNTzgFZd5E8NaWIjnvgxm4,6777
217
217
  letta_client/runs/messages/types/__init__.py,sha256=bTPj8YbO4NGt7r_tFoTYFp2PpWmJmJ7yK3kajsNbCQU,191
218
218
  letta_client/runs/messages/types/messages_list_request_order.py,sha256=nHSEtZeZ-uQJ668U-p24AGw7MQzJXjaY7FVJh-RHUTo,163
219
- letta_client/runs/raw_client.py,sha256=bNn4Ax_vyVjzDF_0sQCppVEV1dJXT36CxVQJV7e8T24,27644
219
+ letta_client/runs/raw_client.py,sha256=Qv473j6VMgD9rwxIu_kp278h47OiENVtL8MPLlRttC8,27918
220
220
  letta_client/runs/steps/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
221
221
  letta_client/runs/steps/client.py,sha256=4MiWOwmSiIX-0U_ic5a-x72Svjh2N7q6etXA5VJ9V30,6074
222
222
  letta_client/runs/steps/raw_client.py,sha256=dbM7QYusDn_u4UYZl0I_jK-hCOek_m525we6boGo8jA,7973
@@ -388,7 +388,7 @@ letta_client/types/auth_scheme_field.py,sha256=OFoPs6Xdvw-Z13mb7lQFf25z0IE6Z83f_
388
388
  letta_client/types/bad_request_error_body.py,sha256=FXRnHlblilUaHvShh1ia8TgLy5Z1HWwfx7-OE-6d3AQ,568
389
389
  letta_client/types/base_64_image.py,sha256=Ta6vR3od9sYQGrWgOSrFq7cS0-mm6cGTa2gWdFpSmo0,965
390
390
  letta_client/types/base_tool_rule_schema.py,sha256=e2pHhj1fdWmuBfkyD_MODwCQnM_MrN6LL2CEx0SqKvY,583
391
- letta_client/types/batch_job.py,sha256=zZTk1LqVgB3o75sIP63_UXehAHtX7H46Q_iYUpljZ6I,2813
391
+ letta_client/types/batch_job.py,sha256=kh6dB2wREGsWi24HcWE_DjiaQqEUJ5684D9JdyUVRFk,3078
392
392
  letta_client/types/block.py,sha256=g-uYemwR0gGBgJIad4cMj8gx3gVI8EfhHiLOvrZ_Kv8,3793
393
393
  letta_client/types/block_schema.py,sha256=iCXe0NHt_HQFOoc8rwplIE2GQehgArOotIecrtKKsD4,2304
394
394
  letta_client/types/block_update.py,sha256=jauNp2WlyKT96FgAIpbzWGq4d8oKNWVbxZvepetvl8c,2389
@@ -520,7 +520,7 @@ letta_client/types/internal_template_agent_create_tool_rules_item.py,sha256=zAZ1
520
520
  letta_client/types/internal_template_block_create.py,sha256=zxyp52nkcFrWzgM4IhHqehSwMcSSBSb6f5oD3XHE60c,2199
521
521
  letta_client/types/internal_template_group_create.py,sha256=nTFITl4Q6sRlYe4heRL7p55ZxVc1FD0nG3O96d0UHTw,1588
522
522
  letta_client/types/internal_template_group_create_manager_config.py,sha256=zAX6KW-UB6dyqXSm2Wtp30wRfitANePpuoulLzsQm7M,490
523
- letta_client/types/job.py,sha256=uKxRweIFwpdXONfO4FqPjfiONwaZPVRdw0THwd6_YS8,3375
523
+ letta_client/types/job.py,sha256=h5glsav9O_WLgIJUrFYVGyxcou7ECGPjCJSN6klg9OQ,3640
524
524
  letta_client/types/job_status.py,sha256=hfkoSxAxkPegq1FSzzCTWQCBzoJwlvyrYnxtC0LzfUs,219
525
525
  letta_client/types/job_type.py,sha256=HXYrfzPwxI54PqV7OVcMhewSJ_pBNHc14s9LcExr7Ss,154
526
526
  letta_client/types/json_object_response_format.py,sha256=POxWWP3fHht3VcaQfpoMJ1HcyjItiv05zbfgILUbMww,676
@@ -616,7 +616,7 @@ letta_client/types/response_format_json_schema.py,sha256=Yxz8QL1_s7vIAuzap82IPfy
616
616
  letta_client/types/response_format_text.py,sha256=q9U4VDi57FPpqCVVPk-_21e0fbIohBPLDqWR-tAV2ls,592
617
617
  letta_client/types/round_robin_manager.py,sha256=cGnv5WFZowjguzNLX9Nv3DDfdgzDolN3onSkLLjAl6Y,701
618
618
  letta_client/types/round_robin_manager_update.py,sha256=0auliO4ChHHCexaiEfXKmERz_4IWz5YvjRsQHbUqVCI,707
619
- letta_client/types/run.py,sha256=c3d4hml1d2LJ-iP0CHObNUb-L-iiSZfddcvI_d0dd3o,3559
619
+ letta_client/types/run.py,sha256=9yllUOPYAGZMD7s-YjF7GZ56OnGyz1NWCV8pqNGu4o4,3824
620
620
  letta_client/types/sandbox_config.py,sha256=YWQpDOHkiqEtp-xa4jjQA3QyGq4ZXNU8UDardnAvxhw,1551
621
621
  letta_client/types/sandbox_config_create.py,sha256=fGMGiKbuf5ii1o-tHRHAjnAu0FB4JktMjlvu6uBRAsY,731
622
622
  letta_client/types/sandbox_config_create_config.py,sha256=0jPsYtxeoRXMLppFjWZCCjyobuBvlkf-GhAOdH8bmt4,337
@@ -695,6 +695,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
695
695
  letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
696
696
  letta_client/voice/client.py,sha256=MS0lkcQ1jxA6tjhL8Y0InMWFrUshvSHnWIfdD6pRe-0,3542
697
697
  letta_client/voice/raw_client.py,sha256=W6mPMWqUMclyAMT3-gxOg5yLm_oGhaOdSmwciiiYt50,5618
698
- letta_client-0.1.320.dist-info/METADATA,sha256=HnfcKi14GY9ao6IF2Lms3sawZB2wHqjqMV2kvfBSpNo,5820
699
- letta_client-0.1.320.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
700
- letta_client-0.1.320.dist-info/RECORD,,
698
+ letta_client-0.1.321.dist-info/METADATA,sha256=JxnTOHEn6llxRgV7HdNOH5BJ5Ern1sFVNZRySsywTu0,5820
699
+ letta_client-0.1.321.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
700
+ letta_client-0.1.321.dist-info/RECORD,,