letta-client 0.1.321__py3-none-any.whl → 0.1.323__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 (107) hide show
  1. letta_client/__init__.py +10 -182
  2. letta_client/core/client_wrapper.py +2 -2
  3. letta_client/templates/types/templates_get_template_snapshot_response_agents_item_agent_type.py +1 -0
  4. letta_client/types/__init__.py +10 -196
  5. letta_client/types/agent_type.py +1 -0
  6. letta_client/types/{chat_completion_message_function_tool_call_output.py → chat_completion_message_function_tool_call.py} +3 -3
  7. letta_client/types/{function_call.py → function.py} +1 -1
  8. letta_client/types/{function_definition_input.py → function_definition.py} +1 -1
  9. letta_client/types/function_tool.py +2 -2
  10. letta_client/types/letta_schemas_agent_file_message_schema.py +2 -2
  11. letta_client/types/message.py +2 -2
  12. letta_client/types/message_content_item.py +2 -0
  13. letta_client/types/omitted_reasoning_content.py +4 -0
  14. letta_client/types/reasoning_content.py +4 -0
  15. letta_client/types/redacted_reasoning_content.py +4 -0
  16. letta_client/types/summarized_reasoning_content.py +39 -0
  17. letta_client/types/{chat_completion_content_part_refusal_param.py → summarized_reasoning_content_part.py} +10 -3
  18. {letta_client-0.1.321.dist-info → letta_client-0.1.323.dist-info}/METADATA +1 -1
  19. {letta_client-0.1.321.dist-info → letta_client-0.1.323.dist-info}/RECORD +20 -106
  20. letta_client/types/audio.py +0 -20
  21. letta_client/types/chat_completion_allowed_tool_choice_param.py +0 -22
  22. letta_client/types/chat_completion_allowed_tools_param.py +0 -22
  23. letta_client/types/chat_completion_allowed_tools_param_mode.py +0 -5
  24. letta_client/types/chat_completion_assistant_message_param.py +0 -30
  25. letta_client/types/chat_completion_assistant_message_param_content.py +0 -9
  26. letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -10
  27. letta_client/types/chat_completion_assistant_message_param_tool_calls_item.py +0 -10
  28. letta_client/types/chat_completion_audio_param.py +0 -23
  29. letta_client/types/chat_completion_audio_param_format.py +0 -5
  30. letta_client/types/chat_completion_audio_param_voice.py +0 -15
  31. letta_client/types/chat_completion_content_part_image_param.py +0 -22
  32. letta_client/types/chat_completion_content_part_input_audio_param.py +0 -22
  33. letta_client/types/chat_completion_content_part_text_param.py +0 -21
  34. letta_client/types/chat_completion_custom_tool_param.py +0 -24
  35. letta_client/types/chat_completion_developer_message_param.py +0 -23
  36. letta_client/types/chat_completion_developer_message_param_content.py +0 -7
  37. letta_client/types/chat_completion_function_call_option_param.py +0 -20
  38. letta_client/types/chat_completion_function_message_param.py +0 -22
  39. letta_client/types/chat_completion_function_tool_param.py +0 -22
  40. letta_client/types/chat_completion_message_custom_tool_call_param.py +0 -25
  41. letta_client/types/chat_completion_message_function_tool_call_input.py +0 -25
  42. letta_client/types/chat_completion_message_function_tool_call_param.py +0 -25
  43. letta_client/types/chat_completion_named_tool_choice_custom_param.py +0 -24
  44. letta_client/types/chat_completion_named_tool_choice_param.py +0 -24
  45. letta_client/types/chat_completion_prediction_content_param.py +0 -22
  46. letta_client/types/chat_completion_prediction_content_param_content.py +0 -7
  47. letta_client/types/chat_completion_stream_options_param.py +0 -21
  48. letta_client/types/chat_completion_system_message_param.py +0 -23
  49. letta_client/types/chat_completion_system_message_param_content.py +0 -7
  50. letta_client/types/chat_completion_tool_message_param.py +0 -23
  51. letta_client/types/chat_completion_tool_message_param_content.py +0 -7
  52. letta_client/types/chat_completion_user_message_param.py +0 -23
  53. letta_client/types/chat_completion_user_message_param_content.py +0 -7
  54. letta_client/types/chat_completion_user_message_param_content_item.py +0 -15
  55. letta_client/types/completion_create_params_non_streaming.py +0 -69
  56. letta_client/types/completion_create_params_non_streaming_function_call.py +0 -9
  57. letta_client/types/completion_create_params_non_streaming_messages_item.py +0 -19
  58. letta_client/types/completion_create_params_non_streaming_modalities_item.py +0 -5
  59. letta_client/types/completion_create_params_non_streaming_model.py +0 -69
  60. letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +0 -7
  61. letta_client/types/completion_create_params_non_streaming_response_format.py +0 -11
  62. letta_client/types/completion_create_params_non_streaming_service_tier.py +0 -7
  63. letta_client/types/completion_create_params_non_streaming_stop.py +0 -5
  64. letta_client/types/completion_create_params_non_streaming_tool_choice.py +0 -16
  65. letta_client/types/completion_create_params_non_streaming_tools_item.py +0 -10
  66. letta_client/types/completion_create_params_non_streaming_verbosity.py +0 -5
  67. letta_client/types/completion_create_params_streaming.py +0 -69
  68. letta_client/types/completion_create_params_streaming_function_call.py +0 -9
  69. letta_client/types/completion_create_params_streaming_messages_item.py +0 -19
  70. letta_client/types/completion_create_params_streaming_modalities_item.py +0 -5
  71. letta_client/types/completion_create_params_streaming_model.py +0 -69
  72. letta_client/types/completion_create_params_streaming_reasoning_effort.py +0 -7
  73. letta_client/types/completion_create_params_streaming_response_format.py +0 -11
  74. letta_client/types/completion_create_params_streaming_service_tier.py +0 -7
  75. letta_client/types/completion_create_params_streaming_stop.py +0 -5
  76. letta_client/types/completion_create_params_streaming_tool_choice.py +0 -16
  77. letta_client/types/completion_create_params_streaming_tools_item.py +0 -8
  78. letta_client/types/completion_create_params_streaming_verbosity.py +0 -5
  79. letta_client/types/custom_format_grammar.py +0 -22
  80. letta_client/types/custom_format_grammar_grammar.py +0 -22
  81. letta_client/types/custom_format_grammar_grammar_syntax.py +0 -5
  82. letta_client/types/custom_format_text.py +0 -20
  83. letta_client/types/file.py +0 -22
  84. letta_client/types/file_file.py +0 -22
  85. letta_client/types/function_definition_output.py +0 -23
  86. letta_client/types/function_output.py +0 -21
  87. letta_client/types/image_url.py +0 -22
  88. letta_client/types/image_url_detail.py +0 -5
  89. letta_client/types/input_audio.py +0 -22
  90. letta_client/types/input_audio_format.py +0 -5
  91. letta_client/types/json_schema.py +0 -27
  92. letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom.py +0 -25
  93. letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom_format.py +0 -8
  94. letta_client/types/openai_types_chat_chat_completion_message_custom_tool_call_param_custom.py +0 -21
  95. letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_function.py +0 -21
  96. letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py +0 -21
  97. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_custom_param_custom.py +0 -20
  98. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +0 -20
  99. letta_client/types/openai_types_chat_completion_create_params_function.py +0 -22
  100. letta_client/types/response_format_json_object.py +0 -20
  101. letta_client/types/response_format_json_schema.py +0 -22
  102. letta_client/types/response_format_text.py +0 -20
  103. letta_client/types/web_search_options.py +0 -23
  104. letta_client/types/web_search_options_search_context_size.py +0 -5
  105. letta_client/types/web_search_options_user_location.py +0 -22
  106. letta_client/types/web_search_options_user_location_approximate.py +0 -23
  107. {letta_client-0.1.321.dist-info → letta_client-0.1.323.dist-info}/WHEEL +0 -0
