letta-client 0.1.317__py3-none-any.whl → 0.1.319__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/messages/client.py +12 -2
- letta_client/agents/messages/raw_client.py +12 -2
- letta_client/core/client_wrapper.py +2 -2
- letta_client/types/step_metrics.py +10 -0
- {letta_client-0.1.317.dist-info → letta_client-0.1.319.dist-info}/METADATA +1 -1
- {letta_client-0.1.317.dist-info → letta_client-0.1.319.dist-info}/RECORD +7 -7
- {letta_client-0.1.317.dist-info → letta_client-0.1.319.dist-info}/WHEEL +0 -0
|
@@ -403,13 +403,14 @@ class MessagesClient:
|
|
|
403
403
|
search_mode: typing.Optional[MessageSearchRequestSearchMode] = OMIT,
|
|
404
404
|
roles: typing.Optional[typing.Sequence[MessageRole]] = OMIT,
|
|
405
405
|
project_id: typing.Optional[str] = OMIT,
|
|
406
|
+
template_id: typing.Optional[str] = OMIT,
|
|
406
407
|
limit: typing.Optional[int] = OMIT,
|
|
407
408
|
start_date: typing.Optional[dt.datetime] = OMIT,
|
|
408
409
|
end_date: typing.Optional[dt.datetime] = OMIT,
|
|
409
410
|
request_options: typing.Optional[RequestOptions] = None,
|
|
410
411
|
) -> typing.List[MessageSearchResult]:
|
|
411
412
|
"""
|
|
412
|
-
Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
413
|
+
Search messages across the entire organization with optional project and template filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
413
414
|
|
|
414
415
|
This is a cloud-only feature.
|
|
415
416
|
|
|
@@ -427,6 +428,9 @@ class MessagesClient:
|
|
|
427
428
|
project_id : typing.Optional[str]
|
|
428
429
|
Filter messages by project ID
|
|
429
430
|
|
|
431
|
+
template_id : typing.Optional[str]
|
|
432
|
+
Filter messages by template ID
|
|
433
|
+
|
|
430
434
|
limit : typing.Optional[int]
|
|
431
435
|
Maximum number of results to return
|
|
432
436
|
|
|
@@ -459,6 +463,7 @@ class MessagesClient:
|
|
|
459
463
|
search_mode=search_mode,
|
|
460
464
|
roles=roles,
|
|
461
465
|
project_id=project_id,
|
|
466
|
+
template_id=template_id,
|
|
462
467
|
limit=limit,
|
|
463
468
|
start_date=start_date,
|
|
464
469
|
end_date=end_date,
|
|
@@ -1077,13 +1082,14 @@ class AsyncMessagesClient:
|
|
|
1077
1082
|
search_mode: typing.Optional[MessageSearchRequestSearchMode] = OMIT,
|
|
1078
1083
|
roles: typing.Optional[typing.Sequence[MessageRole]] = OMIT,
|
|
1079
1084
|
project_id: typing.Optional[str] = OMIT,
|
|
1085
|
+
template_id: typing.Optional[str] = OMIT,
|
|
1080
1086
|
limit: typing.Optional[int] = OMIT,
|
|
1081
1087
|
start_date: typing.Optional[dt.datetime] = OMIT,
|
|
1082
1088
|
end_date: typing.Optional[dt.datetime] = OMIT,
|
|
1083
1089
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1084
1090
|
) -> typing.List[MessageSearchResult]:
|
|
1085
1091
|
"""
|
|
1086
|
-
Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
1092
|
+
Search messages across the entire organization with optional project and template filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
1087
1093
|
|
|
1088
1094
|
This is a cloud-only feature.
|
|
1089
1095
|
|
|
@@ -1101,6 +1107,9 @@ class AsyncMessagesClient:
|
|
|
1101
1107
|
project_id : typing.Optional[str]
|
|
1102
1108
|
Filter messages by project ID
|
|
1103
1109
|
|
|
1110
|
+
template_id : typing.Optional[str]
|
|
1111
|
+
Filter messages by template ID
|
|
1112
|
+
|
|
1104
1113
|
limit : typing.Optional[int]
|
|
1105
1114
|
Maximum number of results to return
|
|
1106
1115
|
|
|
@@ -1141,6 +1150,7 @@ class AsyncMessagesClient:
|
|
|
1141
1150
|
search_mode=search_mode,
|
|
1142
1151
|
roles=roles,
|
|
1143
1152
|
project_id=project_id,
|
|
1153
|
+
template_id=template_id,
|
|
1144
1154
|
limit=limit,
|
|
1145
1155
|
start_date=start_date,
|
|
1146
1156
|
end_date=end_date,
|
|
@@ -498,13 +498,14 @@ class RawMessagesClient:
|
|
|
498
498
|
search_mode: typing.Optional[MessageSearchRequestSearchMode] = OMIT,
|
|
499
499
|
roles: typing.Optional[typing.Sequence[MessageRole]] = OMIT,
|
|
500
500
|
project_id: typing.Optional[str] = OMIT,
|
|
501
|
+
template_id: typing.Optional[str] = OMIT,
|
|
501
502
|
limit: typing.Optional[int] = OMIT,
|
|
502
503
|
start_date: typing.Optional[dt.datetime] = OMIT,
|
|
503
504
|
end_date: typing.Optional[dt.datetime] = OMIT,
|
|
504
505
|
request_options: typing.Optional[RequestOptions] = None,
|
|
505
506
|
) -> HttpResponse[typing.List[MessageSearchResult]]:
|
|
506
507
|
"""
|
|
507
|
-
Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
508
|
+
Search messages across the entire organization with optional project and template filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
508
509
|
|
|
509
510
|
This is a cloud-only feature.
|
|
510
511
|
|
|
@@ -522,6 +523,9 @@ class RawMessagesClient:
|
|
|
522
523
|
project_id : typing.Optional[str]
|
|
523
524
|
Filter messages by project ID
|
|
524
525
|
|
|
526
|
+
template_id : typing.Optional[str]
|
|
527
|
+
Filter messages by template ID
|
|
528
|
+
|
|
525
529
|
limit : typing.Optional[int]
|
|
526
530
|
Maximum number of results to return
|
|
527
531
|
|
|
@@ -547,6 +551,7 @@ class RawMessagesClient:
|
|
|
547
551
|
"search_mode": search_mode,
|
|
548
552
|
"roles": roles,
|
|
549
553
|
"project_id": project_id,
|
|
554
|
+
"template_id": template_id,
|
|
550
555
|
"limit": limit,
|
|
551
556
|
"start_date": start_date,
|
|
552
557
|
"end_date": end_date,
|
|
@@ -1275,13 +1280,14 @@ class AsyncRawMessagesClient:
|
|
|
1275
1280
|
search_mode: typing.Optional[MessageSearchRequestSearchMode] = OMIT,
|
|
1276
1281
|
roles: typing.Optional[typing.Sequence[MessageRole]] = OMIT,
|
|
1277
1282
|
project_id: typing.Optional[str] = OMIT,
|
|
1283
|
+
template_id: typing.Optional[str] = OMIT,
|
|
1278
1284
|
limit: typing.Optional[int] = OMIT,
|
|
1279
1285
|
start_date: typing.Optional[dt.datetime] = OMIT,
|
|
1280
1286
|
end_date: typing.Optional[dt.datetime] = OMIT,
|
|
1281
1287
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1282
1288
|
) -> AsyncHttpResponse[typing.List[MessageSearchResult]]:
|
|
1283
1289
|
"""
|
|
1284
|
-
Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
1290
|
+
Search messages across the entire organization with optional project and template filtering. Returns messages with FTS/vector ranks and total RRF score.
|
|
1285
1291
|
|
|
1286
1292
|
This is a cloud-only feature.
|
|
1287
1293
|
|
|
@@ -1299,6 +1305,9 @@ class AsyncRawMessagesClient:
|
|
|
1299
1305
|
project_id : typing.Optional[str]
|
|
1300
1306
|
Filter messages by project ID
|
|
1301
1307
|
|
|
1308
|
+
template_id : typing.Optional[str]
|
|
1309
|
+
Filter messages by template ID
|
|
1310
|
+
|
|
1302
1311
|
limit : typing.Optional[int]
|
|
1303
1312
|
Maximum number of results to return
|
|
1304
1313
|
|
|
@@ -1324,6 +1333,7 @@ class AsyncRawMessagesClient:
|
|
|
1324
1333
|
"search_mode": search_mode,
|
|
1325
1334
|
"roles": roles,
|
|
1326
1335
|
"project_id": project_id,
|
|
1336
|
+
"template_id": template_id,
|
|
1327
1337
|
"limit": limit,
|
|
1328
1338
|
"start_date": start_date,
|
|
1329
1339
|
"end_date": end_date,
|
|
@@ -24,10 +24,10 @@ class BaseClientWrapper:
|
|
|
24
24
|
|
|
25
25
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
26
26
|
headers: typing.Dict[str, str] = {
|
|
27
|
-
"User-Agent": "letta-client/0.1.
|
|
27
|
+
"User-Agent": "letta-client/0.1.319",
|
|
28
28
|
"X-Fern-Language": "Python",
|
|
29
29
|
"X-Fern-SDK-Name": "letta-client",
|
|
30
|
-
"X-Fern-SDK-Version": "0.1.
|
|
30
|
+
"X-Fern-SDK-Version": "0.1.319",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
|
@@ -28,6 +28,16 @@ class StepMetrics(UncheckedBaseModel):
|
|
|
28
28
|
The unique identifier of the agent.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
+
step_start_ns: typing.Optional[int] = pydantic.Field(default=None)
|
|
32
|
+
"""
|
|
33
|
+
The timestamp of the start of the step in nanoseconds.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
llm_request_start_ns: typing.Optional[int] = pydantic.Field(default=None)
|
|
37
|
+
"""
|
|
38
|
+
The timestamp of the start of the llm request in nanoseconds.
|
|
39
|
+
"""
|
|
40
|
+
|
|
31
41
|
llm_request_ns: typing.Optional[int] = pydantic.Field(default=None)
|
|
32
42
|
"""
|
|
33
43
|
Time spent on LLM requests in nanoseconds.
|
|
@@ -25,8 +25,8 @@ letta_client/agents/memory_variables/raw_client.py,sha256=lwWJQlKh4InQgrCH8iHPBw
|
|
|
25
25
|
letta_client/agents/memory_variables/types/__init__.py,sha256=r_Wc0Jjyp1_Y2qC_eWsabWx1sTwoxAaV1s24y8Ep_Zg,200
|
|
26
26
|
letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha256=iAXAqp-J0fnyUK4MMa3PMrYwqQfbui3tiaWaWR9_O5M,600
|
|
27
27
|
letta_client/agents/messages/__init__.py,sha256=OWSbjQMJlLna4RpJoXxq4dKN2YJRH7NuEQxl0Sl-toU,519
|
|
28
|
-
letta_client/agents/messages/client.py,sha256=
|
|
29
|
-
letta_client/agents/messages/raw_client.py,sha256=
|
|
28
|
+
letta_client/agents/messages/client.py,sha256=flo_s84E_Whmv2xCxK-th-7FNMZ1ss7mLwrZpfcRJQI,45611
|
|
29
|
+
letta_client/agents/messages/raw_client.py,sha256=GIDJKNYZkkG4G9zLtTwCb9aYt2GndwadPgEp9sIN_Sk,66041
|
|
30
30
|
letta_client/agents/messages/types/__init__.py,sha256=itQ-0df1o88BKQcEHGQXfRXY1AWyxs8ozMft2rbRXfk,724
|
|
31
31
|
letta_client/agents/messages/types/letta_async_request_messages_item.py,sha256=ENCLYOoBskZ23fPYAc5UKEa2CH9_k8UWWp-l-92PFIE,261
|
|
32
32
|
letta_client/agents/messages/types/letta_streaming_response.py,sha256=iFM3SiYzMLSTzyZpxKZ0kUQdl3CcuVtiQZ5FzCCagQw,1098
|
|
@@ -93,7 +93,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
93
93
|
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
|
|
94
94
|
letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
|
|
95
95
|
letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
96
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
96
|
+
letta_client/core/client_wrapper.py,sha256=_cDyHsUbYBxUNCem8cWp2VMkEyw9xfgh28bsoFZFLvg,2776
|
|
97
97
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
98
98
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
99
99
|
letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -541,7 +541,7 @@ letta_client/types/sse_server_config.py,sha256=UbSmODGr5nxVMqTGtSvEbZyN2V8P_T0cO
|
|
|
541
541
|
letta_client/types/stdio_server_config.py,sha256=kuPmwj9lDTz7jBY1jh5VH-ns3ffctWwatT_emXyyTFE,1092
|
|
542
542
|
letta_client/types/step.py,sha256=r0RWvPiLUDstHKakLjMFC6SajsMNisPhiBuo32F48U4,4190
|
|
543
543
|
letta_client/types/step_feedback.py,sha256=JXUkclvJ6C-6ZTgd2lteOxqEyO5KRDNQ8ronBPYMdbo,160
|
|
544
|
-
letta_client/types/step_metrics.py,sha256=
|
|
544
|
+
letta_client/types/step_metrics.py,sha256=TvJtShzqEmS0chdIZKVEII0pz-nZaWT9Ud0Jvz6O3pk,2178
|
|
545
545
|
letta_client/types/step_status.py,sha256=OruAXMfFrCL0Bgoj7Wfjr8400ok5jcV4busa9NV-KIw,179
|
|
546
546
|
letta_client/types/stop_reason_type.py,sha256=2vBs9hBbDlJL736KIwyocEqcaa8Tyy1c-L10wwOz1jc,370
|
|
547
547
|
letta_client/types/streamable_http_server_config.py,sha256=GNbt2KO9VepHUtiMoK6htJLpFHcGoFJaoH1Az6zkt-Q,1776
|
|
@@ -598,6 +598,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
|
598
598
|
letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
599
599
|
letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
|
|
600
600
|
letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
|
|
601
|
-
letta_client-0.1.
|
|
602
|
-
letta_client-0.1.
|
|
603
|
-
letta_client-0.1.
|
|
601
|
+
letta_client-0.1.319.dist-info/METADATA,sha256=-Sm0UgTdPr_clt2Uevl8ZlvvAJGkN_qJ4Cc3csmqUIM,5782
|
|
602
|
+
letta_client-0.1.319.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
603
|
+
letta_client-0.1.319.dist-info/RECORD,,
|
|
File without changes
|