letta-client 0.1.6__py3-none-any.whl → 0.1.9__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/__init__.py +28 -27
- letta/agents/__init__.py +40 -29
- letta/agents/archival_memory/client.py +17 -17
- letta/agents/client.py +405 -1721
- letta/agents/context/client.py +5 -5
- letta/agents/core_memory/client.py +1080 -0
- letta/agents/memory_variables/__init__.py +5 -0
- letta/agents/{memory → memory_variables}/client.py +41 -40
- letta/agents/memory_variables/types/__init__.py +5 -0
- letta/agents/{types/agents_get_agent_variables_response.py → memory_variables/types/memory_variables_get_response.py} +3 -3
- letta/agents/messages/client.py +232 -17
- letta/agents/messages/types/letta_streaming_response.py +21 -16
- letta/agents/messages/types/messages_list_response_item.py +19 -14
- letta/agents/recall_memory/client.py +5 -5
- letta/agents/sources/client.py +5 -5
- letta/agents/templates/__init__.py +5 -0
- letta/agents/templates/client.py +578 -0
- letta/agents/templates/types/__init__.py +5 -0
- letta/agents/{types/agents_migrate_response.py → templates/types/templates_migrate_response.py} +3 -3
- letta/agents/tools/client.py +13 -13
- letta/agents/types/__init__.py +23 -37
- letta/agents/types/agents_search_request_combinator.py +5 -0
- letta/agents/types/{agents_search_deployed_agents_request_search_item.py → agents_search_request_search_item.py} +17 -20
- letta/agents/types/{agents_search_deployed_agents_request_search_item_name.py → agents_search_request_search_item_name.py} +4 -6
- letta/agents/types/agents_search_request_search_item_name_operator.py +5 -0
- letta/agents/types/agents_search_request_search_item_order_by.py +22 -0
- letta/agents/types/agents_search_request_search_item_order_by_direction.py +5 -0
- letta/agents/types/agents_search_request_search_item_order_by_value.py +5 -0
- letta/agents/types/{agents_search_deployed_agents_request_search_item_version.py → agents_search_request_search_item_version.py} +2 -2
- letta/blocks/client.py +25 -25
- letta/client.py +4 -0
- letta/core/__init__.py +4 -0
- letta/core/client_wrapper.py +1 -1
- letta/core/unchecked_base_model.py +305 -0
- letta/health/client.py +3 -3
- letta/jobs/client.py +17 -17
- letta/models/client.py +5 -5
- letta/providers/client.py +597 -0
- letta/sources/client.py +33 -33
- letta/sources/files/client.py +11 -11
- letta/sources/passages/client.py +5 -5
- letta/tools/client.py +77 -57
- letta/types/__init__.py +4 -0
- letta/types/action_model.py +2 -2
- letta/types/action_parameters_model.py +2 -2
- letta/types/action_response_model.py +2 -2
- letta/types/agent_environment_variable.py +2 -7
- letta/types/agent_state.py +5 -8
- letta/types/agent_type.py +1 -2
- letta/types/app_auth_scheme.py +2 -2
- letta/types/app_model.py +2 -2
- letta/types/archival_memory_summary.py +2 -2
- letta/types/assistant_file.py +2 -2
- letta/types/assistant_message_input.py +2 -2
- letta/types/assistant_message_output.py +2 -2
- letta/types/auth_request.py +2 -2
- letta/types/auth_response.py +2 -2
- letta/types/auth_scheme_field.py +2 -2
- letta/types/block.py +2 -7
- letta/types/block_update.py +2 -2
- letta/types/chat_completion_request.py +2 -2
- letta/types/chat_completion_response.py +2 -2
- letta/types/child_tool_rule.py +2 -2
- letta/types/choice.py +2 -2
- letta/types/conditional_tool_rule.py +2 -2
- letta/types/conflict_error_body.py +2 -2
- letta/types/context_window_overview.py +2 -2
- letta/types/create_assistant_file_request.py +2 -2
- letta/types/create_assistant_request.py +2 -2
- letta/types/create_block.py +2 -2
- letta/types/delete_assistant_file_response.py +2 -2
- letta/types/delete_assistant_response.py +2 -2
- letta/types/e_2_b_sandbox_config.py +2 -2
- letta/types/embedding_config.py +2 -2
- letta/types/file_metadata.py +2 -7
- letta/types/function_call_input.py +2 -2
- letta/types/function_call_output.py +2 -2
- letta/types/function_schema.py +2 -2
- letta/types/health.py +2 -2
- letta/types/http_validation_error.py +2 -2
- letta/types/init_tool_rule.py +2 -2
- letta/types/internal_server_error_body.py +2 -2
- letta/types/job.py +2 -7
- letta/types/letta_request.py +7 -2
- letta/types/letta_response.py +2 -2
- letta/types/letta_response_messages_item.py +19 -14
- letta/types/letta_schemas_letta_message_tool_call.py +2 -2
- letta/types/letta_schemas_message_message.py +2 -7
- letta/types/letta_schemas_openai_chat_completion_request_tool.py +2 -2
- letta/types/letta_schemas_openai_chat_completion_request_tool_call.py +2 -2
- letta/types/letta_schemas_openai_chat_completion_request_tool_call_function.py +2 -2
- letta/types/letta_schemas_openai_chat_completion_response_message.py +2 -2
- letta/types/letta_schemas_openai_chat_completion_response_tool_call.py +2 -2
- letta/types/letta_schemas_openai_chat_completions_tool_call_function.py +2 -2
- letta/types/letta_schemas_openai_chat_completions_tool_call_input.py +2 -2
- letta/types/letta_schemas_openai_chat_completions_tool_call_output.py +2 -2
- letta/types/letta_schemas_tool_tool.py +9 -8
- letta/types/letta_usage_statistics.py +2 -2
- letta/types/llm_config.py +2 -2
- letta/types/local_sandbox_config.py +2 -2
- letta/types/log_prob_token.py +2 -2
- letta/types/memory.py +2 -2
- letta/types/message_content_log_prob.py +2 -2
- letta/types/message_create.py +2 -2
- letta/types/not_found_error_body.py +2 -2
- letta/types/open_ai_assistant.py +2 -2
- letta/types/organization.py +2 -2
- letta/types/organization_create.py +2 -2
- letta/types/passage.py +2 -7
- letta/types/provider.py +38 -0
- letta/types/reasoning_message.py +2 -2
- letta/types/recall_memory_summary.py +2 -2
- letta/types/response_format.py +2 -2
- letta/types/sandbox_config.py +2 -7
- letta/types/sandbox_config_create.py +2 -2
- letta/types/sandbox_config_update.py +2 -2
- letta/types/sandbox_environment_variable.py +2 -7
- letta/types/sandbox_environment_variable_create.py +2 -2
- letta/types/sandbox_environment_variable_update.py +2 -2
- letta/types/source.py +2 -7
- letta/types/system_message_input.py +2 -2
- letta/types/system_message_output.py +2 -2
- letta/types/terminal_tool_rule.py +2 -2
- letta/types/tool_call_delta.py +2 -2
- letta/types/tool_call_function_output.py +2 -2
- letta/types/tool_call_message.py +2 -2
- letta/types/tool_create.py +2 -2
- letta/types/tool_function_choice.py +2 -2
- letta/types/tool_input.py +2 -2
- letta/types/tool_message.py +2 -2
- letta/types/tool_return_message.py +2 -2
- letta/types/tool_type.py +5 -0
- letta/types/usage_statistics.py +2 -2
- letta/types/user.py +2 -7
- letta/types/user_create.py +2 -7
- letta/types/user_message_input.py +2 -2
- letta/types/user_message_output.py +2 -2
- letta/types/user_update.py +2 -7
- letta/types/validation_error.py +2 -2
- {letta_client-0.1.6.dist-info → letta_client-0.1.9.dist-info}/METADATA +1 -1
- letta_client-0.1.9.dist-info/RECORD +200 -0
- letta/agents/memory/__init__.py +0 -5
- letta/agents/memory/messages/client.py +0 -147
- letta/agents/memory_blocks/client.py +0 -364
- letta/agents/types/agents_search_deployed_agents_request_combinator.py +0 -5
- letta/agents/types/agents_search_deployed_agents_request_search_item_name_operator.py +0 -7
- letta/agents/types/agents_search_deployed_agents_request_search_item_order_by.py +0 -26
- letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_direction.py +0 -5
- letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_value.py +0 -7
- letta_client-0.1.6.dist-info/RECORD +0 -193
- /letta/agents/{memory/messages → core_memory}/__init__.py +0 -0
- /letta/{agents/memory_blocks → providers}/__init__.py +0 -0
- {letta_client-0.1.6.dist-info → letta_client-0.1.9.dist-info}/WHEEL +0 -0
letta/types/sandbox_config.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
import datetime as dt
|
|
@@ -8,7 +8,7 @@ from .sandbox_type import SandboxType
|
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class SandboxConfig(
|
|
11
|
+
class SandboxConfig(UncheckedBaseModel):
|
|
12
12
|
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
13
13
|
"""
|
|
14
14
|
The id of the user that made this object.
|
|
@@ -39,11 +39,6 @@ class SandboxConfig(UniversalBaseModel):
|
|
|
39
39
|
The type of sandbox.
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
43
|
-
"""
|
|
44
|
-
The unique identifier of the organization associated with the sandbox.
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
42
|
config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
|
|
48
43
|
"""
|
|
49
44
|
The JSON sandbox settings data.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
from .sandbox_config_create_config import SandboxConfigCreateConfig
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import typing
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class SandboxConfigCreate(
|
|
10
|
+
class SandboxConfigCreate(UncheckedBaseModel):
|
|
11
11
|
config: SandboxConfigCreateConfig = pydantic.Field()
|
|
12
12
|
"""
|
|
13
13
|
The configuration for the sandbox.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from .sandbox_config_update_config import SandboxConfigUpdateConfig
|
|
6
6
|
import pydantic
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class SandboxConfigUpdate(
|
|
10
|
+
class SandboxConfigUpdate(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
Pydantic model for updating SandboxConfig fields.
|
|
13
13
|
"""
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
import datetime as dt
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class SandboxEnvironmentVariable(
|
|
10
|
+
class SandboxEnvironmentVariable(UncheckedBaseModel):
|
|
11
11
|
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
12
|
"""
|
|
13
13
|
The id of the user that made this object.
|
|
@@ -48,11 +48,6 @@ class SandboxEnvironmentVariable(UniversalBaseModel):
|
|
|
48
48
|
An optional description of the environment variable.
|
|
49
49
|
"""
|
|
50
50
|
|
|
51
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
52
|
-
"""
|
|
53
|
-
The ID of the organization this environment variable belongs to.
|
|
54
|
-
"""
|
|
55
|
-
|
|
56
51
|
sandbox_config_id: str = pydantic.Field()
|
|
57
52
|
"""
|
|
58
53
|
The ID of the sandbox config this environment variable belongs to.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import pydantic
|
|
5
5
|
import typing
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class SandboxEnvironmentVariableCreate(
|
|
9
|
+
class SandboxEnvironmentVariableCreate(UncheckedBaseModel):
|
|
10
10
|
key: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The name of the environment variable.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class SandboxEnvironmentVariableUpdate(
|
|
9
|
+
class SandboxEnvironmentVariableUpdate(UncheckedBaseModel):
|
|
10
10
|
key: typing.Optional[str] = pydantic.Field(default=None)
|
|
11
11
|
"""
|
|
12
12
|
The name of the environment variable.
|
letta/types/source.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
from .embedding_config import EmbeddingConfig
|
|
@@ -10,7 +10,7 @@ import datetime as dt
|
|
|
10
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class Source(
|
|
13
|
+
class Source(UncheckedBaseModel):
|
|
14
14
|
"""
|
|
15
15
|
Representation of a source, which is a collection of files and passages.
|
|
16
16
|
|
|
@@ -43,11 +43,6 @@ class Source(UniversalBaseModel):
|
|
|
43
43
|
The embedding configuration used by the source.
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
47
|
-
"""
|
|
48
|
-
The ID of the organization that created the source.
|
|
49
|
-
"""
|
|
50
|
-
|
|
51
46
|
metadata: typing_extensions.Annotated[
|
|
52
47
|
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="metadata_")
|
|
53
48
|
] = pydantic.Field(default=None)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class SystemMessageInput(
|
|
9
|
+
class SystemMessageInput(UncheckedBaseModel):
|
|
10
10
|
content: str
|
|
11
11
|
role: typing.Optional[str] = None
|
|
12
12
|
name: typing.Optional[str] = None
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import datetime as dt
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import typing
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class SystemMessageOutput(
|
|
10
|
+
class SystemMessageOutput(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
A message generated by the system. Never streamed back on a response, only used for cursor pagination.
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import pydantic
|
|
5
5
|
import typing
|
|
6
6
|
from .tool_rule_type import ToolRuleType
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class TerminalToolRule(
|
|
10
|
+
class TerminalToolRule(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
Represents a terminal tool rule configuration where if this tool gets called, it must end the agent loop.
|
|
13
13
|
"""
|
letta/types/tool_call_delta.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class ToolCallDelta(
|
|
9
|
+
class ToolCallDelta(UncheckedBaseModel):
|
|
10
10
|
name: typing.Optional[str] = None
|
|
11
11
|
arguments: typing.Optional[str] = None
|
|
12
12
|
tool_call_id: typing.Optional[str] = None
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import pydantic
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import typing
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class ToolCallFunctionOutput(
|
|
9
|
+
class ToolCallFunctionOutput(UncheckedBaseModel):
|
|
10
10
|
name: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The name of the function to call
|
letta/types/tool_call_message.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import datetime as dt
|
|
5
5
|
from .tool_call_message_tool_call import ToolCallMessageToolCall
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
@@ -8,7 +8,7 @@ import typing
|
|
|
8
8
|
import pydantic
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class ToolCallMessage(
|
|
11
|
+
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
|
|
letta/types/tool_create.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class ToolCreate(
|
|
9
|
+
class ToolCreate(UncheckedBaseModel):
|
|
10
10
|
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
11
11
|
"""
|
|
12
12
|
The name of the function (auto-generated from source_code if not provided).
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from .function_call_input import FunctionCallInput
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class ToolFunctionChoice(
|
|
10
|
+
class ToolFunctionChoice(UncheckedBaseModel):
|
|
11
11
|
type: typing.Optional[typing.Literal["function"]] = None
|
|
12
12
|
function: FunctionCallInput
|
|
13
13
|
|
letta/types/tool_input.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from .function_schema import FunctionSchema
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class ToolInput(
|
|
10
|
+
class ToolInput(UncheckedBaseModel):
|
|
11
11
|
type: typing.Optional[typing.Literal["function"]] = None
|
|
12
12
|
function: FunctionSchema
|
|
13
13
|
|
letta/types/tool_message.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class ToolMessage(
|
|
9
|
+
class ToolMessage(UncheckedBaseModel):
|
|
10
10
|
content: str
|
|
11
11
|
role: typing.Optional[str] = None
|
|
12
12
|
tool_call_id: str
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import datetime as dt
|
|
5
5
|
from .tool_return_message_status import ToolReturnMessageStatus
|
|
6
6
|
import typing
|
|
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
8
8
|
import pydantic
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class ToolReturnMessage(
|
|
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
|
|
letta/types/tool_type.py
ADDED
letta/types/usage_statistics.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class UsageStatistics(
|
|
9
|
+
class UsageStatistics(UncheckedBaseModel):
|
|
10
10
|
completion_tokens: typing.Optional[int] = None
|
|
11
11
|
prompt_tokens: typing.Optional[int] = None
|
|
12
12
|
total_tokens: typing.Optional[int] = None
|
letta/types/user.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
import datetime as dt
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class User(
|
|
10
|
+
class User(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
Representation of a user.
|
|
13
13
|
|
|
@@ -22,11 +22,6 @@ class User(UniversalBaseModel):
|
|
|
22
22
|
The human-friendly ID of the User
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
-
"""
|
|
27
|
-
The organization id of the user
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
25
|
name: str = pydantic.Field()
|
|
31
26
|
"""
|
|
32
27
|
The name of the user.
|
letta/types/user_create.py
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import pydantic
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import typing
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class UserCreate(
|
|
9
|
+
class UserCreate(UncheckedBaseModel):
|
|
10
10
|
name: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The name of the user.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
organization_id: str = pydantic.Field()
|
|
16
|
-
"""
|
|
17
|
-
The organization id of the user.
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
15
|
if IS_PYDANTIC_V2:
|
|
21
16
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
17
|
else:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
from .user_message_input_content import UserMessageInputContent
|
|
5
5
|
import typing
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class UserMessageInput(
|
|
10
|
+
class UserMessageInput(UncheckedBaseModel):
|
|
11
11
|
content: UserMessageInputContent
|
|
12
12
|
role: typing.Optional[str] = None
|
|
13
13
|
name: typing.Optional[str] = None
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import datetime as dt
|
|
5
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import typing
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class UserMessageOutput(
|
|
10
|
+
class UserMessageOutput(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
A message sent by the user. Never streamed back on a response, only used for cursor pagination.
|
|
13
13
|
|
letta/types/user_update.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import pydantic
|
|
5
5
|
import typing
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class UserUpdate(
|
|
9
|
+
class UserUpdate(UncheckedBaseModel):
|
|
10
10
|
id: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The id of the user to update.
|
|
@@ -17,11 +17,6 @@ class UserUpdate(UniversalBaseModel):
|
|
|
17
17
|
The new name of the user.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
-
"""
|
|
22
|
-
The new organization id of the user.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
20
|
if IS_PYDANTIC_V2:
|
|
26
21
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
27
22
|
else:
|
letta/types/validation_error.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from ..core.
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
from .validation_error_loc_item import ValidationErrorLocItem
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class ValidationError(
|
|
10
|
+
class ValidationError(UncheckedBaseModel):
|
|
11
11
|
loc: typing.List[ValidationErrorLocItem]
|
|
12
12
|
msg: str
|
|
13
13
|
type: str
|