letta-client 0.1.322__py3-none-any.whl → 0.1.323__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
@@ -201,6 +201,8 @@ from .types import (
201
201
  StepStatus,
202
202
  StopReasonType,
203
203
  StreamableHttpServerConfig,
204
+ SummarizedReasoningContent,
205
+ SummarizedReasoningContentPart,
204
206
  SupervisorManager,
205
207
  SupervisorManagerUpdate,
206
208
  SystemMessage,
@@ -631,6 +633,8 @@ __all__ = [
631
633
  "StopReasonType",
632
634
  "StreamableHttpServerConfig",
633
635
  "StreamingResponse",
636
+ "SummarizedReasoningContent",
637
+ "SummarizedReasoningContentPart",
634
638
  "SupervisorManager",
635
639
  "SupervisorManagerUpdate",
636
640
  "SystemMessage",
@@ -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.322",
27
+ "User-Agent": "letta-client/0.1.323",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.322",
30
+ "X-Fern-SDK-Version": "0.1.323",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -4,6 +4,7 @@ import typing
4
4
 
5
5
  TemplatesGetTemplateSnapshotResponseAgentsItemAgentType = typing.Union[
6
6
  typing.Literal[
7
+ "letta_v1_agent",
7
8
  "memgpt_agent",
8
9
  "memgpt_v2_agent",
9
10
  "react_agent",
@@ -208,6 +208,8 @@ from .step_metrics import StepMetrics
208
208
  from .step_status import StepStatus
209
209
  from .stop_reason_type import StopReasonType
210
210
  from .streamable_http_server_config import StreamableHttpServerConfig
211
+ from .summarized_reasoning_content import SummarizedReasoningContent
212
+ from .summarized_reasoning_content_part import SummarizedReasoningContentPart
211
213
  from .supervisor_manager import SupervisorManager
212
214
  from .supervisor_manager_update import SupervisorManagerUpdate
213
215
  from .system_message import SystemMessage
@@ -454,6 +456,8 @@ __all__ = [
454
456
  "StepStatus",
455
457
  "StopReasonType",
456
458
  "StreamableHttpServerConfig",
459
+ "SummarizedReasoningContent",
460
+ "SummarizedReasoningContentPart",
457
461
  "SupervisorManager",
458
462
  "SupervisorManagerUpdate",
459
463
  "SystemMessage",
@@ -6,6 +6,7 @@ AgentType = typing.Union[
6
6
  typing.Literal[
7
7
  "memgpt_agent",
8
8
  "memgpt_v2_agent",
9
+ "letta_v1_agent",
9
10
  "react_agent",
10
11
  "workflow_agent",
11
12
  "split_thread_agent",
@@ -6,6 +6,7 @@ from .image_content import ImageContent
6
6
  from .omitted_reasoning_content import OmittedReasoningContent
7
7
  from .reasoning_content import ReasoningContent
8
8
  from .redacted_reasoning_content import RedactedReasoningContent
9
+ from .summarized_reasoning_content import SummarizedReasoningContent
9
10
  from .text_content import TextContent
10
11
  from .tool_call_content import ToolCallContent
11
12
  from .tool_return_content import ToolReturnContent
@@ -15,6 +16,7 @@ MessageContentItem = typing.Union[
15
16
  OmittedReasoningContent,
16
17
  ReasoningContent,
17
18
  RedactedReasoningContent,
19
+ SummarizedReasoningContent,
18
20
  TextContent,
19
21
  ToolCallContent,
20
22
  ToolReturnContent,
@@ -8,6 +8,10 @@ from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
10
  class OmittedReasoningContent(UncheckedBaseModel):
11
+ """
12
+ A placeholder for reasoning content we know is present, but isn't returned by the provider (e.g. OpenAI GPT-5 on ChatCompletions)
13
+ """
14
+
11
15
  type: typing.Literal["omitted_reasoning"] = "omitted_reasoning"
12
16
 
13
17
  if IS_PYDANTIC_V2:
@@ -8,6 +8,10 @@ from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
10
  class ReasoningContent(UncheckedBaseModel):
11
+ """
12
+ Sent via the Anthropic Messages API
13
+ """
14
+
11
15
  type: typing.Literal["reasoning"] = "reasoning"
12
16
  is_native: bool = pydantic.Field()
13
17
  """
@@ -8,6 +8,10 @@ from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
10
  class RedactedReasoningContent(UncheckedBaseModel):
11
+ """
12
+ Sent via the Anthropic Messages API
13
+ """
14
+
11
15
  type: typing.Literal["redacted_reasoning"] = "redacted_reasoning"
12
16
  data: str = pydantic.Field()
13
17
  """
@@ -0,0 +1,39 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ from ..core.unchecked_base_model import UncheckedBaseModel
8
+ from .summarized_reasoning_content_part import SummarizedReasoningContentPart
9
+
10
+
11
+ class SummarizedReasoningContent(UncheckedBaseModel):
12
+ """
13
+ The style of reasoning content returned by the OpenAI Responses API
14
+ """
15
+
16
+ type: typing.Literal["summarized_reasoning"] = "summarized_reasoning"
17
+ id: str = pydantic.Field()
18
+ """
19
+ The unique identifier for this reasoning step.
20
+ """
21
+
22
+ summary: typing.List[SummarizedReasoningContentPart] = pydantic.Field()
23
+ """
24
+ Summaries of the reasoning content.
25
+ """
26
+
27
+ encrypted_content: typing.Optional[str] = pydantic.Field(default=None)
28
+ """
29
+ The encrypted reasoning content.
30
+ """
31
+
32
+ if IS_PYDANTIC_V2:
33
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
34
+ else:
35
+
36
+ class Config:
37
+ frozen = True
38
+ smart_union = True
39
+ extra = pydantic.Extra.allow
@@ -0,0 +1,28 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ from ..core.unchecked_base_model import UncheckedBaseModel
8
+
9
+
10
+ class SummarizedReasoningContentPart(UncheckedBaseModel):
11
+ index: int = pydantic.Field()
12
+ """
13
+ The index of the summary part.
14
+ """
15
+
16
+ text: str = pydantic.Field()
17
+ """
18
+ The text of the summary part.
19
+ """
20
+
21
+ if IS_PYDANTIC_V2:
22
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
23
+ else:
24
+
25
+ class Config:
26
+ frozen = True
27
+ smart_union = True
28
+ extra = pydantic.Extra.allow
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.322
3
+ Version: 0.1.323
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=w70bvW-m3SZBYkgjWwcxmOC3OjELsZfWoVeq7rCQ6JU,22616
1
+ letta_client/__init__.py,sha256=F4zBeLgNuv81URUwKeTuxps2zoUGVjEeGszOIjDsNEQ,22756
2
2
  letta_client/agents/__init__.py,sha256=tivYxCGfOJoJPrDjdXFPEKGxqeHiILzaaUyrjbEpF-s,2255
3
3
  letta_client/agents/blocks/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
4
4
  letta_client/agents/blocks/client.py,sha256=WAKaFGx76QqDG1Ygd2hlvyXHTjV-ObjnvQSMKK6h1SM,16143
@@ -111,7 +111,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
111
111
  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
112
112
  letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
113
113
  letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
114
- letta_client/core/client_wrapper.py,sha256=L34PzguD0__6ZLJ_Uvh-isulYop5nkh6wHIQQ-x_RyI,2776
114
+ letta_client/core/client_wrapper.py,sha256=uZr3AkhzMDzR3Yed4xutM2MTDRPSBJMYbdAUvfTlqL4,2776
115
115
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
116
116
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
117
117
  letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -311,7 +311,7 @@ letta_client/templates/types/templates_delete_template_response.py,sha256=_DUyWh
311
311
  letta_client/templates/types/templates_fork_template_response.py,sha256=zX8aCR5Z8sEgXJHHzxsPeYRNMW2HfD26EN5Mlwrt-ZI,1080
312
312
  letta_client/templates/types/templates_get_template_snapshot_response.py,sha256=VB1EYXNo-KECQSnqhaNty1xzCi7StAlpu1tLnOliBAU,1517
313
313
  letta_client/templates/types/templates_get_template_snapshot_response_agents_item.py,sha256=eW6CAfX5o1LfSLKSQTuUYhQ4k93noNp1m_2zFmUmGN8,2858
314
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_agent_type.py,sha256=CXbLqt2S21b9bg_wo8r__g-CchjLQ2FqZ7WN-cJAGm8,416
314
+ letta_client/templates/types/templates_get_template_snapshot_response_agents_item_agent_type.py,sha256=f7Ukk1mX7JDAvRd5fCylxLRJwPzR0A4GS5NLrH5ekgw,442
315
315
  letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables.py,sha256=POh1PTstz0UC_rOnkpEyIQI0yHrANeM6Y5vuJlJAruU,877
316
316
  letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables_data_item.py,sha256=TNgE_92wCm2MEGERb_q24_GKzvbh1z1I3pchuwowowA,816
317
317
  letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties.py,sha256=Z_1C30tZ5BC7RgMuBLI8ghD5CuBjrmH3OZZjcjwWcR0,1666
@@ -358,7 +358,7 @@ letta_client/tools/types/test_mcp_server_request.py,sha256=3SqjEL3EYi7iV57TjTIzu
358
358
  letta_client/tools/types/tools_list_request_order.py,sha256=Gi0MwZ1KN1X3--U7NDEMQOQu1xvfJMdGIbCj5M0w8KM,160
359
359
  letta_client/tools/types/update_mcp_server_request.py,sha256=MHouV3iyZCTROguOQP5rOYvnmvDbBeXe5VtEejRvrEs,403
360
360
  letta_client/tools/types/update_mcp_server_response.py,sha256=BJTPHWkb8hwgd4FvftQ8eZjl2QzCQT-vZAUVnLft9hw,376
361
- letta_client/types/__init__.py,sha256=3XZSPgpf57wBytHxAGVIRKJNP0MFGUsxWU-Vc_pp2GE,19792
361
+ letta_client/types/__init__.py,sha256=qbv8XwIQvOcogPUPrhzF3z-VS4q5WjLoQTmhOSmChBg,20011
362
362
  letta_client/types/action_model.py,sha256=VTXavHB6J2d4MjjTMEpkuEyVaiTHyj1FGfa4j8kN6hQ,1241
363
363
  letta_client/types/action_parameters_model.py,sha256=s1mJ4tycms8UmCFsxyjKr6RbghSuqv35xpa9mK42sjg,829
364
364
  letta_client/types/action_response_model.py,sha256=LcML150OvsKimVV3sP4jSFh8pVxQXn_r_ff8DADOr3c,825
@@ -368,7 +368,7 @@ letta_client/types/agent_file_schema.py,sha256=yD3QqRVWQr7T9M7OXL9KWNCP9BiR9wZC4
368
368
  letta_client/types/agent_state.py,sha256=49E2WuDdG0lJ19uvS1zbjXZMLOfZnhKFSaYGFJlLrGY,7084
369
369
  letta_client/types/agent_state_response_format.py,sha256=EsaiTnlxRPkGPBc67DCsVAARsGubFQM7Xbs12jtsvWw,378
370
370
  letta_client/types/agent_state_tool_rules_item.py,sha256=m0DKEipSMed98rueO2oqqBNhNp5-l-mfBvUGHSS0Ibg,825
371
- letta_client/types/agent_type.py,sha256=4_JSgy0zfiqtUcKh5XMfRDYaablo4RuzUmIstRZ2FsI,370
371
+ letta_client/types/agent_type.py,sha256=UiNBTp7UPIIF2LJZAQlBgd-Rqa20M3WNmJYuCwEHSeA,396
372
372
  letta_client/types/app_auth_scheme.py,sha256=A1ha3TmjgFw3-mW8r44LPB_Go3pdbGxJ_LHrDChSG14,1243
373
373
  letta_client/types/app_auth_scheme_auth_mode.py,sha256=cEj9XAxLgFcang_Irw6h3koWac9A0tpNeBG05NUeGlw,387
374
374
  letta_client/types/app_model.py,sha256=6QlEj1uFSnUMDEkmM1XF1umO-X6AHq5oBGzVTZeZeEo,1520
@@ -497,7 +497,7 @@ letta_client/types/mcp_tool_health.py,sha256=ToG3Ut-9nvPkdFNL4gzu1LMv4bNmD7yFZ-b
497
497
  letta_client/types/memory.py,sha256=ndQGYXZlFm5EkvL0uCBUAVMLSsn3kLPkQaPbeTc60-8,1418
498
498
  letta_client/types/memory_agent_type.py,sha256=YYUeXFXiBY94uC6rFw2ELewF5VOKnpeQrGfb5YJ-a4M,162
499
499
  letta_client/types/message.py,sha256=KgMwqg6tcIjtnrz2k-wl3tqtJVVy-_ZS2q4_xdTDNt0,5200
500
- letta_client/types/message_content_item.py,sha256=mu9j_dp-XAHQjbE0bv5wxMH3fTRW_dCtiIzbhdCMauw,630
500
+ letta_client/types/message_content_item.py,sha256=c1nitSTFwNnLPQe9hTlVTLdS8dPdU-6rCQgXQLRHekI,731
501
501
  letta_client/types/message_create.py,sha256=OCmj0ZZLk2v48I4w3vZOXAmt7tySBG6U0iYZv4vsXEo,1739
502
502
  letta_client/types/message_create_content.py,sha256=pKppl-N8IdqR-ShWCZ0HN-3b13plPE2vSi6YcRM3w8o,227
503
503
  letta_client/types/message_create_role.py,sha256=PWbew2WtK-36P4d3Nuvq4QNLDAPntsGpasS_WzivyXg,172
@@ -508,7 +508,7 @@ letta_client/types/modal_sandbox_config.py,sha256=QBGbV1563_tr6Fep0uBy1oboERRQC-
508
508
  letta_client/types/modal_sandbox_config_language.py,sha256=RHJmtMZwO-kcYqHIWFel0R2LwKZbAw19V-bhEUguDI0,174
509
509
  letta_client/types/not_found_error_body.py,sha256=yE3-m6hzUyibPfMU09MqPOfairn7WtqdrqRpybnfsxk,566
510
510
  letta_client/types/npm_requirement.py,sha256=XnJhQNy8ywDXzgKuT4wT8PTk-6umQ_3N7Ok9RKuyT2E,774
511
- letta_client/types/omitted_reasoning_content.py,sha256=SW3FdgrmkcGwF4CH2cFx3KoYkJewjzmDeh8mP-UlHDI,623
511
+ letta_client/types/omitted_reasoning_content.py,sha256=TpLz1I83ifsZpWFp99cHn-Mw71VYjv3JDPbQuKVCYO0,774
512
512
  letta_client/types/organization.py,sha256=RV0shhT3Lg3WlJG6vcIFRGb7lpf6nWCZGBofD67f4po,1081
513
513
  letta_client/types/organization_create.py,sha256=ixvuJTv8UDefV9fS7gHCTjr-a32eTDhjaJMay5fE4Ak,815
514
514
  letta_client/types/organization_sources_stats.py,sha256=58f-ZnVS0rrRXJHBa4y47Oa_fymEKnNiwbc8r_L7Dmo,1166
@@ -524,10 +524,10 @@ letta_client/types/provider.py,sha256=hUTNL8HIolqPtKwPdSxjElEhENIYh05nB12ma9pcZ1
524
524
  letta_client/types/provider_category.py,sha256=St4tSc_Wc5huF79kb088-L-tRz9Cj2_b5DqEoU4eDIs,156
525
525
  letta_client/types/provider_trace.py,sha256=d7_IpoEgLeqnPaElWjOp6iAL8SbeI4DZsBaaaFtkorM,2201
526
526
  letta_client/types/provider_type.py,sha256=1nKjLUXPY7_O_nW-AjznrEMk3NxUSggmQMj8wHsGx8A,487
527
- letta_client/types/reasoning_content.py,sha256=YPmNwwSH_toPAThpE5gq7gaxBlvvjh33csKBRdFI_iY,996
527
+ letta_client/types/reasoning_content.py,sha256=k9WNSWZkfrjPRW5YxfTThTQKU80is6LEkzv5ULIKBuU,1053
528
528
  letta_client/types/reasoning_message.py,sha256=-eZpuDwFkRjNcfrebI3u_7HIP62sxXnZl59bx21oTR8,1728
529
529
  letta_client/types/reasoning_message_source.py,sha256=GYOWGm2mje1yYbR8E2kbAeQS--VDrGlpsobEBQHE2cU,186
530
- letta_client/types/redacted_reasoning_content.py,sha256=d3L2OoswodrCBaeCsP9VSDd7VUmVFEMN9ORPCUGsz6c,736
530
+ letta_client/types/redacted_reasoning_content.py,sha256=QQdi6qPb4UcGNFDwHoefFWdXakZkARqjumMD6bcLdi0,793
531
531
  letta_client/types/required_before_exit_tool_rule.py,sha256=rMM4Mov7CTmQVJZtpZlZG90n690kXWzPOe3Nbv3zppU,1019
532
532
  letta_client/types/requires_approval_tool_rule.py,sha256=1mKQLGjy0NBcBgbLK0p1rBspUl6m4G3SY4KZKqDGrIU,1061
533
533
  letta_client/types/round_robin_manager.py,sha256=cGnv5WFZowjguzNLX9Nv3DDfdgzDolN3onSkLLjAl6Y,701
@@ -557,6 +557,8 @@ letta_client/types/step_metrics.py,sha256=TvJtShzqEmS0chdIZKVEII0pz-nZaWT9Ud0Jvz
557
557
  letta_client/types/step_status.py,sha256=OruAXMfFrCL0Bgoj7Wfjr8400ok5jcV4busa9NV-KIw,179
558
558
  letta_client/types/stop_reason_type.py,sha256=FupEOxG91KZKUTywj-LpE9MckbMobTwnnqW3RPN_v0w,395
559
559
  letta_client/types/streamable_http_server_config.py,sha256=GNbt2KO9VepHUtiMoK6htJLpFHcGoFJaoH1Az6zkt-Q,1776
560
+ letta_client/types/summarized_reasoning_content.py,sha256=bTbeUcsHSvrljgd0VcHPZ-U8hUyNTp6iZbI5mwqqYD4,1159
561
+ letta_client/types/summarized_reasoning_content_part.py,sha256=ich4spX1DU1WhO0OD0EdWEXDA0sWK5PA_DJLQsCsAGI,731
560
562
  letta_client/types/supervisor_manager.py,sha256=tq3WDIxiyJJe4zf1Pf7UkMqTXcMF7NETLgFr-DCTNIc,677
561
563
  letta_client/types/supervisor_manager_update.py,sha256=srC_cYti3h_DdWRmcrLMgWnMS07Rpwo_U0tjCD19cb0,712
562
564
  letta_client/types/system_message.py,sha256=-jWKwRBrVleOGAE9n8VXCRk1sI6cFMw4KWB_3CsCeZw,1424
@@ -607,6 +609,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
607
609
  letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
608
610
  letta_client/voice/client.py,sha256=MS0lkcQ1jxA6tjhL8Y0InMWFrUshvSHnWIfdD6pRe-0,3542
609
611
  letta_client/voice/raw_client.py,sha256=W6mPMWqUMclyAMT3-gxOg5yLm_oGhaOdSmwciiiYt50,5618
610
- letta_client-0.1.322.dist-info/METADATA,sha256=NUcn7CJgpCS8GZUCgXIrFjDO_TRYgWxSXJ0d8XfMr3k,5820
611
- letta_client-0.1.322.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
612
- letta_client-0.1.322.dist-info/RECORD,,
612
+ letta_client-0.1.323.dist-info/METADATA,sha256=qvDlddyx5L5F63wPV_cZyCC2I_OgzvrRcQ5-_CxiWdc,5820
613
+ letta_client-0.1.323.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
614
+ letta_client-0.1.323.dist-info/RECORD,,