@@ -24,7 +24,6 @@ from .archival_memory_search_result import ArchivalMemorySearchResult
24
24
  from .archive import Archive
25
25
  from .assistant_message import AssistantMessage
26
26
  from .assistant_message_content import AssistantMessageContent
27
- from .audio import Audio
28
27
  from .auth_request import AuthRequest
29
28
  from .auth_response import AuthResponse
30
29
  from .auth_scheme_field import AuthSchemeField
@@ -36,69 +35,10 @@ from .block import Block
36
35
  from .block_schema import BlockSchema
37
36
  from .block_update import BlockUpdate
38
37
  from .body_export_agent import BodyExportAgent
39
- from .chat_completion_allowed_tool_choice_param import ChatCompletionAllowedToolChoiceParam
40
- from .chat_completion_allowed_tools_param import ChatCompletionAllowedToolsParam
41
- from .chat_completion_allowed_tools_param_mode import ChatCompletionAllowedToolsParamMode
42
- from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
43
- from .chat_completion_assistant_message_param_content import ChatCompletionAssistantMessageParamContent
44
- from .chat_completion_assistant_message_param_content_item import ChatCompletionAssistantMessageParamContentItem
45
- from .chat_completion_assistant_message_param_tool_calls_item import ChatCompletionAssistantMessageParamToolCallsItem
46
- from .chat_completion_audio_param import ChatCompletionAudioParam
47
- from .chat_completion_audio_param_format import ChatCompletionAudioParamFormat
48
- from .chat_completion_audio_param_voice import ChatCompletionAudioParamVoice
49
- from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam
50
- from .chat_completion_content_part_input_audio_param import ChatCompletionContentPartInputAudioParam
51
- from .chat_completion_content_part_refusal_param import ChatCompletionContentPartRefusalParam
52
- from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
53
- from .chat_completion_custom_tool_param import ChatCompletionCustomToolParam
54
- from .chat_completion_developer_message_param import ChatCompletionDeveloperMessageParam
55
- from .chat_completion_developer_message_param_content import ChatCompletionDeveloperMessageParamContent
56
- from .chat_completion_function_call_option_param import ChatCompletionFunctionCallOptionParam
57
- from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
58
- from .chat_completion_function_tool_param import ChatCompletionFunctionToolParam
59
- from .chat_completion_message_custom_tool_call_param import ChatCompletionMessageCustomToolCallParam
60
- from .chat_completion_message_function_tool_call_input import ChatCompletionMessageFunctionToolCallInput
61
- from .chat_completion_message_function_tool_call_output import ChatCompletionMessageFunctionToolCallOutput
62
- from .chat_completion_message_function_tool_call_param import ChatCompletionMessageFunctionToolCallParam
63
- from .chat_completion_named_tool_choice_custom_param import ChatCompletionNamedToolChoiceCustomParam
64
- from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
65
- from .chat_completion_prediction_content_param import ChatCompletionPredictionContentParam
66
- from .chat_completion_prediction_content_param_content import ChatCompletionPredictionContentParamContent
67
- from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
68
- from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
69
- from .chat_completion_system_message_param_content import ChatCompletionSystemMessageParamContent
70
- from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
71
- from .chat_completion_tool_message_param_content import ChatCompletionToolMessageParamContent
72
- from .chat_completion_user_message_param import ChatCompletionUserMessageParam
73
- from .chat_completion_user_message_param_content import ChatCompletionUserMessageParamContent
74
- from .chat_completion_user_message_param_content_item import ChatCompletionUserMessageParamContentItem
38
+ from .chat_completion_message_function_tool_call import ChatCompletionMessageFunctionToolCall
75
39
  from .child_tool_rule import ChildToolRule
