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

@@ -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.253",
27
+ "User-Agent": "letta-client/0.1.254",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.253",
30
+ "X-Fern-SDK-Version": "0.1.254",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -80,6 +80,8 @@ class ProvidersClient:
80
80
  api_key: str,
81
81
  access_key: typing.Optional[str] = OMIT,
82
82
  region: typing.Optional[str] = OMIT,
83
+ base_url: typing.Optional[str] = OMIT,
84
+ api_version: typing.Optional[str] = OMIT,
83
85
  request_options: typing.Optional[RequestOptions] = None,
84
86
  ) -> Provider:
85
87
  """
@@ -102,6 +104,12 @@ class ProvidersClient:
102
104
  region : typing.Optional[str]
103
105
  Region used for requests to the provider.
104
106
 
107
+ base_url : typing.Optional[str]
108
+ Base URL used for requests to the provider.
109
+
110
+ api_version : typing.Optional[str]
111
+ API version used for requests to the provider.
112
+
105
113
  request_options : typing.Optional[RequestOptions]
106
114
  Request-specific configuration.
107
115
 
@@ -130,6 +138,8 @@ class ProvidersClient:
130
138
  api_key=api_key,
131
139
  access_key=access_key,
132
140
  region=region,
141
+ base_url=base_url,
142
+ api_version=api_version,
133
143
  request_options=request_options,
134
144
  )
135
145
  return _response.data
@@ -174,6 +184,8 @@ class ProvidersClient:
174
184
  api_key: str,
175
185
  access_key: typing.Optional[str] = OMIT,
176
186
  region: typing.Optional[str] = OMIT,
187
+ base_url: typing.Optional[str] = OMIT,
188
+ api_version: typing.Optional[str] = OMIT,
177
189
  request_options: typing.Optional[RequestOptions] = None,
178
190
  ) -> Provider:
179
191
  """
@@ -192,6 +204,12 @@ class ProvidersClient:
192
204
  region : typing.Optional[str]
193
205
  Region used for requests to the provider.
194
206
 
207
+ base_url : typing.Optional[str]
208
+ Base URL used for requests to the provider.
209
+
210
+ api_version : typing.Optional[str]
211
+ API version used for requests to the provider.
212
+
195
213
  request_options : typing.Optional[RequestOptions]
196
214
  Request-specific configuration.
197
215
 
@@ -214,7 +232,13 @@ class ProvidersClient:
214
232
  )
215
233
  """
216
234
  _response = self._raw_client.modify(
217
- provider_id, api_key=api_key, access_key=access_key, region=region, request_options=request_options
235
+ provider_id,
236
+ api_key=api_key,
237
+ access_key=access_key,
238
+ region=region,
239
+ base_url=base_url,
240
+ api_version=api_version,
241
+ request_options=request_options,
218
242
  )
219
243
  return _response.data
220
244
 
@@ -320,6 +344,8 @@ class AsyncProvidersClient:
320
344
  api_key: str,
321
345
  access_key: typing.Optional[str] = OMIT,
322
346
  region: typing.Optional[str] = OMIT,
347
+ base_url: typing.Optional[str] = OMIT,
348
+ api_version: typing.Optional[str] = OMIT,
323
349
  request_options: typing.Optional[RequestOptions] = None,
324
350
  ) -> Provider:
325
351
  """
@@ -342,6 +368,12 @@ class AsyncProvidersClient:
342
368
  region : typing.Optional[str]
343
369
  Region used for requests to the provider.
344
370
 
371
+ base_url : typing.Optional[str]
372
+ Base URL used for requests to the provider.
373
+
374
+ api_version : typing.Optional[str]
375
+ API version used for requests to the provider.
376
+
345
377
  request_options : typing.Optional[RequestOptions]
346
378
  Request-specific configuration.
347
379
 
@@ -378,6 +410,8 @@ class AsyncProvidersClient:
378
410
  api_key=api_key,
379
411
  access_key=access_key,
380
412
  region=region,
413
+ base_url=base_url,
414
+ api_version=api_version,
381
415
  request_options=request_options,
382
416
  )
383
417
  return _response.data
