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

@@ -1,125 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from __future__ import annotations
4
- from ....core.unchecked_base_model import UncheckedBaseModel
5
- import typing
6
- import datetime as dt
7
- from ....core.pydantic_utilities import IS_PYDANTIC_V2
8
- import pydantic
9
- from ....types.tool_call_message_tool_call import ToolCallMessageToolCall
10
- from ....types.tool_return_message_status import ToolReturnMessageStatus
11
- import typing_extensions
12
- from ....core.unchecked_base_model import UnionMetadata
13
-
14
-
15
- class MessagesListResponseItem_SystemMessage(UncheckedBaseModel):
16
- message_type: typing.Literal["system_message"] = "system_message"
17
- id: str
18
- date: dt.datetime
19
- message: str
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
29
-
30
-
31
- class MessagesListResponseItem_UserMessage(UncheckedBaseModel):
32
- message_type: typing.Literal["user_message"] = "user_message"
33
- id: str
34
- date: dt.datetime
35
- message: str
36
-
37
- if IS_PYDANTIC_V2:
38
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
39
- else:
40
-
41
- class Config:
42
- frozen = True
43
- smart_union = True
44
- extra = pydantic.Extra.allow
45
-
46
-
47
- class MessagesListResponseItem_ReasoningMessage(UncheckedBaseModel):
48
- message_type: typing.Literal["reasoning_message"] = "reasoning_message"
49
- id: str
50
- date: dt.datetime
51
- reasoning: str
52
-
53
- if IS_PYDANTIC_V2:
54
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
55
- else:
56
-
57
- class Config:
58
- frozen = True
59
- smart_union = True
60
- extra = pydantic.Extra.allow
61
-
62
-
63
- class MessagesListResponseItem_ToolCallMessage(UncheckedBaseModel):
64
- message_type: typing.Literal["tool_call_message"] = "tool_call_message"
65
- id: str
66
- date: dt.datetime
67
- tool_call: ToolCallMessageToolCall
68
-
69
- if IS_PYDANTIC_V2:
70
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
71
- else:
72
-
73
- class Config:
74
- frozen = True
75
- smart_union = True
76
- extra = pydantic.Extra.allow
77
-
78
-
79
- class MessagesListResponseItem_ToolReturnMessage(UncheckedBaseModel):
80
- message_type: typing.Literal["tool_return_message"] = "tool_return_message"
81
- id: str
82
- date: dt.datetime
83
- tool_return: str
84
- status: ToolReturnMessageStatus
85
- tool_call_id: str
86
- stdout: typing.Optional[typing.List[str]] = None
87
- stderr: typing.Optional[typing.List[str]] = None
88
-
89
- if IS_PYDANTIC_V2:
90
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
91
- else:
92
-
93
- class Config:
94
- frozen = True
95
- smart_union = True
96
- extra = pydantic.Extra.allow
97
-
98
-
99
- class MessagesListResponseItem_AssistantMessage(UncheckedBaseModel):
100
- message_type: typing.Literal["assistant_message"] = "assistant_message"
101
- id: str
102
- date: dt.datetime
103
- assistant_message: str
104
-
105
- if IS_PYDANTIC_V2:
106
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
107
- else:
108
-
109
- class Config:
110
- frozen = True
111
- smart_union = True
112
- extra = pydantic.Extra.allow
113
-
114
-
115
- MessagesListResponseItem = typing_extensions.Annotated[
116
- typing.Union[
117
- MessagesListResponseItem_SystemMessage,
118
- MessagesListResponseItem_UserMessage,
119
- MessagesListResponseItem_ReasoningMessage,
120
- MessagesListResponseItem_ToolCallMessage,
121
- MessagesListResponseItem_ToolReturnMessage,
122
- MessagesListResponseItem_AssistantMessage,
123
- ],
124
- UnionMetadata(discriminant="message_type"),
125
- ]