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
|
@@ -1,69 +0,0 @@
|
|
|
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 .chat_completion_audio_param import ChatCompletionAudioParam
|
|
9
|
-
from .chat_completion_prediction_content_param import ChatCompletionPredictionContentParam
|
|
10
|
-
from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
|
|
11
|
-
from .completion_create_params_streaming_function_call import CompletionCreateParamsStreamingFunctionCall
|
|
12
|
-
from .completion_create_params_streaming_messages_item import CompletionCreateParamsStreamingMessagesItem
|
|
13
|
-
from .completion_create_params_streaming_modalities_item import CompletionCreateParamsStreamingModalitiesItem
|
|
14
|
-
from .completion_create_params_streaming_model import CompletionCreateParamsStreamingModel
|
|
15
|
-
from .completion_create_params_streaming_reasoning_effort import CompletionCreateParamsStreamingReasoningEffort
|
|
16
|
-
from .completion_create_params_streaming_response_format import CompletionCreateParamsStreamingResponseFormat
|
|
17
|
-
from .completion_create_params_streaming_service_tier import CompletionCreateParamsStreamingServiceTier
|
|
18
|
-
from .completion_create_params_streaming_stop import CompletionCreateParamsStreamingStop
|
|
19
|
-
from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
|
|
20
|
-
from .completion_create_params_streaming_tools_item import CompletionCreateParamsStreamingToolsItem
|
|
21
|
-
from .completion_create_params_streaming_verbosity import CompletionCreateParamsStreamingVerbosity
|
|
22
|
-
from .openai_types_chat_completion_create_params_function import OpenaiTypesChatCompletionCreateParamsFunction
|
|
23
|
-
from .web_search_options import WebSearchOptions
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class CompletionCreateParamsStreaming(UncheckedBaseModel):
|
|
27
|
-
messages: typing.List[CompletionCreateParamsStreamingMessagesItem]
|
|
28
|
-
model: CompletionCreateParamsStreamingModel
|
|
29
|
-
audio: typing.Optional[ChatCompletionAudioParam] = None
|
|
30
|
-
frequency_penalty: typing.Optional[float] = None
|
|
31
|
-
function_call: typing.Optional[CompletionCreateParamsStreamingFunctionCall] = None
|
|
32
|
-
functions: typing.Optional[typing.List[OpenaiTypesChatCompletionCreateParamsFunction]] = None
|
|
33
|
-
logit_bias: typing.Optional[typing.Dict[str, typing.Optional[int]]] = None
|
|
34
|
-
logprobs: typing.Optional[bool] = None
|
|
35
|
-
max_completion_tokens: typing.Optional[int] = None
|
|
36
|
-
max_tokens: typing.Optional[int] = None
|
|
37
|
-
metadata: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None
|
|
38
|
-
modalities: typing.Optional[typing.List[CompletionCreateParamsStreamingModalitiesItem]] = None
|
|
39
|
-
n: typing.Optional[int] = None
|
|
40
|
-
parallel_tool_calls: typing.Optional[bool] = None
|
|
41
|
-
prediction: typing.Optional[ChatCompletionPredictionContentParam] = None
|
|
42
|
-
presence_penalty: typing.Optional[float] = None
|
|
43
|
-
prompt_cache_key: typing.Optional[str] = None
|
|
44
|
-
reasoning_effort: typing.Optional[CompletionCreateParamsStreamingReasoningEffort] = None
|
|
45
|
-
response_format: typing.Optional[CompletionCreateParamsStreamingResponseFormat] = None
|
|
46
|
-
safety_identifier: typing.Optional[str] = None
|
|
47
|
-
seed: typing.Optional[int] = None
|
|
48
|
-
service_tier: typing.Optional[CompletionCreateParamsStreamingServiceTier] = None
|
|
49
|
-
stop: typing.Optional[CompletionCreateParamsStreamingStop] = None
|
|
50
|
-
store: typing.Optional[bool] = None
|
|
51
|
-
stream_options: typing.Optional[ChatCompletionStreamOptionsParam] = None
|
|
52
|
-
temperature: typing.Optional[float] = None
|
|
53
|
-
tool_choice: typing.Optional[CompletionCreateParamsStreamingToolChoice] = None
|
|
54
|
-
tools: typing.Optional[typing.List[CompletionCreateParamsStreamingToolsItem]] = None
|
|
55
|
-
top_logprobs: typing.Optional[int] = None
|
|
56
|
-
top_p: typing.Optional[float] = None
|
|
57
|
-
user: typing.Optional[str] = None
|
|
58
|
-
verbosity: typing.Optional[CompletionCreateParamsStreamingVerbosity] = None
|
|
59
|
-
web_search_options: typing.Optional[WebSearchOptions] = None
|
|
60
|
-
stream: bool
|
|
61
|
-
|
|
62
|
-
if IS_PYDANTIC_V2:
|
|
63
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
64
|
-
else:
|
|
65
|
-
|
|
66
|
-
class Config:
|
|
67
|
-
frozen = True
|
|
68
|
-
smart_union = True
|
|
69
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_function_call_option_param import ChatCompletionFunctionCallOptionParam
|
|
6
|
-
|
|
7
|
-
CompletionCreateParamsStreamingFunctionCall = typing.Union[
|
|
8
|
-
typing.Literal["none"], typing.Literal["auto"], ChatCompletionFunctionCallOptionParam
|
|
9
|
-
]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
|
|
6
|
-
from .chat_completion_developer_message_param import ChatCompletionDeveloperMessageParam
|
|
7
|
-
from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
|
|
8
|
-
from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
|
|
9
|
-
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
|
|
10
|
-
from .chat_completion_user_message_param import ChatCompletionUserMessageParam
|
|
11
|
-
|
|
12
|
-
CompletionCreateParamsStreamingMessagesItem = typing.Union[
|
|
13
|
-
ChatCompletionDeveloperMessageParam,
|
|
14
|
-
ChatCompletionSystemMessageParam,
|
|
15
|
-
ChatCompletionUserMessageParam,
|
|
16
|
-
ChatCompletionAssistantMessageParam,
|
|
17
|
-
ChatCompletionToolMessageParam,
|
|
18
|
-
ChatCompletionFunctionMessageParam,
|
|
19
|
-
]
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
CompletionCreateParamsStreamingModel = typing.Union[
|
|
6
|
-
str,
|
|
7
|
-
typing.Literal["gpt-5"],
|
|
8
|
-
typing.Literal["gpt-5-mini"],
|
|
9
|
-
typing.Literal["gpt-5-nano"],
|
|
10
|
-
typing.Literal["gpt-5-2025-08-07"],
|
|
11
|
-
typing.Literal["gpt-5-mini-2025-08-07"],
|
|
12
|
-
typing.Literal["gpt-5-nano-2025-08-07"],
|
|
13
|
-
typing.Literal["gpt-5-chat-latest"],
|
|
14
|
-
typing.Literal["gpt-4.1"],
|
|
15
|
-
typing.Literal["gpt-4.1-mini"],
|
|
16
|
-
typing.Literal["gpt-4.1-nano"],
|
|
17
|
-
typing.Literal["gpt-4.1-2025-04-14"],
|
|
18
|
-
typing.Literal["gpt-4.1-mini-2025-04-14"],
|
|
19
|
-
typing.Literal["gpt-4.1-nano-2025-04-14"],
|
|
20
|
-
typing.Literal["o4-mini"],
|
|
21
|
-
typing.Literal["o4-mini-2025-04-16"],
|
|
22
|
-
typing.Literal["o3"],
|
|
23
|
-
typing.Literal["o3-2025-04-16"],
|
|
24
|
-
typing.Literal["o3-mini"],
|
|
25
|
-
typing.Literal["o3-mini-2025-01-31"],
|
|
26
|
-
typing.Literal["o1"],
|
|
27
|
-
typing.Literal["o1-2024-12-17"],
|
|
28
|
-
typing.Literal["o1-preview"],
|
|
29
|
-
typing.Literal["o1-preview-2024-09-12"],
|
|
30
|
-
typing.Literal["o1-mini"],
|
|
31
|
-
typing.Literal["o1-mini-2024-09-12"],
|
|
32
|
-
typing.Literal["gpt-4o"],
|
|
33
|
-
typing.Literal["gpt-4o-2024-11-20"],
|
|
34
|
-
typing.Literal["gpt-4o-2024-08-06"],
|
|
35
|
-
typing.Literal["gpt-4o-2024-05-13"],
|
|
36
|
-
typing.Literal["gpt-4o-audio-preview"],
|
|
37
|
-
typing.Literal["gpt-4o-audio-preview-2024-10-01"],
|
|
38
|
-
typing.Literal["gpt-4o-audio-preview-2024-12-17"],
|
|
39
|
-
typing.Literal["gpt-4o-audio-preview-2025-06-03"],
|
|
40
|
-
typing.Literal["gpt-4o-mini-audio-preview"],
|
|
41
|
-
typing.Literal["gpt-4o-mini-audio-preview-2024-12-17"],
|
|
42
|
-
typing.Literal["gpt-4o-search-preview"],
|
|
43
|
-
typing.Literal["gpt-4o-mini-search-preview"],
|
|
44
|
-
typing.Literal["gpt-4o-search-preview-2025-03-11"],
|
|
45
|
-
typing.Literal["gpt-4o-mini-search-preview-2025-03-11"],
|
|
46
|
-
typing.Literal["chatgpt-4o-latest"],
|
|
47
|
-
typing.Literal["codex-mini-latest"],
|
|
48
|
-
typing.Literal["gpt-4o-mini"],
|
|
49
|
-
typing.Literal["gpt-4o-mini-2024-07-18"],
|
|
50
|
-
typing.Literal["gpt-4-turbo"],
|
|
51
|
-
typing.Literal["gpt-4-turbo-2024-04-09"],
|
|
52
|
-
typing.Literal["gpt-4-0125-preview"],
|
|
53
|
-
typing.Literal["gpt-4-turbo-preview"],
|
|
54
|
-
typing.Literal["gpt-4-1106-preview"],
|
|
55
|
-
typing.Literal["gpt-4-vision-preview"],
|
|
56
|
-
typing.Literal["gpt-4"],
|
|
57
|
-
typing.Literal["gpt-4-0314"],
|
|
58
|
-
typing.Literal["gpt-4-0613"],
|
|
59
|
-
typing.Literal["gpt-4-32k"],
|
|
60
|
-
typing.Literal["gpt-4-32k-0314"],
|
|
61
|
-
typing.Literal["gpt-4-32k-0613"],
|
|
62
|
-
typing.Literal["gpt-3.5-turbo"],
|
|
63
|
-
typing.Literal["gpt-3.5-turbo-16k"],
|
|
64
|
-
typing.Literal["gpt-3.5-turbo-0301"],
|
|
65
|
-
typing.Literal["gpt-3.5-turbo-0613"],
|
|
66
|
-
typing.Literal["gpt-3.5-turbo-1106"],
|
|
67
|
-
typing.Literal["gpt-3.5-turbo-0125"],
|
|
68
|
-
typing.Literal["gpt-3.5-turbo-16k-0613"],
|
|
69
|
-
]
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .response_format_json_object import ResponseFormatJsonObject
|
|
6
|
-
from .response_format_json_schema import ResponseFormatJsonSchema
|
|
7
|
-
from .response_format_text import ResponseFormatText
|
|
8
|
-
|
|
9
|
-
CompletionCreateParamsStreamingResponseFormat = typing.Union[
|
|
10
|
-
ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject
|
|
11
|
-
]
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_allowed_tool_choice_param import ChatCompletionAllowedToolChoiceParam
|
|
6
|
-
from .chat_completion_named_tool_choice_custom_param import ChatCompletionNamedToolChoiceCustomParam
|
|
7
|
-
from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
|
|
8
|
-
|
|
9
|
-
CompletionCreateParamsStreamingToolChoice = typing.Union[
|
|
10
|
-
typing.Literal["none"],
|
|
11
|
-
typing.Literal["auto"],
|
|
12
|
-
typing.Literal["required"],
|
|
13
|
-
ChatCompletionAllowedToolChoiceParam,
|
|
14
|
-
ChatCompletionNamedToolChoiceParam,
|
|
15
|
-
ChatCompletionNamedToolChoiceCustomParam,
|
|
16
|
-
]
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_custom_tool_param import ChatCompletionCustomToolParam
|
|
6
|
-
from .chat_completion_function_tool_param import ChatCompletionFunctionToolParam
|
|
7
|
-
|
|
8
|
-
CompletionCreateParamsStreamingToolsItem = typing.Union[ChatCompletionFunctionToolParam, ChatCompletionCustomToolParam]
|
|
@@ -1,22 +0,0 @@
|
|
|
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 .custom_format_grammar_grammar import CustomFormatGrammarGrammar
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class CustomFormatGrammar(UncheckedBaseModel):
|
|
12
|
-
grammar: CustomFormatGrammarGrammar
|
|
13
|
-
type: typing.Literal["grammar"] = "grammar"
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,22 +0,0 @@
|
|
|
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 .custom_format_grammar_grammar_syntax import CustomFormatGrammarGrammarSyntax
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class CustomFormatGrammarGrammar(UncheckedBaseModel):
|
|
12
|
-
definition: str
|
|
13
|
-
syntax: CustomFormatGrammarGrammarSyntax
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class CustomFormatText(UncheckedBaseModel):
|
|
11
|
-
type: typing.Literal["text"] = "text"
|
|
12
|
-
|
|
13
|
-
if IS_PYDANTIC_V2:
|
|
14
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
-
else:
|
|
16
|
-
|
|
17
|
-
class Config:
|
|
18
|
-
frozen = True
|
|
19
|
-
smart_union = True
|
|
20
|
-
extra = pydantic.Extra.allow
|
letta_client/types/file.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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 .file_file import FileFile
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class File(UncheckedBaseModel):
|
|
12
|
-
file: FileFile
|
|
13
|
-
type: typing.Literal["file"] = "file"
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
letta_client/types/file_file.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class FileFile(UncheckedBaseModel):
|
|
11
|
-
file_data: typing.Optional[str] = None
|
|
12
|
-
file_id: typing.Optional[str] = None
|
|
13
|
-
filename: typing.Optional[str] = None
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class FunctionDefinitionOutput(UncheckedBaseModel):
|
|
11
|
-
name: str
|
|
12
|
-
description: typing.Optional[str] = None
|
|
13
|
-
parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
14
|
-
strict: typing.Optional[bool] = None
|
|
15
|
-
|
|
16
|
-
if IS_PYDANTIC_V2:
|
|
17
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
-
else:
|
|
19
|
-
|
|
20
|
-
class Config:
|
|
21
|
-
frozen = True
|
|
22
|
-
smart_union = True
|
|
23
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class FunctionOutput(UncheckedBaseModel):
|
|
11
|
-
arguments: str
|
|
12
|
-
name: str
|
|
13
|
-
|
|
14
|
-
if IS_PYDANTIC_V2:
|
|
15
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
letta_client/types/image_url.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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 .image_url_detail import ImageUrlDetail
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ImageUrl(UncheckedBaseModel):
|
|
12
|
-
url: str
|
|
13
|
-
detail: typing.Optional[ImageUrlDetail] = None
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,22 +0,0 @@
|
|
|
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 .input_audio_format import InputAudioFormat
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class InputAudio(UncheckedBaseModel):
|
|
12
|
-
data: str
|
|
13
|
-
format: InputAudioFormat
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
import typing_extensions
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
-
from ..core.serialization import FieldMetadata
|
|
9
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class JsonSchema(UncheckedBaseModel):
|
|
13
|
-
name: str
|
|
14
|
-
description: typing.Optional[str] = None
|
|
15
|
-
schema_: typing_extensions.Annotated[
|
|
16
|
-
typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="schema")
|
|
17
|
-
] = None
|
|
18
|
-
strict: typing.Optional[bool] = None
|
|
19
|
-
|
|
20
|
-
if IS_PYDANTIC_V2:
|
|
21
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
-
else:
|
|
23
|
-
|
|
24
|
-
class Config:
|
|
25
|
-
frozen = True
|
|
26
|
-
smart_union = True
|
|
27
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,25 +0,0 @@
|
|
|
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 .openai_types_chat_chat_completion_custom_tool_param_custom_format import (
|
|
9
|
-
OpenaiTypesChatChatCompletionCustomToolParamCustomFormat,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class OpenaiTypesChatChatCompletionCustomToolParamCustom(UncheckedBaseModel):
|
|
14
|
-
name: str
|
|
15
|
-
description: typing.Optional[str] = None
|
|
16
|
-
format: typing.Optional[OpenaiTypesChatChatCompletionCustomToolParamCustomFormat] = None
|
|
17
|
-
|
|
18
|
-
if IS_PYDANTIC_V2:
|
|
19
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
-
else:
|
|
21
|
-
|
|
22
|
-
class Config:
|
|
23
|
-
frozen = True
|
|
24
|
-
smart_union = True
|
|
25
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .custom_format_grammar import CustomFormatGrammar
|
|
6
|
-
from .custom_format_text import CustomFormatText
|
|
7
|
-
|
|
8
|
-
OpenaiTypesChatChatCompletionCustomToolParamCustomFormat = typing.Union[CustomFormatText, CustomFormatGrammar]
|
letta_client/types/openai_types_chat_chat_completion_message_custom_tool_call_param_custom.py
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom(UncheckedBaseModel):
|
|
11
|
-
input: str
|
|
12
|
-
name: str
|
|
13
|
-
|
|
14
|
-
if IS_PYDANTIC_V2:
|
|
15
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction(UncheckedBaseModel):
|
|
11
|
-
arguments: str
|
|
12
|
-
name: str
|
|
13
|
-
|
|
14
|
-
if IS_PYDANTIC_V2:
|
|
15
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction(UncheckedBaseModel):
|
|
11
|
-
arguments: str
|
|
12
|
-
name: str
|
|
13
|
-
|
|
14
|
-
if IS_PYDANTIC_V2:
|
|
15
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
letta_client/types/openai_types_chat_chat_completion_named_tool_choice_custom_param_custom.py
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom(UncheckedBaseModel):
|
|
11
|
-
name: str
|
|
12
|
-
|
|
13
|
-
if IS_PYDANTIC_V2:
|
|
14
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
-
else:
|
|
16
|
-
|
|
17
|
-
class Config:
|
|
18
|
-
frozen = True
|
|
19
|
-
smart_union = True
|
|
20
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
class OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction(UncheckedBaseModel):
|
|
11
|
-
name: str
|
|
12
|
-
|
|
13
|
-
if IS_PYDANTIC_V2:
|
|
14
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
-
else:
|
|
16
|
-
|
|
17
|
-
class Config:
|
|
18
|
-
frozen = True
|
|
19
|
-
smart_union = True
|
|
20
|
-
extra = pydantic.Extra.allow
|