letta-client 0.1.144__py3-none-any.whl → 0.1.146__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.

@@ -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.144",
19
+ "X-Fern-SDK-Version": "0.1.146",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -18,6 +18,8 @@ class EmbeddingModelsClient:
18
18
 
19
19
  def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[EmbeddingConfig]:
20
20
  """
21
+ List available embedding models using the asynchronous implementation for improved performance
22
+
21
23
  Parameters
22
24
  ----------
23
25
  request_options : typing.Optional[RequestOptions]
@@ -73,6 +75,8 @@ class AsyncEmbeddingModelsClient:
73
75
 
74
76
  async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[EmbeddingConfig]:
75
77
  """
78
+ List available embedding models using the asynchronous implementation for improved performance
79
+
76
80
  Parameters
77
81
  ----------
78
82
  request_options : typing.Optional[RequestOptions]
@@ -27,6 +27,8 @@ class ModelsClient:
27
27
  request_options: typing.Optional[RequestOptions] = None,
28
28
  ) -> typing.List[LlmConfig]:
29
29
  """
30
+ List available LLM models using the asynchronous implementation for improved performance
31
+
30
32
  Parameters
31
33
  ----------
32
34
  provider_category : typing.Optional[typing.Union[ProviderCategory, typing.Sequence[ProviderCategory]]]
@@ -100,6 +102,8 @@ class AsyncModelsClient:
100
102
  request_options: typing.Optional[RequestOptions] = None,
101
103
  ) -> typing.List[LlmConfig]:
102
104
  """
105
+ List available LLM models using the asynchronous implementation for improved performance
106
+
103
107
  Parameters
104
108
  ----------
105
109
  provider_category : typing.Optional[typing.Union[ProviderCategory, typing.Sequence[ProviderCategory]]]
@@ -17,7 +17,15 @@ class PassagesClient:
17
17
  def __init__(self, *, client_wrapper: SyncClientWrapper):
18
18
  self._client_wrapper = client_wrapper
19
19
 
20
- def list(self, source_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Passage]:
20
+ def list(
21
+ self,
22
+ source_id: str,
23
+ *,
24
+ after: typing.Optional[str] = None,
25
+ before: typing.Optional[str] = None,
26
+ limit: typing.Optional[int] = None,
27
+ request_options: typing.Optional[RequestOptions] = None,
28
+ ) -> typing.List[Passage]:
21
29
  """
22
30
  List all passages associated with a data source.
23
31
 
@@ -25,6 +33,15 @@ class PassagesClient:
25
33
  ----------
26
34
  source_id : str
27
35
 
36
+ after : typing.Optional[str]
37
+ Message after which to retrieve the returned messages.
38
+
39
+ before : typing.Optional[str]
40
+ Message before which to retrieve the returned messages.
41
+
42
+ limit : typing.Optional[int]
43
+ Maximum number of messages to retrieve.
44
+
28
45
  request_options : typing.Optional[RequestOptions]
29
46
  Request-specific configuration.
30
47
 
@@ -47,6 +64,11 @@ class PassagesClient:
47
64
  _response = self._client_wrapper.httpx_client.request(
48
65
  f"v1/sources/{jsonable_encoder(source_id)}/passages",
49
66
  method="GET",
67
+ params={
68
+ "after": after,
69
+ "before": before,
70
+ "limit": limit,
71
+ },
50
72
  request_options=request_options,
51
73
  )
52
74
  try:
@@ -79,7 +101,13 @@ class AsyncPassagesClient:
79
101
  self._client_wrapper = client_wrapper
80
102
 
81
103
  async def list(
82
- self, source_id: str, *, request_options: typing.Optional[RequestOptions] = None
104
+ self,
105
+ source_id: str,
106
+ *,
107
+ after: typing.Optional[str] = None,
108
+ before: typing.Optional[str] = None,
109
+ limit: typing.Optional[int] = None,
110
+ request_options: typing.Optional[RequestOptions] = None,
83
111
  ) -> typing.List[Passage]:
84
112
  """
85
113
  List all passages associated with a data source.
@@ -88,6 +116,15 @@ class AsyncPassagesClient:
88
116
  ----------
89
117
  source_id : str
90
118
 
119
+ after : typing.Optional[str]
120
+ Message after which to retrieve the returned messages.
121
+
122
+ before : typing.Optional[str]
123
+ Message before which to retrieve the returned messages.
124
+
125
+ limit : typing.Optional[int]
126
+ Maximum number of messages to retrieve.
127
+
91
128
  request_options : typing.Optional[RequestOptions]
