letta-client 0.1.320__py3-none-any.whl → 0.1.322__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_client/__init__.py +6 -182
- letta_client/core/client_wrapper.py +2 -2
- letta_client/runs/client.py +18 -8
- letta_client/runs/raw_client.py +18 -8
- letta_client/types/__init__.py +6 -196
- letta_client/types/batch_job.py +10 -0
- letta_client/types/{chat_completion_message_function_tool_call_output.py → chat_completion_message_function_tool_call.py} +3 -3
- letta_client/types/{function_call.py → function.py} +1 -1
- letta_client/types/{function_definition_input.py → function_definition.py} +1 -1
- letta_client/types/function_tool.py +2 -2
- letta_client/types/job.py +10 -0
- letta_client/types/letta_schemas_agent_file_message_schema.py +2 -2
- letta_client/types/message.py +2 -2
- letta_client/types/run.py +10 -0
- {letta_client-0.1.320.dist-info → letta_client-0.1.322.dist-info}/METADATA +1 -1
- {letta_client-0.1.320.dist-info → letta_client-0.1.322.dist-info}/RECORD +17 -105
- letta_client/types/audio.py +0 -20
- letta_client/types/chat_completion_allowed_tool_choice_param.py +0 -22
- letta_client/types/chat_completion_allowed_tools_param.py +0 -22
- letta_client/types/chat_completion_allowed_tools_param_mode.py +0 -5
- letta_client/types/chat_completion_assistant_message_param.py +0 -30
- letta_client/types/chat_completion_assistant_message_param_content.py +0 -9
- letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -10
- letta_client/types/chat_completion_assistant_message_param_tool_calls_item.py +0 -10
- letta_client/types/chat_completion_audio_param.py +0 -23
- letta_client/types/chat_completion_audio_param_format.py +0 -5
- letta_client/types/chat_completion_audio_param_voice.py +0 -15
- letta_client/types/chat_completion_content_part_image_param.py +0 -22
- letta_client/types/chat_completion_content_part_input_audio_param.py +0 -22
- letta_client/types/chat_completion_content_part_refusal_param.py +0 -21
- letta_client/types/chat_completion_content_part_text_param.py +0 -21
- letta_client/types/chat_completion_custom_tool_param.py +0 -24
- letta_client/types/chat_completion_developer_message_param.py +0 -23
- letta_client/types/chat_completion_developer_message_param_content.py +0 -7
- letta_client/types/chat_completion_function_call_option_param.py +0 -20
- letta_client/types/chat_completion_function_message_param.py +0 -22
- letta_client/types/chat_completion_function_tool_param.py +0 -22
- letta_client/types/chat_completion_message_custom_tool_call_param.py +0 -25
- letta_client/types/chat_completion_message_function_tool_call_input.py +0 -25
- letta_client/types/chat_completion_message_function_tool_call_param.py +0 -25
- letta_client/types/chat_completion_named_tool_choice_custom_param.py +0 -24
- letta_client/types/chat_completion_named_tool_choice_param.py +0 -24
- letta_client/types/chat_completion_prediction_content_param.py +0 -22
- letta_client/types/chat_completion_prediction_content_param_content.py +0 -7
- letta_client/types/chat_completion_stream_options_param.py +0 -21
- letta_client/types/chat_completion_system_message_param.py +0 -23
- letta_client/types/chat_completion_system_message_param_content.py +0 -7
- letta_client/types/chat_completion_tool_message_param.py +0 -23
- letta_client/types/chat_completion_tool_message_param_content.py +0 -7
- letta_client/types/chat_completion_user_message_param.py +0 -23
- letta_client/types/chat_completion_user_message_param_content.py +0 -7
- letta_client/types/chat_completion_user_message_param_content_item.py +0 -15
- letta_client/types/completion_create_params_non_streaming.py +0 -69
- letta_client/types/completion_create_params_non_streaming_function_call.py +0 -9
- letta_client/types/completion_create_params_non_streaming_messages_item.py +0 -19
- letta_client/types/completion_create_params_non_streaming_modalities_item.py +0 -5
- letta_client/types/completion_create_params_non_streaming_model.py +0 -69
- letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +0 -7
- letta_client/types/completion_create_params_non_streaming_response_format.py +0 -11
- letta_client/types/completion_create_params_non_streaming_service_tier.py +0 -7
- letta_client/types/completion_create_params_non_streaming_stop.py +0 -5
- letta_client/types/completion_create_params_non_streaming_tool_choice.py +0 -16
- letta_client/types/completion_create_params_non_streaming_tools_item.py +0 -10
- letta_client/types/completion_create_params_non_streaming_verbosity.py +0 -5
- letta_client/types/completion_create_params_streaming.py +0 -69
- letta_client/types/completion_create_params_streaming_function_call.py +0 -9
- letta_client/types/completion_create_params_streaming_messages_item.py +0 -19
- letta_client/types/completion_create_params_streaming_modalities_item.py +0 -5
- letta_client/types/completion_create_params_streaming_model.py +0 -69
- letta_client/types/completion_create_params_streaming_reasoning_effort.py +0 -7
- letta_client/types/completion_create_params_streaming_response_format.py +0 -11
- letta_client/types/completion_create_params_streaming_service_tier.py +0 -7
- letta_client/types/completion_create_params_streaming_stop.py +0 -5
- letta_client/types/completion_create_params_streaming_tool_choice.py +0 -16
- letta_client/types/completion_create_params_streaming_tools_item.py +0 -8
- letta_client/types/completion_create_params_streaming_verbosity.py +0 -5
- letta_client/types/custom_format_grammar.py +0 -22
- letta_client/types/custom_format_grammar_grammar.py +0 -22
- letta_client/types/custom_format_grammar_grammar_syntax.py +0 -5
- letta_client/types/custom_format_text.py +0 -20
- letta_client/types/file.py +0 -22
- letta_client/types/file_file.py +0 -22
- letta_client/types/function_definition_output.py +0 -23
- letta_client/types/function_output.py +0 -21
- letta_client/types/image_url.py +0 -22
- letta_client/types/image_url_detail.py +0 -5
- letta_client/types/input_audio.py +0 -22
- letta_client/types/input_audio_format.py +0 -5
- letta_client/types/json_schema.py +0 -27
- letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom.py +0 -25
- letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom_format.py +0 -8
- letta_client/types/openai_types_chat_chat_completion_message_custom_tool_call_param_custom.py +0 -21
- letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_function.py +0 -21
- letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py +0 -21
- letta_client/types/openai_types_chat_chat_completion_named_tool_choice_custom_param_custom.py +0 -20
- letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +0 -20
- letta_client/types/openai_types_chat_completion_create_params_function.py +0 -22
- letta_client/types/response_format_json_object.py +0 -20
- letta_client/types/response_format_json_schema.py +0 -22
- letta_client/types/response_format_text.py +0 -20
- letta_client/types/web_search_options.py +0 -23
- letta_client/types/web_search_options_search_context_size.py +0 -5
- letta_client/types/web_search_options_user_location.py +0 -22
- letta_client/types/web_search_options_user_location_approximate.py +0 -23
- {letta_client-0.1.320.dist-info → letta_client-0.1.322.dist-info}/WHEEL +0 -0
letta_client/types/__init__.py
CHANGED
|
@@ -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 .
|
|
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 .
|
|
133
|
-
from .
|
|
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
|
|
@@ -352,10 +254,6 @@ from .validation_error_loc_item import ValidationErrorLocItem
|
|
|
352
254
|
from .vector_db_provider import VectorDbProvider
|
|
353
255
|
from .voice_sleeptime_manager import VoiceSleeptimeManager
|
|
354
256
|
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
257
|
|
|
360
258
|
__all__ = [
|
|
361
259
|
"ActionModel",
|
|
@@ -380,7 +278,6 @@ __all__ = [
|
|
|
380
278
|
"Archive",
|
|
381
279
|
"AssistantMessage",
|
|
382
280
|
"AssistantMessageContent",
|
|
383
|
-
"Audio",
|
|
384
281
|
"AuthRequest",
|
|
385
282
|
"AuthResponse",
|
|
386
283
|
"AuthSchemeField",
|
|
@@ -392,69 +289,10 @@ __all__ = [
|
|
|
392
289
|
"BlockSchema",
|
|
393
290
|
"BlockUpdate",
|
|
394
291
|
"BodyExportAgent",
|
|
395
|
-
"
|
|
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",
|
|
292
|
+
"ChatCompletionMessageFunctionToolCall",
|
|
431
293
|
"ChildToolRule",
|
|
432
294
|
"ChildToolRuleSchema",
|
|
433
295
|
"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
296
|
"ComponentsSchemasTextContent",
|
|
459
297
|
"ConditionalToolRule",
|
|
460
298
|
"ConditionalToolRuleSchema",
|
|
@@ -463,10 +301,6 @@ __all__ = [
|
|
|
463
301
|
"ContinueToolRule",
|
|
464
302
|
"CoreMemoryBlockSchema",
|
|
465
303
|
"CreateBlock",
|
|
466
|
-
"CustomFormatGrammar",
|
|
467
|
-
"CustomFormatGrammarGrammar",
|
|
468
|
-
"CustomFormatGrammarGrammarSyntax",
|
|
469
|
-
"CustomFormatText",
|
|
470
304
|
"DeleteDeploymentResponse",
|
|
471
305
|
"DeploymentEntity",
|
|
472
306
|
"DuplicateFileHandling",
|
|
@@ -476,19 +310,15 @@ __all__ = [
|
|
|
476
310
|
"EmbeddingConfig",
|
|
477
311
|
"EmbeddingConfigEmbeddingEndpointType",
|
|
478
312
|
"FeedbackType",
|
|
479
|
-
"File",
|
|
480
313
|
"FileAgentSchema",
|
|
481
314
|
"FileBlock",
|
|
482
|
-
"FileFile",
|
|
483
315
|
"FileMetadata",
|
|
484
316
|
"FileProcessingStatus",
|
|
485
317
|
"FileSchema",
|
|
486
318
|
"FileStats",
|
|
487
319
|
"Folder",
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"FunctionDefinitionOutput",
|
|
491
|
-
"FunctionOutput",
|
|
320
|
+
"Function",
|
|
321
|
+
"FunctionDefinition",
|
|
492
322
|
"FunctionTool",
|
|
493
323
|
"GenerateToolInput",
|
|
494
324
|
"GenerateToolOutput",
|
|
@@ -506,12 +336,8 @@ __all__ = [
|
|
|
506
336
|
"IdentityType",
|
|
507
337
|
"ImageContent",
|
|
508
338
|
"ImageContentSource",
|
|
509
|
-
"ImageUrl",
|
|
510
|
-
"ImageUrlDetail",
|
|
511
339
|
"ImportedAgentsResponse",
|
|
512
340
|
"InitToolRule",
|
|
513
|
-
"InputAudio",
|
|
514
|
-
"InputAudioFormat",
|
|
515
341
|
"InternalServerErrorBody",
|
|
516
342
|
"InternalTemplateAgentCreate",
|
|
517
343
|
"InternalTemplateAgentCreateResponseFormat",
|
|
@@ -523,7 +349,6 @@ __all__ = [
|
|
|
523
349
|
"JobStatus",
|
|
524
350
|
"JobType",
|
|
525
351
|
"JsonObjectResponseFormat",
|
|
526
|
-
"JsonSchema",
|
|
527
352
|
"JsonSchemaResponseFormat",
|
|
528
353
|
"LettaBatchMessages",
|
|
529
354
|
"LettaBatchRequest",
|
|
@@ -581,14 +406,6 @@ __all__ = [
|
|
|
581
406
|
"NotFoundErrorBody",
|
|
582
407
|
"NpmRequirement",
|
|
583
408
|
"OmittedReasoningContent",
|
|
584
|
-
"OpenaiTypesChatChatCompletionCustomToolParamCustom",
|
|
585
|
-
"OpenaiTypesChatChatCompletionCustomToolParamCustomFormat",
|
|
586
|
-
"OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom",
|
|
587
|
-
"OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction",
|
|
588
|
-
"OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction",
|
|
589
|
-
"OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom",
|
|
590
|
-
"OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction",
|
|
591
|
-
"OpenaiTypesChatCompletionCreateParamsFunction",
|
|
592
409
|
"Organization",
|
|
593
410
|
"OrganizationCreate",
|
|
594
411
|
"OrganizationSourcesStats",
|
|
@@ -610,9 +427,6 @@ __all__ = [
|
|
|
610
427
|
"RedactedReasoningContent",
|
|
611
428
|
"RequiredBeforeExitToolRule",
|
|
612
429
|
"RequiresApprovalToolRule",
|
|
613
|
-
"ResponseFormatJsonObject",
|
|
614
|
-
"ResponseFormatJsonSchema",
|
|
615
|
-
"ResponseFormatText",
|
|
616
430
|
"RoundRobinManager",
|
|
617
431
|
"RoundRobinManagerUpdate",
|
|
618
432
|
"Run",
|
|
@@ -686,8 +500,4 @@ __all__ = [
|
|
|
686
500
|
"VectorDbProvider",
|
|
687
501
|
"VoiceSleeptimeManager",
|
|
688
502
|
"VoiceSleeptimeManagerUpdate",
|
|
689
|
-
"WebSearchOptions",
|
|
690
|
-
"WebSearchOptionsSearchContextSize",
|
|
691
|
-
"WebSearchOptionsUserLocation",
|
|
692
|
-
"WebSearchOptionsUserLocationApproximate",
|
|
693
503
|
]
|
letta_client/types/batch_job.py
CHANGED
|
@@ -53,6 +53,16 @@ class BatchJob(UncheckedBaseModel):
|
|
|
53
53
|
"""
|
|
54
54
|
|
|
55
55
|
job_type: typing.Optional[JobType] = None
|
|
56
|
+
background: typing.Optional[bool] = pydantic.Field(default=None)
|
|
57
|
+
"""
|
|
58
|
+
Whether the job was created in background mode.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
agent_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
62
|
+
"""
|
|
63
|
+
The agent associated with this job/run.
|
|
64
|
+
"""
|
|
65
|
+
|
|
56
66
|
callback_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
57
67
|
"""
|
|
58
68
|
If set, POST to this URL when the job completes.
|
|
@@ -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 .
|
|
8
|
+
from .function import Function
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class ChatCompletionMessageFunctionToolCall(UncheckedBaseModel):
|
|
12
12
|
id: str
|
|
13
|
-
function:
|
|
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
|
|
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 .
|
|
8
|
+
from .function_definition import FunctionDefinition
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class FunctionTool(UncheckedBaseModel):
|
|
12
|
-
function:
|
|
12
|
+
function: FunctionDefinition
|
|
13
13
|
type: typing.Literal["function"] = "function"
|
|
14
14
|
|
|
15
15
|
if IS_PYDANTIC_V2:
|
letta_client/types/job.py
CHANGED
|
@@ -68,6 +68,16 @@ class Job(UncheckedBaseModel):
|
|
|
68
68
|
The type of the job.
|
|
69
69
|
"""
|
|
70
70
|
|
|
71
|
+
background: typing.Optional[bool] = pydantic.Field(default=None)
|
|
72
|
+
"""
|
|
73
|
+
Whether the job was created in background mode.
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
agent_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
77
|
+
"""
|
|
78
|
+
The agent associated with this job/run.
|
|
79
|
+
"""
|
|
80
|
+
|
|
71
81
|
callback_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
72
82
|
"""
|
|
73
83
|
If set, POST to this URL when the job completes.
|
|
@@ -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 .
|
|
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[
|
|
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
|
"""
|
letta_client/types/message.py
CHANGED
|
@@ -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 .
|
|
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[
|
|
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
|
"""
|
letta_client/types/run.py
CHANGED
|
@@ -66,6 +66,16 @@ class Run(UncheckedBaseModel):
|
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
68
|
job_type: typing.Optional[JobType] = None
|
|
69
|
+
background: typing.Optional[bool] = pydantic.Field(default=None)
|
|
70
|
+
"""
|
|
71
|
+
Whether the job was created in background mode.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
agent_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
75
|
+
"""
|
|
76
|
+
The agent associated with this job/run.
|
|
77
|
+
"""
|
|
78
|
+
|
|
69
79
|
callback_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
70
80
|
"""
|
|
71
81
|
If set, POST to this URL when the job completes.
|