76
40
  from .child_tool_rule_schema import ChildToolRuleSchema
77
41
  from .code_input import CodeInput
78
- from .completion_create_params_non_streaming import CompletionCreateParamsNonStreaming
79
- from .completion_create_params_non_streaming_function_call import CompletionCreateParamsNonStreamingFunctionCall
80
- from .completion_create_params_non_streaming_messages_item import CompletionCreateParamsNonStreamingMessagesItem
81
- from .completion_create_params_non_streaming_modalities_item import CompletionCreateParamsNonStreamingModalitiesItem
82
- from .completion_create_params_non_streaming_model import CompletionCreateParamsNonStreamingModel
83
- from .completion_create_params_non_streaming_reasoning_effort import CompletionCreateParamsNonStreamingReasoningEffort
84
- from .completion_create_params_non_streaming_response_format import CompletionCreateParamsNonStreamingResponseFormat
85
- from .completion_create_params_non_streaming_service_tier import CompletionCreateParamsNonStreamingServiceTier
86
- from .completion_create_params_non_streaming_stop import CompletionCreateParamsNonStreamingStop
87
- from .completion_create_params_non_streaming_tool_choice import CompletionCreateParamsNonStreamingToolChoice
88
- from .completion_create_params_non_streaming_tools_item import CompletionCreateParamsNonStreamingToolsItem
89
- from .completion_create_params_non_streaming_verbosity import CompletionCreateParamsNonStreamingVerbosity
90
- from .completion_create_params_streaming import CompletionCreateParamsStreaming
91
- from .completion_create_params_streaming_function_call import CompletionCreateParamsStreamingFunctionCall
92
- from .completion_create_params_streaming_messages_item import CompletionCreateParamsStreamingMessagesItem
93
- from .completion_create_params_streaming_modalities_item import CompletionCreateParamsStreamingModalitiesItem
94
- from .completion_create_params_streaming_model import CompletionCreateParamsStreamingModel
95
- from .completion_create_params_streaming_reasoning_effort import CompletionCreateParamsStreamingReasoningEffort
96
- from .completion_create_params_streaming_response_format import CompletionCreateParamsStreamingResponseFormat
97
- from .completion_create_params_streaming_service_tier import CompletionCreateParamsStreamingServiceTier
98
- from .completion_create_params_streaming_stop import CompletionCreateParamsStreamingStop
99
- from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
100
- from .completion_create_params_streaming_tools_item import CompletionCreateParamsStreamingToolsItem
101
- from .completion_create_params_streaming_verbosity import CompletionCreateParamsStreamingVerbosity
102
42
  from .components_schemas_text_content import ComponentsSchemasTextContent
