letta-client 0.1.81__py3-none-any.whl → 0.1.83__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/passages/client.py +28 -8
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/agent_schema.py +1 -1
- {letta_client-0.1.81.dist-info → letta_client-0.1.83.dist-info}/METADATA +1 -1
- {letta_client-0.1.81.dist-info → letta_client-0.1.83.dist-info}/RECORD +6 -6
- {letta_client-0.1.81.dist-info → letta_client-0.1.83.dist-info}/WHEEL +0 -0
|
@@ -24,9 +24,11 @@ class PassagesClient:
|
|
|
24
24
|
self,
|
|
25
25
|
agent_id: str,
|
|
26
26
|
*,
|
|
27
|
-
after: typing.Optional[
|
|
28
|
-
before: typing.Optional[
|
|
27
|
+
after: typing.Optional[str] = None,
|
|
28
|
+
before: typing.Optional[str] = None,
|
|
29
29
|
limit: typing.Optional[int] = None,
|
|
30
|
+
search: typing.Optional[str] = None,
|
|
31
|
+
ascending: typing.Optional[bool] = None,
|
|
30
32
|
request_options: typing.Optional[RequestOptions] = None,
|
|
31
33
|
) -> typing.List[Passage]:
|
|
32
34
|
"""
|
|
@@ -36,15 +38,21 @@ class PassagesClient:
|
|
|
36
38
|
----------
|
|
37
39
|
agent_id : str
|
|
38
40
|
|
|
39
|
-
after : typing.Optional[
|
|
41
|
+
after : typing.Optional[str]
|
|
40
42
|
Unique ID of the memory to start the query range at.
|
|
41
43
|
|
|
42
|
-
before : typing.Optional[
|
|
44
|
+
before : typing.Optional[str]
|
|
43
45
|
Unique ID of the memory to end the query range at.
|
|
44
46
|
|
|
45
47
|
limit : typing.Optional[int]
|
|
46
48
|
How many results to include in the response.
|
|
47
49
|
|
|
50
|
+
search : typing.Optional[str]
|
|
51
|
+
Search passages by text
|
|
52
|
+
|
|
53
|
+
ascending : typing.Optional[bool]
|
|
54
|
+
Whether to sort passages oldest to newest (True, default) or newest to oldest (False)
|
|
55
|
+
|
|
48
56
|
request_options : typing.Optional[RequestOptions]
|
|
49
57
|
Request-specific configuration.
|
|
50
58
|
|
|
@@ -71,6 +79,8 @@ class PassagesClient:
|
|
|
71
79
|
"after": after,
|
|
72
80
|
"before": before,
|
|
73
81
|
"limit": limit,
|
|
82
|
+
"search": search,
|
|
83
|
+
"ascending": ascending,
|
|
74
84
|
},
|
|
75
85
|
request_options=request_options,
|
|
76
86
|
)
|
|
@@ -237,9 +247,11 @@ class AsyncPassagesClient:
|
|
|
237
247
|
self,
|
|
238
248
|
agent_id: str,
|
|
239
249
|
*,
|
|
240
|
-
after: typing.Optional[
|
|
241
|
-
before: typing.Optional[
|
|
250
|
+
after: typing.Optional[str] = None,
|
|
251
|
+
before: typing.Optional[str] = None,
|
|
242
252
|
limit: typing.Optional[int] = None,
|
|
253
|
+
search: typing.Optional[str] = None,
|
|
254
|
+
ascending: typing.Optional[bool] = None,
|
|
243
255
|
request_options: typing.Optional[RequestOptions] = None,
|
|
244
256
|
) -> typing.List[Passage]:
|
|
245
257
|
"""
|
|
@@ -249,15 +261,21 @@ class AsyncPassagesClient:
|
|
|
249
261
|
----------
|
|
250
262
|
agent_id : str
|
|
251
263
|
|
|
252
|
-
after : typing.Optional[
|
|
264
|
+
after : typing.Optional[str]
|
|
253
265
|
Unique ID of the memory to start the query range at.
|
|
254
266
|
|
|
255
|
-
before : typing.Optional[
|
|
267
|
+
before : typing.Optional[str]
|
|
256
268
|
Unique ID of the memory to end the query range at.
|
|
257
269
|
|
|
258
270
|
limit : typing.Optional[int]
|
|
259
271
|
How many results to include in the response.
|
|
260
272
|
|
|
273
|
+
search : typing.Optional[str]
|
|
274
|
+
Search passages by text
|
|
275
|
+
|
|
276
|
+
ascending : typing.Optional[bool]
|
|
277
|
+
Whether to sort passages oldest to newest (True, default) or newest to oldest (False)
|
|
278
|
+
|
|
261
279
|
request_options : typing.Optional[RequestOptions]
|
|
262
280
|
Request-specific configuration.
|
|
263
281
|
|
|
@@ -292,6 +310,8 @@ class AsyncPassagesClient:
|
|
|
292
310
|
"after": after,
|
|
293
311
|
"before": before,
|
|
294
312
|
"limit": limit,
|
|
313
|
+
"search": search,
|
|
314
|
+
"ascending": ascending,
|
|
295
315
|
},
|
|
296
316
|
request_options=request_options,
|
|
297
317
|
)
|
|
@@ -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.83",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -20,7 +20,7 @@ class AgentSchema(UncheckedBaseModel):
|
|
|
20
20
|
agent_type: str
|
|
21
21
|
core_memory: typing.List[CoreMemoryBlockSchema]
|
|
22
22
|
created_at: str
|
|
23
|
-
description: str
|
|
23
|
+
description: typing.Optional[str] = None
|
|
24
24
|
embedding_config: EmbeddingConfig
|
|
25
25
|
groups: typing.List[typing.Optional[typing.Any]]
|
|
26
26
|
identities: typing.List[typing.Optional[typing.Any]]
|
|
@@ -18,7 +18,7 @@ letta_client/agents/messages/types/letta_streaming_response.py,sha256=MdE2PxQ1x1
|
|
|
18
18
|
letta_client/agents/messages/types/messages_modify_request.py,sha256=7C2X3BKye-YDSXOkdEmxxt34seI4jkLK0-govtc4nhg,475
|
|
19
19
|
letta_client/agents/messages/types/messages_modify_response.py,sha256=f2eITUx-zQ4qzcYd1JPS_mFSqJw7xVsxX7GR7d2RYRI,552
|
|
20
20
|
letta_client/agents/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
21
|
-
letta_client/agents/passages/client.py,sha256=
|
|
21
|
+
letta_client/agents/passages/client.py,sha256=hWC-WHKU-0kwkn5ncPhxALL_wGLCu1JmLlmfDaAOVww,15586
|
|
22
22
|
letta_client/agents/sources/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
23
23
|
letta_client/agents/sources/client.py,sha256=VjmiI0L2RyT3AhqstHunapdbzygTBcNGoT1DiFGRg44,12799
|
|
24
24
|
letta_client/agents/templates/__init__.py,sha256=GGaz6hUZBKGSU4XFlzlC_cMqLxAymHN45RF3WLwkiWY,201
|
|
@@ -234,7 +234,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
|
|
|
234
234
|
letta_client/client.py,sha256=k2mZqqEWciVmEQHgipjCK4kQILk74hpSqzcdNwdql9A,21212
|
|
235
235
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
236
236
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
237
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
237
|
+
letta_client/core/client_wrapper.py,sha256=ahtzMKKVpae6lXJSin1QYu6XciJ0foI-HnQyFlG8c6Y,1997
|
|
238
238
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
239
239
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
240
240
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -483,7 +483,7 @@ letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qV
|
|
|
483
483
|
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
484
484
|
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
485
485
|
letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
|
|
486
|
-
letta_client/types/agent_schema.py,sha256=
|
|
486
|
+
letta_client/types/agent_schema.py,sha256=u3szbE5tw0VZ9lXVzZxj1DX-3GVvr-FZSSYvLKVJ5I8,1834
|
|
487
487
|
letta_client/types/agent_state.py,sha256=hogE7T9E56HzOycCGuv-jmPVsmcA3w7sGsoMnWMW3IY,5196
|
|
488
488
|
letta_client/types/agent_state_tool_rules_item.py,sha256=jrcYmhULwLq704i85rCxW2GJLdz8XnBK0HxBLSkgs6k,539
|
|
489
489
|
letta_client/types/agent_type.py,sha256=BvztKbFTW_Acvc3QPIvzK7JGwSLie1V407byu-VZHz0,195
|
|
@@ -689,6 +689,6 @@ letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7Vvnip
|
|
|
689
689
|
letta_client/voice/client.py,sha256=2KKJiteGk5HQM79ne1jOPl_ZyUTfZM_gXNdZZ_ndPU8,6485
|
|
690
690
|
letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
|
|
691
691
|
letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
|
|
692
|
-
letta_client-0.1.
|
|
693
|
-
letta_client-0.1.
|
|
694
|
-
letta_client-0.1.
|
|
692
|
+
letta_client-0.1.83.dist-info/METADATA,sha256=6xzEtVHpF91M2AWDWjYp1TcD2kbdvh1K_TguJpxb9_8,5041
|
|
693
|
+
letta_client-0.1.83.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
694
|
+
letta_client-0.1.83.dist-info/RECORD,,
|
|
File without changes
|