letta-client 0.1.314__py3-none-any.whl → 0.1.316__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/__init__.py CHANGED
@@ -18,6 +18,7 @@ from .types import (
18
18
  AppModel,
19
19
  ApprovalCreate,
20
20
  ApprovalRequestMessage,
21
+ ApprovalRequestMessageToolCall,
21
22
  ApprovalResponseMessage,
22
23
  ArchivalMemorySearchResponse,
23
24
  ArchivalMemorySearchResult,
@@ -470,6 +471,7 @@ __all__ = [
470
471
  "AppModel",
471
472
  "ApprovalCreate",
472
473
  "ApprovalRequestMessage",
474
+ "ApprovalRequestMessageToolCall",
473
475
  "ApprovalResponseMessage",
474
476
  "ArchivalMemorySearchResponse",
475
477
  "ArchivalMemorySearchResult",
@@ -399,7 +399,7 @@ class MessagesClient:
399
399
  def search(
400
400
  self,
401
401
  *,
402
- query_text: typing.Optional[str] = OMIT,
402
+ query: typing.Optional[str] = OMIT,
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,
@@ -409,14 +409,13 @@ class MessagesClient:
409
409
  request_options: typing.Optional[RequestOptions] = None,
410
410
  ) -> typing.List[MessageSearchResult]:
411
411
  """
412
- Search messages across the entire organization with optional project filtering.
413
- Returns messages with FTS/vector ranks and total RRF score.
412
+ Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
414
413
 
415
- Requires message embedding and Turbopuffer to be enabled.
414
+ This is a cloud-only feature.
416
415
 
417
416
  Parameters
418
417
  ----------
419
- query_text : typing.Optional[str]
418
+ query : typing.Optional[str]
420
419
  Text query for full-text search
421
420
 
422
421
  search_mode : typing.Optional[MessageSearchRequestSearchMode]
@@ -456,7 +455,7 @@ class MessagesClient:
456
455
  client.agents.messages.search()
457
456
  """
458
457
  _response = self._raw_client.search(
459
- query_text=query_text,
458
+ query=query,
460
459
  search_mode=search_mode,
461
460
  roles=roles,
462
461
  project_id=project_id,
@@ -1074,7 +1073,7 @@ class AsyncMessagesClient:
1074
1073
  async def search(
1075
1074
  self,
1076
1075
  *,
1077
- query_text: typing.Optional[str] = OMIT,
1076
+ query: typing.Optional[str] = OMIT,
1078
1077
  search_mode: typing.Optional[MessageSearchRequestSearchMode] = OMIT,
1079
1078
  roles: typing.Optional[typing.Sequence[MessageRole]] = OMIT,
1080
1079
  project_id: typing.Optional[str] = OMIT,
@@ -1084,14 +1083,13 @@ class AsyncMessagesClient:
1084
1083
  request_options: typing.Optional[RequestOptions] = None,
1085
1084
  ) -> typing.List[MessageSearchResult]:
1086
1085
  """
1087
- Search messages across the entire organization with optional project filtering.
1088
- Returns messages with FTS/vector ranks and total RRF score.
1086
+ Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
1089
1087
 
1090
- Requires message embedding and Turbopuffer to be enabled.
1088
+ This is a cloud-only feature.
1091
1089
 
1092
1090
  Parameters
1093
1091
  ----------
1094
- query_text : typing.Optional[str]
1092
+ query : typing.Optional[str]
1095
1093
  Text query for full-text search
1096
1094
 
1097
1095
  search_mode : typing.Optional[MessageSearchRequestSearchMode]
@@ -1139,7 +1137,7 @@ class AsyncMessagesClient:
1139
1137
  asyncio.run(main())
1140
1138
  """
1141
1139
  _response = await self._raw_client.search(
1142
- query_text=query_text,
1140
+ query=query,
1143
1141
  search_mode=search_mode,
1144
1142
  roles=roles,
1145
1143
  project_id=project_id,
@@ -494,7 +494,7 @@ class RawMessagesClient:
494
494
  def search(
495
495
  self,
496
496
  *,
497
- query_text: typing.Optional[str] = OMIT,
497
+ query: typing.Optional[str] = OMIT,
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,
@@ -504,14 +504,13 @@ class RawMessagesClient:
504
504
  request_options: typing.Optional[RequestOptions] = None,
505
505
  ) -> HttpResponse[typing.List[MessageSearchResult]]:
506
506
  """
507
- Search messages across the entire organization with optional project filtering.
508
- Returns messages with FTS/vector ranks and total RRF score.
507
+ Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
509
508
 
510
- Requires message embedding and Turbopuffer to be enabled.
509
+ This is a cloud-only feature.
511
510
 
512
511
  Parameters
513
512
  ----------
514
- query_text : typing.Optional[str]
513
+ query : typing.Optional[str]
515
514
  Text query for full-text search
516
515
 
517
516
  search_mode : typing.Optional[MessageSearchRequestSearchMode]
@@ -544,7 +543,7 @@ class RawMessagesClient:
544
543
  "v1/agents/messages/search",
545
544
  method="POST",
546
545
  json={
547
- "query_text": query_text,
546
+ "query": query,
548
547
  "search_mode": search_mode,
549
548
  "roles": roles,
550
549
  "project_id": project_id,
@@ -1272,7 +1271,7 @@ class AsyncRawMessagesClient:
1272
1271
  async def search(
1273
1272
  self,
1274
1273
  *,
1275
- query_text: typing.Optional[str] = OMIT,
1274
+ query: typing.Optional[str] = OMIT,
1276
1275
  search_mode: typing.Optional[MessageSearchRequestSearchMode] = OMIT,
1277
1276
  roles: typing.Optional[typing.Sequence[MessageRole]] = OMIT,
1278
1277
  project_id: typing.Optional[str] = OMIT,
@@ -1282,14 +1281,13 @@ class AsyncRawMessagesClient:
1282
1281
  request_options: typing.Optional[RequestOptions] = None,
1283
1282
  ) -> AsyncHttpResponse[typing.List[MessageSearchResult]]:
1284
1283
  """
1285
- Search messages across the entire organization with optional project filtering.
1286
- Returns messages with FTS/vector ranks and total RRF score.
1284
+ Search messages across the entire organization with optional project filtering. Returns messages with FTS/vector ranks and total RRF score.
1287
1285
 
1288
- Requires message embedding and Turbopuffer to be enabled.
1286
+ This is a cloud-only feature.
1289
1287
 
1290
1288
  Parameters
1291
1289
  ----------
1292
- query_text : typing.Optional[str]
1290
+ query : typing.Optional[str]
1293
1291
  Text query for full-text search
1294
1292
 
1295
1293
  search_mode : typing.Optional[MessageSearchRequestSearchMode]
@@ -1322,7 +1320,7 @@ class AsyncRawMessagesClient:
1322
1320
  "v1/agents/messages/search",
1323
1321
  method="POST",
1324
1322
  json={
1325
- "query_text": query_text,
1323
+ "query": query,
1326
1324
  "search_mode": search_mode,
1327
1325
  "roles": roles,
1328
1326
  "project_id": project_id,
@@ -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.314",
27
+ "User-Agent": "letta-client/0.1.316",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.314",
30
+ "X-Fern-SDK-Version": "0.1.316",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -17,6 +17,7 @@ from .app_auth_scheme_auth_mode import AppAuthSchemeAuthMode
17
17
  from .app_model import AppModel
18
18
  from .approval_create import ApprovalCreate
19
19
  from .approval_request_message import ApprovalRequestMessage
20
+ from .approval_request_message_tool_call import ApprovalRequestMessageToolCall
20
21
  from .approval_response_message import ApprovalResponseMessage
21
22
  from .archival_memory_search_response import ArchivalMemorySearchResponse
22
23
  from .archival_memory_search_result import ArchivalMemorySearchResult
@@ -368,6 +369,7 @@ __all__ = [
368
369
  "AppModel",
369
370
  "ApprovalCreate",
370
371
  "ApprovalRequestMessage",
372
+ "ApprovalRequestMessageToolCall",
371
373
  "ApprovalResponseMessage",
372
374
  "ArchivalMemorySearchResponse",
373
375
  "ArchivalMemorySearchResult",
@@ -6,7 +6,7 @@ import typing
6
6
  import pydantic
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
  from ..core.unchecked_base_model import UncheckedBaseModel
9
- from .tool_call import ToolCall
9
+ from .approval_request_message_tool_call import ApprovalRequestMessageToolCall
10
10
 
11
11
 
12
12
  class ApprovalRequestMessage(UncheckedBaseModel):
@@ -30,7 +30,7 @@ class ApprovalRequestMessage(UncheckedBaseModel):
30
30
  is_err: typing.Optional[bool] = None
31
31
  seq_id: typing.Optional[int] = None
32
32
  run_id: typing.Optional[str] = None
33
- tool_call: ToolCall = pydantic.Field()
33
+ tool_call: ApprovalRequestMessageToolCall = pydantic.Field()
34
34
  """
35
35
  The tool call that has been requested by the llm to run
36
36
  """
@@ -0,0 +1,8 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ from .tool_call import ToolCall
6
+ from .tool_call_delta import ToolCallDelta
7
+
8
+ ApprovalRequestMessageToolCall = typing.Union[ToolCall, ToolCallDelta]
@@ -13,14 +13,14 @@ class MessageSearchResult(UncheckedBaseModel):
13
13
  Result from a message search operation with scoring details.
14
14
  """
15
15
 
16
- message: Message = pydantic.Field()
16
+ embedded_text: str = pydantic.Field()
17
17
  """
18
- The message content and metadata
18
+ The embedded content (LLM-friendly)
19
19
  """
20
20
 
21
- fts_score: typing.Optional[float] = pydantic.Field(default=None)
21
+ message: Message = pydantic.Field()
22
22
  """
23
- Full-text search (BM25) score if FTS was used
23
+ The raw message object
24
24
  """
25
25
 
26
26
  fts_rank: typing.Optional[int] = pydantic.Field(default=None)
@@ -28,11 +28,6 @@ class MessageSearchResult(UncheckedBaseModel):
28
28
  Full-text search rank position if FTS was used
29
29
  """
30
30
 
31
- vector_score: typing.Optional[float] = pydantic.Field(default=None)
32
- """
33
- Vector similarity score if vector search was used
34
- """
35
-
36
31
  vector_rank: typing.Optional[int] = pydantic.Field(default=None)
37
32
  """
38
33
  Vector search rank position if vector search was used
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.314
3
+ Version: 0.1.316
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,4 +1,4 @@
1
- letta_client/__init__.py,sha256=xVk8XpgqmLkPJq28-9hbWxQWWUdZV_kzskon96aXL4U,28721
1
+ letta_client/__init__.py,sha256=xeURfBFOp8O2DFzvLOpY6gTVGfy5E7mxZ37c4N7TqpE,28795
2
2
  letta_client/agents/__init__.py,sha256=x8YVMGnw7j4xJbQzhAHXqqgXIPdCMEDUeLRh9rM58X0,2155
3
3
  letta_client/agents/blocks/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
4
4
  letta_client/agents/blocks/client.py,sha256=WAKaFGx76QqDG1Ygd2hlvyXHTjV-ObjnvQSMKK6h1SM,16143
@@ -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=bAHEOfHKmnzjW6eR6qJh01lSQkGhGrEX5bPI2z1w04w,45349
29
- letta_client/agents/messages/raw_client.py,sha256=nikcTfLZEKZNgflYGOUDWQI4Sr2eCna6InyRiamWZRI,65765
28
+ letta_client/agents/messages/client.py,sha256=DpIp8hmH3BazHl-Xlw8Zhdbw-guNuR2EKGym0E1I0qo,45237
29
+ letta_client/agents/messages/raw_client.py,sha256=3Xn_nmocdo1z9pbxtJfzS42-vDhPVH-lq-3hZR6FeqQ,65653
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=p8qQUjt-zg_VGDZtN0eYhDucwVo9J_0p7_kmeNwM27A,2776
96
+ letta_client/core/client_wrapper.py,sha256=MUlcmN4cjfAZO_D3m-1brL1ex3r3Ojw6B8PXZPk7V5c,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
@@ -265,7 +265,7 @@ letta_client/tools/types/streaming_response.py,sha256=V1qT-XAqm-z7zffJ7W1JKPCaxZ
265
265
  letta_client/tools/types/test_mcp_server_request.py,sha256=3SqjEL3EYi7iV57TjTIzuBSKv8O3Y7qSUFrCiXEvSRk,373
266
266
  letta_client/tools/types/update_mcp_server_request.py,sha256=MHouV3iyZCTROguOQP5rOYvnmvDbBeXe5VtEejRvrEs,403
267
267
  letta_client/tools/types/update_mcp_server_response.py,sha256=BJTPHWkb8hwgd4FvftQ8eZjl2QzCQT-vZAUVnLft9hw,376
268
- letta_client/types/__init__.py,sha256=WNTfaGQBg4c7sSq_ou-X4yADE2osm87D2v8gkf8683M,31321
268
+ letta_client/types/__init__.py,sha256=0m9pHHtB68bz5o79ymFqTRMtzR5-i4Pet8MzxHqU_pQ,31438
269
269
  letta_client/types/action_model.py,sha256=VTXavHB6J2d4MjjTMEpkuEyVaiTHyj1FGfa4j8kN6hQ,1241
270
270
  letta_client/types/action_parameters_model.py,sha256=s1mJ4tycms8UmCFsxyjKr6RbghSuqv35xpa9mK42sjg,829
271
271
  letta_client/types/action_response_model.py,sha256=LcML150OvsKimVV3sP4jSFh8pVxQXn_r_ff8DADOr3c,825
@@ -280,7 +280,8 @@ letta_client/types/app_auth_scheme.py,sha256=A1ha3TmjgFw3-mW8r44LPB_Go3pdbGxJ_LH
280
280
  letta_client/types/app_auth_scheme_auth_mode.py,sha256=cEj9XAxLgFcang_Irw6h3koWac9A0tpNeBG05NUeGlw,387
281
281
  letta_client/types/app_model.py,sha256=6QlEj1uFSnUMDEkmM1XF1umO-X6AHq5oBGzVTZeZeEo,1520
282
282
  letta_client/types/approval_create.py,sha256=cB5zRgOYzcyAM_ZTKELeCy8SIWTzPQUNcMd1uLjXB_I,1092
283
- letta_client/types/approval_request_message.py,sha256=goqIU7BQEdOy5DEurCmtdROCxWWjw8BM4938bgUhS5w,1499
283
+ letta_client/types/approval_request_message.py,sha256=8XsS5rAV_12RjUsweUNMHDwmhvbiPIUDTZAWVKz7f08,1568
284
+ letta_client/types/approval_request_message_tool_call.py,sha256=ddPhd_Yar8rXzf78LP-QaBgPWf3mXziPflN_qgJus0U,227
284
285
  letta_client/types/approval_response_message.py,sha256=mtY_Je8CEOeO78-dcg0aSG3mqRx9afIe_xqcrJcLBDs,1846
285
286
  letta_client/types/archival_memory_search_response.py,sha256=zMvo5jJPTxRWW9Cq6d5dsacG9k4LoFcyBCfD_pLe4kg,852
286
287
  letta_client/types/archival_memory_search_result.py,sha256=UlAWvWw1YGKAhLfAZZ30-oHLL1oDXFkaXBEAfNkQs3s,926
@@ -478,7 +479,7 @@ letta_client/types/message_create.py,sha256=OCmj0ZZLk2v48I4w3vZOXAmt7tySBG6U0iYZ
478
479
  letta_client/types/message_create_content.py,sha256=pKppl-N8IdqR-ShWCZ0HN-3b13plPE2vSi6YcRM3w8o,227
479
480
  letta_client/types/message_create_role.py,sha256=PWbew2WtK-36P4d3Nuvq4QNLDAPntsGpasS_WzivyXg,172
480
481
  letta_client/types/message_role.py,sha256=Y9DhyB9tRNvRQvq2dvjrBzqDmM8SoWcK0mLpRUCCxmc,198
481
- letta_client/types/message_search_result.py,sha256=KSWkG-9evo8IML5CKVQUU6A-0pfGICdRi6mMI7k4lTE,1411
482
+ letta_client/types/message_search_result.py,sha256=lfK_Sc6BtJruvO5F878SkxHlIb2xcotm_8ODiMaNdrM,1221
482
483
  letta_client/types/message_type.py,sha256=QWldT6K922wmITVKdSbdIeGWZ6V-W5O2TdAsuRTHaBo,430
483
484
  letta_client/types/modal_sandbox_config.py,sha256=QBGbV1563_tr6Fep0uBy1oboERRQC-pl4mfZmyueIgc,1138
484
485
  letta_client/types/modal_sandbox_config_language.py,sha256=RHJmtMZwO-kcYqHIWFel0R2LwKZbAw19V-bhEUguDI0,174
@@ -597,6 +598,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
597
598
  letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
598
599
  letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
599
600
  letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
600
- letta_client-0.1.314.dist-info/METADATA,sha256=nTThvx_pcSUWN4XMU_12lX6OXzEsz2XwTWG76VId4oQ,5782
601
- letta_client-0.1.314.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
602
- letta_client-0.1.314.dist-info/RECORD,,
601
+ letta_client-0.1.316.dist-info/METADATA,sha256=h2FY7M_s-ALoy1wybVvNcAYZjM3zZMuBtFpSa4cKF_8,5782
602
+ letta_client-0.1.316.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
603
+ letta_client-0.1.316.dist-info/RECORD,,