@@ -430,6 +464,8 @@ class AsyncProvidersClient:
430
464
  api_key: str,
431
465
  access_key: typing.Optional[str] = OMIT,
432
466
  region: typing.Optional[str] = OMIT,
467
+ base_url: typing.Optional[str] = OMIT,
468
+ api_version: typing.Optional[str] = OMIT,
433
469
  request_options: typing.Optional[RequestOptions] = None,
434
470
  ) -> Provider:
435
471
  """
@@ -448,6 +484,12 @@ class AsyncProvidersClient:
448
484
  region : typing.Optional[str]
449
485
  Region used for requests to the provider.
450
486
 
487
+ base_url : typing.Optional[str]
488
+ Base URL used for requests to the provider.
489
+
490
+ api_version : typing.Optional[str]
491
+ API version used for requests to the provider.
492
+
451
493
  request_options : typing.Optional[RequestOptions]
452
494
  Request-specific configuration.
453
495
 
@@ -478,7 +520,13 @@ class AsyncProvidersClient:
478
520
  asyncio.run(main())
479
521
  """
480
522
  _response = await self._raw_client.modify(
481
- provider_id, api_key=api_key, access_key=access_key, region=region, request_options=request_options
523
+ provider_id,
524
+ api_key=api_key,
525
+ access_key=access_key,
526
+ region=region,
527
+ base_url=base_url,
528
+ api_version=api_version,
529
+ request_options=request_options,
482
530
  )
483
531
  return _response.data
484
532
 
@@ -97,6 +97,8 @@ class RawProvidersClient:
97
97
  api_key: str,
98
98
  access_key: typing.Optional[str] = OMIT,
99
99
  region: typing.Optional[str] = OMIT,
100
+ base_url: typing.Optional[str] = OMIT,
101
+ api_version: typing.Optional[str] = OMIT,
100
102
  request_options: typing.Optional[RequestOptions] = None,
101
103
  ) -> HttpResponse[Provider]:
102
104
  """
@@ -119,6 +121,12 @@ class RawProvidersClient:
119
121
  region : typing.Optional[str]
120
122
  Region used for requests to the provider.
121
123
 
124
+ base_url : typing.Optional[str]
125
+ Base URL used for requests to the provider.
126
+
127
+ api_version : typing.Optional[str]
128
+ API version used for requests to the provider.
129
+
122
130
  request_options : typing.Optional[RequestOptions]
123
131
  Request-specific configuration.
124
132
 
@@ -136,6 +144,8 @@ class RawProvidersClient:
136
144
  "api_key": api_key,
137
145
  "access_key": access_key,
138
146
  "region": region,
147
+ "base_url": base_url,
148
+ "api_version": api_version,
139
149
  },
140
150
  headers={
141
151
  "content-type": "application/json",
@@ -227,6 +237,8 @@ class RawProvidersClient:
227
237
  api_key: str,
228
238
  access_key: typing.Optional[str] = OMIT,
229
239
  region: typing.Optional[str] = OMIT,
240
+ base_url: typing.Optional[str] = OMIT,
241
+ api_version: typing.Optional[str] = OMIT,
230
242
  request_options: typing.Optional[RequestOptions] = None,
231
243
  ) -> HttpResponse[Provider]:
232
244
  """
@@ -245,6 +257,12 @@ class RawProvidersClient:
245
257
  region : typing.Optional[str]
246
258
  Region used for requests to the provider.
247
259
 
260
+ base_url : typing.Optional[str]
261
+ Base URL used for requests to the provider.
262
+
263
+ api_version : typing.Optional[str]
264
+ API version used for requests to the provider.
265
+
248
266
  request_options : typing.Optional[RequestOptions]
249
267
  Request-specific configuration.
250
268
 
@@ -260,6 +278,8 @@ class RawProvidersClient:
260
278
  "api_key": api_key,
261
279
  "access_key": access_key,
262
280
  "region": region,
281
+ "base_url": base_url,
282
+ "api_version": api_version,
263
283
  },