103
43
  from .conditional_tool_rule import ConditionalToolRule
104
44
  from .conditional_tool_rule_schema import ConditionalToolRuleSchema
@@ -107,10 +47,6 @@ from .context_window_overview import ContextWindowOverview
107
47
  from .continue_tool_rule import ContinueToolRule
108
48
  from .core_memory_block_schema import CoreMemoryBlockSchema
109
49
  from .create_block import CreateBlock
110
- from .custom_format_grammar import CustomFormatGrammar
111
- from .custom_format_grammar_grammar import CustomFormatGrammarGrammar
112
- from .custom_format_grammar_grammar_syntax import CustomFormatGrammarGrammarSyntax
113
- from .custom_format_text import CustomFormatText
114
50
  from .delete_deployment_response import DeleteDeploymentResponse
115
51
  from .deployment_entity import DeploymentEntity
116
52
  from .duplicate_file_handling import DuplicateFileHandling
@@ -120,19 +56,15 @@ from .e_2_b_sandbox_config import E2BSandboxConfig
120
56
  from .embedding_config import EmbeddingConfig
121
57
  from .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
122
58
  from .feedback_type import FeedbackType
123
- from .file import File
124
59
  from .file_agent_schema import FileAgentSchema
125
60
  from .file_block import FileBlock
126
- from .file_file import FileFile
127
61
  from .file_metadata import FileMetadata
128
62
  from .file_processing_status import FileProcessingStatus
129
63
  from .file_schema import FileSchema
130
64
  from .file_stats import FileStats
131
65
  from .folder import Folder
132
- from .function_call import FunctionCall
133
- from .function_definition_input import FunctionDefinitionInput
134
- from .function_definition_output import FunctionDefinitionOutput
135
- from .function_output import FunctionOutput
66
+ from .function import Function
67
+ from .function_definition import FunctionDefinition
136
68
  from .function_tool import FunctionTool
137
69
  from .generate_tool_input import GenerateToolInput
138
70
  from .generate_tool_output import GenerateToolOutput
@@ -150,12 +82,8 @@ from .identity_property_value import IdentityPropertyValue
150
82
  from .identity_type import IdentityType
151
83
  from .image_content import ImageContent
152
84
  from .image_content_source import ImageContentSource
153
- from .image_url import ImageUrl
154
- from .image_url_detail import ImageUrlDetail
155
85
  from .imported_agents_response import ImportedAgentsResponse
156
86
  from .init_tool_rule import InitToolRule
157
- from .input_audio import InputAudio
158
- from .input_audio_format import InputAudioFormat
159
87
  from .internal_server_error_body import InternalServerErrorBody
160
88
  from .internal_template_agent_create import InternalTemplateAgentCreate
161
89
  from .internal_template_agent_create_response_format import InternalTemplateAgentCreateResponseFormat
@@ -167,7 +95,6 @@ from .job import Job
167
95
  from .job_status import JobStatus
168
96
  from .job_type import JobType
169
97
  from .json_object_response_format import JsonObjectResponseFormat
170
- from .json_schema import JsonSchema
171
98
  from .json_schema_response_format import JsonSchemaResponseFormat
172
99
  from .letta_batch_messages import LettaBatchMessages
173
100
  from .letta_batch_request import LettaBatchRequest
@@ -233,28 +160,6 @@ from .modal_sandbox_config_language import ModalSandboxConfigLanguage
233
160
  from .not_found_error_body import NotFoundErrorBody
234
161
  from .npm_requirement import NpmRequirement
235
162
  from .omitted_reasoning_content import OmittedReasoningContent
236
- from .openai_types_chat_chat_completion_custom_tool_param_custom import (
237
- OpenaiTypesChatChatCompletionCustomToolParamCustom,
238
- )
239
- from .openai_types_chat_chat_completion_custom_tool_param_custom_format import (
240
- OpenaiTypesChatChatCompletionCustomToolParamCustomFormat,
241
- )
242
- from .openai_types_chat_chat_completion_message_custom_tool_call_param_custom import (
243
- OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom,
244
- )
245
- from .openai_types_chat_chat_completion_message_function_tool_call_function import (
246
- OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction,
247
- )
248
- from .openai_types_chat_chat_completion_message_function_tool_call_param_function import (
249
- OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction,
250
- )
251
- from .openai_types_chat_chat_completion_named_tool_choice_custom_param_custom import (
252
- OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom,
253
- )
254
- from .openai_types_chat_chat_completion_named_tool_choice_param_function import (
255
- OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction,
256
- )
257
- from .openai_types_chat_completion_create_params_function import OpenaiTypesChatCompletionCreateParamsFunction
258
163
  from .organization import Organization