92
129
  Request-specific configuration.
93
130
 
@@ -118,6 +155,11 @@ class AsyncPassagesClient:
118
155
  _response = await self._client_wrapper.httpx_client.request(
119
156
  f"v1/sources/{jsonable_encoder(source_id)}/passages",
120
157
  method="GET",
158
+ params={
159
+ "after": after,
160
+ "before": before,
161
+ "limit": limit,
162
+ },
121
163
  request_options=request_options,
122
164
  )
123
165
  try:
@@ -38,6 +38,11 @@ class Step(UncheckedBaseModel):
38
38
  The name of the provider used for this step.
39
39
  """
40
40
 
41
+ provider_category: typing.Optional[str] = pydantic.Field(default=None)
42
+ """
43
+ The category of the provider used for this step.
44
+ """
45
+
41
46
  model: typing.Optional[str] = pydantic.Field(default=None)
42
47
  """
43
48
  The name of the model used for this step.
@@ -10,6 +10,7 @@ ToolType = typing.Union[
10
10
  "letta_multi_agent_core",
11
11
  "letta_sleeptime_core",
12
12
  "letta_voice_sleeptime_core",
13
+ "letta_builtin",
13
14
  "external_composio",
14
15
  "external_langchain",
15
16
  "external_mcp",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.144
3
+ Version: 0.1.146
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -62,7 +62,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
62
62
  letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
63
63
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
64
64
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
65
- letta_client/core/client_wrapper.py,sha256=SgbeGqDrnH2UUctxH0XUyemgT3Gvlt6G2w5QoI-oXfs,1998
65
+ letta_client/core/client_wrapper.py,sha256=zdwYsoOybevVZ1h6mr1bOAXahPsspPEswNLXSZ8W5d0,1998
66
66
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
67
67
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
68
68
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -74,7 +74,7 @@ letta_client/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHg
74
74
  letta_client/core/serialization.py,sha256=D9h_t-RQON3-CHWs1C4ESY9B-Yd5d-l5lnTLb_X896g,9601
75
75
  letta_client/core/unchecked_base_model.py,sha256=zliEPgLnK9yQ1dZ0mHP6agQ7H0bTZk8AvX6VC1r9oPQ,10754
76
76
  letta_client/embedding_models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
77
- letta_client/embedding_models/client.py,sha256=tjDkz83Ygt38w2KCZ4lwnXAEnjxkaw8v5UdxvlyZVP4,4430
77
+ letta_client/embedding_models/client.py,sha256=Ijs73tgApSbkjeGuWoO5shOpOt3PVzD_uhXsY7nlHj0,4638
78
78
  letta_client/environment.py,sha256=91gYLF9bT4-hTPQ9dcPfmub4LgEl-T4a5kW7NXzRIJU,198
79
79
  letta_client/errors/__init__.py,sha256=10_VG44lXpy4_YmuBa2_mYIcJMdIqNKPAX1uu-91NXc,541
80
80
  letta_client/errors/bad_request_error.py,sha256=_EbO8mWqN9kFZPvIap8qa1lL_EWkRcsZe1HKV9GDWJY,264
@@ -105,7 +105,7 @@ letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,1
105
105
  letta_client/messages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
106
106
  letta_client/messages/client.py,sha256=1L-636T7K3pL9PjNT5OOGRQjL4wS5bj-0hEW6pqZE_Y,7192
107
107
  letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
108
- letta_client/models/client.py,sha256=A-UUpTT9yjRvwEGkO3umoK9Kof5t7tj14nS_pg9HDkc,5742
108
+ letta_client/models/client.py,sha256=8TrcH3L-Jnjyvc3gy-ziCDWEQznsajXD5mFlaxSazMo,5938
109
109
  letta_client/projects/__init__.py,sha256=Mg9xvTJ4N4xDkj521w3jvmCgrbW3CYx9LxG7kkdoyzs,211
110
110
  letta_client/projects/client.py,sha256=VNJyt5QyAQoZwPDL4PQSVrwBK6jb0vOxleTBuMBJSC4,4229
111
111
  letta_client/projects/types/__init__.py,sha256=1nE8QFsR2GukiQxkaRFQfBuk1u_yuO-emykjWq8pXRs,277
@@ -127,7 +127,7 @@ letta_client/sources/client.py,sha256=SRxv2SLREAW2eV_vjEYiMKEM5ViSVk_9dEIz75kOEl
127
127
  letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
128
128
  letta_client/sources/files/client.py,sha256=R-9zHK_wWtvW-2K7erQVVh9rR7a5JC4zxmTK3rrWJoU,13289
129
129
  letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
130
- letta_client/sources/passages/client.py,sha256=n0QVtLC0W1X6_SjhiEGSl9oZexocnsLZYeYRAqV2BCk,4767
130
+ letta_client/sources/passages/client.py,sha256=XxpITU_fq9MKiSd8Qu720Dprnxp5wlDEf6yjXaEfwSQ,5969
131
131
  letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
132
132
  letta_client/steps/client.py,sha256=Vqw3coPITSFK8skl5fBa6YWqL_0UuAkYAFFeKipL0NU,11242
133
133
  letta_client/tags/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -337,7 +337,7 @@ letta_client/types/sleeptime_manager_update.py,sha256=JMzgtvGMDI5VBzlTuzm4FpuFAL
337
337
  letta_client/types/source.py,sha256=BsfE9yrefXREQtskGZnR-TFGqmHkFKIGHC5udtHUi14,2370
338
338
  letta_client/types/sse_server_config.py,sha256=b-h5FLm5MELZ5A9bwZt-02Zx_f3UbfKAQS--yHQVOQU,844
339
339
  letta_client/types/stdio_server_config.py,sha256=dEQ7bguiLikGemLxYZJ3JCmmEQgAMsSPO_P52oHZSl0,1091
340
- letta_client/types/step.py,sha256=XE98vMiU34dgUxLPvmJLdp9iWFPjg6E2Pb8xNSURMMg,2988
340
+ letta_client/types/step.py,sha256=-5KHfBc6NZnYGLXHJMK6Bdyw2ae0G1zPFzsURjPiN3c,3133
341
341
  letta_client/types/supervisor_manager.py,sha256=VdR1ySp4k43apxM8Bb5uNoBvADsvz8oMEEtDy2F5K6M,676
342
342
  letta_client/types/supervisor_manager_update.py,sha256=UJ_TcWcF_PK152Gni0tgRCe3bthCgJbQHCZIb5LLsL0,711
343
343
  letta_client/types/system_message.py,sha256=Dn1GkT1INUGLHkwBsqJL0HtkcGXx0CAKqzSl34jZ4xM,1302
@@ -360,7 +360,7 @@ letta_client/types/tool_return_message.py,sha256=xi9bF7ccbfy1cAUvG9NnfiujjtF_Dh1
360
360
  letta_client/types/tool_return_message_status.py,sha256=FvFOMaG9mnmgnHi2UBQVQQMtHFabbWnQnHTxGUDgVl0,167
361
361
  letta_client/types/tool_return_status.py,sha256=TQjwYprn5F_jU9kIbrtiyk7Gw2SjcmFFZLjFbGDpBM0,160
362
362
  letta_client/types/tool_schema.py,sha256=q5iRbpiIqWpNvXeDCi7BUyDbQzBKUnTIXEIAujn1bxw,1122
363
- letta_client/types/tool_type.py,sha256=iI9XGJWeBfUG7xKADn6o1DMv2U1MzKnVTiiA3Z7MNTQ,406
363
+ letta_client/types/tool_type.py,sha256=VZHnsXXjbF8Tky2nV548fLTK3jctgIDq98gwtR_wR94,431
364
364
  letta_client/types/update_assistant_message.py,sha256=D-51o8uXk3X_2Fb2zJ4KoMeRxPiDWaCb3ugRfjBMCTI,878
365
365
  letta_client/types/update_assistant_message_content.py,sha256=rh3DP_SpxyBNnf0EDtoaKmPIPV-cXRSFju33NbHgeF0,247
366
366
  letta_client/types/update_reasoning_message.py,sha256=2ejxLRNfVDWBfGQG2-A1JNq-DujOfT7AKXCmyH_RApc,650
@@ -388,6 +388,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
388
388
  letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
389
389
  letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
390
390
  letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
391
- letta_client-0.1.144.dist-info/METADATA,sha256=2sJ0TphGdbppOTzzywv_4NQmKmlr84T__JrlOQPLG5o,5042
392
- letta_client-0.1.144.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
393
- letta_client-0.1.144.dist-info/RECORD,,
391
+ letta_client-0.1.146.dist-info/METADATA,sha256=uFuDxEQSa7xn00NlG8HYFQT3LwYnVTXXPCeMGif_Va4,5042
392
+ letta_client-0.1.146.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
393
+ letta_client-0.1.146.dist-info/RECORD,,