letta-client 0.1.153__py3-none-any.whl → 0.1.155__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
@@ -130,6 +130,8 @@ from .types import (
130
130
  LettaRequest,
131
131
  LettaRequestConfig,
132
132
  LettaResponse,
133
+ LettaStopReason,
134
+ LettaStopReasonStopReason,
133
135
  LettaStreamingRequest,
134
136
  LettaUsageStatistics,
135
137
  LettaUserMessageContentUnion,
@@ -465,6 +467,8 @@ __all__ = [
465
467
  "LettaRequest",
466
468
  "LettaRequestConfig",
467
469
  "LettaResponse",
470
+ "LettaStopReason",
471
+ "LettaStopReasonStopReason",
468
472
  "LettaStreamingRequest",
469
473
  "LettaUsageStatistics",
470
474
  "LettaUserMessageContentUnion",
@@ -7,6 +7,7 @@ from ....types.reasoning_message import ReasoningMessage
7
7
  from ....types.tool_call_message import ToolCallMessage
8
8
  from ....types.tool_return_message import ToolReturnMessage
9
9
  from ....types.assistant_message import AssistantMessage
10
+ from ....types.letta_stop_reason import LettaStopReason
10
11
  from ....types.letta_usage_statistics import LettaUsageStatistics
11
12
 
12
13
  LettaStreamingResponse = typing.Union[
@@ -16,5 +17,6 @@ LettaStreamingResponse = typing.Union[
16
17
  ToolCallMessage,
17
18
  ToolReturnMessage,
18
19
  AssistantMessage,
20
+ LettaStopReason,
19
21
  LettaUsageStatistics,
20
22
  ]
@@ -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.153",
19
+ "X-Fern-SDK-Version": "0.1.155",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -129,6 +129,8 @@ from .letta_message_union import LettaMessageUnion
129
129
  from .letta_request import LettaRequest
130
130
  from .letta_request_config import LettaRequestConfig
131
131
  from .letta_response import LettaResponse
132
+ from .letta_stop_reason import LettaStopReason
133
+ from .letta_stop_reason_stop_reason import LettaStopReasonStopReason
132
134
  from .letta_streaming_request import LettaStreamingRequest
133
135
  from .letta_usage_statistics import LettaUsageStatistics
134
136
  from .letta_user_message_content_union import LettaUserMessageContentUnion
@@ -375,6 +377,8 @@ __all__ = [
375
377
  "LettaRequest",
376
378
  "LettaRequestConfig",
377
379
  "LettaResponse",
380
+ "LettaStopReason",
381
+ "LettaStopReasonStopReason",
378
382
  "LettaStreamingRequest",
379
383
  "LettaUsageStatistics",
380
384
  "LettaUserMessageContentUnion",
@@ -19,7 +19,7 @@ class ChildToolRule(UncheckedBaseModel):
19
19
  type: typing.Literal["constrain_child_tools"] = "constrain_child_tools"
20
20
  prompt_template: typing.Optional[str] = pydantic.Field(default=None)
21
21
  """
22
- Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes.
22
+ Optional Jinja2 template for generating agent prompt about this tool rule.
23
23
  """
24
24
 
25
25
  children: typing.List[str] = pydantic.Field()
@@ -19,7 +19,7 @@ class ConditionalToolRule(UncheckedBaseModel):
19
19
  type: typing.Literal["conditional"] = "conditional"
20
20
  prompt_template: typing.Optional[str] = pydantic.Field(default=None)
21
21
  """
22
- Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes.
22
+ Optional Jinja2 template for generating agent prompt about this tool rule.
23
23
  """
24
24
 
25
25
  default_child: typing.Optional[str] = pydantic.Field(default=None)
@@ -19,7 +19,7 @@ class ContinueToolRule(UncheckedBaseModel):
19
19
  type: typing.Literal["continue_loop"] = "continue_loop"
20
20
  prompt_template: typing.Optional[str] = pydantic.Field(default=None)
21
21
  """
22
- Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes.
22
+ Optional Jinja2 template for generating agent prompt about this tool rule.
23
23
  """
24
24
 
25
25
  if IS_PYDANTIC_V2:
@@ -0,0 +1,29 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import pydantic
6
+ from .letta_stop_reason_stop_reason import LettaStopReasonStopReason
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+
9
+
10
+ class LettaStopReason(UncheckedBaseModel):
11
+ """
12
+ Letta provided stop reason for why agent loop ended.
13
+ """
14
+
15
+ message_type: typing.Optional[typing.Literal["stop_reason"]] = pydantic.Field(default=None)
16
+ """
17
+ The type of the message.
18
+ """
19
+
20
+ stop_reason: LettaStopReasonStopReason
21
+
22
+ if IS_PYDANTIC_V2:
23
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
24
+ else:
25
+
26
+ class Config:
27
+ frozen = True
28
+ smart_union = True
29
+ extra = pydantic.Extra.allow
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ LettaStopReasonStopReason = typing.Union[
6
+ typing.Literal["end_turn", "error", "invalid_tool_call", "max_steps", "no_tool_call"], typing.Any
7
+ ]
@@ -19,7 +19,7 @@ class ParentToolRule(UncheckedBaseModel):
19
19
  type: typing.Literal["parent_last_tool"] = "parent_last_tool"
20
20
  prompt_template: typing.Optional[str] = pydantic.Field(default=None)
21
21
  """
22
- Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes.
22
+ Optional Jinja2 template for generating agent prompt about this tool rule.
23
23
  """
24
24
 
25
25
  children: typing.List[str] = pydantic.Field()
@@ -19,7 +19,7 @@ class TerminalToolRule(UncheckedBaseModel):
19
19
  type: typing.Literal["exit_loop"] = "exit_loop"
20
20
  prompt_template: typing.Optional[str] = pydantic.Field(default=None)
21
21
  """
22
- Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes.
22
+ Optional Jinja2 template for generating agent prompt about this tool rule.
23
23
  """
24
24
 
25
25
  if IS_PYDANTIC_V2:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.153
3
+ Version: 0.1.155
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=JjcnkQmIT0tbKf7xZXGOnQrte8vkEi0gfnoiPh15zvw,17210
1
+ letta_client/__init__.py,sha256=7u0luArqfecdYLSMewasD0fxBxN9gF3fXJizNWKmwvQ,17318
2
2
  letta_client/agents/__init__.py,sha256=3oFWVxaaxkphkjGJVk31Llb9ll9dKoCGx3B_r3qqtes,1716
3
3
  letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/blocks/client.py,sha256=ecE03lE5tP1AtCMFLT9FzdYyQMx_D7NI5m42b41pV40,24684
@@ -16,7 +16,7 @@ letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha
16
16
  letta_client/agents/messages/__init__.py,sha256=M7Ar6Rmb8we4dfYE6jj3FCL9UvVFy1bNQIPflUXMWHA,243
17
17
  letta_client/agents/messages/client.py,sha256=g_tE8kPO16g9aDrPPiMV_62R1yRxYDs-aU7iVEUMn6A,45087
18
18
  letta_client/agents/messages/types/__init__.py,sha256=Oc2j0oGOs96IEFf9xsJIkjBjoq3OMtse64YwWv3F9Io,335
19
- letta_client/agents/messages/types/letta_streaming_response.py,sha256=MdE2PxQ1x1AviakHXsWVcFv97a3RchzzzIiD77w4EC8,665
19
+ letta_client/agents/messages/types/letta_streaming_response.py,sha256=8VR2F32xjoPFXL4YBvBbAZclaJG4ENPTjk7BrlZkmtw,742
20
20
  letta_client/agents/messages/types/messages_modify_request.py,sha256=7C2X3BKye-YDSXOkdEmxxt34seI4jkLK0-govtc4nhg,475
21
21
  letta_client/agents/messages/types/messages_modify_response.py,sha256=THyiUMxZyzVSp0kk1s0XOLW1LUass7mXcfFER1PTLyw,671
22
22
  letta_client/agents/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -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=z5rShkFlj6S6w0ZRHfS1nMwKUirPsTkwzmL3PFF78zM,1998
65
+ letta_client/core/client_wrapper.py,sha256=sPElYg3C42DWGB47YimSsvFoXINgyfzy1to8HdwelHs,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
@@ -150,7 +150,7 @@ letta_client/tools/types/add_mcp_server_request.py,sha256=EieZjfOT95sjkpxXdqy7gl
150
150
  letta_client/tools/types/add_mcp_server_response_item.py,sha256=pb3A4IoP7Qpen0UDDniXrASYEJZWnYnnrZThtPkvZt4,270
151
151
  letta_client/tools/types/delete_mcp_server_response_item.py,sha256=hKc4uehqcubO8BzpgMlvk2jJAjHXOWRM_zmWsCz_vZE,273
152
152
  letta_client/tools/types/list_mcp_servers_response_value.py,sha256=AIoXu4bO8QNSU7zjL1jj0Rg4313wVtPaTt13W0aevLQ,273
153
- letta_client/types/__init__.py,sha256=IxgI0K2iYGDB3_GRq6JkKNtiXEtuLWAxHdaVGBbxyzE,21583
153
+ letta_client/types/__init__.py,sha256=2e-vGb4Xk9AWaVhsOBlh3DREgh3WfbAdEHPQUGvBnpY,21755
154
154
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
155
155
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
156
156
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -204,7 +204,7 @@ letta_client/types/chat_completion_tool_param.py,sha256=jwgKq_3AW8ybc9xVr9JyNSFq
204
204
  letta_client/types/chat_completion_user_message_param.py,sha256=EWz44TKVGV7B2BcPSJ8Qr8R8unJXzsN4R9ziixZvrZs,786
205
205
  letta_client/types/chat_completion_user_message_param_content.py,sha256=XNFFnok5yM6oBXB6aiUo0aFw53jT8BUjt88HFjJUiU8,297
206
206
  letta_client/types/chat_completion_user_message_param_content_item.py,sha256=ONQbm9RX1bbM9KO8a9mbWHyUEIuOq70wPiVFMhagLbU,579
207
- letta_client/types/child_tool_rule.py,sha256=koF-6gcjYPvX47-xhq2_2pXfXlrlSd71nCheBtTu-xM,1194
207
+ letta_client/types/child_tool_rule.py,sha256=GjRjRV2c4VF3h0fXNF75_yaZgHxSnAf75RRnfW1VvqM,1120
208
208
  letta_client/types/child_tool_rule_schema.py,sha256=1FrJDSyQvQ6eEyKUIvuNFfGzbrTdSdUfJg4gpNo6DrM,614
209
209
  letta_client/types/completion_create_params_non_streaming.py,sha256=hjEJ-wJWuFuTy4Y73RIllBa1EMisK9gr7yQd8rrv_r8,4008
210
210
  letta_client/types/completion_create_params_non_streaming_function_call.py,sha256=6iCjgXwsXnflllhfDDKtHRyxzKqtLcX6-HVr7AXlyUM,329
@@ -227,11 +227,11 @@ letta_client/types/completion_create_params_streaming_service_tier.py,sha256=chH
227
227
  letta_client/types/completion_create_params_streaming_stop.py,sha256=dSyQDu851QyeoRjpoE2JBIyKIYGO5jVx6UIH-bLiQwo,154
228
228
  letta_client/types/completion_create_params_streaming_tool_choice.py,sha256=w_JLYtdz8eHzF2lwlMaMGpnOl8_4mjGbsDOSpMyM5cg,343
229
229
  letta_client/types/components_schemas_text_content.py,sha256=F21GPPwREb6GodS4dGsT7-4wySEUdhpq6krznF-sOPE,147
230
- letta_client/types/conditional_tool_rule.py,sha256=XNi2eqs6427VPslxXJe5P75OOTrVHKeSj_Gt4v7RfWY,1537
230
+ letta_client/types/conditional_tool_rule.py,sha256=gqABxLNqaP1zGj0Cnq3w7STClhmpb-yNXkU5U5BT2Uo,1463
231
231
  letta_client/types/conditional_tool_rule_schema.py,sha256=hP1TA-lrmlwOk1tbsngyhW-8NGFuf3Prln3vHdQJjsM,717
232
232
  letta_client/types/conflict_error_body.py,sha256=Mena-q1jti6nv_7-xrp6sDb_5MXNKPGobHrhpnz9kpY,787
233
233
  letta_client/types/context_window_overview.py,sha256=9pwiObSxu-SFyQ1pxSTlQiRatVAyFgqa6t0_qrrsGfU,2815
234
- letta_client/types/continue_tool_rule.py,sha256=u7En5NoX69ifAyE3GPVioaJUFFqhR1uB7PMEm95JDNM,1109
234
+ letta_client/types/continue_tool_rule.py,sha256=cGKyCh9LwxXJfWKEi8HMAcyBv3QTrmZkwt9YugzwtqY,1035
235
235
  letta_client/types/core_memory_block_schema.py,sha256=DGHyLAcFhHBm7oXkhkGIkkckcl9S2bCaU9b3qrUeNtc,984
236
236
  letta_client/types/create_block.py,sha256=cyyufU4MBcLGjCNeTFZE7TX4LUhQXIaZAVwaoYkMlpE,1562
237
237
  letta_client/types/dynamic_manager.py,sha256=5DRNqtUnjeTwOe5mkNB-SXItqLOfEX0avSrwsrJt1Aw,853
@@ -280,6 +280,8 @@ letta_client/types/letta_message_union.py,sha256=TTQwlur2CZNdZ466Nb_2TFcSFXrgoMl
280
280
  letta_client/types/letta_request.py,sha256=vhS3qQYxNN2dlE_kXWPW3BJekBDMTSRp1MXmj4-ztfQ,1659
281
281
  letta_client/types/letta_request_config.py,sha256=b6K4QtDdHjcZKfBb1fugUuoPrT2N4d5TTB0PIRNI2SU,1085
282
282
  letta_client/types/letta_response.py,sha256=i5gAUTgWzIst_RP8I_zSh0GSnLIS3z--1BmK6EF1mkQ,1315
283
+ letta_client/types/letta_stop_reason.py,sha256=urH4dc6Y6o_5rS8shE-qiUgBs1cM6DmCyTgrTNPXiN0,874
284
+ letta_client/types/letta_stop_reason_stop_reason.py,sha256=cssk6ZibCFcf4sR6O71fC1kasDxuul5WntxLIIaRdZU,226
283
285
  letta_client/types/letta_streaming_request.py,sha256=YJ_6ge5xrzQjOs2UTY3FxwhTv6QoCi9XWv5Rod01W1E,1884
284
286
  letta_client/types/letta_usage_statistics.py,sha256=k6V72J2TEPd-RQBuUQxF3oylrAMcuSKBskd2nnZmGOw,1886
285
287
  letta_client/types/letta_user_message_content_union.py,sha256=3Gbs3mRk-tJj2z0Mf-BNDomWHEytQd3OTUN4xnEVsuE,229
@@ -312,7 +314,7 @@ letta_client/types/organization_create.py,sha256=qi37VLCejxTYpJe9gC1slhENIdz6B4D
312
314
  letta_client/types/organization_update.py,sha256=uCQAcWm8az3VbMtCEidPBZLh6Qyo4Z0FQco1Hdrk4LY,814
313
315
  letta_client/types/parameter_properties.py,sha256=KVQGp_csoiNzyf9XsL083fwlX_a2Tc8GsCKyWB323C8,609
314
316
  letta_client/types/parameters_schema.py,sha256=ptXcwjuaCwqRhfizeiWAsu3pqT87Jcj_P3YaEkL4asM,748
315
- letta_client/types/parent_tool_rule.py,sha256=NRL_uAyWRmhjpOqEEN9a2De8Zi_FEFULH2CKu-uRnxU,1207
317
+ letta_client/types/parent_tool_rule.py,sha256=YPWpQDp54vdLxLKp4sOgdcUBbU1oEVYqU6HZxoL9Skg,1133
316
318
  letta_client/types/passage.py,sha256=k2EGG94WMFA3wsoL6Vd9ax18S2Nk7i_HlXvV5Dw5S4Y,3171
317
319
  letta_client/types/payment_required_error_body.py,sha256=CXPzl1jrozG5PAiJakOK29qmgo5az8FQu_MVmEBxsK4,589
318
320
  letta_client/types/pip_requirement.py,sha256=Hmh7VpJhdSfFkafh6QwAehCp0MQUBXv1YAoYP-2wV2M,773
@@ -349,7 +351,7 @@ letta_client/types/supervisor_manager.py,sha256=VdR1ySp4k43apxM8Bb5uNoBvADsvz8oM
349
351
  letta_client/types/supervisor_manager_update.py,sha256=UJ_TcWcF_PK152Gni0tgRCe3bthCgJbQHCZIb5LLsL0,711
350
352
  letta_client/types/system_message.py,sha256=Dn1GkT1INUGLHkwBsqJL0HtkcGXx0CAKqzSl34jZ4xM,1302
351
353
  letta_client/types/tag_schema.py,sha256=FEszKlRD2FqezKlX99OLqTqf46dONlcGPo1m43osdNo,553
352
- letta_client/types/terminal_tool_rule.py,sha256=BmW00dEUawDDbaLugSBr2kQLt_uuxGOtmPuT3orzHuc,1105
354
+ letta_client/types/terminal_tool_rule.py,sha256=E9XJMsIOAAERnTztXhbB0z4P-oBH0BxnXpGm9zbn3HM,1031
353
355
  letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
354
356
  letta_client/types/text_response_format.py,sha256=daIziOp-O4cEDqFH1CSIqb0p5BL721_kA0JSOtWlt0k,654
355
357
  letta_client/types/tool.py,sha256=Mj2jm6dtDDMdTFLx4BZeJQ5oVCxIlGBjq3glQBuDUKM,2838
@@ -396,6 +398,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
396
398
  letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
397
399
  letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
398
400
  letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
399
- letta_client-0.1.153.dist-info/METADATA,sha256=2smK3IY8Ny8t8DG3mOBRKTv9QWgxUeG0ZhxQLY7oXXY,5093
400
- letta_client-0.1.153.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
401
- letta_client-0.1.153.dist-info/RECORD,,
401
+ letta_client-0.1.155.dist-info/METADATA,sha256=EtI5d3P-eQgHPO8dKW7J-UCPbtW1STJMmDX5hfWSLsU,5093
402
+ letta_client-0.1.155.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
403
+ letta_client-0.1.155.dist-info/RECORD,,