259
164
  from .organization_create import OrganizationCreate
260
165
  from .organization_sources_stats import OrganizationSourcesStats
@@ -276,9 +181,6 @@ from .reasoning_message_source import ReasoningMessageSource
276
181
  from .redacted_reasoning_content import RedactedReasoningContent
277
182
  from .required_before_exit_tool_rule import RequiredBeforeExitToolRule
278
183
  from .requires_approval_tool_rule import RequiresApprovalToolRule
279
- from .response_format_json_object import ResponseFormatJsonObject
280
- from .response_format_json_schema import ResponseFormatJsonSchema
281
- from .response_format_text import ResponseFormatText
282
184
  from .round_robin_manager import RoundRobinManager
283
185
  from .round_robin_manager_update import RoundRobinManagerUpdate
284
186
  from .run import Run
@@ -306,6 +208,8 @@ from .step_metrics import StepMetrics
306
208
  from .step_status import StepStatus
307
209
  from .stop_reason_type import StopReasonType
308
210
  from .streamable_http_server_config import StreamableHttpServerConfig
211
+ from .summarized_reasoning_content import SummarizedReasoningContent
212
+ from .summarized_reasoning_content_part import SummarizedReasoningContentPart
309
213
  from .supervisor_manager import SupervisorManager
310
214
  from .supervisor_manager_update import SupervisorManagerUpdate
311
215
  from .system_message import SystemMessage
@@ -352,10 +256,6 @@ from .validation_error_loc_item import ValidationErrorLocItem
352
256
  from .vector_db_provider import VectorDbProvider
353
257
  from .voice_sleeptime_manager import VoiceSleeptimeManager
354
258
  from .voice_sleeptime_manager_update import VoiceSleeptimeManagerUpdate
355
- from .web_search_options import WebSearchOptions
356
- from .web_search_options_search_context_size import WebSearchOptionsSearchContextSize
357
- from .web_search_options_user_location import WebSearchOptionsUserLocation
358
- from .web_search_options_user_location_approximate import WebSearchOptionsUserLocationApproximate
359
259
 
