letta-client 0.1.6__py3-none-any.whl → 0.1.10__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 → letta_client}/__init__.py +33 -27
- {letta → letta_client}/agents/__init__.py +40 -29
- {letta → letta_client}/agents/archival_memory/client.py +25 -25
- letta_client/agents/client.py +1328 -0
- {letta → letta_client}/agents/context/client.py +7 -7
- letta_client/agents/core_memory/client.py +1080 -0
- letta_client/agents/memory_variables/__init__.py +5 -0
- {letta/agents/memory → letta_client/agents/memory_variables}/client.py +43 -42
- letta_client/agents/memory_variables/types/__init__.py +5 -0
- letta/agents/types/agents_get_agent_variables_response.py → letta_client/agents/memory_variables/types/memory_variables_get_response.py +3 -3
- {letta → letta_client}/agents/messages/client.py +240 -25
- {letta → letta_client}/agents/messages/types/letta_streaming_response.py +21 -16
- {letta → letta_client}/agents/messages/types/messages_list_response_item.py +19 -14
- {letta → letta_client}/agents/recall_memory/client.py +7 -7
- {letta → letta_client}/agents/sources/client.py +7 -7
- letta_client/agents/templates/__init__.py +5 -0
- letta_client/agents/templates/client.py +578 -0
- letta_client/agents/templates/types/__init__.py +5 -0
- letta/agents/types/agents_migrate_response.py → letta_client/agents/templates/types/templates_migrate_response.py +3 -3
- {letta → letta_client}/agents/tools/client.py +19 -19
- letta_client/agents/types/__init__.py +33 -0
- letta_client/agents/types/agents_search_request_combinator.py +5 -0
- letta/agents/types/agents_search_deployed_agents_request_search_item.py → letta_client/agents/types/agents_search_request_search_item.py +17 -20
- letta/agents/types/agents_search_deployed_agents_request_search_item_name.py → letta_client/agents/types/agents_search_request_search_item_name.py +4 -6
- letta_client/agents/types/agents_search_request_search_item_name_operator.py +5 -0
- letta_client/agents/types/agents_search_request_search_item_order_by.py +22 -0
- letta_client/agents/types/agents_search_request_search_item_order_by_direction.py +5 -0
- letta_client/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 → letta_client/agents/types/agents_search_request_search_item_version.py +2 -2
- {letta → letta_client}/blocks/client.py +39 -39
- {letta → letta_client}/client.py +10 -2
- {letta → letta_client}/core/__init__.py +4 -0
- {letta → letta_client}/core/client_wrapper.py +1 -1
- letta_client/core/unchecked_base_model.py +305 -0
- {letta → letta_client}/health/client.py +5 -5
- {letta → letta_client}/jobs/client.py +25 -25
- {letta → letta_client}/models/client.py +9 -9
- letta_client/providers/client.py +597 -0
- letta_client/runs/client.py +876 -0
- {letta → letta_client}/sources/client.py +49 -49
- {letta → letta_client}/sources/files/client.py +17 -17
- {letta → letta_client}/sources/passages/client.py +7 -7
- letta_client/tools/__init__.py +2 -0
- {letta → letta_client}/tools/client.py +101 -81
- {letta → letta_client}/types/__init__.py +8 -0
- {letta → letta_client}/types/action_model.py +2 -2
- {letta → letta_client}/types/action_parameters_model.py +2 -2
- {letta → letta_client}/types/action_response_model.py +2 -2
- {letta → letta_client}/types/agent_environment_variable.py +2 -7
- {letta → letta_client}/types/agent_state.py +5 -8
- letta_client/types/agent_type.py +7 -0
- {letta → letta_client}/types/app_auth_scheme.py +2 -2
- {letta → letta_client}/types/app_model.py +2 -2
- {letta → letta_client}/types/archival_memory_summary.py +2 -2
- {letta → letta_client}/types/assistant_file.py +2 -2
- {letta → letta_client}/types/assistant_message_input.py +2 -2
- {letta → letta_client}/types/assistant_message_output.py +2 -2
- {letta → letta_client}/types/auth_request.py +2 -2
- {letta → letta_client}/types/auth_response.py +2 -2
- {letta → letta_client}/types/auth_scheme_field.py +2 -2
- {letta → letta_client}/types/block.py +2 -7
- {letta → letta_client}/types/block_update.py +2 -2
- {letta → letta_client}/types/chat_completion_request.py +2 -2
- {letta → letta_client}/types/chat_completion_response.py +2 -2
- {letta → letta_client}/types/child_tool_rule.py +2 -2
- {letta → letta_client}/types/choice.py +2 -2
- {letta → letta_client}/types/conditional_tool_rule.py +2 -2
- {letta → letta_client}/types/conflict_error_body.py +2 -2
- {letta → letta_client}/types/context_window_overview.py +2 -2
- {letta → letta_client}/types/create_assistant_file_request.py +2 -2
- {letta → letta_client}/types/create_assistant_request.py +2 -2
- {letta → letta_client}/types/create_block.py +2 -2
- {letta → letta_client}/types/delete_assistant_file_response.py +2 -2
- {letta → letta_client}/types/delete_assistant_response.py +2 -2
- {letta → letta_client}/types/e_2_b_sandbox_config.py +2 -2
- {letta → letta_client}/types/embedding_config.py +2 -2
- {letta → letta_client}/types/file_metadata.py +2 -7
- {letta → letta_client}/types/function_call_input.py +2 -2
- {letta → letta_client}/types/function_call_output.py +2 -2
- {letta → letta_client}/types/function_schema.py +2 -2
- {letta → letta_client}/types/health.py +2 -2
- {letta → letta_client}/types/http_validation_error.py +2 -2
- {letta → letta_client}/types/init_tool_rule.py +2 -2
- {letta → letta_client}/types/internal_server_error_body.py +2 -2
- {letta → letta_client}/types/job.py +7 -6
- letta_client/types/job_type.py +5 -0
- {letta → letta_client}/types/letta_request.py +7 -2
- {letta → letta_client}/types/letta_response.py +2 -2
- {letta → letta_client}/types/letta_response_messages_item.py +19 -14
- {letta → letta_client}/types/letta_schemas_letta_message_tool_call.py +2 -2
- {letta → letta_client}/types/letta_schemas_message_message.py +2 -7
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_request_tool.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_request_tool_call.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_request_tool_call_function.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_response_message.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completion_response_tool_call.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completions_tool_call_function.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completions_tool_call_input.py +2 -2
- {letta → letta_client}/types/letta_schemas_openai_chat_completions_tool_call_output.py +2 -2
- {letta → letta_client}/types/letta_schemas_tool_tool.py +9 -8
- {letta → letta_client}/types/letta_usage_statistics.py +2 -2
- {letta → letta_client}/types/llm_config.py +2 -2
- {letta → letta_client}/types/local_sandbox_config.py +2 -2
- {letta → letta_client}/types/log_prob_token.py +2 -2
- {letta → letta_client}/types/memory.py +2 -2
- {letta → letta_client}/types/message_content_log_prob.py +2 -2
- {letta → letta_client}/types/message_create.py +2 -2
- {letta → letta_client}/types/not_found_error_body.py +2 -2
- {letta → letta_client}/types/open_ai_assistant.py +2 -2
- {letta → letta_client}/types/organization.py +2 -2
- {letta → letta_client}/types/organization_create.py +2 -2
- {letta → letta_client}/types/passage.py +2 -7
- letta_client/types/provider.py +38 -0
- {letta → letta_client}/types/reasoning_message.py +2 -2
- {letta → letta_client}/types/recall_memory_summary.py +2 -2
- {letta → letta_client}/types/response_format.py +2 -2
- letta_client/types/run.py +77 -0
- {letta → letta_client}/types/sandbox_config.py +2 -7
- {letta → letta_client}/types/sandbox_config_create.py +2 -2
- {letta → letta_client}/types/sandbox_config_update.py +2 -2
- {letta → letta_client}/types/sandbox_environment_variable.py +2 -7
- {letta → letta_client}/types/sandbox_environment_variable_create.py +2 -2
- {letta → letta_client}/types/sandbox_environment_variable_update.py +2 -2
- {letta → letta_client}/types/source.py +2 -7
- {letta → letta_client}/types/system_message_input.py +2 -2
- {letta → letta_client}/types/system_message_output.py +2 -2
- {letta → letta_client}/types/terminal_tool_rule.py +2 -2
- {letta → letta_client}/types/tool_call_delta.py +2 -2
- {letta → letta_client}/types/tool_call_function_output.py +2 -2
- {letta → letta_client}/types/tool_call_message.py +2 -2
- {letta → letta_client}/types/tool_create.py +2 -2
- {letta → letta_client}/types/tool_function_choice.py +2 -2
- {letta → letta_client}/types/tool_input.py +2 -2
- {letta → letta_client}/types/tool_message.py +2 -2
- {letta → letta_client}/types/tool_return_message.py +2 -2
- letta_client/types/tool_type.py +5 -0
- {letta → letta_client}/types/usage_statistics.py +2 -2
- {letta → letta_client}/types/user.py +2 -7
- {letta → letta_client}/types/user_create.py +2 -7
- {letta → letta_client}/types/user_message_input.py +2 -2
- {letta → letta_client}/types/user_message_output.py +2 -2
- {letta → letta_client}/types/user_update.py +2 -7
- {letta → letta_client}/types/validation_error.py +2 -2
- {letta_client-0.1.6.dist-info → letta_client-0.1.10.dist-info}/METADATA +7 -7
- letta_client-0.1.10.dist-info/RECORD +204 -0
- letta/agents/client.py +0 -2644
- 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/__init__.py +0 -47
- 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/types/agent_type.py +0 -8
- letta_client-0.1.6.dist-info/RECORD +0 -193
- {letta → letta_client}/agents/archival_memory/__init__.py +0 -0
- {letta → letta_client}/agents/context/__init__.py +0 -0
- {letta/agents/memory/messages → letta_client/agents/core_memory}/__init__.py +0 -0
- {letta → letta_client}/agents/messages/__init__.py +0 -0
- {letta → letta_client}/agents/messages/types/__init__.py +0 -0
- {letta → letta_client}/agents/messages/types/messages_list_response.py +0 -0
- {letta/agents/memory_blocks → letta_client/agents/recall_memory}/__init__.py +0 -0
- {letta/agents/recall_memory → letta_client/agents/sources}/__init__.py +0 -0
- {letta/agents/sources → letta_client/agents/tools}/__init__.py +0 -0
- {letta → letta_client}/agents/types/create_agent_request_tool_rules_item.py +0 -0
- {letta → letta_client}/agents/types/update_agent_tool_rules_item.py +0 -0
- {letta/agents/tools → letta_client/blocks}/__init__.py +0 -0
- {letta → letta_client}/core/api_error.py +0 -0
- {letta → letta_client}/core/datetime_utils.py +0 -0
- {letta → letta_client}/core/file.py +0 -0
- {letta → letta_client}/core/http_client.py +0 -0
- {letta → letta_client}/core/jsonable_encoder.py +0 -0
- {letta → letta_client}/core/pydantic_utilities.py +0 -0
- {letta → letta_client}/core/query_encoder.py +0 -0
- {letta → letta_client}/core/remove_none_from_dict.py +0 -0
- {letta → letta_client}/core/request_options.py +0 -0
- {letta → letta_client}/core/serialization.py +0 -0
- {letta → letta_client}/environment.py +0 -0
- {letta → letta_client}/errors/__init__.py +0 -0
- {letta → letta_client}/errors/conflict_error.py +0 -0
- {letta → letta_client}/errors/internal_server_error.py +0 -0
- {letta → letta_client}/errors/not_found_error.py +0 -0
- {letta → letta_client}/errors/unprocessable_entity_error.py +0 -0
- {letta/blocks → letta_client/health}/__init__.py +0 -0
- {letta/health → letta_client/jobs}/__init__.py +0 -0
- {letta/jobs → letta_client/models}/__init__.py +0 -0
- {letta/models → letta_client/providers}/__init__.py +0 -0
- {letta → letta_client}/py.typed +0 -0
- {letta/sources/files → letta_client/runs}/__init__.py +0 -0
- {letta → letta_client}/sources/__init__.py +0 -0
- {letta/sources/passages → letta_client/sources/files}/__init__.py +0 -0
- {letta/tools → letta_client/sources/passages}/__init__.py +0 -0
- {letta → letta_client}/types/agent_state_tool_rules_item.py +0 -0
- {letta → letta_client}/types/app_auth_scheme_auth_mode.py +0 -0
- {letta → letta_client}/types/chat_completion_request_function_call.py +0 -0
- {letta → letta_client}/types/chat_completion_request_messages_item.py +0 -0
- {letta → letta_client}/types/chat_completion_request_stop.py +0 -0
- {letta → letta_client}/types/chat_completion_request_tool_choice.py +0 -0
- {letta → letta_client}/types/embedding_config_embedding_endpoint_type.py +0 -0
- {letta → letta_client}/types/job_status.py +0 -0
- {letta → letta_client}/types/llm_config_model_endpoint_type.py +0 -0
- {letta → letta_client}/types/message_create_role.py +0 -0
- {letta → letta_client}/types/message_role.py +0 -0
- {letta → letta_client}/types/not_found_error_body_message.py +0 -0
- {letta → letta_client}/types/sandbox_config_create_config.py +0 -0
- {letta → letta_client}/types/sandbox_config_update_config.py +0 -0
- {letta → letta_client}/types/sandbox_type.py +0 -0
- {letta → letta_client}/types/tool_call_message_tool_call.py +0 -0
- {letta → letta_client}/types/tool_return_message_status.py +0 -0
- {letta → letta_client}/types/tool_rule_type.py +0 -0
- {letta → letta_client}/types/user_message_input_content.py +0 -0
- {letta → letta_client}/types/validation_error_loc_item.py +0 -0
- {letta → letta_client}/version.py +0 -0
- {letta_client-0.1.6.dist-info → letta_client-0.1.10.dist-info}/WHEEL +0 -0
|
@@ -48,6 +48,7 @@ from .init_tool_rule import InitToolRule
|
|
|
48
48
|
from .internal_server_error_body import InternalServerErrorBody
|
|
49
49
|
from .job import Job
|
|
50
50
|
from .job_status import JobStatus
|
|
51
|
+
from .job_type import JobType
|
|
51
52
|
from .letta_request import LettaRequest
|
|
52
53
|
from .letta_response import LettaResponse
|
|
53
54
|
from .letta_response_messages_item import (
|
|
@@ -88,9 +89,11 @@ from .open_ai_assistant import OpenAiAssistant
|
|
|
88
89
|
from .organization import Organization
|
|
89
90
|
from .organization_create import OrganizationCreate
|
|
90
91
|
from .passage import Passage
|
|
92
|
+
from .provider import Provider
|
|
91
93
|
from .reasoning_message import ReasoningMessage
|
|
92
94
|
from .recall_memory_summary import RecallMemorySummary
|
|
93
95
|
from .response_format import ResponseFormat
|
|
96
|
+
from .run import Run
|
|
94
97
|
from .sandbox_config import SandboxConfig
|
|
95
98
|
from .sandbox_config_create import SandboxConfigCreate
|
|
96
99
|
from .sandbox_config_create_config import SandboxConfigCreateConfig
|
|
@@ -115,6 +118,7 @@ from .tool_message import ToolMessage
|
|
|
115
118
|
from .tool_return_message import ToolReturnMessage
|
|
116
119
|
from .tool_return_message_status import ToolReturnMessageStatus
|
|
117
120
|
from .tool_rule_type import ToolRuleType
|
|
121
|
+
from .tool_type import ToolType
|
|
118
122
|
from .usage_statistics import UsageStatistics
|
|
119
123
|
from .user import User
|
|
120
124
|
from .user_create import UserCreate
|
|
@@ -174,6 +178,7 @@ __all__ = [
|
|
|
174
178
|
"InternalServerErrorBody",
|
|
175
179
|
"Job",
|
|
176
180
|
"JobStatus",
|
|
181
|
+
"JobType",
|
|
177
182
|
"LettaRequest",
|
|
178
183
|
"LettaResponse",
|
|
179
184
|
"LettaResponseMessagesItem",
|
|
@@ -210,9 +215,11 @@ __all__ = [
|
|
|
210
215
|
"Organization",
|
|
211
216
|
"OrganizationCreate",
|
|
212
217
|
"Passage",
|
|
218
|
+
"Provider",
|
|
213
219
|
"ReasoningMessage",
|
|
214
220
|
"RecallMemorySummary",
|
|
215
221
|
"ResponseFormat",
|
|
222
|
+
"Run",
|
|
216
223
|
"SandboxConfig",
|
|
217
224
|
"SandboxConfigCreate",
|
|
218
225
|
"SandboxConfigCreateConfig",
|
|
@@ -237,6 +244,7 @@ __all__ = [
|
|
|
237
244
|
"ToolReturnMessage",
|
|
238
245
|
"ToolReturnMessageStatus",
|
|
239
246
|
"ToolRuleType",
|
|
247
|
+
"ToolType",
|
|
240
248
|
"UsageStatistics",
|
|
241
249
|
"User",
|
|
242
250
|
"UserCreate",
|
|
@@ -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
|
from .action_parameters_model import ActionParametersModel
|
|
6
6
|
from .action_response_model import ActionResponseModel
|
|
@@ -10,7 +10,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
10
10
|
import pydantic
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class ActionModel(
|
|
13
|
+
class ActionModel(UncheckedBaseModel):
|
|
14
14
|
"""
|
|
15
15
|
Action data model.
|
|
16
16
|
"""
|
|
@@ -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 ActionParametersModel(
|
|
9
|
+
class ActionParametersModel(UncheckedBaseModel):
|
|
10
10
|
"""
|
|
11
11
|
Action parameter data models.
|
|
12
12
|
"""
|
|
@@ -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 ActionResponseModel(
|
|
9
|
+
class ActionResponseModel(UncheckedBaseModel):
|
|
10
10
|
"""
|
|
11
11
|
Action response data model.
|
|
12
12
|
"""
|
|
@@ -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 AgentEnvironmentVariable(
|
|
10
|
+
class AgentEnvironmentVariable(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 AgentEnvironmentVariable(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
|
agent_id: str = pydantic.Field()
|
|
57
52
|
"""
|
|
58
53
|
The ID of the agent this environment variable belongs to.
|
|
@@ -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
|
|
@@ -17,7 +17,7 @@ from .agent_environment_variable import AgentEnvironmentVariable
|
|
|
17
17
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class AgentState(
|
|
20
|
+
class AgentState(UncheckedBaseModel):
|
|
21
21
|
"""
|
|
22
22
|
Representation of an agent's state. This is the state of the agent at a given time, and is persisted in the DB backend. The state has all the information needed to recreate a persisted agent.
|
|
23
23
|
|
|
@@ -93,11 +93,6 @@ class AgentState(UniversalBaseModel):
|
|
|
93
93
|
The embedding configuration used by the agent.
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
97
|
-
"""
|
|
98
|
-
The unique identifier of the organization associated with the agent.
|
|
99
|
-
"""
|
|
100
|
-
|
|
101
96
|
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
102
97
|
"""
|
|
103
98
|
The description of the agent.
|
|
@@ -130,7 +125,9 @@ class AgentState(UniversalBaseModel):
|
|
|
130
125
|
The tags associated with the agent.
|
|
131
126
|
"""
|
|
132
127
|
|
|
133
|
-
tool_exec_environment_variables: typing.List[AgentEnvironmentVariable] = pydantic.Field(
|
|
128
|
+
tool_exec_environment_variables: typing.Optional[typing.List[AgentEnvironmentVariable]] = pydantic.Field(
|
|
129
|
+
default=None
|
|
130
|
+
)
|
|
134
131
|
"""
|
|
135
132
|
The environment variables for tool execution specific to this agent.
|
|
136
133
|
"""
|
|
@@ -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
|
from .app_auth_scheme_auth_mode import AppAuthSchemeAuthMode
|
|
5
5
|
import typing
|
|
6
6
|
from .auth_scheme_field import AuthSchemeField
|
|
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
8
8
|
import pydantic
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class AppAuthScheme(
|
|
11
|
+
class AppAuthScheme(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
App authenticatio scheme.
|
|
14
14
|
"""
|
|
@@ -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_extensions
|
|
5
5
|
from ..core.serialization import FieldMetadata
|
|
6
6
|
import typing
|
|
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
import pydantic
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class AppModel(
|
|
12
|
+
class AppModel(UncheckedBaseModel):
|
|
13
13
|
"""
|
|
14
14
|
App data model.
|
|
15
15
|
"""
|
|
@@ -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 ArchivalMemorySummary(
|
|
9
|
+
class ArchivalMemorySummary(UncheckedBaseModel):
|
|
10
10
|
size: int = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
Number of rows in archival memory
|
|
@@ -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 AssistantFile(
|
|
9
|
+
class AssistantFile(UncheckedBaseModel):
|
|
10
10
|
id: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The unique identifier of the file.
|
|
@@ -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 .letta_schemas_openai_chat_completion_request_tool_call import LettaSchemasOpenaiChatCompletionRequestToolCall
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
7
|
import pydantic
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class AssistantMessageInput(
|
|
10
|
+
class AssistantMessageInput(UncheckedBaseModel):
|
|
11
11
|
content: typing.Optional[str] = None
|
|
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 AssistantMessageOutput(
|
|
10
|
+
class AssistantMessageOutput(UncheckedBaseModel):
|
|
11
11
|
id: str
|
|
12
12
|
date: dt.datetime
|
|
13
13
|
assistant_message: str
|
|
@@ -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 AuthRequest(
|
|
9
|
+
class AuthRequest(UncheckedBaseModel):
|
|
10
10
|
password: typing.Optional[str] = pydantic.Field(default=None)
|
|
11
11
|
"""
|
|
12
12
|
Admin password provided when starting the Letta server
|
|
@@ -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_extensions
|
|
5
5
|
from ..core.serialization import FieldMetadata
|
|
6
6
|
import pydantic
|
|
@@ -8,7 +8,7 @@ import typing
|
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class AuthResponse(
|
|
11
|
+
class AuthResponse(UncheckedBaseModel):
|
|
12
12
|
uuid_: typing_extensions.Annotated[str, FieldMetadata(alias="uuid")] = pydantic.Field()
|
|
13
13
|
"""
|
|
14
14
|
UUID of the user
|
|
@@ -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 AuthSchemeField(
|
|
9
|
+
class AuthSchemeField(UncheckedBaseModel):
|
|
10
10
|
"""
|
|
11
11
|
Auth scheme field.
|
|
12
12
|
"""
|
|
@@ -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 pydantic
|
|
5
5
|
import typing
|
|
6
6
|
import typing_extensions
|
|
@@ -8,7 +8,7 @@ from ..core.serialization import FieldMetadata
|
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class Block(
|
|
11
|
+
class Block(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
A Block represents a reserved section of the LLM's context window which is editable. `Block` objects contained in the `Memory` object, which is able to edit the Block values.
|
|
14
14
|
|
|
@@ -66,11 +66,6 @@ class Block(UniversalBaseModel):
|
|
|
66
66
|
The human-friendly ID of the Block
|
|
67
67
|
"""
|
|
68
68
|
|
|
69
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
70
|
-
"""
|
|
71
|
-
The unique identifier of the organization associated with the block.
|
|
72
|
-
"""
|
|
73
|
-
|
|
74
69
|
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
75
70
|
"""
|
|
76
71
|
The id of the user that made this Block.
|
|
@@ -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 typing_extensions
|
|
@@ -8,7 +8,7 @@ from ..core.serialization import FieldMetadata
|
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class BlockUpdate(
|
|
11
|
+
class BlockUpdate(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
Update a block
|
|
14
14
|
"""
|
|
@@ -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
|
from .chat_completion_request_messages_item import ChatCompletionRequestMessagesItem
|
|
6
6
|
from .response_format import ResponseFormat
|
|
@@ -13,7 +13,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
13
13
|
import pydantic
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class ChatCompletionRequest(
|
|
16
|
+
class ChatCompletionRequest(UncheckedBaseModel):
|
|
17
17
|
"""
|
|
18
18
|
https://platform.openai.com/docs/api-reference/chat/create
|
|
19
19
|
"""
|
|
@@ -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
|
from .choice import Choice
|
|
6
6
|
import datetime as dt
|
|
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
import pydantic
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class ChatCompletionResponse(
|
|
12
|
+
class ChatCompletionResponse(UncheckedBaseModel):
|
|
13
13
|
"""
|
|
14
14
|
https://platform.openai.com/docs/api-reference/chat/object
|
|
15
15
|
"""
|
|
@@ -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 ChildToolRule(
|
|
10
|
+
class ChildToolRule(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
A ToolRule represents a tool that can be invoked by the agent.
|
|
13
13
|
"""
|
|
@@ -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
|
from .letta_schemas_openai_chat_completion_response_message import LettaSchemasOpenaiChatCompletionResponseMessage
|
|
5
5
|
import typing
|
|
6
6
|
from .message_content_log_prob import MessageContentLogProb
|
|
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
8
8
|
import pydantic
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class Choice(
|
|
11
|
+
class Choice(UncheckedBaseModel):
|
|
12
12
|
finish_reason: str
|
|
13
13
|
index: int
|
|
14
14
|
message: LettaSchemasOpenaiChatCompletionResponseMessage
|
|
@@ -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 ConditionalToolRule(
|
|
10
|
+
class ConditionalToolRule(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
A ToolRule that conditionally maps to different child tools based on the output.
|
|
13
13
|
"""
|
|
@@ -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 ConflictErrorBody(
|
|
9
|
+
class ConflictErrorBody(UncheckedBaseModel):
|
|
10
10
|
message: typing.Literal[
|
|
11
11
|
"You can only migrate agents to a new versioned agent template that belongs to the same project"
|
|
12
12
|
] = "You can only migrate agents to a new versioned agent template that belongs to the same project"
|
|
@@ -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 pydantic
|
|
5
5
|
import typing
|
|
6
6
|
from .letta_schemas_openai_chat_completion_request_tool import LettaSchemasOpenaiChatCompletionRequestTool
|
|
@@ -8,7 +8,7 @@ from .letta_schemas_message_message import LettaSchemasMessageMessage
|
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class ContextWindowOverview(
|
|
11
|
+
class ContextWindowOverview(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
Overview of the context window, including the number of messages and tokens.
|
|
14
14
|
"""
|
|
@@ -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 CreateAssistantFileRequest(
|
|
9
|
+
class CreateAssistantFileRequest(UncheckedBaseModel):
|
|
10
10
|
file_id: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The unique identifier of the file.
|
|
@@ -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 CreateAssistantRequest(
|
|
9
|
+
class CreateAssistantRequest(UncheckedBaseModel):
|
|
10
10
|
model: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The model to use for the assistant.
|
|
@@ -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 pydantic
|
|
5
5
|
import typing
|
|
6
6
|
import typing_extensions
|
|
@@ -8,7 +8,7 @@ from ..core.serialization import FieldMetadata
|
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class CreateBlock(
|
|
11
|
+
class CreateBlock(UncheckedBaseModel):
|
|
12
12
|
"""
|
|
13
13
|
Create a block
|
|
14
14
|
"""
|
|
@@ -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 DeleteAssistantFileResponse(
|
|
9
|
+
class DeleteAssistantFileResponse(UncheckedBaseModel):
|
|
10
10
|
id: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The unique identifier of the file.
|
|
@@ -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 DeleteAssistantResponse(
|
|
9
|
+
class DeleteAssistantResponse(UncheckedBaseModel):
|
|
10
10
|
id: str = pydantic.Field()
|
|
11
11
|
"""
|
|
12
12
|
The unique identifier of the agent.
|
|
@@ -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 E2BSandboxConfig(
|
|
9
|
+
class E2BSandboxConfig(UncheckedBaseModel):
|
|
10
10
|
timeout: typing.Optional[int] = pydantic.Field(default=None)
|
|
11
11
|
"""
|
|
12
12
|
Time limit for the sandbox (in seconds).
|
|
@@ -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 .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
|
|
5
5
|
import pydantic
|
|
6
6
|
import typing
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class EmbeddingConfig(
|
|
10
|
+
class EmbeddingConfig(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
Embedding model configuration. This object specifies all the information necessary to access an embedding model to usage with Letta, except for secret keys.
|
|
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 FileMetadata(
|
|
10
|
+
class FileMetadata(UncheckedBaseModel):
|
|
11
11
|
"""
|
|
12
12
|
Representation of a single FileMetadata
|
|
13
13
|
"""
|
|
@@ -17,11 +17,6 @@ class FileMetadata(UniversalBaseModel):
|
|
|
17
17
|
The human-friendly ID of the File
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
organization_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
-
"""
|
|
22
|
-
The unique identifier of the organization associated with the document.
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
20
|
source_id: str = pydantic.Field()
|
|
26
21
|
"""
|
|
27
22
|
The unique identifier of the source associated with the document.
|
|
@@ -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
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
5
|
import typing
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class FunctionCallInput(
|
|
9
|
+
class FunctionCallInput(UncheckedBaseModel):
|
|
10
10
|
name: str
|
|
11
11
|
|
|
12
12
|
if IS_PYDANTIC_V2:
|