letta-client 0.1.154__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.154",
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",
@@ -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
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.154
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=HbaKd4-OfzTItWmtp67hMQl7HAWLl7e9OtC48hoAHTg,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
@@ -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
@@ -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.154.dist-info/METADATA,sha256=VXnDiNaqzxLjGVW2w1Rda7vbAO0ebJqPI6RKcY888Gw,5093
400
- letta_client-0.1.154.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
401
- letta_client-0.1.154.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,,