264
284
  headers={
265
285
  "content-type": "application/json",
@@ -420,6 +440,8 @@ class AsyncRawProvidersClient:
420
440
  api_key: str,
421
441
  access_key: typing.Optional[str] = OMIT,
422
442
  region: typing.Optional[str] = OMIT,
443
+ base_url: typing.Optional[str] = OMIT,
444
+ api_version: typing.Optional[str] = OMIT,
423
445
  request_options: typing.Optional[RequestOptions] = None,
424
446
  ) -> AsyncHttpResponse[Provider]:
425
447
  """
@@ -442,6 +464,12 @@ class AsyncRawProvidersClient:
442
464
  region : typing.Optional[str]
443
465
  Region used for requests to the provider.
444
466
 
467
+ base_url : typing.Optional[str]
468
+ Base URL used for requests to the provider.
469
+
470
+ api_version : typing.Optional[str]
471
+ API version used for requests to the provider.
472
+
445
473
  request_options : typing.Optional[RequestOptions]
446
474
  Request-specific configuration.
447
475
 
@@ -459,6 +487,8 @@ class AsyncRawProvidersClient:
459
487
  "api_key": api_key,
460
488
  "access_key": access_key,
461
489
  "region": region,
490
+ "base_url": base_url,
491
+ "api_version": api_version,
462
492
  },
463
493
  headers={
464
494
  "content-type": "application/json",
@@ -550,6 +580,8 @@ class AsyncRawProvidersClient:
550
580
  api_key: str,
551
581
  access_key: typing.Optional[str] = OMIT,
552
582
  region: typing.Optional[str] = OMIT,
583
+ base_url: typing.Optional[str] = OMIT,
584
+ api_version: typing.Optional[str] = OMIT,
553
585
  request_options: typing.Optional[RequestOptions] = None,
554
586
  ) -> AsyncHttpResponse[Provider]:
555
587
  """
@@ -568,6 +600,12 @@ class AsyncRawProvidersClient:
568
600
  region : typing.Optional[str]
569
601
  Region used for requests to the provider.
570
602
 
603
+ base_url : typing.Optional[str]
604
+ Base URL used for requests to the provider.
605
+
606
+ api_version : typing.Optional[str]
607
+ API version used for requests to the provider.
608
+
571
609
  request_options : typing.Optional[RequestOptions]
572
610
  Request-specific configuration.
573
611
 
@@ -583,6 +621,8 @@ class AsyncRawProvidersClient:
583
621
  "api_key": api_key,
584
622
  "access_key": access_key,
585
623
  "region": region,
624
+ "base_url": base_url,
625
+ "api_version": api_version,
586
626
  },
