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.

Files changed (153) hide show
  1. letta/__init__.py +28 -27
  2. letta/agents/__init__.py +40 -29
  3. letta/agents/archival_memory/client.py +17 -17
  4. letta/agents/client.py +405 -1721
  5. letta/agents/context/client.py +5 -5
  6. letta/agents/core_memory/client.py +1080 -0
  7. letta/agents/memory_variables/__init__.py +5 -0
  8. letta/agents/{memory → memory_variables}/client.py +41 -40
  9. letta/agents/memory_variables/types/__init__.py +5 -0
  10. letta/agents/{types/agents_get_agent_variables_response.py → memory_variables/types/memory_variables_get_response.py} +3 -3
  11. letta/agents/messages/client.py +232 -17
  12. letta/agents/messages/types/letta_streaming_response.py +21 -16
  13. letta/agents/messages/types/messages_list_response_item.py +19 -14
  14. letta/agents/recall_memory/client.py +5 -5
  15. letta/agents/sources/client.py +5 -5
  16. letta/agents/templates/__init__.py +5 -0
  17. letta/agents/templates/client.py +578 -0
  18. letta/agents/templates/types/__init__.py +5 -0
  19. letta/agents/{types/agents_migrate_response.py → templates/types/templates_migrate_response.py} +3 -3
  20. letta/agents/tools/client.py +13 -13
  21. letta/agents/types/__init__.py +23 -37
  22. letta/agents/types/agents_search_request_combinator.py +5 -0
  23. letta/agents/types/{agents_search_deployed_agents_request_search_item.py → agents_search_request_search_item.py} +17 -20
  24. letta/agents/types/{agents_search_deployed_agents_request_search_item_name.py → agents_search_request_search_item_name.py} +4 -6
  25. letta/agents/types/agents_search_request_search_item_name_operator.py +5 -0
  26. letta/agents/types/agents_search_request_search_item_order_by.py +22 -0
  27. letta/agents/types/agents_search_request_search_item_order_by_direction.py +5 -0
  28. letta/agents/types/agents_search_request_search_item_order_by_value.py +5 -0
  29. letta/agents/types/{agents_search_deployed_agents_request_search_item_version.py → agents_search_request_search_item_version.py} +2 -2
  30. letta/blocks/client.py +25 -25
  31. letta/client.py +4 -0
  32. letta/core/__init__.py +4 -0
  33. letta/core/client_wrapper.py +1 -1
  34. letta/core/unchecked_base_model.py +305 -0
  35. letta/health/client.py +3 -3
  36. letta/jobs/client.py +17 -17
  37. letta/models/client.py +5 -5
  38. letta/providers/client.py +597 -0
  39. letta/sources/client.py +33 -33
  40. letta/sources/files/client.py +11 -11
  41. letta/sources/passages/client.py +5 -5
  42. letta/tools/client.py +77 -57
  43. letta/types/__init__.py +4 -0
  44. letta/types/action_model.py +2 -2
  45. letta/types/action_parameters_model.py +2 -2
  46. letta/types/action_response_model.py +2 -2
  47. letta/types/agent_environment_variable.py +2 -7
  48. letta/types/agent_state.py +5 -8
  49. letta/types/agent_type.py +1 -2
  50. letta/types/app_auth_scheme.py +2 -2
  51. letta/types/app_model.py +2 -2
  52. letta/types/archival_memory_summary.py +2 -2
  53. letta/types/assistant_file.py +2 -2
  54. letta/types/assistant_message_input.py +2 -2
  55. letta/types/assistant_message_output.py +2 -2
  56. letta/types/auth_request.py +2 -2
  57. letta/types/auth_response.py +2 -2
  58. letta/types/auth_scheme_field.py +2 -2
  59. letta/types/block.py +2 -7
  60. letta/types/block_update.py +2 -2
  61. letta/types/chat_completion_request.py +2 -2
  62. letta/types/chat_completion_response.py +2 -2
  63. letta/types/child_tool_rule.py +2 -2
  64. letta/types/choice.py +2 -2
  65. letta/types/conditional_tool_rule.py +2 -2
  66. letta/types/conflict_error_body.py +2 -2
  67. letta/types/context_window_overview.py +2 -2
  68. letta/types/create_assistant_file_request.py +2 -2
  69. letta/types/create_assistant_request.py +2 -2
  70. letta/types/create_block.py +2 -2
  71. letta/types/delete_assistant_file_response.py +2 -2
  72. letta/types/delete_assistant_response.py +2 -2
  73. letta/types/e_2_b_sandbox_config.py +2 -2
  74. letta/types/embedding_config.py +2 -2
  75. letta/types/file_metadata.py +2 -7
  76. letta/types/function_call_input.py +2 -2
  77. letta/types/function_call_output.py +2 -2
  78. letta/types/function_schema.py +2 -2
  79. letta/types/health.py +2 -2
  80. letta/types/http_validation_error.py +2 -2
  81. letta/types/init_tool_rule.py +2 -2
  82. letta/types/internal_server_error_body.py +2 -2
  83. letta/types/job.py +2 -7
  84. letta/types/letta_request.py +7 -2
  85. letta/types/letta_response.py +2 -2
  86. letta/types/letta_response_messages_item.py +19 -14
  87. letta/types/letta_schemas_letta_message_tool_call.py +2 -2
  88. letta/types/letta_schemas_message_message.py +2 -7
  89. letta/types/letta_schemas_openai_chat_completion_request_tool.py +2 -2
  90. letta/types/letta_schemas_openai_chat_completion_request_tool_call.py +2 -2
  91. letta/types/letta_schemas_openai_chat_completion_request_tool_call_function.py +2 -2
  92. letta/types/letta_schemas_openai_chat_completion_response_message.py +2 -2
  93. letta/types/letta_schemas_openai_chat_completion_response_tool_call.py +2 -2
  94. letta/types/letta_schemas_openai_chat_completions_tool_call_function.py +2 -2
  95. letta/types/letta_schemas_openai_chat_completions_tool_call_input.py +2 -2
  96. letta/types/letta_schemas_openai_chat_completions_tool_call_output.py +2 -2
  97. letta/types/letta_schemas_tool_tool.py +9 -8
  98. letta/types/letta_usage_statistics.py +2 -2
  99. letta/types/llm_config.py +2 -2
  100. letta/types/local_sandbox_config.py +2 -2
  101. letta/types/log_prob_token.py +2 -2
  102. letta/types/memory.py +2 -2
  103. letta/types/message_content_log_prob.py +2 -2
  104. letta/types/message_create.py +2 -2
  105. letta/types/not_found_error_body.py +2 -2
  106. letta/types/open_ai_assistant.py +2 -2
  107. letta/types/organization.py +2 -2
  108. letta/types/organization_create.py +2 -2
  109. letta/types/passage.py +2 -7
  110. letta/types/provider.py +38 -0
  111. letta/types/reasoning_message.py +2 -2
  112. letta/types/recall_memory_summary.py +2 -2
  113. letta/types/response_format.py +2 -2
  114. letta/types/sandbox_config.py +2 -7
  115. letta/types/sandbox_config_create.py +2 -2
  116. letta/types/sandbox_config_update.py +2 -2
  117. letta/types/sandbox_environment_variable.py +2 -7
  118. letta/types/sandbox_environment_variable_create.py +2 -2
  119. letta/types/sandbox_environment_variable_update.py +2 -2
  120. letta/types/source.py +2 -7
  121. letta/types/system_message_input.py +2 -2
  122. letta/types/system_message_output.py +2 -2
  123. letta/types/terminal_tool_rule.py +2 -2
  124. letta/types/tool_call_delta.py +2 -2
  125. letta/types/tool_call_function_output.py +2 -2
  126. letta/types/tool_call_message.py +2 -2
  127. letta/types/tool_create.py +2 -2
  128. letta/types/tool_function_choice.py +2 -2
  129. letta/types/tool_input.py +2 -2
  130. letta/types/tool_message.py +2 -2
  131. letta/types/tool_return_message.py +2 -2
  132. letta/types/tool_type.py +5 -0
  133. letta/types/usage_statistics.py +2 -2
  134. letta/types/user.py +2 -7
  135. letta/types/user_create.py +2 -7
  136. letta/types/user_message_input.py +2 -2
  137. letta/types/user_message_output.py +2 -2
  138. letta/types/user_update.py +2 -7
  139. letta/types/validation_error.py +2 -2
  140. {letta_client-0.1.6.dist-info → letta_client-0.1.9.dist-info}/METADATA +1 -1
  141. letta_client-0.1.9.dist-info/RECORD +200 -0
  142. letta/agents/memory/__init__.py +0 -5
  143. letta/agents/memory/messages/client.py +0 -147
  144. letta/agents/memory_blocks/client.py +0 -364
  145. letta/agents/types/agents_search_deployed_agents_request_combinator.py +0 -5
  146. letta/agents/types/agents_search_deployed_agents_request_search_item_name_operator.py +0 -7
  147. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by.py +0 -26
  148. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_direction.py +0 -5
  149. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_value.py +0 -7
  150. letta_client-0.1.6.dist-info/RECORD +0 -193
  151. /letta/agents/{memory/messages → core_memory}/__init__.py +0 -0
  152. /letta/{agents/memory_blocks → providers}/__init__.py +0 -0
  153. {letta_client-0.1.6.dist-info → letta_client-0.1.9.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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
  """
letta/types/agent_type.py CHANGED
@@ -3,6 +3,5 @@
3
3
  import typing
4
4
 
5
5
  AgentType = typing.Union[
6
- typing.Literal["memgpt_agent", "split_thread_agent", "o1_agent", "offline_memory_agent", "chat_only_agent"],
7
- typing.Any,
6
+ typing.Literal["memgpt_agent", "split_thread_agent", "offline_memory_agent", "chat_only_agent"], typing.Any
8
7
  ]
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
11
+ class AppAuthScheme(UncheckedBaseModel):
12
12
  """
13
13
  App authenticatio scheme.
14
14
  """
letta/types/app_model.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
9
+ class AuthSchemeField(UncheckedBaseModel):
10
10
  """
11
11
  Auth scheme field.
12
12
  """
letta/types/block.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
10
+ class ChildToolRule(UncheckedBaseModel):
11
11
  """
12
12
  A ToolRule represents a tool that can be invoked by the agent.
13
13
  """
letta/types/choice.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
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.pydantic_utilities import UniversalBaseModel
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(UniversalBaseModel):
9
+ class FunctionCallInput(UncheckedBaseModel):
10
10
  name: str
11
11
 
12
12
  if IS_PYDANTIC_V2:
@@ -1,12 +1,12 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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 FunctionCallOutput(UniversalBaseModel):
9
+ class FunctionCallOutput(UncheckedBaseModel):
10
10
  arguments: str
11
11
  name: str
12
12
 
@@ -1,12 +1,12 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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 FunctionSchema(UniversalBaseModel):
9
+ class FunctionSchema(UncheckedBaseModel):
10
10
  name: str
11
11
  description: typing.Optional[str] = None
12
12
  parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
letta/types/health.py CHANGED
@@ -1,12 +1,12 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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 Health(UniversalBaseModel):
9
+ class Health(UncheckedBaseModel):
10
10
  """
11
11
  Health check response body
12
12
  """
@@ -1,13 +1,13 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  from .validation_error import ValidationError
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  import pydantic
8
8
 
9
9
 
10
- class HttpValidationError(UniversalBaseModel):
10
+ class HttpValidationError(UncheckedBaseModel):
11
11
  detail: typing.Optional[typing.List[ValidationError]] = None
12
12
 
13
13
  if IS_PYDANTIC_V2:
@@ -1,13 +1,13 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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 InitToolRule(UniversalBaseModel):
10
+ class InitToolRule(UncheckedBaseModel):
11
11
  """
12
12
  Represents the initial tool rule configuration.
13
13
  """
@@ -1,12 +1,12 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
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 InternalServerErrorBody(UniversalBaseModel):
9
+ class InternalServerErrorBody(UncheckedBaseModel):
10
10
  message: typing.Literal["Failed to create agent template"] = "Failed to create agent template"
11
11
 
12
12
  if IS_PYDANTIC_V2:
letta/types/job.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from ..core.pydantic_utilities import UniversalBaseModel
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  import pydantic
6
6
  import datetime as dt
@@ -10,7 +10,7 @@ from ..core.serialization import FieldMetadata
10
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
11
 
12
12
 
13
- class Job(UniversalBaseModel):
13
+ class Job(UncheckedBaseModel):
14
14
  """
15
15
  Representation of offline jobs, used for tracking status of data loading tasks (involving parsing and embedding files).
16
16
 
@@ -64,11 +64,6 @@ class Job(UniversalBaseModel):
64
64
  The human-friendly ID of the Job
65
65
  """
66
66
 
67
- user_id: typing.Optional[str] = pydantic.Field(default=None)
68
- """
69
- The unique identifier of the user associated with the job.
70
- """
71
-
72
67
  if IS_PYDANTIC_V2:
73
68
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
74
69
  else: