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,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 ChatCompletionFunctionMessageParam(UncheckedBaseModel):
|
|
11
|
-
content: typing.Optional[str] = None
|
|
12
|
-
name: str
|
|
13
|
-
role: typing.Literal["function"] = "function"
|
|
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 .function_definition_input import FunctionDefinitionInput
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ChatCompletionFunctionToolParam(UncheckedBaseModel):
|
|
12
|
-
function: FunctionDefinitionInput
|
|
13
|
-
type: typing.Literal["function"] = "function"
|
|
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,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_message_custom_tool_call_param_custom import (
|
|
9
|
-
OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ChatCompletionMessageCustomToolCallParam(UncheckedBaseModel):
|
|
14
|
-
id: str
|
|
15
|
-
custom: OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom
|
|
16
|
-
type: typing.Literal["custom"] = "custom"
|
|
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,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_message_function_tool_call_function import (
|
|
9
|
-
OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ChatCompletionMessageFunctionToolCallInput(UncheckedBaseModel):
|
|
14
|
-
id: str
|
|
15
|
-
function: OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction
|
|
16
|
-
type: typing.Literal["function"] = "function"
|
|
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,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_message_function_tool_call_param_function import (
|
|
9
|
-
OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ChatCompletionMessageFunctionToolCallParam(UncheckedBaseModel):
|
|
14
|
-
id: str
|
|
15
|
-
function: OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction
|
|
16
|
-
type: typing.Literal["function"] = "function"
|
|
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,24 +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_named_tool_choice_custom_param_custom import (
|
|
9
|
-
OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ChatCompletionNamedToolChoiceCustomParam(UncheckedBaseModel):
|
|
14
|
-
custom: OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom
|
|
15
|
-
type: typing.Literal["custom"] = "custom"
|
|
16
|
-
|
|
17
|
-
if IS_PYDANTIC_V2:
|
|
18
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
-
else:
|
|
20
|
-
|
|
21
|
-
class Config:
|
|
22
|
-
frozen = True
|
|
23
|
-
smart_union = True
|
|
24
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,24 +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_named_tool_choice_param_function import (
|
|
9
|
-
OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class ChatCompletionNamedToolChoiceParam(UncheckedBaseModel):
|
|
14
|
-
function: OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction
|
|
15
|
-
type: typing.Literal["function"] = "function"
|
|
16
|
-
|
|
17
|
-
if IS_PYDANTIC_V2:
|
|
18
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
-
else:
|
|
20
|
-
|
|
21
|
-
class Config:
|
|
22
|
-
frozen = True
|
|
23
|
-
smart_union = True
|
|
24
|
-
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 .chat_completion_prediction_content_param_content import ChatCompletionPredictionContentParamContent
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ChatCompletionPredictionContentParam(UncheckedBaseModel):
|
|
12
|
-
content: ChatCompletionPredictionContentParamContent
|
|
13
|
-
type: typing.Literal["content"] = "content"
|
|
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,7 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
6
|
-
|
|
7
|
-
ChatCompletionPredictionContentParamContent = typing.Union[str, typing.List[ChatCompletionContentPartTextParam]]
|
|
@@ -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 ChatCompletionStreamOptionsParam(UncheckedBaseModel):
|
|
11
|
-
include_obfuscation: typing.Optional[bool] = None
|
|
12
|
-
include_usage: typing.Optional[bool] = None
|
|
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,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
|
-
from .chat_completion_system_message_param_content import ChatCompletionSystemMessageParamContent
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ChatCompletionSystemMessageParam(UncheckedBaseModel):
|
|
12
|
-
content: ChatCompletionSystemMessageParamContent
|
|
13
|
-
role: typing.Literal["system"] = "system"
|
|
14
|
-
name: typing.Optional[str] = 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,7 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
6
|
-
|
|
7
|
-
ChatCompletionSystemMessageParamContent = typing.Union[str, typing.List[ChatCompletionContentPartTextParam]]
|
|
@@ -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
|
-
from .chat_completion_tool_message_param_content import ChatCompletionToolMessageParamContent
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ChatCompletionToolMessageParam(UncheckedBaseModel):
|
|
12
|
-
content: ChatCompletionToolMessageParamContent
|
|
13
|
-
role: typing.Literal["tool"] = "tool"
|
|
14
|
-
tool_call_id: str
|
|
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,7 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
6
|
-
|
|
7
|
-
ChatCompletionToolMessageParamContent = typing.Union[str, typing.List[ChatCompletionContentPartTextParam]]
|
|
@@ -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
|
-
from .chat_completion_user_message_param_content import ChatCompletionUserMessageParamContent
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class ChatCompletionUserMessageParam(UncheckedBaseModel):
|
|
12
|
-
content: ChatCompletionUserMessageParamContent
|
|
13
|
-
role: typing.Literal["user"] = "user"
|
|
14
|
-
name: typing.Optional[str] = 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,7 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_user_message_param_content_item import ChatCompletionUserMessageParamContentItem
|
|
6
|
-
|
|
7
|
-
ChatCompletionUserMessageParamContent = typing.Union[str, typing.List[ChatCompletionUserMessageParamContentItem]]
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam
|
|
6
|
-
from .chat_completion_content_part_input_audio_param import ChatCompletionContentPartInputAudioParam
|
|
7
|
-
from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
|
|
8
|
-
from .file import File
|
|
9
|
-
|
|
10
|
-
ChatCompletionUserMessageParamContentItem = typing.Union[
|
|
11
|
-
ChatCompletionContentPartTextParam,
|
|
12
|
-
ChatCompletionContentPartImageParam,
|
|
13
|
-
ChatCompletionContentPartInputAudioParam,
|
|
14
|
-
File,
|
|
15
|
-
]
|
|
@@ -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_non_streaming_function_call import CompletionCreateParamsNonStreamingFunctionCall
|
|
12
|
-
from .completion_create_params_non_streaming_messages_item import CompletionCreateParamsNonStreamingMessagesItem
|
|
13
|
-
from .completion_create_params_non_streaming_modalities_item import CompletionCreateParamsNonStreamingModalitiesItem
|
|
14
|
-
from .completion_create_params_non_streaming_model import CompletionCreateParamsNonStreamingModel
|
|
15
|
-
from .completion_create_params_non_streaming_reasoning_effort import CompletionCreateParamsNonStreamingReasoningEffort
|
|
16
|
-
from .completion_create_params_non_streaming_response_format import CompletionCreateParamsNonStreamingResponseFormat
|
|
17
|
-
from .completion_create_params_non_streaming_service_tier import CompletionCreateParamsNonStreamingServiceTier
|
|
18
|
-
from .completion_create_params_non_streaming_stop import CompletionCreateParamsNonStreamingStop
|
|
19
|
-
from .completion_create_params_non_streaming_tool_choice import CompletionCreateParamsNonStreamingToolChoice
|
|
20
|
-
from .completion_create_params_non_streaming_tools_item import CompletionCreateParamsNonStreamingToolsItem
|
|
21
|
-
from .completion_create_params_non_streaming_verbosity import CompletionCreateParamsNonStreamingVerbosity
|
|
22
|
-
from .openai_types_chat_completion_create_params_function import OpenaiTypesChatCompletionCreateParamsFunction
|
|
23
|
-
from .web_search_options import WebSearchOptions
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class CompletionCreateParamsNonStreaming(UncheckedBaseModel):
|
|
27
|
-
messages: typing.List[CompletionCreateParamsNonStreamingMessagesItem]
|
|
28
|
-
model: CompletionCreateParamsNonStreamingModel
|
|
29
|
-
audio: typing.Optional[ChatCompletionAudioParam] = None
|
|
30
|
-
frequency_penalty: typing.Optional[float] = None
|
|
31
|
-
function_call: typing.Optional[CompletionCreateParamsNonStreamingFunctionCall] = 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[CompletionCreateParamsNonStreamingModalitiesItem]] = 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[CompletionCreateParamsNonStreamingReasoningEffort] = None
|
|
45
|
-
response_format: typing.Optional[CompletionCreateParamsNonStreamingResponseFormat] = None
|
|
46
|
-
safety_identifier: typing.Optional[str] = None
|
|
47
|
-
seed: typing.Optional[int] = None
|
|
48
|
-
service_tier: typing.Optional[CompletionCreateParamsNonStreamingServiceTier] = None
|
|
49
|
-
stop: typing.Optional[CompletionCreateParamsNonStreamingStop] = 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[CompletionCreateParamsNonStreamingToolChoice] = None
|
|
54
|
-
tools: typing.Optional[typing.List[CompletionCreateParamsNonStreamingToolsItem]] = 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[CompletionCreateParamsNonStreamingVerbosity] = None
|
|
59
|
-
web_search_options: typing.Optional[WebSearchOptions] = None
|
|
60
|
-
stream: typing.Optional[bool] = None
|
|
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
|
-
CompletionCreateParamsNonStreamingFunctionCall = 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
|
-
CompletionCreateParamsNonStreamingMessagesItem = 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
|
-
CompletionCreateParamsNonStreamingModel = 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
|
-
CompletionCreateParamsNonStreamingResponseFormat = 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
|
-
CompletionCreateParamsNonStreamingToolChoice = typing.Union[
|
|
10
|
-
typing.Literal["none"],
|
|
11
|
-
typing.Literal["auto"],
|
|
12
|
-
typing.Literal["required"],
|
|
13
|
-
ChatCompletionAllowedToolChoiceParam,
|
|
14
|
-
ChatCompletionNamedToolChoiceParam,
|
|
15
|
-
ChatCompletionNamedToolChoiceCustomParam,
|
|
16
|
-
]
|
|
@@ -1,10 +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
|
-
CompletionCreateParamsNonStreamingToolsItem = typing.Union[
|
|
9
|
-
ChatCompletionFunctionToolParam, ChatCompletionCustomToolParam
|
|
10
|
-
]
|