letta-client 0.1.2__py3-none-any.whl → 0.1.6__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.
- letta/__init__.py +40 -34
- letta/agents/__init__.py +55 -3
- letta/agents/client.py +513 -35
- letta/agents/messages/__init__.py +36 -2
- letta/agents/messages/client.py +46 -0
- letta/agents/messages/types/__init__.py +37 -3
- letta/agents/messages/types/letta_streaming_response.py +132 -14
- letta/agents/messages/types/messages_list_response_item.py +114 -7
- letta/agents/types/__init__.py +36 -2
- letta/agents/types/{agents_create_version_response.py → agents_get_agent_variables_response.py} +2 -5
- letta/agents/types/agents_search_deployed_agents_request_combinator.py +5 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item.py +67 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item_name.py +23 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item_name_operator.py +7 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item_order_by.py +26 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_direction.py +5 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_value.py +7 -0
- letta/{types/letta_response_tool_call.py → agents/types/agents_search_deployed_agents_request_search_item_version.py} +4 -6
- letta/client.py +8 -8
- letta/core/client_wrapper.py +7 -18
- letta/environment.py +1 -1
- letta/types/__init__.py +18 -32
- letta/types/agent_environment_variable.py +68 -0
- letta/types/agent_state.py +15 -9
- letta/types/assistant_message_output.py +1 -2
- letta/types/block.py +9 -9
- letta/types/context_window_overview.py +5 -0
- letta/types/embedding_config.py +13 -8
- letta/types/internal_server_error_body.py +1 -1
- letta/types/job.py +5 -5
- letta/types/letta_response.py +10 -97
- letta/types/letta_response_messages_item.py +120 -0
- letta/types/letta_schemas_message_message.py +10 -10
- letta/types/letta_schemas_tool_tool.py +5 -5
- letta/types/letta_usage_statistics.py +4 -4
- letta/types/llm_config.py +12 -7
- letta/types/not_found_error_body.py +2 -3
- letta/types/passage.py +8 -8
- letta/types/reasoning_message.py +4 -5
- letta/types/sandbox_environment_variable.py +4 -4
- letta/types/sandbox_environment_variable_update.py +0 -4
- letta/types/source.py +6 -6
- letta/types/system_message_output.py +4 -5
- letta/types/tool_call_message.py +4 -5
- letta/types/tool_return_message.py +8 -9
- letta/types/user.py +3 -3
- letta/types/user_message_output.py +4 -5
- {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/METADATA +1 -1
- {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/RECORD +50 -56
- {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/WHEEL +1 -1
- letta/types/letta_response_assistant_message.py +0 -23
- letta/types/letta_response_letta_usage_statistics.py +0 -47
- letta/types/letta_response_reasoning_message.py +0 -32
- letta/types/letta_response_system_message.py +0 -32
- letta/types/letta_response_tool_call_delta.py +0 -21
- letta/types/letta_response_tool_call_message.py +0 -33
- letta/types/letta_response_tool_call_message_tool_call.py +0 -9
- letta/types/letta_response_tool_call_message_tool_call_one.py +0 -21
- letta/types/letta_response_tool_call_message_tool_call_zero.py +0 -21
- letta/types/letta_response_tool_return_message.py +0 -41
- letta/types/letta_response_tool_return_message_status.py +0 -5
- letta/types/letta_response_usage_message.py +0 -40
- letta/types/letta_response_usage_message_usage.py +0 -47
- letta/types/letta_response_user_message.py +0 -32
- letta/types/usage_message.py +0 -31
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import datetime as dt
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class LettaResponseUserMessage(UniversalBaseModel):
|
|
11
|
-
"""
|
|
12
|
-
A message sent by the user. Never streamed back on a response, only used for cursor pagination.
|
|
13
|
-
|
|
14
|
-
Attributes:
|
|
15
|
-
message (str): The message sent by the user
|
|
16
|
-
id (str): The ID of the message
|
|
17
|
-
date (datetime): The date the message was created in ISO format
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
id: str
|
|
21
|
-
date: dt.datetime
|
|
22
|
-
message_type: typing.Optional[typing.Literal["user_message"]] = None
|
|
23
|
-
message: str
|
|
24
|
-
|
|
25
|
-
if IS_PYDANTIC_V2:
|
|
26
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
27
|
-
else:
|
|
28
|
-
|
|
29
|
-
class Config:
|
|
30
|
-
frozen = True
|
|
31
|
-
smart_union = True
|
|
32
|
-
extra = pydantic.Extra.allow
|
letta/types/usage_message.py
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import datetime as dt
|
|
5
|
-
import typing
|
|
6
|
-
from .letta_usage_statistics import LettaUsageStatistics
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
-
import pydantic
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class UsageMessage(UniversalBaseModel):
|
|
12
|
-
"""
|
|
13
|
-
A message representint the usage statistics for the agent interaction.
|
|
14
|
-
|
|
15
|
-
Attributes:
|
|
16
|
-
usage (LettaUsageStatistics): Usage statistics for the agent interaction.
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
id: str
|
|
20
|
-
date: dt.datetime
|
|
21
|
-
message_type: typing.Optional[typing.Literal["usage_message"]] = None
|
|
22
|
-
usage: LettaUsageStatistics
|
|
23
|
-
|
|
24
|
-
if IS_PYDANTIC_V2:
|
|
25
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
26
|
-
else:
|
|
27
|
-
|
|
28
|
-
class Config:
|
|
29
|
-
frozen = True
|
|
30
|
-
smart_union = True
|
|
31
|
-
extra = pydantic.Extra.allow
|