letta-client 0.1.107__py3-none-any.whl → 0.1.109__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
@@ -122,6 +122,7 @@ from .types import (
122
122
  LettaUsageStatistics,
123
123
  LlmConfig,
124
124
  LlmConfigModelEndpointType,
125
+ LlmConfigReasoningEffort,
125
126
  LocalSandboxConfig,
126
127
  ManagerType,
127
128
  MaxCountPerStepToolRule,
@@ -401,6 +402,7 @@ __all__ = [
401
402
  "ListMcpServersResponseValue",
402
403
  "LlmConfig",
403
404
  "LlmConfigModelEndpointType",
405
+ "LlmConfigReasoningEffort",
404
406
  "LocalSandboxConfig",
405
407
  "ManagerType",
406
408
  "MaxCountPerStepToolRule",
@@ -447,9 +447,7 @@ class AgentsClient:
447
447
  raise ApiError(status_code=_response.status_code, body=_response.text)
448
448
  raise ApiError(status_code=_response.status_code, body=_response_json)
449
449
 
450
- def export_agent_serialized(
451
- self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
452
- ) -> typing.Optional[typing.Any]:
450
+ def export_agent_serialized(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> str:
453
451
  """
454
452
  Export the serialized JSON representation of an agent, formatted with indentation.
455
453
 
@@ -462,7 +460,7 @@ class AgentsClient:
462
460
 
463
461
  Returns
464
462
  -------
465
- typing.Optional[typing.Any]
463
+ str
466
464
  Successful Response
467
465
 
468
466
  Examples
@@ -484,9 +482,9 @@ class AgentsClient:
484
482
  try:
485
483
  if 200 <= _response.status_code < 300:
486
484
  return typing.cast(
487
- typing.Optional[typing.Any],
485
+ str,
488
486
  construct_type(
489
- type_=typing.Optional[typing.Any], # type: ignore
487
+ type_=str, # type: ignore
490
488
  object_=_response.json(),
491
489
  ),
492
490
  )
@@ -1586,7 +1584,7 @@ class AsyncAgentsClient:
1586
1584
 
1587
1585
  async def export_agent_serialized(
1588
1586
  self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
1589
- ) -> typing.Optional[typing.Any]:
1587
+ ) -> str:
1590
1588
  """
1591
1589
  Export the serialized JSON representation of an agent, formatted with indentation.
1592
1590
 
@@ -1599,7 +1597,7 @@ class AsyncAgentsClient:
1599
1597
 
1600
1598
  Returns
1601
1599
  -------
1602
- typing.Optional[typing.Any]
1600
+ str
1603
1601
  Successful Response
1604
1602
 
1605
1603
  Examples
@@ -1629,9 +1627,9 @@ class AsyncAgentsClient:
1629
1627
  try:
1630
1628
  if 200 <= _response.status_code < 300:
1631
1629
  return typing.cast(
1632
- typing.Optional[typing.Any],
1630
+ str,
1633
1631
  construct_type(
1634
- type_=typing.Optional[typing.Any], # type: ignore
1632
+ type_=str, # type: ignore
1635
1633
  object_=_response.json(),
1636
1634
  ),
1637
1635
  )
@@ -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.107",
19
+ "X-Fern-SDK-Version": "0.1.109",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -121,6 +121,7 @@ from .letta_streaming_request import LettaStreamingRequest
121
121
  from .letta_usage_statistics import LettaUsageStatistics
122
122
  from .llm_config import LlmConfig
123
123
  from .llm_config_model_endpoint_type import LlmConfigModelEndpointType
124
+ from .llm_config_reasoning_effort import LlmConfigReasoningEffort
124
125
  from .local_sandbox_config import LocalSandboxConfig
125
126
  from .manager_type import ManagerType
126
127
  from .max_count_per_step_tool_rule import MaxCountPerStepToolRule
@@ -342,6 +343,7 @@ __all__ = [
342
343
  "LettaUsageStatistics",
343
344
  "LlmConfig",
344
345
  "LlmConfigModelEndpointType",
346
+ "LlmConfigReasoningEffort",
345
347
  "LocalSandboxConfig",
346
348
  "ManagerType",
347
349
  "MaxCountPerStepToolRule",
@@ -4,6 +4,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import pydantic
5
5
  from .llm_config_model_endpoint_type import LlmConfigModelEndpointType
6
6
  import typing
7
+ from .llm_config_reasoning_effort import LlmConfigReasoningEffort
7
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
9
 
9
10
 
@@ -72,6 +73,11 @@ class LlmConfig(UncheckedBaseModel):
72
73
  Whether or not the model should use extended thinking if it is a 'reasoning' style model
73
74
  """
74
75
 
76
+ reasoning_effort: typing.Optional[LlmConfigReasoningEffort] = pydantic.Field(default=None)
77
+ """
78
+ The reasoning effort to use when generating text reasoning models
79
+ """
80
+
75
81
  max_reasoning_tokens: typing.Optional[int] = pydantic.Field(default=None)
76
82
  """
77
83
  Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ LlmConfigReasoningEffort = typing.Union[typing.Literal["low", "medium", "high"], typing.Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.107
3
+ Version: 0.1.109
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,8 +1,8 @@
1
- letta_client/__init__.py,sha256=xU_DjiXcLwfSaX1f10xjdfzWW46_G-m5EMuyHXukNjw,14503
1
+ letta_client/__init__.py,sha256=pij5j_AglAp0VqY5FqJ23BIaYulP95I298DZz_8H7uk,14565
2
2
  letta_client/agents/__init__.py,sha256=CveigJGrnkw3yZ8S9yZ2DpK1HV0v1fU-khsiLJJ0uaU,1452
3
3
  letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/blocks/client.py,sha256=u5zvutxoH_DqfSLWhRtNSRBC9_ezQDx682cxkxDz3JA,23822
5
- letta_client/agents/client.py,sha256=KWyPW3myIKutPPhoefUNWVBETC7i6RHiRvkgsB6H5jw,89351
5
+ letta_client/agents/client.py,sha256=XI4O2hrctvwTH9fHJeKZ5CmFE7pHlOGW2uWhIIV0aec,89145
6
6
  letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
7
7
  letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
8
8
  letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -44,7 +44,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
44
44
  letta_client/client.py,sha256=k2mZqqEWciVmEQHgipjCK4kQILk74hpSqzcdNwdql9A,21212
45
45
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
46
46
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
47
- letta_client/core/client_wrapper.py,sha256=HAUBq3dWP9p40q1aimUD9e8XQufDkVYWXrKN_J15jek,1998
47
+ letta_client/core/client_wrapper.py,sha256=mCPTh-fAv29eAHUUvDW2-lXI6s9DDFftf4pfLMFkxZ8,1998
48
48
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
49
49
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
50
50
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -106,7 +106,7 @@ letta_client/tools/types/add_mcp_server_request.py,sha256=EieZjfOT95sjkpxXdqy7gl
106
106
  letta_client/tools/types/add_mcp_server_response_item.py,sha256=TWdsKqGb1INhYtpGnAckz0Pw4nZShumSp4pfocRfxCA,270
107
107
  letta_client/tools/types/delete_mcp_server_response_item.py,sha256=MeZObU-7tMSCd-S5yuUjNDse6A1hUz1LLjbko0pXaro,273
108
108
  letta_client/tools/types/list_mcp_servers_response_value.py,sha256=AIoXu4bO8QNSU7zjL1jj0Rg4313wVtPaTt13W0aevLQ,273
109
- letta_client/types/__init__.py,sha256=zTFw61bW2DZVI4tDq5EvuOJib2XZZjxJ6tkLNW7GeL8,19522
109
+ letta_client/types/__init__.py,sha256=Yf0Y1lIFZHtKw9Z1UnZXhORlFABZzabzpWHoZ589pMQ,19620
110
110
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
111
111
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
112
112
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -226,8 +226,9 @@ letta_client/types/letta_request_config.py,sha256=b6K4QtDdHjcZKfBb1fugUuoPrT2N4d
226
226
  letta_client/types/letta_response.py,sha256=i5gAUTgWzIst_RP8I_zSh0GSnLIS3z--1BmK6EF1mkQ,1315
227
227
  letta_client/types/letta_streaming_request.py,sha256=jm0HLzfzWzIRs8uwtX33V5f5Ljw_hFOKOhPjdIZX9cA,1465
228
228
  letta_client/types/letta_usage_statistics.py,sha256=k6V72J2TEPd-RQBuUQxF3oylrAMcuSKBskd2nnZmGOw,1886
229
- letta_client/types/llm_config.py,sha256=cycdnu-lgQsLsFmFQrc9S_O20snEdxRLcvwWwLMFnik,3441
229
+ letta_client/types/llm_config.py,sha256=Sg1W1Jx1Ubi368RIzEhcS0wJUsFddBUq-HJ43DcBz3s,3689
230
230
  letta_client/types/llm_config_model_endpoint_type.py,sha256=HOSM5kIZDCNAVCWmASvAk52K819plqGlD66yKQ1xFkI,620
231
+ letta_client/types/llm_config_reasoning_effort.py,sha256=AHL2nI5aeTfPhijnhaL3aiP8EoJhy_Wdupi2pyMm4sA,173
231
232
  letta_client/types/local_sandbox_config.py,sha256=jfe7akG_YrJJ8csLaLdev04Zg1x-PTN0XCAL4KifaZI,1387
232
233
  letta_client/types/manager_type.py,sha256=GyGqWAihoS81T4RJtOcVSbiOSy-v1cpCWfRB_qU46Y0,197
233
234
  letta_client/types/max_count_per_step_tool_rule.py,sha256=sUhnoL1jolz2sygrmCuF4KfaDUGlBui-FGCXR5762Nc,1056
@@ -327,6 +328,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
327
328
  letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
328
329
  letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
329
330
  letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
330
- letta_client-0.1.107.dist-info/METADATA,sha256=_MUYcttVHLBrjyn-ZH-LTIIaOQmNhIMPJ8xTEn7Azyo,5042
331
- letta_client-0.1.107.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
332
- letta_client-0.1.107.dist-info/RECORD,,
331
+ letta_client-0.1.109.dist-info/METADATA,sha256=b1WpltUWVR0BEUKB75ybBWVeakqmsWgu0qEGIXCD4go,5042
332
+ letta_client-0.1.109.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
333
+ letta_client-0.1.109.dist-info/RECORD,,