letta-client 0.1.192__py3-none-any.whl → 0.1.193__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/agents/client.py +22 -2
- letta_client/core/client_wrapper.py +1 -1
- {letta_client-0.1.192.dist-info → letta_client-0.1.193.dist-info}/METADATA +1 -1
- {letta_client-0.1.192.dist-info → letta_client-0.1.193.dist-info}/RECORD +5 -5
- {letta_client-0.1.192.dist-info → letta_client-0.1.193.dist-info}/WHEEL +0 -0
|
@@ -18,7 +18,11 @@ class AgentsClient:
|
|
|
18
18
|
self._client_wrapper = client_wrapper
|
|
19
19
|
|
|
20
20
|
def list(
|
|
21
|
-
self,
|
|
21
|
+
self,
|
|
22
|
+
block_id: str,
|
|
23
|
+
*,
|
|
24
|
+
include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
25
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
22
26
|
) -> typing.List[AgentState]:
|
|
23
27
|
"""
|
|
24
28
|
Retrieves all agents associated with the specified block.
|
|
@@ -28,6 +32,9 @@ class AgentsClient:
|
|
|
28
32
|
----------
|
|
29
33
|
block_id : str
|
|
30
34
|
|
|
35
|
+
include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
36
|
+
Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
37
|
+
|
|
31
38
|
request_options : typing.Optional[RequestOptions]
|
|
32
39
|
Request-specific configuration.
|
|
33
40
|
|
|
@@ -51,6 +58,9 @@ class AgentsClient:
|
|
|
51
58
|
_response = self._client_wrapper.httpx_client.request(
|
|
52
59
|
f"v1/blocks/{jsonable_encoder(block_id)}/agents",
|
|
53
60
|
method="GET",
|
|
61
|
+
params={
|
|
62
|
+
"include_relationships": include_relationships,
|
|
63
|
+
},
|
|
54
64
|
request_options=request_options,
|
|
55
65
|
)
|
|
56
66
|
try:
|
|
@@ -83,7 +93,11 @@ class AsyncAgentsClient:
|
|
|
83
93
|
self._client_wrapper = client_wrapper
|
|
84
94
|
|
|
85
95
|
async def list(
|
|
86
|
-
self,
|
|
96
|
+
self,
|
|
97
|
+
block_id: str,
|
|
98
|
+
*,
|
|
99
|
+
include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
100
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
87
101
|
) -> typing.List[AgentState]:
|
|
88
102
|
"""
|
|
89
103
|
Retrieves all agents associated with the specified block.
|
|
@@ -93,6 +107,9 @@ class AsyncAgentsClient:
|
|
|
93
107
|
----------
|
|
94
108
|
block_id : str
|
|
95
109
|
|
|
110
|
+
include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
111
|
+
Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
112
|
+
|
|
96
113
|
request_options : typing.Optional[RequestOptions]
|
|
97
114
|
Request-specific configuration.
|
|
98
115
|
|
|
@@ -124,6 +141,9 @@ class AsyncAgentsClient:
|
|
|
124
141
|
_response = await self._client_wrapper.httpx_client.request(
|
|
125
142
|
f"v1/blocks/{jsonable_encoder(block_id)}/agents",
|
|
126
143
|
method="GET",
|
|
144
|
+
params={
|
|
145
|
+
"include_relationships": include_relationships,
|
|
146
|
+
},
|
|
127
147
|
request_options=request_options,
|
|
128
148
|
)
|
|
129
149
|
try:
|
|
@@ -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.193",
|
|
28
28
|
}
|
|
29
29
|
if self._project is not None:
|
|
30
30
|
headers["X-Project"] = self._project
|
|
@@ -51,7 +51,7 @@ letta_client/batches/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa
|
|
|
51
51
|
letta_client/batches/client.py,sha256=DHnsRYHgxVh6OvfAE8etlbno1FMg4cIzAYiydJrfmJM,19730
|
|
52
52
|
letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
|
|
53
53
|
letta_client/blocks/agents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
54
|
-
letta_client/blocks/agents/client.py,sha256=
|
|
54
|
+
letta_client/blocks/agents/client.py,sha256=2mBOt6CZanLUi_8Nc-bthaGoKhU3WgSA9vL1UjMdZE8,6066
|
|
55
55
|
letta_client/blocks/client.py,sha256=N4wZjI0gCDOQDgquwAnV9FfVPUudxo-js5AEzW8rJz0,32107
|
|
56
56
|
letta_client/client.py,sha256=iXqKTuQ0F9jIjkTwD73apLlLQqUF1IF6V_PhenY_CJo,22470
|
|
57
57
|
letta_client/client_side_access_tokens/__init__.py,sha256=z_wHT4UTBK7RzDIfLpdLMtBJBuuDosqgbzdmx-QME_o,763
|
|
@@ -65,7 +65,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
65
65
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
66
66
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
67
67
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
68
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
68
|
+
letta_client/core/client_wrapper.py,sha256=trHSvqyebrhrxcu-6p1Hk3G3hRJK3IEWA8bLzWUANzo,2336
|
|
69
69
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
70
70
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
71
71
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -418,6 +418,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
|
|
|
418
418
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
419
419
|
letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
420
420
|
letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
|
|
421
|
-
letta_client-0.1.
|
|
422
|
-
letta_client-0.1.
|
|
423
|
-
letta_client-0.1.
|
|
421
|
+
letta_client-0.1.193.dist-info/METADATA,sha256=ZkhgUgjA5D8-j9LfLuS7PQACfpiLV6_ptgmM4EeArc8,5177
|
|
422
|
+
letta_client-0.1.193.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
423
|
+
letta_client-0.1.193.dist-info/RECORD,,
|
|
File without changes
|