letta-client 0.1.321__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.

Files changed (100) hide show
  1. letta_client/__init__.py +6 -182
  2. letta_client/core/client_wrapper.py +2 -2
  3. letta_client/types/__init__.py +6 -196
  4. letta_client/types/{chat_completion_message_function_tool_call_output.py → chat_completion_message_function_tool_call.py} +3 -3
  5. letta_client/types/{function_call.py → function.py} +1 -1
  6. letta_client/types/{function_definition_input.py → function_definition.py} +1 -1
  7. letta_client/types/function_tool.py +2 -2
  8. letta_client/types/letta_schemas_agent_file_message_schema.py +2 -2
  9. letta_client/types/message.py +2 -2
  10. {letta_client-0.1.321.dist-info → letta_client-0.1.322.dist-info}/METADATA +1 -1
  11. {letta_client-0.1.321.dist-info → letta_client-0.1.322.dist-info}/RECORD +12 -100
  12. letta_client/types/audio.py +0 -20
  13. letta_client/types/chat_completion_allowed_tool_choice_param.py +0 -22
  14. letta_client/types/chat_completion_allowed_tools_param.py +0 -22
  15. letta_client/types/chat_completion_allowed_tools_param_mode.py +0 -5
  16. letta_client/types/chat_completion_assistant_message_param.py +0 -30
  17. letta_client/types/chat_completion_assistant_message_param_content.py +0 -9
  18. letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -10
  19. letta_client/types/chat_completion_assistant_message_param_tool_calls_item.py +0 -10
  20. letta_client/types/chat_completion_audio_param.py +0 -23
  21. letta_client/types/chat_completion_audio_param_format.py +0 -5
  22. letta_client/types/chat_completion_audio_param_voice.py +0 -15
  23. letta_client/types/chat_completion_content_part_image_param.py +0 -22
  24. letta_client/types/chat_completion_content_part_input_audio_param.py +0 -22
  25. letta_client/types/chat_completion_content_part_refusal_param.py +0 -21
  26. letta_client/types/chat_completion_content_part_text_param.py +0 -21
  27. letta_client/types/chat_completion_custom_tool_param.py +0 -24
  28. letta_client/types/chat_completion_developer_message_param.py +0 -23
  29. letta_client/types/chat_completion_developer_message_param_content.py +0 -7
  30. letta_client/types/chat_completion_function_call_option_param.py +0 -20
  31. letta_client/types/chat_completion_function_message_param.py +0 -22
  32. letta_client/types/chat_completion_function_tool_param.py +0 -22
  33. letta_client/types/chat_completion_message_custom_tool_call_param.py +0 -25
  34. letta_client/types/chat_completion_message_function_tool_call_input.py +0 -25
  35. letta_client/types/chat_completion_message_function_tool_call_param.py +0 -25
  36. letta_client/types/chat_completion_named_tool_choice_custom_param.py +0 -24
  37. letta_client/types/chat_completion_named_tool_choice_param.py +0 -24
  38. letta_client/types/chat_completion_prediction_content_param.py +0 -22
  39. letta_client/types/chat_completion_prediction_content_param_content.py +0 -7
  40. letta_client/types/chat_completion_stream_options_param.py +0 -21
  41. letta_client/types/chat_completion_system_message_param.py +0 -23
  42. letta_client/types/chat_completion_system_message_param_content.py +0 -7
  43. letta_client/types/chat_completion_tool_message_param.py +0 -23
  44. letta_client/types/chat_completion_tool_message_param_content.py +0 -7
  45. letta_client/types/chat_completion_user_message_param.py +0 -23
  46. letta_client/types/chat_completion_user_message_param_content.py +0 -7
  47. letta_client/types/chat_completion_user_message_param_content_item.py +0 -15
  48. letta_client/types/completion_create_params_non_streaming.py +0 -69
  49. letta_client/types/completion_create_params_non_streaming_function_call.py +0 -9
  50. letta_client/types/completion_create_params_non_streaming_messages_item.py +0 -19
  51. letta_client/types/completion_create_params_non_streaming_modalities_item.py +0 -5
  52. letta_client/types/completion_create_params_non_streaming_model.py +0 -69
  53. letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +0 -7
  54. letta_client/types/completion_create_params_non_streaming_response_format.py +0 -11
  55. letta_client/types/completion_create_params_non_streaming_service_tier.py +0 -7
  56. letta_client/types/completion_create_params_non_streaming_stop.py +0 -5
  57. letta_client/types/completion_create_params_non_streaming_tool_choice.py +0 -16
  58. letta_client/types/completion_create_params_non_streaming_tools_item.py +0 -10
  59. letta_client/types/completion_create_params_non_streaming_verbosity.py +0 -5
  60. letta_client/types/completion_create_params_streaming.py +0 -69
  61. letta_client/types/completion_create_params_streaming_function_call.py +0 -9
  62. letta_client/types/completion_create_params_streaming_messages_item.py +0 -19
  63. letta_client/types/completion_create_params_streaming_modalities_item.py +0 -5
  64. letta_client/types/completion_create_params_streaming_model.py +0 -69
  65. letta_client/types/completion_create_params_streaming_reasoning_effort.py +0 -7
  66. letta_client/types/completion_create_params_streaming_response_format.py +0 -11
  67. letta_client/types/completion_create_params_streaming_service_tier.py +0 -7
  68. letta_client/types/completion_create_params_streaming_stop.py +0 -5
  69. letta_client/types/completion_create_params_streaming_tool_choice.py +0 -16
  70. letta_client/types/completion_create_params_streaming_tools_item.py +0 -8
  71. letta_client/types/completion_create_params_streaming_verbosity.py +0 -5
  72. letta_client/types/custom_format_grammar.py +0 -22
  73. letta_client/types/custom_format_grammar_grammar.py +0 -22
  74. letta_client/types/custom_format_grammar_grammar_syntax.py +0 -5
  75. letta_client/types/custom_format_text.py +0 -20
  76. letta_client/types/file.py +0 -22
  77. letta_client/types/file_file.py +0 -22
  78. letta_client/types/function_definition_output.py +0 -23
  79. letta_client/types/function_output.py +0 -21
  80. letta_client/types/image_url.py +0 -22
  81. letta_client/types/image_url_detail.py +0 -5
  82. letta_client/types/input_audio.py +0 -22
  83. letta_client/types/input_audio_format.py +0 -5
  84. letta_client/types/json_schema.py +0 -27
  85. letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom.py +0 -25
  86. letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom_format.py +0 -8
  87. letta_client/types/openai_types_chat_chat_completion_message_custom_tool_call_param_custom.py +0 -21
  88. letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_function.py +0 -21
  89. letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py +0 -21
  90. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_custom_param_custom.py +0 -20
  91. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +0 -20
  92. letta_client/types/openai_types_chat_completion_create_params_function.py +0 -22
  93. letta_client/types/response_format_json_object.py +0 -20
  94. letta_client/types/response_format_json_schema.py +0 -22
  95. letta_client/types/response_format_text.py +0 -20
  96. letta_client/types/web_search_options.py +0 -23
  97. letta_client/types/web_search_options_search_context_size.py +0 -5
  98. letta_client/types/web_search_options_user_location.py +0 -22
  99. letta_client/types/web_search_options_user_location_approximate.py +0 -23
  100. {letta_client-0.1.321.dist-info → letta_client-0.1.322.dist-info}/WHEEL +0 -0
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CompletionCreateParamsStreamingModalitiesItem = typing.Union[typing.Literal["text", "audio"], typing.Any]
@@ -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,7 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CompletionCreateParamsStreamingReasoningEffort = typing.Union[
6
- typing.Literal["minimal", "low", "medium", "high"], typing.Any
7
- ]
@@ -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,7 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CompletionCreateParamsStreamingServiceTier = typing.Union[
6
- typing.Literal["auto", "default", "flex", "scale", "priority"], typing.Any
7
- ]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CompletionCreateParamsStreamingStop = typing.Union[str, typing.List[str]]
@@ -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,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CompletionCreateParamsStreamingVerbosity = typing.Union[typing.Literal["low", "medium", "high"], typing.Any]
@@ -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,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- CustomFormatGrammarGrammarSyntax = typing.Union[typing.Literal["lark", "regex"], typing.Any]
@@ -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
@@ -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
@@ -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
@@ -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,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- ImageUrlDetail = typing.Union[typing.Literal["auto", "low", "high"], typing.Any]
@@ -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,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- InputAudioFormat = typing.Union[typing.Literal["wav", "mp3"], typing.Any]
@@ -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]
@@ -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
@@ -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
@@ -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
@@ -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 OpenaiTypesChatCompletionCreateParamsFunction(UncheckedBaseModel):
11
- name: str
12
- description: typing.Optional[str] = None
13
- parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = 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,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 ResponseFormatJsonObject(UncheckedBaseModel):
11
- type: typing.Literal["json_object"] = "json_object"
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,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 .json_schema import JsonSchema
9
-
10
-
11
- class ResponseFormatJsonSchema(UncheckedBaseModel):
12
- json_schema: JsonSchema
13
- type: typing.Literal["json_schema"] = "json_schema"
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 ResponseFormatText(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
@@ -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 .web_search_options_search_context_size import WebSearchOptionsSearchContextSize
9
- from .web_search_options_user_location import WebSearchOptionsUserLocation
10
-
11
-
12
- class WebSearchOptions(UncheckedBaseModel):
13
- search_context_size: typing.Optional[WebSearchOptionsSearchContextSize] = None
14
- user_location: typing.Optional[WebSearchOptionsUserLocation] = 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