vellum-ai 0.8.4__py3-none-any.whl → 0.8.6__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +64 -104
- vellum/client.py +17 -17
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/__init__.py +2 -2
- vellum/resources/ad_hoc/client.py +372 -0
- vellum/types/__init__.py +62 -102
- vellum/types/ad_hoc_execute_prompt_event.py +14 -0
- vellum/types/ad_hoc_expand_meta_request.py +33 -0
- vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py +27 -0
- vellum/types/{open_api_const_property_request.py → ad_hoc_initiated_prompt_execution_meta.py} +4 -6
- vellum/types/{open_api_boolean_property_request.py → ad_hoc_rejected_prompt_execution_meta.py} +5 -6
- vellum/types/{tik_token_tokenizer_config_request.py → ad_hoc_streaming_prompt_execution_meta.py} +3 -4
- vellum/types/{open_api_one_of_property.py → chat_message_prompt_block_properties_request.py} +10 -9
- vellum/types/chat_message_prompt_block_request.py +36 -0
- vellum/types/{ml_model_developer_enum_value_label.py → ephemeral_prompt_cache_config_request.py} +4 -5
- vellum/types/ephemeral_prompt_cache_config_type_enum.py +5 -0
- vellum/types/fulfilled_ad_hoc_execute_prompt_event.py +28 -0
- vellum/types/function_definition_prompt_block_properties_request.py +42 -0
- vellum/types/function_definition_prompt_block_request.py +30 -0
- vellum/types/generate_response.py +3 -20
- vellum/types/{hugging_face_tokenizer_config.py → initiated_ad_hoc_execute_prompt_event.py} +6 -5
- vellum/types/{ml_model_display_tag_enum_value_label.py → jinja_prompt_block_properties_request.py} +5 -5
- vellum/types/jinja_prompt_block_request.py +30 -0
- vellum/types/ml_model_usage.py +2 -0
- vellum/types/plain_text_prompt_block_request.py +29 -0
- vellum/types/prompt_block_request.py +19 -0
- vellum/types/prompt_block_state.py +5 -0
- vellum/types/{prompt_deployment_expand_meta_request_request.py → prompt_deployment_expand_meta_request.py} +1 -1
- vellum/types/prompt_parameters_request.py +27 -0
- vellum/types/{open_api_boolean_property.py → prompt_request_chat_history_input_request.py} +7 -7
- vellum/types/prompt_request_input_request.py +10 -0
- vellum/types/{hugging_face_tokenizer_config_request.py → prompt_request_json_input_request.py} +6 -6
- vellum/types/{tik_token_tokenizer_config.py → prompt_request_string_input_request.py} +6 -5
- vellum/types/rejected_ad_hoc_execute_prompt_event.py +28 -0
- vellum/types/rich_text_child_block_request.py +7 -0
- vellum/types/rich_text_prompt_block_request.py +30 -0
- vellum/types/streaming_ad_hoc_execute_prompt_event.py +33 -0
- vellum/types/variable_prompt_block_request.py +29 -0
- vellum/types/{ml_model_family_enum_value_label.py → vellum_variable_request.py} +5 -4
- {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/METADATA +1 -1
- {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/RECORD +44 -64
- vellum/resources/ml_models/client.py +0 -948
- vellum/types/hosted_by_enum.py +0 -26
- vellum/types/ml_model_developer.py +0 -27
- vellum/types/ml_model_display_config_labelled.py +0 -26
- vellum/types/ml_model_display_config_request.py +0 -26
- vellum/types/ml_model_display_tag.py +0 -7
- vellum/types/ml_model_exec_config.py +0 -34
- vellum/types/ml_model_exec_config_request.py +0 -34
- vellum/types/ml_model_family.py +0 -29
- vellum/types/ml_model_feature.py +0 -18
- vellum/types/ml_model_parameter_config.py +0 -32
- vellum/types/ml_model_parameter_config_request.py +0 -32
- vellum/types/ml_model_read.py +0 -92
- vellum/types/ml_model_request_authorization_config.py +0 -20
- vellum/types/ml_model_request_authorization_config_request.py +0 -20
- vellum/types/ml_model_request_authorization_config_type_enum.py +0 -5
- vellum/types/ml_model_request_config.py +0 -22
- vellum/types/ml_model_request_config_request.py +0 -22
- vellum/types/ml_model_response_config.py +0 -21
- vellum/types/ml_model_response_config_request.py +0 -21
- vellum/types/ml_model_tokenizer_config.py +0 -7
- vellum/types/ml_model_tokenizer_config_request.py +0 -7
- vellum/types/open_api_array_property.py +0 -41
- vellum/types/open_api_array_property_request.py +0 -41
- vellum/types/open_api_const_property.py +0 -26
- vellum/types/open_api_integer_property.py +0 -30
- vellum/types/open_api_integer_property_request.py +0 -30
- vellum/types/open_api_number_property.py +0 -31
- vellum/types/open_api_number_property_request.py +0 -31
- vellum/types/open_api_object_property.py +0 -40
- vellum/types/open_api_object_property_request.py +0 -40
- vellum/types/open_api_one_of_property_request.py +0 -33
- vellum/types/open_api_property.py +0 -27
- vellum/types/open_api_property_request.py +0 -27
- vellum/types/open_api_ref_property.py +0 -26
- vellum/types/open_api_ref_property_request.py +0 -26
- vellum/types/open_api_string_property.py +0 -30
- vellum/types/open_api_string_property_request.py +0 -30
- vellum/types/paginated_ml_model_read_list.py +0 -23
- vellum/types/visibility_enum.py +0 -5
- /vellum/resources/{ml_models → ad_hoc}/__init__.py +0 -0
- {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/LICENSE +0 -0
- {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/WHEEL +0 -0
@@ -1,30 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiIntegerProperty(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property with type 'integer'
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["integer"] = "integer"
|
15
|
-
minimum: typing.Optional[int] = None
|
16
|
-
maximum: typing.Optional[int] = None
|
17
|
-
exclusive_minimum: typing.Optional[bool] = None
|
18
|
-
exclusive_maximum: typing.Optional[bool] = None
|
19
|
-
default: typing.Optional[int] = None
|
20
|
-
title: typing.Optional[str] = None
|
21
|
-
description: typing.Optional[str] = None
|
22
|
-
|
23
|
-
if IS_PYDANTIC_V2:
|
24
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
-
else:
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
extra = pydantic.Extra.allow
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiIntegerPropertyRequest(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property with type 'integer'
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["integer"] = "integer"
|
15
|
-
minimum: typing.Optional[int] = None
|
16
|
-
maximum: typing.Optional[int] = None
|
17
|
-
exclusive_minimum: typing.Optional[bool] = None
|
18
|
-
exclusive_maximum: typing.Optional[bool] = None
|
19
|
-
default: typing.Optional[int] = None
|
20
|
-
title: typing.Optional[str] = None
|
21
|
-
description: typing.Optional[str] = None
|
22
|
-
|
23
|
-
if IS_PYDANTIC_V2:
|
24
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
-
else:
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
extra = pydantic.Extra.allow
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiNumberProperty(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property with type 'number'
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["number"] = "number"
|
15
|
-
minimum: typing.Optional[float] = None
|
16
|
-
maximum: typing.Optional[float] = None
|
17
|
-
format: typing.Optional[str] = None
|
18
|
-
exclusive_minimum: typing.Optional[bool] = None
|
19
|
-
exclusive_maximum: typing.Optional[bool] = None
|
20
|
-
default: typing.Optional[float] = None
|
21
|
-
title: typing.Optional[str] = None
|
22
|
-
description: typing.Optional[str] = None
|
23
|
-
|
24
|
-
if IS_PYDANTIC_V2:
|
25
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
26
|
-
else:
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
extra = pydantic.Extra.allow
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiNumberPropertyRequest(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property with type 'number'
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["number"] = "number"
|
15
|
-
minimum: typing.Optional[float] = None
|
16
|
-
maximum: typing.Optional[float] = None
|
17
|
-
format: typing.Optional[str] = None
|
18
|
-
exclusive_minimum: typing.Optional[bool] = None
|
19
|
-
exclusive_maximum: typing.Optional[bool] = None
|
20
|
-
default: typing.Optional[float] = None
|
21
|
-
title: typing.Optional[str] = None
|
22
|
-
description: typing.Optional[str] = None
|
23
|
-
|
24
|
-
if IS_PYDANTIC_V2:
|
25
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
26
|
-
else:
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
extra = pydantic.Extra.allow
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
-
import typing
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
-
import pydantic
|
8
|
-
from ..core.pydantic_utilities import update_forward_refs
|
9
|
-
|
10
|
-
|
11
|
-
class OpenApiObjectProperty(UniversalBaseModel):
|
12
|
-
"""
|
13
|
-
An OpenAPI specification of a property with type 'object'
|
14
|
-
"""
|
15
|
-
|
16
|
-
type: typing.Literal["object"] = "object"
|
17
|
-
properties: typing.Optional[typing.Dict[str, typing.Optional["OpenApiProperty"]]] = None
|
18
|
-
required: typing.Optional[typing.List[str]] = None
|
19
|
-
min_properties: typing.Optional[int] = None
|
20
|
-
max_properties: typing.Optional[int] = None
|
21
|
-
property_names: typing.Optional["OpenApiProperty"] = None
|
22
|
-
additional_properties: typing.Optional["OpenApiProperty"] = None
|
23
|
-
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional["OpenApiProperty"]]] = None
|
24
|
-
default: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
25
|
-
title: typing.Optional[str] = None
|
26
|
-
description: typing.Optional[str] = None
|
27
|
-
|
28
|
-
if IS_PYDANTIC_V2:
|
29
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
30
|
-
else:
|
31
|
-
|
32
|
-
class Config:
|
33
|
-
frozen = True
|
34
|
-
smart_union = True
|
35
|
-
extra = pydantic.Extra.allow
|
36
|
-
|
37
|
-
|
38
|
-
from .open_api_property import OpenApiProperty # noqa: E402
|
39
|
-
|
40
|
-
update_forward_refs(OpenApiObjectProperty)
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
-
import typing
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
-
import pydantic
|
8
|
-
from ..core.pydantic_utilities import update_forward_refs
|
9
|
-
|
10
|
-
|
11
|
-
class OpenApiObjectPropertyRequest(UniversalBaseModel):
|
12
|
-
"""
|
13
|
-
An OpenAPI specification of a property with type 'object'
|
14
|
-
"""
|
15
|
-
|
16
|
-
type: typing.Literal["object"] = "object"
|
17
|
-
properties: typing.Optional[typing.Dict[str, typing.Optional["OpenApiPropertyRequest"]]] = None
|
18
|
-
required: typing.Optional[typing.List[str]] = None
|
19
|
-
min_properties: typing.Optional[int] = None
|
20
|
-
max_properties: typing.Optional[int] = None
|
21
|
-
property_names: typing.Optional["OpenApiPropertyRequest"] = None
|
22
|
-
additional_properties: typing.Optional["OpenApiPropertyRequest"] = None
|
23
|
-
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional["OpenApiPropertyRequest"]]] = None
|
24
|
-
default: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
25
|
-
title: typing.Optional[str] = None
|
26
|
-
description: typing.Optional[str] = None
|
27
|
-
|
28
|
-
if IS_PYDANTIC_V2:
|
29
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
30
|
-
else:
|
31
|
-
|
32
|
-
class Config:
|
33
|
-
frozen = True
|
34
|
-
smart_union = True
|
35
|
-
extra = pydantic.Extra.allow
|
36
|
-
|
37
|
-
|
38
|
-
from .open_api_property_request import OpenApiPropertyRequest # noqa: E402
|
39
|
-
|
40
|
-
update_forward_refs(OpenApiObjectPropertyRequest)
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
-
import typing
|
6
|
-
import pydantic
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
-
from ..core.pydantic_utilities import update_forward_refs
|
9
|
-
|
10
|
-
|
11
|
-
class OpenApiOneOfPropertyRequest(UniversalBaseModel):
|
12
|
-
"""
|
13
|
-
An OpenAPI specification of a property with type 'oneOf'
|
14
|
-
"""
|
15
|
-
|
16
|
-
type: typing.Literal["oneOf"] = "oneOf"
|
17
|
-
one_of: typing.List["OpenApiPropertyRequest"] = pydantic.Field(alias="oneOf")
|
18
|
-
title: typing.Optional[str] = None
|
19
|
-
description: typing.Optional[str] = None
|
20
|
-
|
21
|
-
if IS_PYDANTIC_V2:
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
23
|
-
else:
|
24
|
-
|
25
|
-
class Config:
|
26
|
-
frozen = True
|
27
|
-
smart_union = True
|
28
|
-
extra = pydantic.Extra.allow
|
29
|
-
|
30
|
-
|
31
|
-
from .open_api_property_request import OpenApiPropertyRequest # noqa: E402
|
32
|
-
|
33
|
-
update_forward_refs(OpenApiOneOfPropertyRequest)
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
import typing
|
5
|
-
from .open_api_integer_property import OpenApiIntegerProperty
|
6
|
-
from .open_api_number_property import OpenApiNumberProperty
|
7
|
-
from .open_api_string_property import OpenApiStringProperty
|
8
|
-
from .open_api_boolean_property import OpenApiBooleanProperty
|
9
|
-
from .open_api_const_property import OpenApiConstProperty
|
10
|
-
from .open_api_ref_property import OpenApiRefProperty
|
11
|
-
import typing
|
12
|
-
|
13
|
-
if typing.TYPE_CHECKING:
|
14
|
-
from .open_api_array_property import OpenApiArrayProperty
|
15
|
-
from .open_api_object_property import OpenApiObjectProperty
|
16
|
-
from .open_api_one_of_property import OpenApiOneOfProperty
|
17
|
-
OpenApiProperty = typing.Union[
|
18
|
-
"OpenApiArrayProperty",
|
19
|
-
"OpenApiObjectProperty",
|
20
|
-
OpenApiIntegerProperty,
|
21
|
-
OpenApiNumberProperty,
|
22
|
-
OpenApiStringProperty,
|
23
|
-
OpenApiBooleanProperty,
|
24
|
-
"OpenApiOneOfProperty",
|
25
|
-
OpenApiConstProperty,
|
26
|
-
OpenApiRefProperty,
|
27
|
-
]
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
import typing
|
5
|
-
from .open_api_integer_property_request import OpenApiIntegerPropertyRequest
|
6
|
-
from .open_api_number_property_request import OpenApiNumberPropertyRequest
|
7
|
-
from .open_api_string_property_request import OpenApiStringPropertyRequest
|
8
|
-
from .open_api_boolean_property_request import OpenApiBooleanPropertyRequest
|
9
|
-
from .open_api_const_property_request import OpenApiConstPropertyRequest
|
10
|
-
from .open_api_ref_property_request import OpenApiRefPropertyRequest
|
11
|
-
import typing
|
12
|
-
|
13
|
-
if typing.TYPE_CHECKING:
|
14
|
-
from .open_api_array_property_request import OpenApiArrayPropertyRequest
|
15
|
-
from .open_api_object_property_request import OpenApiObjectPropertyRequest
|
16
|
-
from .open_api_one_of_property_request import OpenApiOneOfPropertyRequest
|
17
|
-
OpenApiPropertyRequest = typing.Union[
|
18
|
-
"OpenApiArrayPropertyRequest",
|
19
|
-
"OpenApiObjectPropertyRequest",
|
20
|
-
OpenApiIntegerPropertyRequest,
|
21
|
-
OpenApiNumberPropertyRequest,
|
22
|
-
OpenApiStringPropertyRequest,
|
23
|
-
OpenApiBooleanPropertyRequest,
|
24
|
-
"OpenApiOneOfPropertyRequest",
|
25
|
-
OpenApiConstPropertyRequest,
|
26
|
-
OpenApiRefPropertyRequest,
|
27
|
-
]
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiRefProperty(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property that is a URI-reference to another schema
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["ref"] = "ref"
|
15
|
-
title: typing.Optional[str] = None
|
16
|
-
description: typing.Optional[str] = None
|
17
|
-
ref: str
|
18
|
-
|
19
|
-
if IS_PYDANTIC_V2:
|
20
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
21
|
-
else:
|
22
|
-
|
23
|
-
class Config:
|
24
|
-
frozen = True
|
25
|
-
smart_union = True
|
26
|
-
extra = pydantic.Extra.allow
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiRefPropertyRequest(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property that is a URI-reference to another schema
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["ref"] = "ref"
|
15
|
-
title: typing.Optional[str] = None
|
16
|
-
description: typing.Optional[str] = None
|
17
|
-
ref: str
|
18
|
-
|
19
|
-
if IS_PYDANTIC_V2:
|
20
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
21
|
-
else:
|
22
|
-
|
23
|
-
class Config:
|
24
|
-
frozen = True
|
25
|
-
smart_union = True
|
26
|
-
extra = pydantic.Extra.allow
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiStringProperty(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property with type 'string'
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["string"] = "string"
|
15
|
-
min_length: typing.Optional[int] = None
|
16
|
-
max_length: typing.Optional[int] = None
|
17
|
-
pattern: typing.Optional[str] = None
|
18
|
-
format: typing.Optional[str] = None
|
19
|
-
default: typing.Optional[str] = None
|
20
|
-
title: typing.Optional[str] = None
|
21
|
-
description: typing.Optional[str] = None
|
22
|
-
|
23
|
-
if IS_PYDANTIC_V2:
|
24
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
-
else:
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
extra = pydantic.Extra.allow
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
6
|
-
import pydantic
|
7
|
-
|
8
|
-
|
9
|
-
class OpenApiStringPropertyRequest(UniversalBaseModel):
|
10
|
-
"""
|
11
|
-
An OpenAPI specification of a property with type 'string'
|
12
|
-
"""
|
13
|
-
|
14
|
-
type: typing.Literal["string"] = "string"
|
15
|
-
min_length: typing.Optional[int] = None
|
16
|
-
max_length: typing.Optional[int] = None
|
17
|
-
pattern: typing.Optional[str] = None
|
18
|
-
format: typing.Optional[str] = None
|
19
|
-
default: typing.Optional[str] = None
|
20
|
-
title: typing.Optional[str] = None
|
21
|
-
description: typing.Optional[str] = None
|
22
|
-
|
23
|
-
if IS_PYDANTIC_V2:
|
24
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
-
else:
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
extra = pydantic.Extra.allow
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
-
import typing
|
5
|
-
from .ml_model_read import MlModelRead
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
-
import pydantic
|
8
|
-
|
9
|
-
|
10
|
-
class PaginatedMlModelReadList(UniversalBaseModel):
|
11
|
-
count: typing.Optional[int] = None
|
12
|
-
next: typing.Optional[str] = None
|
13
|
-
previous: typing.Optional[str] = None
|
14
|
-
results: typing.Optional[typing.List[MlModelRead]] = 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
|
vellum/types/visibility_enum.py
DELETED
File without changes
|
File without changes
|
File without changes
|