letta-client 1.0.0a9__py3-none-any.whl → 1.0.0a10__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.

Files changed (45) hide show
  1. letta_client/_version.py +1 -1
  2. letta_client/resources/agents/agents.py +396 -396
  3. letta_client/resources/agents/blocks.py +200 -190
  4. letta_client/resources/agents/messages.py +367 -367
  5. letta_client/resources/archives.py +101 -101
  6. letta_client/resources/blocks/blocks.py +241 -222
  7. letta_client/resources/folders/folders.py +133 -133
  8. letta_client/resources/groups/groups.py +141 -141
  9. letta_client/resources/groups/messages.py +198 -198
  10. letta_client/resources/identities/blocks.py +7 -7
  11. letta_client/resources/identities/identities.py +141 -141
  12. letta_client/resources/tools.py +794 -194
  13. letta_client/types/__init__.py +11 -7
  14. letta_client/types/{agent_update_params.py → agent_modify_params.py} +2 -2
  15. letta_client/types/agent_state.py +6 -3
  16. letta_client/types/agents/__init__.py +6 -3
  17. letta_client/types/agents/block.py +6 -3
  18. letta_client/types/agents/block_list_response.py +63 -0
  19. letta_client/types/agents/{block_update_params.py → block_modify_params.py} +8 -5
  20. letta_client/types/agents/block_modify_response.py +63 -0
  21. letta_client/types/agents/block_retrieve_response.py +63 -0
  22. letta_client/types/agents/{message_update_params.py → message_modify_params.py} +2 -2
  23. letta_client/types/agents/{message_update_response.py → message_modify_response.py} +2 -2
  24. letta_client/types/{archive_update_params.py → archive_modify_params.py} +2 -2
  25. letta_client/types/block_create_params.py +6 -3
  26. letta_client/types/block_create_response.py +63 -0
  27. letta_client/types/block_list_response.py +63 -0
  28. letta_client/types/{block_update_params.py → block_modify_params.py} +8 -5
  29. letta_client/types/block_modify_response.py +63 -0
  30. letta_client/types/block_retrieve_response.py +63 -0
  31. letta_client/types/create_block_param.py +6 -3
  32. letta_client/types/{folder_update_params.py → folder_modify_params.py} +2 -2
  33. letta_client/types/{group_update_params.py → group_modify_params.py} +2 -2
  34. letta_client/types/groups/__init__.py +2 -2
  35. letta_client/types/groups/{message_update_params.py → message_modify_params.py} +2 -2
  36. letta_client/types/groups/{message_update_response.py → message_modify_response.py} +2 -2
  37. letta_client/types/identities/__init__.py +1 -0
  38. letta_client/types/identities/block_list_response.py +63 -0
  39. letta_client/types/{identity_update_params.py → identity_modify_params.py} +2 -2
  40. letta_client/types/tool.py +106 -2
  41. letta_client/types/{tool_update_params.py → tool_modify_params.py} +2 -2
  42. {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a10.dist-info}/METADATA +1 -1
  43. {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a10.dist-info}/RECORD +45 -37
  44. {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a10.dist-info}/WHEEL +0 -0
  45. {letta_client-1.0.0a9.dist-info → letta_client-1.0.0a10.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
 
8
8
  import httpx
9
9
 
10
- from ..types import archive_list_params, archive_create_params, archive_update_params
10
+ from ..types import archive_list_params, archive_create_params, archive_modify_params
11
11
  from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
12
12
  from .._utils import maybe_transform, async_maybe_transform
13
13
  from .._compat import cached_property
@@ -124,50 +124,6 @@ class ArchivesResource(SyncAPIResource):
124
124
  cast_to=Archive,
125
125
  )
126
126
 
127
- def update(
128
- self,
129
- archive_id: str,
130
- *,
131
- description: Optional[str] | Omit = omit,
132
- name: Optional[str] | Omit = omit,
133
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
134
- # The extra values given here take precedence over values defined on the client or passed to this method.
135
- extra_headers: Headers | None = None,
136
- extra_query: Query | None = None,
137
- extra_body: Body | None = None,
138
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
139
- ) -> Archive:
140
- """
141
- Update an existing archive's name and/or description.
142
-
143
- Args:
144
- archive_id: The ID of the archive in the format 'archive-<uuid4>'
145
-
146
- extra_headers: Send extra headers
147
-
148
- extra_query: Add additional query parameters to the request
149
-
150
- extra_body: Add additional JSON properties to the request
151
-
152
- timeout: Override the client-level default timeout for this request, in seconds
153
- """
154
- if not archive_id:
155
- raise ValueError(f"Expected a non-empty value for `archive_id` but received {archive_id!r}")
156
- return self._patch(
157
- f"/v1/archives/{archive_id}",
158
- body=maybe_transform(
159
- {
160
- "description": description,
161
- "name": name,
162
- },
163
- archive_update_params.ArchiveUpdateParams,
164
- ),
165
- options=make_request_options(
166
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
167
- ),
168
- cast_to=Archive,
169
- )
170
-
171
127
  def list(
172
128
  self,
173
129
  *,
@@ -274,6 +230,50 @@ class ArchivesResource(SyncAPIResource):
274
230
  cast_to=Archive,
275
231
  )
276
232
 
233
+ def modify(
234
+ self,
235
+ archive_id: str,
236
+ *,
237
+ description: Optional[str] | Omit = omit,
238
+ name: Optional[str] | Omit = omit,
239
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
240
+ # The extra values given here take precedence over values defined on the client or passed to this method.
241
+ extra_headers: Headers | None = None,
242
+ extra_query: Query | None = None,
243
+ extra_body: Body | None = None,
244
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
245
+ ) -> Archive:
246
+ """
247
+ Update an existing archive's name and/or description.
248
+
249
+ Args:
250
+ archive_id: The ID of the archive in the format 'archive-<uuid4>'
251
+
252
+ extra_headers: Send extra headers
253
+
254
+ extra_query: Add additional query parameters to the request
255
+
256
+ extra_body: Add additional JSON properties to the request
257
+
258
+ timeout: Override the client-level default timeout for this request, in seconds
259
+ """
260
+ if not archive_id:
261
+ raise ValueError(f"Expected a non-empty value for `archive_id` but received {archive_id!r}")
262
+ return self._patch(
263
+ f"/v1/archives/{archive_id}",
264
+ body=maybe_transform(
265
+ {
266
+ "description": description,
267
+ "name": name,
268
+ },
269
+ archive_modify_params.ArchiveModifyParams,
270
+ ),
271
+ options=make_request_options(
272
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
273
+ ),
274
+ cast_to=Archive,
275
+ )
276
+
277
277
 
278
278
  class AsyncArchivesResource(AsyncAPIResource):
279
279
  @cached_property
@@ -373,50 +373,6 @@ class AsyncArchivesResource(AsyncAPIResource):
373
373
  cast_to=Archive,
374
374
  )
375
375
 
376
- async def update(
377
- self,
378
- archive_id: str,
379
- *,
380
- description: Optional[str] | Omit = omit,
381
- name: Optional[str] | Omit = omit,
382
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
383
- # The extra values given here take precedence over values defined on the client or passed to this method.
384
- extra_headers: Headers | None = None,
385
- extra_query: Query | None = None,
386
- extra_body: Body | None = None,
387
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
388
- ) -> Archive:
389
- """
390
- Update an existing archive's name and/or description.
391
-
392
- Args:
393
- archive_id: The ID of the archive in the format 'archive-<uuid4>'
394
-
395
- extra_headers: Send extra headers
396
-
397
- extra_query: Add additional query parameters to the request
398
-
399
- extra_body: Add additional JSON properties to the request
400
-
401
- timeout: Override the client-level default timeout for this request, in seconds
402
- """
403
- if not archive_id:
404
- raise ValueError(f"Expected a non-empty value for `archive_id` but received {archive_id!r}")
405
- return await self._patch(
406
- f"/v1/archives/{archive_id}",
407
- body=await async_maybe_transform(
408
- {
409
- "description": description,
410
- "name": name,
411
- },
412
- archive_update_params.ArchiveUpdateParams,
413
- ),
414
- options=make_request_options(
415
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
416
- ),
417
- cast_to=Archive,
418
- )
419
-
420
376
  def list(
421
377
  self,
422
378
  *,
@@ -523,6 +479,50 @@ class AsyncArchivesResource(AsyncAPIResource):
523
479
  cast_to=Archive,
524
480
  )
525
481
 
482
+ async def modify(
483
+ self,
484
+ archive_id: str,
485
+ *,
486
+ description: Optional[str] | Omit = omit,
487
+ name: Optional[str] | Omit = omit,
488
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
489
+ # The extra values given here take precedence over values defined on the client or passed to this method.
490
+ extra_headers: Headers | None = None,
491
+ extra_query: Query | None = None,
492
+ extra_body: Body | None = None,
493
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
494
+ ) -> Archive:
495
+ """
496
+ Update an existing archive's name and/or description.
497
+
498
+ Args:
499
+ archive_id: The ID of the archive in the format 'archive-<uuid4>'
500
+
501
+ extra_headers: Send extra headers
502
+
503
+ extra_query: Add additional query parameters to the request
504
+
505
+ extra_body: Add additional JSON properties to the request
506
+
507
+ timeout: Override the client-level default timeout for this request, in seconds
508
+ """
509
+ if not archive_id:
510
+ raise ValueError(f"Expected a non-empty value for `archive_id` but received {archive_id!r}")
511
+ return await self._patch(
512
+ f"/v1/archives/{archive_id}",
513
+ body=await async_maybe_transform(
514
+ {
515
+ "description": description,
516
+ "name": name,
517
+ },
518
+ archive_modify_params.ArchiveModifyParams,
519
+ ),
520
+ options=make_request_options(
521
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
522
+ ),
523
+ cast_to=Archive,
524
+ )
525
+
526
526
 
527
527
  class ArchivesResourceWithRawResponse:
528
528
  def __init__(self, archives: ArchivesResource) -> None:
@@ -534,15 +534,15 @@ class ArchivesResourceWithRawResponse:
534
534
  self.retrieve = to_raw_response_wrapper(
535
535
  archives.retrieve,
536
536
  )
537
- self.update = to_raw_response_wrapper(
538
- archives.update,
539
- )
540
537
  self.list = to_raw_response_wrapper(
541
538
  archives.list,
542
539
  )
543
540
  self.delete = to_raw_response_wrapper(
544
541
  archives.delete,
545
542
  )
543
+ self.modify = to_raw_response_wrapper(
544
+ archives.modify,
545
+ )
546
546
 
547
547
 
548
548
  class AsyncArchivesResourceWithRawResponse:
@@ -555,15 +555,15 @@ class AsyncArchivesResourceWithRawResponse:
555
555
  self.retrieve = async_to_raw_response_wrapper(
556
556
  archives.retrieve,
557
557
  )
558
- self.update = async_to_raw_response_wrapper(
559
- archives.update,
560
- )
561
558
  self.list = async_to_raw_response_wrapper(
562
559
  archives.list,
563
560
  )
564
561
  self.delete = async_to_raw_response_wrapper(
565
562
  archives.delete,
566
563
  )
564
+ self.modify = async_to_raw_response_wrapper(
565
+ archives.modify,
566
+ )
567
567
 
568
568
 
569
569
  class ArchivesResourceWithStreamingResponse:
@@ -576,15 +576,15 @@ class ArchivesResourceWithStreamingResponse:
576
576
  self.retrieve = to_streamed_response_wrapper(
577
577
  archives.retrieve,
578
578
  )
579
- self.update = to_streamed_response_wrapper(
580
- archives.update,
581
- )
582
579
  self.list = to_streamed_response_wrapper(
583
580
  archives.list,
584
581
  )
585
582
  self.delete = to_streamed_response_wrapper(
586
583
  archives.delete,
587
584
  )
585
+ self.modify = to_streamed_response_wrapper(
586
+ archives.modify,
587
+ )
588
588
 
589
589
 
590
590
  class AsyncArchivesResourceWithStreamingResponse:
@@ -597,12 +597,12 @@ class AsyncArchivesResourceWithStreamingResponse:
597
597
  self.retrieve = async_to_streamed_response_wrapper(
598
598
  archives.retrieve,
599
599
  )
600
- self.update = async_to_streamed_response_wrapper(
601
- archives.update,
602
- )
603
600
  self.list = async_to_streamed_response_wrapper(
604
601
  archives.list,
605
602
  )
606
603
  self.delete = async_to_streamed_response_wrapper(
607
604
  archives.delete,
608
605
  )
606
+ self.modify = async_to_streamed_response_wrapper(
607
+ archives.modify,
608
+ )