letta-client 0.1.67__py3-none-any.whl → 0.1.68__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/agents/client.py +26 -12
- letta_client/core/client_wrapper.py +1 -1
- {letta_client-0.1.67.dist-info → letta_client-0.1.68.dist-info}/METADATA +1 -1
- {letta_client-0.1.67.dist-info → letta_client-0.1.68.dist-info}/RECORD +5 -5
- {letta_client-0.1.67.dist-info → letta_client-0.1.68.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -75,11 +75,14 @@ class AgentsClient:
|
|
|
75
75
|
base_template_id: typing.Optional[str] = None,
|
|
76
76
|
identity_id: typing.Optional[str] = None,
|
|
77
77
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
78
|
+
include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
78
79
|
request_options: typing.Optional[RequestOptions] = None,
|
|
79
80
|
) -> typing.List[AgentState]:
|
|
80
81
|
"""
|
|
81
82
|
List all agents associated with a given user.
|
|
82
|
-
|
|
83
|
+
|
|
84
|
+
This endpoint retrieves a list of all agents and their configurations
|
|
85
|
+
associated with the specified user ID.
|
|
83
86
|
|
|
84
87
|
Parameters
|
|
85
88
|
----------
|
|
@@ -90,7 +93,7 @@ class AgentsClient:
|
|
|
90
93
|
List of tags to filter agents by
|
|
91
94
|
|
|
92
95
|
match_all_tags : typing.Optional[bool]
|
|
93
|
-
If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed
|
|
96
|
+
If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed-in tags.
|
|
94
97
|
|
|
95
98
|
before : typing.Optional[str]
|
|
96
99
|
Cursor for pagination
|
|
@@ -105,20 +108,23 @@ class AgentsClient:
|
|
|
105
108
|
Search agents by name
|
|
106
109
|
|
|
107
110
|
project_id : typing.Optional[str]
|
|
108
|
-
Search agents by project
|
|
111
|
+
Search agents by project ID
|
|
109
112
|
|
|
110
113
|
template_id : typing.Optional[str]
|
|
111
|
-
Search agents by template
|
|
114
|
+
Search agents by template ID
|
|
112
115
|
|
|
113
116
|
base_template_id : typing.Optional[str]
|
|
114
|
-
Search agents by base template
|
|
117
|
+
Search agents by base template ID
|
|
115
118
|
|
|
116
119
|
identity_id : typing.Optional[str]
|
|
117
|
-
Search agents by
|
|
120
|
+
Search agents by identity ID
|
|
118
121
|
|
|
119
122
|
identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
120
123
|
Search agents by identifier keys
|
|
121
124
|
|
|
125
|
+
include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
126
|
+
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.
|
|
127
|
+
|
|
122
128
|
request_options : typing.Optional[RequestOptions]
|
|
123
129
|
Request-specific configuration.
|
|
124
130
|
|
|
@@ -152,6 +158,7 @@ class AgentsClient:
|
|
|
152
158
|
"base_template_id": base_template_id,
|
|
153
159
|
"identity_id": identity_id,
|
|
154
160
|
"identifier_keys": identifier_keys,
|
|
161
|
+
"include_relationships": include_relationships,
|
|
155
162
|
},
|
|
156
163
|
request_options=request_options,
|
|
157
164
|
)
|
|
@@ -1144,11 +1151,14 @@ class AsyncAgentsClient:
|
|
|
1144
1151
|
base_template_id: typing.Optional[str] = None,
|
|
1145
1152
|
identity_id: typing.Optional[str] = None,
|
|
1146
1153
|
identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
1154
|
+
include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
|
|
1147
1155
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1148
1156
|
) -> typing.List[AgentState]:
|
|
1149
1157
|
"""
|
|
1150
1158
|
List all agents associated with a given user.
|
|
1151
|
-
|
|
1159
|
+
|
|
1160
|
+
This endpoint retrieves a list of all agents and their configurations
|
|
1161
|
+
associated with the specified user ID.
|
|
1152
1162
|
|
|
1153
1163
|
Parameters
|
|
1154
1164
|
----------
|
|
@@ -1159,7 +1169,7 @@ class AsyncAgentsClient:
|
|
|
1159
1169
|
List of tags to filter agents by
|
|
1160
1170
|
|
|
1161
1171
|
match_all_tags : typing.Optional[bool]
|
|
1162
|
-
If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed
|
|
1172
|
+
If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed-in tags.
|
|
1163
1173
|
|
|
1164
1174
|
before : typing.Optional[str]
|
|
1165
1175
|
Cursor for pagination
|
|
@@ -1174,20 +1184,23 @@ class AsyncAgentsClient:
|
|
|
1174
1184
|
Search agents by name
|
|
1175
1185
|
|
|
1176
1186
|
project_id : typing.Optional[str]
|
|
1177
|
-
Search agents by project
|
|
1187
|
+
Search agents by project ID
|
|
1178
1188
|
|
|
1179
1189
|
template_id : typing.Optional[str]
|
|
1180
|
-
Search agents by template
|
|
1190
|
+
Search agents by template ID
|
|
1181
1191
|
|
|
1182
1192
|
base_template_id : typing.Optional[str]
|
|
1183
|
-
Search agents by base template
|
|
1193
|
+
Search agents by base template ID
|
|
1184
1194
|
|
|
1185
1195
|
identity_id : typing.Optional[str]
|
|
1186
|
-
Search agents by
|
|
1196
|
+
Search agents by identity ID
|
|
1187
1197
|
|
|
1188
1198
|
identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
1189
1199
|
Search agents by identifier keys
|
|
1190
1200
|
|
|
1201
|
+
include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
|
|
1202
|
+
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.
|
|
1203
|
+
|
|
1191
1204
|
request_options : typing.Optional[RequestOptions]
|
|
1192
1205
|
Request-specific configuration.
|
|
1193
1206
|
|
|
@@ -1229,6 +1242,7 @@ class AsyncAgentsClient:
|
|
|
1229
1242
|
"base_template_id": base_template_id,
|
|
1230
1243
|
"identity_id": identity_id,
|
|
1231
1244
|
"identifier_keys": identifier_keys,
|
|
1245
|
+
"include_relationships": include_relationships,
|
|
1232
1246
|
},
|
|
1233
1247
|
request_options=request_options,
|
|
1234
1248
|
)
|
|
@@ -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.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.68",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=I_RHb0CWzUnMjrx22uxHAArBtKwLe1KJZKEhX7byUFc,6335
|
|
|
2
2
|
letta_client/agents/__init__.py,sha256=HMLlMwIDoMSMsE99OMGYmDQbdZcYWScYF2L1bW_2zKA,25036
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=u5zvutxoH_DqfSLWhRtNSRBC9_ezQDx682cxkxDz3JA,23822
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=GaTQF74VZFDiwk41_51aKxE3XrmZ3qEan28PMW6_8r8,84805
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -228,7 +228,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
|
|
|
228
228
|
letta_client/client.py,sha256=xdSrD4IkWokZHujowd1r7zESBoVgKGNvo6RqgZ3f0Fg,12808
|
|
229
229
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
230
230
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
231
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
231
|
+
letta_client/core/client_wrapper.py,sha256=KqE3E4bY3ST81pw9uY7wqojiHMuma6TVSSljQYVw6h0,1997
|
|
232
232
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
233
233
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
234
234
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -657,6 +657,6 @@ letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7Vvnip
|
|
|
657
657
|
letta_client/voice/client.py,sha256=O38dLq__WTwLPlFTtvw1hgqaPYK9alds_ft12Bnp5fs,6475
|
|
658
658
|
letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
|
|
659
659
|
letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
|
|
660
|
-
letta_client-0.1.
|
|
661
|
-
letta_client-0.1.
|
|
662
|
-
letta_client-0.1.
|
|
660
|
+
letta_client-0.1.68.dist-info/METADATA,sha256=9FqiCGG04rFG6MWvyX6j2W054dUj-NpEyEwcWN_gs5c,4942
|
|
661
|
+
letta_client-0.1.68.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
662
|
+
letta_client-0.1.68.dist-info/RECORD,,
|
|
File without changes
|