letta-client 0.1.66__py3-none-any.whl → 0.1.67__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 +2 -2
- letta_client/agents/messages/client.py +12 -4
- letta_client/agents/messages/types/messages_modify_response.py +7 -5
- letta_client/core/client_wrapper.py +1 -1
- letta_client/types/__init__.py +2 -2
- letta_client/types/assistant_message.py +14 -2
- letta_client/types/assistant_message_content.py +2 -2
- letta_client/types/{update_reasoning_message_reasoning.py → components_schemas_text_content.py} +1 -2
- letta_client/types/reasoning_message.py +2 -2
- letta_client/types/system_message.py +7 -4
- letta_client/types/system_message_content.py +2 -2
- letta_client/types/tool_call_message.py +2 -2
- letta_client/types/tool_return_message.py +3 -3
- letta_client/types/update_assistant_message.py +7 -4
- letta_client/types/update_assistant_message_content.py +2 -2
- letta_client/types/update_reasoning_message.py +2 -3
- letta_client/types/update_system_message.py +7 -4
- letta_client/types/update_system_message_content.py +2 -2
- letta_client/types/update_user_message.py +7 -4
- letta_client/types/update_user_message_content.py +2 -2
- letta_client/types/user_message.py +7 -4
- letta_client/types/user_message_content.py +2 -2
- {letta_client-0.1.66.dist-info → letta_client-0.1.67.dist-info}/METADATA +1 -1
- {letta_client-0.1.66.dist-info → letta_client-0.1.67.dist-info}/RECORD +25 -25
- {letta_client-0.1.66.dist-info → letta_client-0.1.67.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -68,6 +68,7 @@ from .types import (
|
|
|
68
68
|
CompletionCreateParamsStreamingServiceTier,
|
|
69
69
|
CompletionCreateParamsStreamingStop,
|
|
70
70
|
CompletionCreateParamsStreamingToolChoice,
|
|
71
|
+
ComponentsSchemasTextContent,
|
|
71
72
|
ConditionalToolRule,
|
|
72
73
|
ConflictErrorBody,
|
|
73
74
|
ContextWindowOverview,
|
|
@@ -172,7 +173,6 @@ from .types import (
|
|
|
172
173
|
UpdateAssistantMessage,
|
|
173
174
|
UpdateAssistantMessageContent,
|
|
174
175
|
UpdateReasoningMessage,
|
|
175
|
-
UpdateReasoningMessageReasoning,
|
|
176
176
|
UpdateSystemMessage,
|
|
177
177
|
UpdateSystemMessageContent,
|
|
178
178
|
UpdateUserMessage,
|
|
@@ -857,6 +857,7 @@ __all__ = [
|
|
|
857
857
|
"CompletionCreateParamsStreamingServiceTier",
|
|
858
858
|
"CompletionCreateParamsStreamingStop",
|
|
859
859
|
"CompletionCreateParamsStreamingToolChoice",
|
|
860
|
+
"ComponentsSchemasTextContent",
|
|
860
861
|
"ConditionalToolRule",
|
|
861
862
|
"ConflictError",
|
|
862
863
|
"ConflictErrorBody",
|
|
@@ -1157,7 +1158,6 @@ __all__ = [
|
|
|
1157
1158
|
"UpdateAssistantMessage",
|
|
1158
1159
|
"UpdateAssistantMessageContent",
|
|
1159
1160
|
"UpdateReasoningMessage",
|
|
1160
|
-
"UpdateReasoningMessageReasoning",
|
|
1161
1161
|
"UpdateSystemMessage",
|
|
1162
1162
|
"UpdateSystemMessageContent",
|
|
1163
1163
|
"UpdateUserMessage",
|
|
@@ -244,7 +244,7 @@ class MessagesClient:
|
|
|
244
244
|
|
|
245
245
|
Examples
|
|
246
246
|
--------
|
|
247
|
-
from letta_client import Letta, UpdateSystemMessage
|
|
247
|
+
from letta_client import Letta, TextContent, UpdateSystemMessage
|
|
248
248
|
|
|
249
249
|
client = Letta(
|
|
250
250
|
token="YOUR_TOKEN",
|
|
@@ -253,7 +253,11 @@ class MessagesClient:
|
|
|
253
253
|
agent_id="agent_id",
|
|
254
254
|
message_id="message_id",
|
|
255
255
|
request=UpdateSystemMessage(
|
|
256
|
-
content=
|
|
256
|
+
content=[
|
|
257
|
+
TextContent(
|
|
258
|
+
text="text",
|
|
259
|
+
)
|
|
260
|
+
],
|
|
257
261
|
),
|
|
258
262
|
)
|
|
259
263
|
"""
|
|
@@ -729,7 +733,7 @@ class AsyncMessagesClient:
|
|
|
729
733
|
--------
|
|
730
734
|
import asyncio
|
|
731
735
|
|
|
732
|
-
from letta_client import AsyncLetta, UpdateSystemMessage
|
|
736
|
+
from letta_client import AsyncLetta, TextContent, UpdateSystemMessage
|
|
733
737
|
|
|
734
738
|
client = AsyncLetta(
|
|
735
739
|
token="YOUR_TOKEN",
|
|
@@ -741,7 +745,11 @@ class AsyncMessagesClient:
|
|
|
741
745
|
agent_id="agent_id",
|
|
742
746
|
message_id="message_id",
|
|
743
747
|
request=UpdateSystemMessage(
|
|
744
|
-
content=
|
|
748
|
+
content=[
|
|
749
|
+
TextContent(
|
|
750
|
+
text="text",
|
|
751
|
+
)
|
|
752
|
+
],
|
|
745
753
|
),
|
|
746
754
|
)
|
|
747
755
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from ....types.
|
|
5
|
-
from ....types.
|
|
6
|
-
from ....types.
|
|
7
|
-
from ....types.
|
|
4
|
+
from ....types.system_message import SystemMessage
|
|
5
|
+
from ....types.user_message import UserMessage
|
|
6
|
+
from ....types.reasoning_message import ReasoningMessage
|
|
7
|
+
from ....types.tool_call_message import ToolCallMessage
|
|
8
|
+
from ....types.tool_return_message import ToolReturnMessage
|
|
9
|
+
from ....types.assistant_message import AssistantMessage
|
|
8
10
|
|
|
9
11
|
MessagesModifyResponse = typing.Union[
|
|
10
|
-
|
|
12
|
+
SystemMessage, UserMessage, ReasoningMessage, ToolCallMessage, ToolReturnMessage, AssistantMessage
|
|
11
13
|
]
|
|
@@ -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.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.67",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/types/__init__.py
CHANGED
|
@@ -67,6 +67,7 @@ from .completion_create_params_streaming_response_format import CompletionCreate
|
|
|
67
67
|
from .completion_create_params_streaming_service_tier import CompletionCreateParamsStreamingServiceTier
|
|
68
68
|
from .completion_create_params_streaming_stop import CompletionCreateParamsStreamingStop
|
|
69
69
|
from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
|
|
70
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
70
71
|
from .conditional_tool_rule import ConditionalToolRule
|
|
71
72
|
from .conflict_error_body import ConflictErrorBody
|
|
72
73
|
from .context_window_overview import ContextWindowOverview
|
|
@@ -175,7 +176,6 @@ from .tool_type import ToolType
|
|
|
175
176
|
from .update_assistant_message import UpdateAssistantMessage
|
|
176
177
|
from .update_assistant_message_content import UpdateAssistantMessageContent
|
|
177
178
|
from .update_reasoning_message import UpdateReasoningMessage
|
|
178
|
-
from .update_reasoning_message_reasoning import UpdateReasoningMessageReasoning
|
|
179
179
|
from .update_system_message import UpdateSystemMessage
|
|
180
180
|
from .update_system_message_content import UpdateSystemMessageContent
|
|
181
181
|
from .update_user_message import UpdateUserMessage
|
|
@@ -261,6 +261,7 @@ __all__ = [
|
|
|
261
261
|
"CompletionCreateParamsStreamingServiceTier",
|
|
262
262
|
"CompletionCreateParamsStreamingStop",
|
|
263
263
|
"CompletionCreateParamsStreamingToolChoice",
|
|
264
|
+
"ComponentsSchemasTextContent",
|
|
264
265
|
"ConditionalToolRule",
|
|
265
266
|
"ConflictErrorBody",
|
|
266
267
|
"ContextWindowOverview",
|
|
@@ -365,7 +366,6 @@ __all__ = [
|
|
|
365
366
|
"UpdateAssistantMessage",
|
|
366
367
|
"UpdateAssistantMessageContent",
|
|
367
368
|
"UpdateReasoningMessage",
|
|
368
|
-
"UpdateReasoningMessageReasoning",
|
|
369
369
|
"UpdateSystemMessage",
|
|
370
370
|
"UpdateSystemMessageContent",
|
|
371
371
|
"UpdateUserMessage",
|
|
@@ -4,15 +4,27 @@ from ..core.unchecked_base_model import UncheckedBaseModel
|
|
|
4
4
|
import datetime as dt
|
|
5
5
|
import typing
|
|
6
6
|
from .assistant_message_content import AssistantMessageContent
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
7
|
import pydantic
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AssistantMessage(UncheckedBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
A message sent by the LLM in response to user input. Used in the LLM context.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
id (str): The ID of the message
|
|
17
|
+
date (datetime): The date the message was created in ISO format
|
|
18
|
+
content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
|
|
19
|
+
"""
|
|
20
|
+
|
|
12
21
|
id: str
|
|
13
22
|
date: dt.datetime
|
|
14
23
|
message_type: typing.Literal["assistant_message"] = "assistant_message"
|
|
15
|
-
content: AssistantMessageContent
|
|
24
|
+
content: AssistantMessageContent = pydantic.Field()
|
|
25
|
+
"""
|
|
26
|
+
The message content sent by the agent (can be a string or an array of content parts)
|
|
27
|
+
"""
|
|
16
28
|
|
|
17
29
|
if IS_PYDANTIC_V2:
|
|
18
30
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
AssistantMessageContent = typing.Union[
|
|
6
|
+
AssistantMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -11,10 +11,10 @@ class ReasoningMessage(UncheckedBaseModel):
|
|
|
11
11
|
"""
|
|
12
12
|
Representation of an agent's internal reasoning.
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
reasoning (str): The internal reasoning of the agent
|
|
14
|
+
Args:
|
|
16
15
|
id (str): The ID of the message
|
|
17
16
|
date (datetime): The date the message was created in ISO format
|
|
17
|
+
reasoning (str): The internal reasoning of the agent
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
id: str
|
|
@@ -4,24 +4,27 @@ from ..core.unchecked_base_model import UncheckedBaseModel
|
|
|
4
4
|
import datetime as dt
|
|
5
5
|
import typing
|
|
6
6
|
from .system_message_content import SystemMessageContent
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
7
|
import pydantic
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class SystemMessage(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
A message generated by the system. Never streamed back on a response, only used for cursor pagination.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
15
|
+
Args:
|
|
17
16
|
id (str): The ID of the message
|
|
18
17
|
date (datetime): The date the message was created in ISO format
|
|
18
|
+
content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the system (can be a string or an array of content parts)
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
id: str
|
|
22
22
|
date: dt.datetime
|
|
23
23
|
message_type: typing.Literal["system_message"] = "system_message"
|
|
24
|
-
content: SystemMessageContent
|
|
24
|
+
content: SystemMessageContent = pydantic.Field()
|
|
25
|
+
"""
|
|
26
|
+
The message content sent by the system (can be a string or an array of content parts)
|
|
27
|
+
"""
|
|
25
28
|
|
|
26
29
|
if IS_PYDANTIC_V2:
|
|
27
30
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
SystemMessageContent = typing.Union[
|
|
6
|
+
SystemMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -12,10 +12,10 @@ class ToolCallMessage(UncheckedBaseModel):
|
|
|
12
12
|
"""
|
|
13
13
|
A message representing a request to call a tool (generated by the LLM to trigger tool execution).
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
tool_call (Union[ToolCall, ToolCallDelta]): The tool call
|
|
15
|
+
Args:
|
|
17
16
|
id (str): The ID of the message
|
|
18
17
|
date (datetime): The date the message was created in ISO format
|
|
18
|
+
tool_call (Union[ToolCall, ToolCallDelta]): The tool call
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
id: str
|
|
@@ -12,11 +12,11 @@ class ToolReturnMessage(UncheckedBaseModel):
|
|
|
12
12
|
"""
|
|
13
13
|
A message representing the return value of a tool call (generated by Letta executing the requested tool).
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
tool_return (str): The return value of the tool
|
|
17
|
-
status (Literal["success", "error"]): The status of the tool call
|
|
15
|
+
Args:
|
|
18
16
|
id (str): The ID of the message
|
|
19
17
|
date (datetime): The date the message was created in ISO format
|
|
18
|
+
tool_return (str): The return value of the tool
|
|
19
|
+
status (Literal["success", "error"]): The status of the tool call
|
|
20
20
|
tool_call_id (str): A unique identifier for the tool call that generated this message
|
|
21
21
|
stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation
|
|
22
22
|
stderr (Optional[List(str)]): Captured stderr from the tool invocation
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
from .update_assistant_message_content import UpdateAssistantMessageContent
|
|
5
4
|
import typing
|
|
6
|
-
from
|
|
5
|
+
from .update_assistant_message_content import UpdateAssistantMessageContent
|
|
7
6
|
import pydantic
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class UpdateAssistantMessage(UncheckedBaseModel):
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
message_type: typing.Optional[typing.Literal["assistant_message"]] = None
|
|
12
|
+
content: UpdateAssistantMessageContent = pydantic.Field()
|
|
13
|
+
"""
|
|
14
|
+
The message content sent by the assistant (can be a string or an array of content parts)
|
|
15
|
+
"""
|
|
13
16
|
|
|
14
17
|
if IS_PYDANTIC_V2:
|
|
15
18
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
UpdateAssistantMessageContent = typing.Union[
|
|
6
|
+
UpdateAssistantMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
from .update_reasoning_message_reasoning import UpdateReasoningMessageReasoning
|
|
5
4
|
import typing
|
|
6
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
6
|
import pydantic
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
class UpdateReasoningMessage(UncheckedBaseModel):
|
|
11
|
-
reasoning:
|
|
12
|
-
message_type: typing.Literal["reasoning_message"] =
|
|
10
|
+
reasoning: str
|
|
11
|
+
message_type: typing.Optional[typing.Literal["reasoning_message"]] = None
|
|
13
12
|
|
|
14
13
|
if IS_PYDANTIC_V2:
|
|
15
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
from .update_system_message_content import UpdateSystemMessageContent
|
|
5
4
|
import typing
|
|
6
|
-
from
|
|
5
|
+
from .update_system_message_content import UpdateSystemMessageContent
|
|
7
6
|
import pydantic
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class UpdateSystemMessage(UncheckedBaseModel):
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
message_type: typing.Optional[typing.Literal["system_message"]] = None
|
|
12
|
+
content: UpdateSystemMessageContent = pydantic.Field()
|
|
13
|
+
"""
|
|
14
|
+
The message content sent by the system (can be a string or an array of content parts)
|
|
15
|
+
"""
|
|
13
16
|
|
|
14
17
|
if IS_PYDANTIC_V2:
|
|
15
18
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
UpdateSystemMessageContent = typing.Union[
|
|
6
|
+
UpdateSystemMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
from .update_user_message_content import UpdateUserMessageContent
|
|
5
4
|
import typing
|
|
6
|
-
from
|
|
5
|
+
from .update_user_message_content import UpdateUserMessageContent
|
|
7
6
|
import pydantic
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class UpdateUserMessage(UncheckedBaseModel):
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
message_type: typing.Optional[typing.Literal["user_message"]] = None
|
|
12
|
+
content: UpdateUserMessageContent = pydantic.Field()
|
|
13
|
+
"""
|
|
14
|
+
The message content sent by the user (can be a string or an array of content parts)
|
|
15
|
+
"""
|
|
13
16
|
|
|
14
17
|
if IS_PYDANTIC_V2:
|
|
15
18
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
UpdateUserMessageContent = typing.Union[
|
|
6
|
+
UpdateUserMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -4,24 +4,27 @@ from ..core.unchecked_base_model import UncheckedBaseModel
|
|
|
4
4
|
import datetime as dt
|
|
5
5
|
import typing
|
|
6
6
|
from .user_message_content import UserMessageContent
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
7
|
import pydantic
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class UserMessage(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
A message sent by the user. Never streamed back on a response, only used for cursor pagination.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
15
|
+
Args:
|
|
17
16
|
id (str): The ID of the message
|
|
18
17
|
date (datetime): The date the message was created in ISO format
|
|
18
|
+
content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
id: str
|
|
22
22
|
date: dt.datetime
|
|
23
23
|
message_type: typing.Literal["user_message"] = "user_message"
|
|
24
|
-
content: UserMessageContent
|
|
24
|
+
content: UserMessageContent = pydantic.Field()
|
|
25
|
+
"""
|
|
26
|
+
The message content sent by the user (can be a string or an array of content parts)
|
|
27
|
+
"""
|
|
25
28
|
|
|
26
29
|
if IS_PYDANTIC_V2:
|
|
27
30
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
UserMessageContent = typing.Union[
|
|
6
|
+
UserMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=I_RHb0CWzUnMjrx22uxHAArBtKwLe1KJZKEhX7byUFc,63350
|
|
2
2
|
letta_client/agents/__init__.py,sha256=HMLlMwIDoMSMsE99OMGYmDQbdZcYWScYF2L1bW_2zKA,25036
|
|
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
|
|
@@ -12,11 +12,11 @@ letta_client/agents/memory_variables/client.py,sha256=6qFVbR_tdfqj4HQ1h1HXR8DZCV
|
|
|
12
12
|
letta_client/agents/memory_variables/types/__init__.py,sha256=EoznK0WvhCyFYd4KDdU-cGDQWpSXmq79BSkqVHN-j7A,180
|
|
13
13
|
letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha256=bsF__n_B4ZXEHzg--OVD6tHHXt_aM-FjHm2x1ZXPnL0,599
|
|
14
14
|
letta_client/agents/messages/__init__.py,sha256=M7Ar6Rmb8we4dfYE6jj3FCL9UvVFy1bNQIPflUXMWHA,243
|
|
15
|
-
letta_client/agents/messages/client.py,sha256=
|
|
15
|
+
letta_client/agents/messages/client.py,sha256=JdqJp9ofCKAdNRlZB4Tf_Z6xjtoEltrjnhPLkE87Zsw,36133
|
|
16
16
|
letta_client/agents/messages/types/__init__.py,sha256=Oc2j0oGOs96IEFf9xsJIkjBjoq3OMtse64YwWv3F9Io,335
|
|
17
17
|
letta_client/agents/messages/types/letta_streaming_response.py,sha256=MdE2PxQ1x1AviakHXsWVcFv97a3RchzzzIiD77w4EC8,665
|
|
18
18
|
letta_client/agents/messages/types/messages_modify_request.py,sha256=7C2X3BKye-YDSXOkdEmxxt34seI4jkLK0-govtc4nhg,475
|
|
19
|
-
letta_client/agents/messages/types/messages_modify_response.py,sha256=
|
|
19
|
+
letta_client/agents/messages/types/messages_modify_response.py,sha256=f2eITUx-zQ4qzcYd1JPS_mFSqJw7xVsxX7GR7d2RYRI,552
|
|
20
20
|
letta_client/agents/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
21
21
|
letta_client/agents/passages/client.py,sha256=aNaeyQU8AQHozFWkTbNH8MxpOUea-uiZ_RgdyFEFD2w,14818
|
|
22
22
|
letta_client/agents/sources/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -228,7 +228,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
|
|
|
228
228
|
letta_client/client.py,sha256=xdSrD4IkWokZHujowd1r7zESBoVgKGNvo6RqgZ3f0Fg,12808
|
|
229
229
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
230
230
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
231
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
231
|
+
letta_client/core/client_wrapper.py,sha256=VNhLPxJkhfQDALvnTTHV1Z5Q383yvwhRfSkgQUqgYtw,1997
|
|
232
232
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
233
233
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
234
234
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -463,7 +463,7 @@ letta_client/tools/__init__.py,sha256=mmzyALdCQKWki9BHa7_ihwxScL6HZiVaExsoYOu0n8
|
|
|
463
463
|
letta_client/tools/client.py,sha256=l83rlCZyUnFf-lB_BADzqyd3TPkdNujtYk4Kv2ECvIU,67693
|
|
464
464
|
letta_client/tools/types/__init__.py,sha256=QAP4LY1LD9mKJqniez5WlK3k2-oeCoY3pcqA5G4zlNs,181
|
|
465
465
|
letta_client/tools/types/list_mcp_servers_response_value.py,sha256=HVcUi2UhYbnT8xdJ-A2wGSQmak3v-J9mllHO8MT-VW8,273
|
|
466
|
-
letta_client/types/__init__.py,sha256=
|
|
466
|
+
letta_client/types/__init__.py,sha256=Tl4TFbL6kx57fF98DHQQqOuNfJpbJR6uxBQp_Xy6yn8,17291
|
|
467
467
|
letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
|
|
468
468
|
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
469
469
|
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
@@ -474,8 +474,8 @@ letta_client/types/agent_type.py,sha256=BvztKbFTW_Acvc3QPIvzK7JGwSLie1V407byu-VZ
|
|
|
474
474
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
475
475
|
letta_client/types/app_auth_scheme_auth_mode.py,sha256=KfJ8AQVxlvWo2DgDGak9yXtx5F2lvRULB2KVGy2aSJo,412
|
|
476
476
|
letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
|
|
477
|
-
letta_client/types/assistant_message.py,sha256=
|
|
478
|
-
letta_client/types/assistant_message_content.py,sha256=
|
|
477
|
+
letta_client/types/assistant_message.py,sha256=c_aaRtfq1OpHwaPnCsNl_Qnf9J_fEPUkK2jR9Zw3dO4,1272
|
|
478
|
+
letta_client/types/assistant_message_content.py,sha256=yKC7GsSHadzc-ye0Zp7TOqq_UBExULCXxdNn5CXJMsQ,241
|
|
479
479
|
letta_client/types/audio.py,sha256=aCgzL9SmkmM4yU7hy2IWwPrC-wtllplo3dQF9mjk7Fg,548
|
|
480
480
|
letta_client/types/auth_request.py,sha256=q63VMj39aCmljDuzUeAClXEqyaoa_HKv5IraSv8ry9M,683
|
|
481
481
|
letta_client/types/auth_response.py,sha256=jtG9Nn0voJcOWkBtvnuGGwhpUhYz9A8O7soOJZo_E_E,861
|
|
@@ -531,6 +531,7 @@ letta_client/types/completion_create_params_streaming_response_format.py,sha256=
|
|
|
531
531
|
letta_client/types/completion_create_params_streaming_service_tier.py,sha256=chHakgbKOYCMtxdtGmP85rcjGkyOqt2S_JJ9SabSd-o,185
|
|
532
532
|
letta_client/types/completion_create_params_streaming_stop.py,sha256=dSyQDu851QyeoRjpoE2JBIyKIYGO5jVx6UIH-bLiQwo,154
|
|
533
533
|
letta_client/types/completion_create_params_streaming_tool_choice.py,sha256=w_JLYtdz8eHzF2lwlMaMGpnOl8_4mjGbsDOSpMyM5cg,343
|
|
534
|
+
letta_client/types/components_schemas_text_content.py,sha256=F21GPPwREb6GodS4dGsT7-4wySEUdhpq6krznF-sOPE,147
|
|
534
535
|
letta_client/types/conditional_tool_rule.py,sha256=R0nzgjpqedSPUWdBQuv-doiIgYTAZd_QNfPNriWEAKk,1294
|
|
535
536
|
letta_client/types/conflict_error_body.py,sha256=Mena-q1jti6nv_7-xrp6sDb_5MXNKPGobHrhpnz9kpY,787
|
|
536
537
|
letta_client/types/context_window_overview.py,sha256=9pwiObSxu-SFyQ1pxSTlQiRatVAyFgqa6t0_qrrsGfU,2815
|
|
@@ -598,7 +599,7 @@ letta_client/types/organization_create.py,sha256=xlF1FgDRa7zpv49kVGWYchcSEUjPEsj
|
|
|
598
599
|
letta_client/types/passage.py,sha256=1OM19TyVCQEL1P3BC58hmzWfawZM4vejiKr0P11dOUk,3034
|
|
599
600
|
letta_client/types/pip_requirement.py,sha256=Hmh7VpJhdSfFkafh6QwAehCp0MQUBXv1YAoYP-2wV2M,773
|
|
600
601
|
letta_client/types/provider.py,sha256=RvdE9dzGFJ4hcmyvk2xeO7RNpxQvXhB_S9DNy8t_z-E,1053
|
|
601
|
-
letta_client/types/reasoning_message.py,sha256=
|
|
602
|
+
letta_client/types/reasoning_message.py,sha256=3DvzB2a3CmAub4Y_PLOqD7fIoSTN0X2PZjJsVSdEhyQ,952
|
|
602
603
|
letta_client/types/response_format_json_object.py,sha256=ZSWmwdN8itFr5q77mxuBhEWRBh2CubAonJUCi88UjbA,611
|
|
603
604
|
letta_client/types/response_format_json_schema.py,sha256=7CgBQ9Lmst2oz_NoGr-1Sk-7Yq33BBhkqpRoKXh-qPo,675
|
|
604
605
|
letta_client/types/response_format_text.py,sha256=5HhXaYWDR0zeFLhH5nIqIN3n192UXrMZeSyORjIWFKQ,591
|
|
@@ -617,34 +618,33 @@ letta_client/types/source.py,sha256=7tLptZ4AZrvRPF6NqToM4Vf9i7TosS2_Ydks4zfvZx4,
|
|
|
617
618
|
letta_client/types/sse_server_config.py,sha256=b-h5FLm5MELZ5A9bwZt-02Zx_f3UbfKAQS--yHQVOQU,844
|
|
618
619
|
letta_client/types/step.py,sha256=XE98vMiU34dgUxLPvmJLdp9iWFPjg6E2Pb8xNSURMMg,2988
|
|
619
620
|
letta_client/types/supervisor_manager.py,sha256=VdR1ySp4k43apxM8Bb5uNoBvADsvz8oMEEtDy2F5K6M,676
|
|
620
|
-
letta_client/types/system_message.py,sha256=
|
|
621
|
-
letta_client/types/system_message_content.py,sha256=
|
|
621
|
+
letta_client/types/system_message.py,sha256=E7ExEVt5Y1p3g-fq1t--Zxr0148v_PRs8DIfsSDcXzE,1281
|
|
622
|
+
letta_client/types/system_message_content.py,sha256=fePw_p7NZclJLdnZWCG392knGx2XemMrtWexZqoyYkA,238
|
|
622
623
|
letta_client/types/terminal_tool_rule.py,sha256=82a7AnohOqCFBSOt7OwsKeh7gHgq8KTlgojxlm3t76E,863
|
|
623
624
|
letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
|
|
624
625
|
letta_client/types/tool.py,sha256=xXKWpxfzUtw7OjLcjnil6GeFiVrFvk9gtaYHWUM-7AU,2510
|
|
625
626
|
letta_client/types/tool_call.py,sha256=EKGAFwzoa6zMTpOkG55hWzFn_AgPrbLXSOu5M84x8WU,594
|
|
626
627
|
letta_client/types/tool_call_delta.py,sha256=wGeZwJ9pwYHD5-f4Unf5-vJqefK40eHw9i0w3bCjRoE,671
|
|
627
|
-
letta_client/types/tool_call_message.py,sha256=
|
|
628
|
+
letta_client/types/tool_call_message.py,sha256=vc-Bv_H1eNLAIJqyCI4glj964h87iosTLKFgxWpA2wM,1090
|
|
628
629
|
letta_client/types/tool_call_message_tool_call.py,sha256=twtq5-vZIeh1nShqm8iTCN9YFtY7LUIL-bFYuUfhF1o,219
|
|
629
630
|
letta_client/types/tool_create.py,sha256=VSMd23Kkd77SPbLv2oRHEzXqR2Eexc0ervjxXYLHiqc,1522
|
|
630
631
|
letta_client/types/tool_return.py,sha256=f-6zaRo8Bwl0i0Q0rHl8vKOfzymFHN_tVRoC2lMWksI,984
|
|
631
|
-
letta_client/types/tool_return_message.py,sha256=
|
|
632
|
+
letta_client/types/tool_return_message.py,sha256=MeCDV12wej629vX9opp7htj0fXE02Ord5fvp68X2vpU,1585
|
|
632
633
|
letta_client/types/tool_return_message_status.py,sha256=FvFOMaG9mnmgnHi2UBQVQQMtHFabbWnQnHTxGUDgVl0,167
|
|
633
634
|
letta_client/types/tool_return_status.py,sha256=TQjwYprn5F_jU9kIbrtiyk7Gw2SjcmFFZLjFbGDpBM0,160
|
|
634
635
|
letta_client/types/tool_type.py,sha256=v6DX7qGAbg9t4HZTa9GBuzehNDCW3NkD6Zi3Z1teEKI,336
|
|
635
|
-
letta_client/types/update_assistant_message.py,sha256=
|
|
636
|
-
letta_client/types/update_assistant_message_content.py,sha256=
|
|
637
|
-
letta_client/types/update_reasoning_message.py,sha256=
|
|
638
|
-
letta_client/types/
|
|
639
|
-
letta_client/types/
|
|
640
|
-
letta_client/types/
|
|
641
|
-
letta_client/types/
|
|
642
|
-
letta_client/types/update_user_message_content.py,sha256=1KQtCr0yeO-jge1cBKe7vKPb0UcW7NdUaR94Q7jVz18,189
|
|
636
|
+
letta_client/types/update_assistant_message.py,sha256=D-51o8uXk3X_2Fb2zJ4KoMeRxPiDWaCb3ugRfjBMCTI,878
|
|
637
|
+
letta_client/types/update_assistant_message_content.py,sha256=rh3DP_SpxyBNnf0EDtoaKmPIPV-cXRSFju33NbHgeF0,247
|
|
638
|
+
letta_client/types/update_reasoning_message.py,sha256=2ejxLRNfVDWBfGQG2-A1JNq-DujOfT7AKXCmyH_RApc,650
|
|
639
|
+
letta_client/types/update_system_message.py,sha256=Xm3iO4VrJuPOeRfqZ4shkawfnvDy5svI5Zol6zKcC8k,860
|
|
640
|
+
letta_client/types/update_system_message_content.py,sha256=nEGr31G02TK_O_zL0gscf0W0Koq9fVNbQCWGC9Utikg,244
|
|
641
|
+
letta_client/types/update_user_message.py,sha256=G0EYtAWFCkrVeKsGfCJuwgPhcmpEbktdv9VctpQYw_0,848
|
|
642
|
+
letta_client/types/update_user_message_content.py,sha256=dtDUkSRbdYlLBkwU-vqx_pqZHXZ4v5zIDsQupg7jkQk,242
|
|
643
643
|
letta_client/types/usage_statistics.py,sha256=btEmMUxFVu7oQQtBCdQqFJ6XddgmR84799-AdlsHh0w,690
|
|
644
644
|
letta_client/types/user.py,sha256=z_v1uqQ6HYwV_Pp7wDDqS6QWhslHgdUH-AldV-jnmKQ,1349
|
|
645
645
|
letta_client/types/user_create.py,sha256=prQea3xb2-Cm64wv6Y84OfhWNWrA2P8SH5yhUxejzOI,616
|
|
646
|
-
letta_client/types/user_message.py,sha256=
|
|
647
|
-
letta_client/types/user_message_content.py,sha256=
|
|
646
|
+
letta_client/types/user_message.py,sha256=CCH_oWqhGVglSVeGj63RsPWtnRBuER7yMsLcBrpAvKA,1258
|
|
647
|
+
letta_client/types/user_message_content.py,sha256=JHOtxDEVm7FKDb6Ac2Hw7tAl5HCTDDLDylM6ulhHmIY,236
|
|
648
648
|
letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wDLkP4,731
|
|
649
649
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
650
650
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
@@ -657,6 +657,6 @@ letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7Vvnip
|
|
|
657
657
|
letta_client/voice/client.py,sha256=O38dLq__WTwLPlFTtvw1hgqaPYK9alds_ft12Bnp5fs,6475
|
|
658
658
|
letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
|
|
659
659
|
letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
|
|
660
|
-
letta_client-0.1.
|
|
661
|
-
letta_client-0.1.
|
|
662
|
-
letta_client-0.1.
|
|
660
|
+
letta_client-0.1.67.dist-info/METADATA,sha256=d4yXUJx1nH_Ovt9jvzLFanCdHgfniYWwgKgF18an7_E,4942
|
|
661
|
+
letta_client-0.1.67.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
662
|
+
letta_client-0.1.67.dist-info/RECORD,,
|
|
File without changes
|