587
627
  headers={
588
628
  "content-type": "application/json",
@@ -51,6 +51,11 @@ class Provider(UncheckedBaseModel):
51
51
  Region used for requests to the provider.
52
52
  """
53
53
 
54
+ api_version: typing.Optional[str] = pydantic.Field(default=None)
55
+ """
56
+ API version used for requests to the provider.
57
+ """
58
+
54
59
  updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
55
60
  """
56
61
  The last update timestamp of the provider.
@@ -29,6 +29,16 @@ class ProviderCheck(UncheckedBaseModel):
29
29
  Region used for requests to the provider.
30
30
  """
31
31
 
32
+ base_url: typing.Optional[str] = pydantic.Field(default=None)
33
+ """
34
+ Base URL used for requests to the provider.
35
+ """
36
+
37
+ api_version: typing.Optional[str] = pydantic.Field(default=None)
38
+ """
39
+ API version used for requests to the provider.
40
+ """
41
+
32
42
  if IS_PYDANTIC_V2:
33
43
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
34
44
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.253
3
+ Version: 0.1.254
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -92,7 +92,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
92
92
  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
93
93
  letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
94
94
  letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
95
- letta_client/core/client_wrapper.py,sha256=r5YuAStTcDdQNJ5sW5sK-HvqTG_TRndg7vTVCVNPXTA,2776
95
+ letta_client/core/client_wrapper.py,sha256=VJkjNipz7YccjDcXlwLDGvcMLiyvWoayMw9D-RzEsKI,2776
96
96
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
97
97
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
98
98
  letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -163,8 +163,8 @@ letta_client/projects/types/__init__.py,sha256=o_1s2iqf5SY1ojqTeewCt6c7sxrn6gzka
163
163
  letta_client/projects/types/projects_list_response.py,sha256=WJ_LHfEujdpeFL6wM3RP1uYgsAAwFK03-rEwmr3UU1w,859
164
164
  letta_client/projects/types/projects_list_response_projects_item.py,sha256=VyG_OR4KlZIA3mgd7FCFk1kSM7NxAi3MNBzAgDrUddo,606
165
165
  letta_client/providers/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
166
- letta_client/providers/client.py,sha256=9rVmeA8pB4quZL7gMFb9EoL3EFbgSo2ZhMKcAQPPNdE,13449
167
- letta_client/providers/raw_client.py,sha256=kjLkKDIZ0tzgMxzV3eiqCahsZMWTUeG-kgRMjbXDhDA,24252
166
+ letta_client/providers/client.py,sha256=hxUV42wuRzmg9yPkNKnYs_Z96aUBbvOwnvHfpbrcn4w,15007
167
+ letta_client/providers/raw_client.py,sha256=98vhRddD_tmMgQQoOlEdmPST7CwBXp8dsHznJvjksbk,25768
168
168
  letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
169
  letta_client/runs/__init__.py,sha256=uuC70ZTE_Kcll7LqC18Orc60J5kBAfUo4ZJFB6FRgWA,164
170
170
  letta_client/runs/client.py,sha256=FCH2UqXqe12RORyO10mcctNiDh5T1725CmKewCM76uk,9235
@@ -425,9 +425,9 @@ letta_client/types/parent_tool_rule.py,sha256=UKTLrRUeNI8TwTmwUsvBurbpLZKsoqF-7Z
425
425
  letta_client/types/passage.py,sha256=pyn_N8tvPib65pxl1wvP9cqxOHTMejGbiv7ALLg36ZE,3188
426
426
  letta_client/types/payment_required_error_body.py,sha256=ODQ2fA8EF1Y_pfZocseOg1Ryyj9WfgjS5QeSC7WTIbc,590
427
427
  letta_client/types/pip_requirement.py,sha256=A9mFgoz-yAlVHsy8vljtYdtJInfN7qL1JePPaPuTr2Y,774
428
- letta_client/types/provider.py,sha256=FKHoorSxHMht9xor4TAG7OOhcxZyOHDLa2GN70m2P4U,1753
428
+ letta_client/types/provider.py,sha256=hUTNL8HIolqPtKwPdSxjElEhENIYh05nB12ma9pcZ1g,1890
429
429
  letta_client/types/provider_category.py,sha256=St4tSc_Wc5huF79kb088-L-tRz9Cj2_b5DqEoU4eDIs,156
430
- letta_client/types/provider_check.py,sha256=X-bzgshg7wfr8SmmPVt-GtPKXUfIJVpi8icSonYysxA,1058
430
+ letta_client/types/provider_check.py,sha256=8azqy6twmmMMRi8sL67DzAg1hF9yRFHnhHqPizwvtxg,1326
431
431
  letta_client/types/provider_trace.py,sha256=d7_IpoEgLeqnPaElWjOp6iAL8SbeI4DZsBaaaFtkorM,2201
432
432
  letta_client/types/provider_type.py,sha256=GChNOHlZBAq3J0H4gv_1Hmg3Ju678iffL5HU6mGdKQE,481
433
433
  letta_client/types/reasoning_content.py,sha256=YPmNwwSH_toPAThpE5gq7gaxBlvvjh33csKBRdFI_iY,996
@@ -517,6 +517,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
517
517
  letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
518
518
  letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
519
519
  letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
520
- letta_client-0.1.253.dist-info/METADATA,sha256=6-_sx2U9WmofkFjYEwio6Z41gS-Nm6PDEXsntaO-p3E,5781
521
- letta_client-0.1.253.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
522
- letta_client-0.1.253.dist-info/RECORD,,
520
+ letta_client-0.1.254.dist-info/METADATA,sha256=MU7JGko3f9ozjrpRIQPyufdpLPHR2pHUPqGWxkO9TDg,5781
521
+ letta_client-0.1.254.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
522
+ letta_client-0.1.254.dist-info/RECORD,,