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.
Files changed (84) hide show
  1. vellum/__init__.py +64 -104
  2. vellum/client.py +17 -17
  3. vellum/core/client_wrapper.py +1 -1
  4. vellum/resources/__init__.py +2 -2
  5. vellum/resources/ad_hoc/client.py +372 -0
  6. vellum/types/__init__.py +62 -102
  7. vellum/types/ad_hoc_execute_prompt_event.py +14 -0
  8. vellum/types/ad_hoc_expand_meta_request.py +33 -0
  9. vellum/types/ad_hoc_fulfilled_prompt_execution_meta.py +27 -0
  10. vellum/types/{open_api_const_property_request.py → ad_hoc_initiated_prompt_execution_meta.py} +4 -6
  11. vellum/types/{open_api_boolean_property_request.py → ad_hoc_rejected_prompt_execution_meta.py} +5 -6
  12. vellum/types/{tik_token_tokenizer_config_request.py → ad_hoc_streaming_prompt_execution_meta.py} +3 -4
  13. vellum/types/{open_api_one_of_property.py → chat_message_prompt_block_properties_request.py} +10 -9
  14. vellum/types/chat_message_prompt_block_request.py +36 -0
  15. vellum/types/{ml_model_developer_enum_value_label.py → ephemeral_prompt_cache_config_request.py} +4 -5
  16. vellum/types/ephemeral_prompt_cache_config_type_enum.py +5 -0
  17. vellum/types/fulfilled_ad_hoc_execute_prompt_event.py +28 -0
  18. vellum/types/function_definition_prompt_block_properties_request.py +42 -0
  19. vellum/types/function_definition_prompt_block_request.py +30 -0
  20. vellum/types/generate_response.py +3 -20
  21. vellum/types/{hugging_face_tokenizer_config.py → initiated_ad_hoc_execute_prompt_event.py} +6 -5
  22. vellum/types/{ml_model_display_tag_enum_value_label.py → jinja_prompt_block_properties_request.py} +5 -5
  23. vellum/types/jinja_prompt_block_request.py +30 -0
  24. vellum/types/ml_model_usage.py +2 -0
  25. vellum/types/plain_text_prompt_block_request.py +29 -0
  26. vellum/types/prompt_block_request.py +19 -0
  27. vellum/types/prompt_block_state.py +5 -0
  28. vellum/types/{prompt_deployment_expand_meta_request_request.py → prompt_deployment_expand_meta_request.py} +1 -1
  29. vellum/types/prompt_parameters_request.py +27 -0
  30. vellum/types/{open_api_boolean_property.py → prompt_request_chat_history_input_request.py} +7 -7
  31. vellum/types/prompt_request_input_request.py +10 -0
  32. vellum/types/{hugging_face_tokenizer_config_request.py → prompt_request_json_input_request.py} +6 -6
  33. vellum/types/{tik_token_tokenizer_config.py → prompt_request_string_input_request.py} +6 -5
  34. vellum/types/rejected_ad_hoc_execute_prompt_event.py +28 -0
  35. vellum/types/rich_text_child_block_request.py +7 -0
  36. vellum/types/rich_text_prompt_block_request.py +30 -0
  37. vellum/types/streaming_ad_hoc_execute_prompt_event.py +33 -0
  38. vellum/types/variable_prompt_block_request.py +29 -0
  39. vellum/types/{ml_model_family_enum_value_label.py → vellum_variable_request.py} +5 -4
  40. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/METADATA +1 -1
  41. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/RECORD +44 -64
  42. vellum/resources/ml_models/client.py +0 -948
  43. vellum/types/hosted_by_enum.py +0 -26
  44. vellum/types/ml_model_developer.py +0 -27
  45. vellum/types/ml_model_display_config_labelled.py +0 -26
  46. vellum/types/ml_model_display_config_request.py +0 -26
  47. vellum/types/ml_model_display_tag.py +0 -7
  48. vellum/types/ml_model_exec_config.py +0 -34
  49. vellum/types/ml_model_exec_config_request.py +0 -34
  50. vellum/types/ml_model_family.py +0 -29
  51. vellum/types/ml_model_feature.py +0 -18
  52. vellum/types/ml_model_parameter_config.py +0 -32
  53. vellum/types/ml_model_parameter_config_request.py +0 -32
  54. vellum/types/ml_model_read.py +0 -92
  55. vellum/types/ml_model_request_authorization_config.py +0 -20
  56. vellum/types/ml_model_request_authorization_config_request.py +0 -20
  57. vellum/types/ml_model_request_authorization_config_type_enum.py +0 -5
  58. vellum/types/ml_model_request_config.py +0 -22
  59. vellum/types/ml_model_request_config_request.py +0 -22
  60. vellum/types/ml_model_response_config.py +0 -21
  61. vellum/types/ml_model_response_config_request.py +0 -21
  62. vellum/types/ml_model_tokenizer_config.py +0 -7
  63. vellum/types/ml_model_tokenizer_config_request.py +0 -7
  64. vellum/types/open_api_array_property.py +0 -41
  65. vellum/types/open_api_array_property_request.py +0 -41
  66. vellum/types/open_api_const_property.py +0 -26
  67. vellum/types/open_api_integer_property.py +0 -30
  68. vellum/types/open_api_integer_property_request.py +0 -30
  69. vellum/types/open_api_number_property.py +0 -31
  70. vellum/types/open_api_number_property_request.py +0 -31
  71. vellum/types/open_api_object_property.py +0 -40
  72. vellum/types/open_api_object_property_request.py +0 -40
  73. vellum/types/open_api_one_of_property_request.py +0 -33
  74. vellum/types/open_api_property.py +0 -27
  75. vellum/types/open_api_property_request.py +0 -27
  76. vellum/types/open_api_ref_property.py +0 -26
  77. vellum/types/open_api_ref_property_request.py +0 -26
  78. vellum/types/open_api_string_property.py +0 -30
  79. vellum/types/open_api_string_property_request.py +0 -30
  80. vellum/types/paginated_ml_model_read_list.py +0 -23
  81. vellum/types/visibility_enum.py +0 -5
  82. /vellum/resources/{ml_models → ad_hoc}/__init__.py +0 -0
  83. {vellum_ai-0.8.4.dist-info → vellum_ai-0.8.6.dist-info}/LICENSE +0 -0
  84. {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
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- VisibilityEnum = typing.Union[typing.Literal["DEFAULT", "PUBLIC", "PRIVATE", "DISABLED"], typing.Any]
File without changes