360
260
  __all__ = [
361
261
  "ActionModel",
@@ -380,7 +280,6 @@ __all__ = [
380
280
  "Archive",
381
281
  "AssistantMessage",
382
282
  "AssistantMessageContent",
383
- "Audio",
384
283
  "AuthRequest",
385
284
  "AuthResponse",
386
285
  "AuthSchemeField",
@@ -392,69 +291,10 @@ __all__ = [
392
291
  "BlockSchema",
393
292
  "BlockUpdate",
394
293
  "BodyExportAgent",
395
- "ChatCompletionAllowedToolChoiceParam",
396
- "ChatCompletionAllowedToolsParam",
397
- "ChatCompletionAllowedToolsParamMode",
398
- "ChatCompletionAssistantMessageParam",
399
- "ChatCompletionAssistantMessageParamContent",
400
- "ChatCompletionAssistantMessageParamContentItem",
401
- "ChatCompletionAssistantMessageParamToolCallsItem",
402
- "ChatCompletionAudioParam",
403
- "ChatCompletionAudioParamFormat",
404
- "ChatCompletionAudioParamVoice",
405
- "ChatCompletionContentPartImageParam",
406
- "ChatCompletionContentPartInputAudioParam",
407
- "ChatCompletionContentPartRefusalParam",
408
- "ChatCompletionContentPartTextParam",
409
- "ChatCompletionCustomToolParam",
410
- "ChatCompletionDeveloperMessageParam",
411
- "ChatCompletionDeveloperMessageParamContent",
412
- "ChatCompletionFunctionCallOptionParam",
413
- "ChatCompletionFunctionMessageParam",
414
- "ChatCompletionFunctionToolParam",
415
- "ChatCompletionMessageCustomToolCallParam",
416
- "ChatCompletionMessageFunctionToolCallInput",
417
- "ChatCompletionMessageFunctionToolCallOutput",
418
- "ChatCompletionMessageFunctionToolCallParam",
419
- "ChatCompletionNamedToolChoiceCustomParam",
420
- "ChatCompletionNamedToolChoiceParam",
421
- "ChatCompletionPredictionContentParam",
422
- "ChatCompletionPredictionContentParamContent",
423
- "ChatCompletionStreamOptionsParam",
424
- "ChatCompletionSystemMessageParam",
425
- "ChatCompletionSystemMessageParamContent",
426
- "ChatCompletionToolMessageParam",
427
- "ChatCompletionToolMessageParamContent",
428
- "ChatCompletionUserMessageParam",
429
- "ChatCompletionUserMessageParamContent",
430
- "ChatCompletionUserMessageParamContentItem",
294
+ "ChatCompletionMessageFunctionToolCall",
431
295
  "ChildToolRule",
432
296
  "ChildToolRuleSchema",
433
297
  "CodeInput",
434
- "CompletionCreateParamsNonStreaming",
435
- "CompletionCreateParamsNonStreamingFunctionCall",
436
- "CompletionCreateParamsNonStreamingMessagesItem",
437
- "CompletionCreateParamsNonStreamingModalitiesItem",
438
- "CompletionCreateParamsNonStreamingModel",
439
- "CompletionCreateParamsNonStreamingReasoningEffort",
440
- "CompletionCreateParamsNonStreamingResponseFormat",
441
- "CompletionCreateParamsNonStreamingServiceTier",
442
- "CompletionCreateParamsNonStreamingStop",
443
- "CompletionCreateParamsNonStreamingToolChoice",
444
- "CompletionCreateParamsNonStreamingToolsItem",
445
- "CompletionCreateParamsNonStreamingVerbosity",
446
- "CompletionCreateParamsStreaming",
447
- "CompletionCreateParamsStreamingFunctionCall",
448
- "CompletionCreateParamsStreamingMessagesItem",
449
- "CompletionCreateParamsStreamingModalitiesItem",
450
- "CompletionCreateParamsStreamingModel",
451
- "CompletionCreateParamsStreamingReasoningEffort",
452
- "CompletionCreateParamsStreamingResponseFormat",
453
- "CompletionCreateParamsStreamingServiceTier",
454
- "CompletionCreateParamsStreamingStop",
455
- "CompletionCreateParamsStreamingToolChoice",
456
- "CompletionCreateParamsStreamingToolsItem",
457
- "CompletionCreateParamsStreamingVerbosity",
458
298
  "ComponentsSchemasTextContent",
459
299
  "ConditionalToolRule",
460
300
  "ConditionalToolRuleSchema",
@@ -463,10 +303,6 @@ __all__ = [
463
303
  "ContinueToolRule",
464
304
  "CoreMemoryBlockSchema",
465
305
  "CreateBlock",
466
- "CustomFormatGrammar",
467
- "CustomFormatGrammarGrammar",
468
- "CustomFormatGrammarGrammarSyntax",
469
- "CustomFormatText",
470
306
  "DeleteDeploymentResponse",
471
307
  "DeploymentEntity",
472
308
  "DuplicateFileHandling",
@@ -476,19 +312,15 @@ __all__ = [
476
312
  "EmbeddingConfig",
477
313
  "EmbeddingConfigEmbeddingEndpointType",
478
314
  "FeedbackType",
479
- "File",
480
315
  "FileAgentSchema",
481
316
  "FileBlock",
482
- "FileFile",
483
317
  "FileMetadata",
484
318
  "FileProcessingStatus",
485
319
  "FileSchema",
486
320
  "FileStats",
487
321
  "Folder",
488
- "FunctionCall",
489
- "FunctionDefinitionInput",
490
- "FunctionDefinitionOutput",
491
- "FunctionOutput",
322
+ "Function",
323
+ "FunctionDefinition",
492
324
  "FunctionTool",
493
325
  "GenerateToolInput",
494
326
  "GenerateToolOutput",
@@ -506,12 +338,8 @@ __all__ = [
506
338
  "IdentityType",
507
339
  "ImageContent",
508
340
  "ImageContentSource",
509
- "ImageUrl",
510
- "ImageUrlDetail",
511
341
  "ImportedAgentsResponse",
512
342
  "InitToolRule",
513
- "InputAudio",
514
- "InputAudioFormat",
515
343
  "InternalServerErrorBody",
516
344
  "InternalTemplateAgentCreate",
517
345
  "InternalTemplateAgentCreateResponseFormat",
@@ -523,7 +351,6 @@ __all__ = [
523
351
  "JobStatus",
524
352
  "JobType",
525
353
  "JsonObjectResponseFormat",
526
- "JsonSchema",
527
354
  "JsonSchemaResponseFormat",
528
355
  "LettaBatchMessages",
529
356
  "LettaBatchRequest",
@@ -581,14 +408,6 @@ __all__ = [
581
408
  "NotFoundErrorBody",
582
409
  "NpmRequirement",
583
410
  "OmittedReasoningContent",
584
- "OpenaiTypesChatChatCompletionCustomToolParamCustom",
585
- "OpenaiTypesChatChatCompletionCustomToolParamCustomFormat",
586
- "OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom",
587
- "OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction",
588
- "OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction",
589
- "OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom",
590
- "OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction",
591
- "OpenaiTypesChatCompletionCreateParamsFunction",
592
411
  "Organization",
593
412
  "OrganizationCreate",
594
413
  "OrganizationSourcesStats",
@@ -610,9 +429,6 @@ __all__ = [
610
429
  "RedactedReasoningContent",
611
430
  "RequiredBeforeExitToolRule",
612
431
  "RequiresApprovalToolRule",
613
- "ResponseFormatJsonObject",
614
- "ResponseFormatJsonSchema",
615
- "ResponseFormatText",
616
432
  "RoundRobinManager",
617
433
  "RoundRobinManagerUpdate",
618
434
  "Run",
@@ -640,6 +456,8 @@ __all__ = [
640
456
  "StepStatus",
641
457
  "StopReasonType",
642
458
  "StreamableHttpServerConfig",
459
+ "SummarizedReasoningContent",
460
+ "SummarizedReasoningContentPart",
643
461
  "SupervisorManager",
644
462
  "SupervisorManagerUpdate",
645
463
  "SystemMessage",
@@ -686,8 +504,4 @@ __all__ = [
686
504
  "VectorDbProvider",
687
505
  "VoiceSleeptimeManager",
688
506
  "VoiceSleeptimeManagerUpdate",
689
- "WebSearchOptions",
690
- "WebSearchOptionsSearchContextSize",
691
- "WebSearchOptionsUserLocation",
692
- "WebSearchOptionsUserLocationApproximate",
693
507
  ]
@@ -6,6 +6,7 @@ AgentType = typing.Union[
6
6
  typing.Literal[
7
7
  "memgpt_agent",
8
8
  "memgpt_v2_agent",
9
+ "letta_v1_agent",
9
10
  "react_agent",
10
11
  "workflow_agent",
11
12
  "split_thread_agent",
@@ -5,12 +5,12 @@ import typing
5
5
  import pydantic
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  from ..core.unchecked_base_model import UncheckedBaseModel
8
- from .function_output import FunctionOutput
8
+ from .function import Function
9
9
 
10
10
 
11
- class ChatCompletionMessageFunctionToolCallOutput(UncheckedBaseModel):
11
+ class ChatCompletionMessageFunctionToolCall(UncheckedBaseModel):
12
12
  id: str
13
- function: FunctionOutput
13
+ function: Function
14
14
  type: typing.Literal["function"] = "function"
15
15
 
16
16
  if IS_PYDANTIC_V2:
@@ -7,7 +7,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
- class FunctionCall(UncheckedBaseModel):
10
+ class Function(UncheckedBaseModel):
11
11
  arguments: str
12
12
  name: str
13
13
 
@@ -7,7 +7,7 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
- class FunctionDefinitionInput(UncheckedBaseModel):
10
+ class FunctionDefinition(UncheckedBaseModel):
11
11
  name: str
12
12
  description: typing.Optional[str] = None
13
13
  parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
@@ -5,11 +5,11 @@ import typing
5
5
  import pydantic
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  from ..core.unchecked_base_model import UncheckedBaseModel
8
- from .function_definition_output import FunctionDefinitionOutput
8
+ from .function_definition import FunctionDefinition
9
9
 
10
10
 
11
11
  class FunctionTool(UncheckedBaseModel):
12
- function: FunctionDefinitionOutput
12
+ function: FunctionDefinition
13
13
  type: typing.Literal["function"] = "function"
14
14
 
15
15
  if IS_PYDANTIC_V2:
@@ -6,7 +6,7 @@ import typing
6
6
  import pydantic
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
  from ..core.unchecked_base_model import UncheckedBaseModel
9
- from .chat_completion_message_function_tool_call_input import ChatCompletionMessageFunctionToolCallInput
9
+ from .chat_completion_message_function_tool_call import ChatCompletionMessageFunctionToolCall
10
10
  from .letta_schemas_agent_file_message_schema_content import LettaSchemasAgentFileMessageSchemaContent
11
11
  from .message_role import MessageRole
12
12
  from .tool_return import ToolReturn
@@ -72,7 +72,7 @@ class LettaSchemasAgentFileMessageSchema(UncheckedBaseModel):
72
72
  The unique identifier of the agent
73
73
  """
74
74
 
75
- tool_calls: typing.Optional[typing.List[ChatCompletionMessageFunctionToolCallInput]] = pydantic.Field(default=None)
75
+ tool_calls: typing.Optional[typing.List[ChatCompletionMessageFunctionToolCall]] = pydantic.Field(default=None)
76
76
  """
77
77
  The list of tool calls requested. Only applicable for role assistant.
78
78
  """
@@ -6,7 +6,7 @@ import typing
6
6
  import pydantic
7
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
8
  from ..core.unchecked_base_model import UncheckedBaseModel
9
- from .chat_completion_message_function_tool_call_output import ChatCompletionMessageFunctionToolCallOutput
9
+ from .chat_completion_message_function_tool_call import ChatCompletionMessageFunctionToolCall
10
10
  from .message_content_item import MessageContentItem
11
11
  from .message_role import MessageRole
12
12
  from .tool_return import ToolReturn
@@ -85,7 +85,7 @@ class Message(UncheckedBaseModel):
85
85
  For role user/assistant: the (optional) name of the participant. For role tool/function: the name of the function called.
86
86
  """
87
87
 
88
- tool_calls: typing.Optional[typing.List[ChatCompletionMessageFunctionToolCallOutput]] = pydantic.Field(default=None)
88
+ tool_calls: typing.Optional[typing.List[ChatCompletionMessageFunctionToolCall]] = pydantic.Field(default=None)
89
89
  """
90
90
  The list of tool calls requested. Only applicable for role assistant.
91
91
  """
@@ -6,6 +6,7 @@ from .image_content import ImageContent
6
6
  from .omitted_reasoning_content import OmittedReasoningContent
7
7
  from .reasoning_content import ReasoningContent
8
8
  from .redacted_reasoning_content import RedactedReasoningContent
9
+ from .summarized_reasoning_content import SummarizedReasoningContent
9
10
  from .text_content import TextContent
10
11
  from .tool_call_content import ToolCallContent
11
12
  from .tool_return_content import ToolReturnContent
@@ -15,6 +16,7 @@ MessageContentItem = typing.Union[
15
16
  OmittedReasoningContent,
16
17
  ReasoningContent,
17
18
  RedactedReasoningContent,
19
+ SummarizedReasoningContent,
18
20
  TextContent,
19
21
  ToolCallContent,
20
22
  ToolReturnContent,
@@ -8,6 +8,10 @@ from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
10
  class OmittedReasoningContent(UncheckedBaseModel):
11
+ """
12
+ A placeholder for reasoning content we know is present, but isn't returned by the provider (e.g. OpenAI GPT-5 on ChatCompletions)
13
+ """
14
+
11
15
  type: typing.Literal["omitted_reasoning"] = "omitted_reasoning"
12
16
 
13
17
  if IS_PYDANTIC_V2:
@@ -8,6 +8,10 @@ from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
10
  class ReasoningContent(UncheckedBaseModel):
11
+ """
12
+ Sent via the Anthropic Messages API
13
+ """
14
+
11
15
  type: typing.Literal["reasoning"] = "reasoning"
12
16
  is_native: bool = pydantic.Field()
13
17
  """
@@ -8,6 +8,10 @@ from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
10
  class RedactedReasoningContent(UncheckedBaseModel):
11
+ """
12
+ Sent via the Anthropic Messages API
13
+ """
14
+
11
15
  type: typing.Literal["redacted_reasoning"] = "redacted_reasoning"
12
16
  data: str = pydantic.Field()
13
17
  """
@@ -0,0 +1,39 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import pydantic
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ from ..core.unchecked_base_model import UncheckedBaseModel
8
+ from .summarized_reasoning_content_part import SummarizedReasoningContentPart
9
+
10
+
11
+ class SummarizedReasoningContent(UncheckedBaseModel):
12
+ """
13
+ The style of reasoning content returned by the OpenAI Responses API
14
+ """
15
+
16
+ type: typing.Literal["summarized_reasoning"] = "summarized_reasoning"
17
+ id: str = pydantic.Field()
18
+ """
19
+ The unique identifier for this reasoning step.
20
+ """
21
+
22
+ summary: typing.List[SummarizedReasoningContentPart] = pydantic.Field()
23
+ """
24
+ Summaries of the reasoning content.
25
+ """
26
+
27
+ encrypted_content: typing.Optional[str] = pydantic.Field(default=None)
28
+ """
29
+ The encrypted reasoning content.
30
+ """
31
+
32
+ if IS_PYDANTIC_V2:
33
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
34
+ else:
35
+
36
+ class Config:
37
+ frozen = True
38
+ smart_union = True
39
+ extra = pydantic.Extra.allow
@@ -7,9 +7,16 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  from ..core.unchecked_base_model import UncheckedBaseModel
8
8
 
9
9
 
10
- class ChatCompletionContentPartRefusalParam(UncheckedBaseModel):
11
- refusal: str
12
- type: typing.Literal["refusal"] = "refusal"
10
+ class SummarizedReasoningContentPart(UncheckedBaseModel):
11
+ index: int = pydantic.Field()
12
+ """
13
+ The index of the summary part.
14
+ """
15
+
16
+ text: str = pydantic.Field()
17
+ """
18
+ The text of the summary part.
19
+ """
13
20
 
14
21
  if IS_PYDANTIC_V2:
15
22
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.321
3
+ Version: 0.1.323
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers