letta-client 0.1.228__py3-none-any.whl → 0.1.230__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/blocks/client.py +80 -0
- letta_client/core/client_wrapper.py +1 -1
- {letta_client-0.1.228.dist-info → letta_client-0.1.230.dist-info}/METADATA +1 -1
- {letta_client-0.1.228.dist-info → letta_client-0.1.230.dist-info}/RECORD +5 -5
- {letta_client-0.1.228.dist-info → letta_client-0.1.230.dist-info}/WHEEL +0 -0
letta_client/blocks/client.py
CHANGED
|
@@ -33,6 +33,14 @@ class BlocksClient:
|
|
|
33
33
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
34
34
|
project_id: typing.Optional[str] = None,
|
|
35
35
|
limit: typing.Optional[int] = None,
|
|
36
|
+
before: typing.Optional[str] = None,
|
|
37
|
+
after: typing.Optional[str] = None,
|
|
38
|
+
label_search: typing.Optional[str] = None,
|
|
39
|
+
description_search: typing.Optional[str] = None,
|
|
40
|
+
value_search: typing.Optional[str] = None,
|
|
41
|
+
connected_to_agents_count_gt: typing.Optional[int] = None,
|
|
42
|
+
connected_to_agents_count_lt: typing.Optional[int] = None,
|
|
43
|
+
connected_to_agents_count_eq: typing.Optional[typing.Union[int, typing.Sequence[int]]] = None,
|
|
36
44
|
request_options: typing.Optional[RequestOptions] = None,
|
|
37
45
|
) -> typing.List[Block]:
|
|
38
46
|
"""
|
|
@@ -59,6 +67,30 @@ class BlocksClient:
|
|
|
59
67
|
limit : typing.Optional[int]
|
|
60
68
|
Number of blocks to return
|
|
61
69
|
|
|
70
|
+
before : typing.Optional[str]
|
|
71
|
+
Cursor for pagination. If provided, returns blocks before this cursor.
|
|
72
|
+
|
|
73
|
+
after : typing.Optional[str]
|
|
74
|
+
Cursor for pagination. If provided, returns blocks after this cursor.
|
|
75
|
+
|
|
76
|
+
label_search : typing.Optional[str]
|
|
77
|
+
Search blocks by label. If provided, returns blocks that match this label. This is a full-text search on labels.
|
|
78
|
+
|
|
79
|
+
description_search : typing.Optional[str]
|
|
80
|
+
Search blocks by description. If provided, returns blocks that match this description. This is a full-text search on block descriptions.
|
|
81
|
+
|
|
82
|
+
value_search : typing.Optional[str]
|
|
83
|
+
Search blocks by value. If provided, returns blocks that match this value.
|
|
84
|
+
|
|
85
|
+
connected_to_agents_count_gt : typing.Optional[int]
|
|
86
|
+
Filter blocks by the number of connected agents. If provided, returns blocks that have more than this number of connected agents.
|
|
87
|
+
|
|
88
|
+
connected_to_agents_count_lt : typing.Optional[int]
|
|
89
|
+
Filter blocks by the number of connected agents. If provided, returns blocks that have less than this number of connected agents.
|
|
90
|
+
|
|
91
|
+
connected_to_agents_count_eq : typing.Optional[typing.Union[int, typing.Sequence[int]]]
|
|
92
|
+
Filter blocks by the exact number of connected agents. If provided, returns blocks that have exactly this number of connected agents.
|
|
93
|
+
|
|
62
94
|
request_options : typing.Optional[RequestOptions]
|
|
63
95
|
Request-specific configuration.
|
|
64
96
|
|
|
@@ -88,6 +120,14 @@ class BlocksClient:
|
|
|
88
120
|
"identifier_keys": identifier_keys,
|
|
89
121
|
"project_id": project_id,
|
|
90
122
|
"limit": limit,
|
|
123
|
+
"before": before,
|
|
124
|
+
"after": after,
|
|
125
|
+
"label_search": label_search,
|
|
126
|
+
"description_search": description_search,
|
|
127
|
+
"value_search": value_search,
|
|
128
|
+
"connected_to_agents_count_gt": connected_to_agents_count_gt,
|
|
129
|
+
"connected_to_agents_count_lt": connected_to_agents_count_lt,
|
|
130
|
+
"connected_to_agents_count_eq": connected_to_agents_count_eq,
|
|
91
131
|
},
|
|
92
132
|
request_options=request_options,
|
|
93
133
|
)
|
|
@@ -519,6 +559,14 @@ class AsyncBlocksClient:
|
|
|
519
559
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
520
560
|
project_id: typing.Optional[str] = None,
|
|
521
561
|
limit: typing.Optional[int] = None,
|
|
562
|
+
before: typing.Optional[str] = None,
|
|
563
|
+
after: typing.Optional[str] = None,
|
|
564
|
+
label_search: typing.Optional[str] = None,
|
|
565
|
+
description_search: typing.Optional[str] = None,
|
|
566
|
+
value_search: typing.Optional[str] = None,
|
|
567
|
+
connected_to_agents_count_gt: typing.Optional[int] = None,
|
|
568
|
+
connected_to_agents_count_lt: typing.Optional[int] = None,
|
|
569
|
+
connected_to_agents_count_eq: typing.Optional[typing.Union[int, typing.Sequence[int]]] = None,
|
|
522
570
|
request_options: typing.Optional[RequestOptions] = None,
|
|
523
571
|
) -> typing.List[Block]:
|
|
524
572
|
"""
|
|
@@ -545,6 +593,30 @@ class AsyncBlocksClient:
|
|
|
545
593
|
limit : typing.Optional[int]
|
|
546
594
|
Number of blocks to return
|
|
547
595
|
|
|
596
|
+
before : typing.Optional[str]
|
|
597
|
+
Cursor for pagination. If provided, returns blocks before this cursor.
|
|
598
|
+
|
|
599
|
+
after : typing.Optional[str]
|
|
600
|
+
Cursor for pagination. If provided, returns blocks after this cursor.
|
|
601
|
+
|
|
602
|
+
label_search : typing.Optional[str]
|
|
603
|
+
Search blocks by label. If provided, returns blocks that match this label. This is a full-text search on labels.
|
|
604
|
+
|
|
605
|
+
description_search : typing.Optional[str]
|
|
606
|
+
Search blocks by description. If provided, returns blocks that match this description. This is a full-text search on block descriptions.
|
|
607
|
+
|
|
608
|
+
value_search : typing.Optional[str]
|
|
609
|
+
Search blocks by value. If provided, returns blocks that match this value.
|
|
610
|
+
|
|
611
|
+
connected_to_agents_count_gt : typing.Optional[int]
|
|
612
|
+
Filter blocks by the number of connected agents. If provided, returns blocks that have more than this number of connected agents.
|
|
613
|
+
|
|
614
|
+
connected_to_agents_count_lt : typing.Optional[int]
|
|
615
|
+
Filter blocks by the number of connected agents. If provided, returns blocks that have less than this number of connected agents.
|
|
616
|
+
|
|
617
|
+
connected_to_agents_count_eq : typing.Optional[typing.Union[int, typing.Sequence[int]]]
|
|
618
|
+
Filter blocks by the exact number of connected agents. If provided, returns blocks that have exactly this number of connected agents.
|
|
619
|
+
|
|
548
620
|
request_options : typing.Optional[RequestOptions]
|
|
549
621
|
Request-specific configuration.
|
|
550
622
|
|
|
@@ -582,6 +654,14 @@ class AsyncBlocksClient:
|
|
|
582
654
|
"identifier_keys": identifier_keys,
|
|
583
655
|
"project_id": project_id,
|
|
584
656
|
"limit": limit,
|
|
657
|
+
"before": before,
|
|
658
|
+
"after": after,
|
|
659
|
+
"label_search": label_search,
|
|
660
|
+
"description_search": description_search,
|
|
661
|
+
"value_search": value_search,
|
|
662
|
+
"connected_to_agents_count_gt": connected_to_agents_count_gt,
|
|
663
|
+
"connected_to_agents_count_lt": connected_to_agents_count_lt,
|
|
664
|
+
"connected_to_agents_count_eq": connected_to_agents_count_eq,
|
|
585
665
|
},
|
|
586
666
|
request_options=request_options,
|
|
587
667
|
)
|
|
@@ -24,7 +24,7 @@ class BaseClientWrapper:
|
|
|
24
24
|
headers: typing.Dict[str, str] = {
|
|
25
25
|
"X-Fern-Language": "Python",
|
|
26
26
|
"X-Fern-SDK-Name": "letta-client",
|
|
27
|
-
"X-Fern-SDK-Version": "0.1.
|
|
27
|
+
"X-Fern-SDK-Version": "0.1.230",
|
|
28
28
|
}
|
|
29
29
|
if self._project is not None:
|
|
30
30
|
headers["X-Project"] = self._project
|
|
@@ -57,7 +57,7 @@ letta_client/batches/client.py,sha256=DHnsRYHgxVh6OvfAE8etlbno1FMg4cIzAYiydJrfmJ
|
|
|
57
57
|
letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
|
|
58
58
|
letta_client/blocks/agents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
59
59
|
letta_client/blocks/agents/client.py,sha256=2mBOt6CZanLUi_8Nc-bthaGoKhU3WgSA9vL1UjMdZE8,6066
|
|
60
|
-
letta_client/blocks/client.py,sha256=
|
|
60
|
+
letta_client/blocks/client.py,sha256=WtqD_Uz8i_zn6fgEEJTLi4k4aP3n10Npu1R7dbJxUz4,38007
|
|
61
61
|
letta_client/client.py,sha256=iXqKTuQ0F9jIjkTwD73apLlLQqUF1IF6V_PhenY_CJo,22470
|
|
62
62
|
letta_client/client_side_access_tokens/__init__.py,sha256=e9NgxUsEnfbJVCM2npPuQ02dAS5jlXmneqU9DS6Q3d8,1561
|
|
63
63
|
letta_client/client_side_access_tokens/client.py,sha256=5aiqgKkzXElPgJszjyT-1wPRsBziH32UJwPVGQdZOFg,18215
|
|
@@ -75,7 +75,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
75
75
|
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
|
|
76
76
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
77
77
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
78
|
-
letta_client/core/client_wrapper.py,sha256
|
|
78
|
+
letta_client/core/client_wrapper.py,sha256=9GnDoObOK9cNyNEb3Ab9CmkLcfO0LrScICbfZIT4lN4,2336
|
|
79
79
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
80
80
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
81
81
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -448,6 +448,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
448
448
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
449
449
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
450
450
|
letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
|
|
451
|
-
letta_client-0.1.
|
|
452
|
-
letta_client-0.1.
|
|
453
|
-
letta_client-0.1.
|
|
451
|
+
letta_client-0.1.230.dist-info/METADATA,sha256=5S27hd1qlSDMuTlvLzXHxL9cSVKPhb7ty5ex9krsrUg,5064
|
|
452
|
+
letta_client-0.1.230.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
453
|
+
letta_client-0.1.230.dist-info/RECORD,,
|
|
File without changes
|