vellum-ai 0.9.6__py3-none-any.whl → 0.9.7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. vellum/__init__.py +14 -46
  2. vellum/core/client_wrapper.py +1 -1
  3. vellum/resources/ad_hoc/client.py +75 -108
  4. vellum/types/__init__.py +14 -46
  5. vellum/types/{ad_hoc_expand_meta_request.py → ad_hoc_expand_meta.py} +1 -1
  6. vellum/types/{prompt_parameters_request.py → prompt_parameters.py} +1 -1
  7. vellum/types/{prompt_request_chat_history_input_request.py → prompt_request_chat_history_input.py} +3 -3
  8. vellum/types/prompt_request_input.py +8 -0
  9. vellum/types/{prompt_request_json_input_request.py → prompt_request_json_input.py} +1 -1
  10. vellum/types/{prompt_request_string_input_request.py → prompt_request_string_input.py} +1 -1
  11. vellum/types/{prompt_settings_request.py → prompt_settings.py} +1 -1
  12. {vellum_ai-0.9.6.dist-info → vellum_ai-0.9.7.dist-info}/METADATA +1 -1
  13. {vellum_ai-0.9.6.dist-info → vellum_ai-0.9.7.dist-info}/RECORD +15 -31
  14. vellum/types/chat_message_prompt_block_properties_request.py +0 -38
  15. vellum/types/chat_message_prompt_block_request.py +0 -38
  16. vellum/types/ephemeral_prompt_cache_config_request.py +0 -20
  17. vellum/types/ephemeral_prompt_cache_config_type_enum.py +0 -5
  18. vellum/types/function_definition_prompt_block_properties_request.py +0 -42
  19. vellum/types/function_definition_prompt_block_request.py +0 -29
  20. vellum/types/jinja_prompt_block_properties_request.py +0 -21
  21. vellum/types/jinja_prompt_block_request.py +0 -29
  22. vellum/types/plain_text_prompt_block_request.py +0 -28
  23. vellum/types/prompt_block_request.py +0 -19
  24. vellum/types/prompt_block_state.py +0 -5
  25. vellum/types/prompt_request_input_request.py +0 -10
  26. vellum/types/rich_text_child_block_request.py +0 -7
  27. vellum/types/rich_text_prompt_block_request.py +0 -30
  28. vellum/types/variable_prompt_block_request.py +0 -28
  29. vellum/types/vellum_variable_extensions_request.py +0 -23
  30. vellum/types/vellum_variable_request.py +0 -33
  31. {vellum_ai-0.9.6.dist-info → vellum_ai-0.9.7.dist-info}/LICENSE +0 -0
  32. {vellum_ai-0.9.6.dist-info → vellum_ai-0.9.7.dist-info}/WHEEL +0 -0
@@ -1,29 +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 .prompt_block_state import PromptBlockState
6
- from .ephemeral_prompt_cache_config_request import EphemeralPromptCacheConfigRequest
7
- from .jinja_prompt_block_properties_request import JinjaPromptBlockPropertiesRequest
8
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
- import pydantic
10
-
11
-
12
- class JinjaPromptBlockRequest(UniversalBaseModel):
13
- """
14
- A block of Jinja template code that is used to generate a prompt
15
- """
16
-
17
- state: typing.Optional[PromptBlockState] = None
18
- cache_config: typing.Optional[EphemeralPromptCacheConfigRequest] = None
19
- block_type: typing.Literal["JINJA"] = "JINJA"
20
- properties: JinjaPromptBlockPropertiesRequest
21
-
22
- if IS_PYDANTIC_V2:
23
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
24
- else:
25
-
26
- class Config:
27
- frozen = True
28
- smart_union = True
29
- extra = pydantic.Extra.allow
@@ -1,28 +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 .prompt_block_state import PromptBlockState
6
- from .ephemeral_prompt_cache_config_request import EphemeralPromptCacheConfigRequest
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
- import pydantic
9
-
10
-
11
- class PlainTextPromptBlockRequest(UniversalBaseModel):
12
- """
13
- A block that holds a plain text string value.
14
- """
15
-
16
- state: typing.Optional[PromptBlockState] = None
17
- cache_config: typing.Optional[EphemeralPromptCacheConfigRequest] = None
18
- block_type: typing.Literal["PLAIN_TEXT"] = "PLAIN_TEXT"
19
- text: str
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
@@ -1,19 +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 .jinja_prompt_block_request import JinjaPromptBlockRequest
6
- from .function_definition_prompt_block_request import FunctionDefinitionPromptBlockRequest
7
- from .variable_prompt_block_request import VariablePromptBlockRequest
8
- from .rich_text_prompt_block_request import RichTextPromptBlockRequest
9
- import typing
10
-
11
- if typing.TYPE_CHECKING:
12
- from .chat_message_prompt_block_request import ChatMessagePromptBlockRequest
13
- PromptBlockRequest = typing.Union[
14
- JinjaPromptBlockRequest,
15
- "ChatMessagePromptBlockRequest",
16
- FunctionDefinitionPromptBlockRequest,
17
- VariablePromptBlockRequest,
18
- RichTextPromptBlockRequest,
19
- ]
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- PromptBlockState = typing.Union[typing.Literal["ENABLED", "DISABLED"], typing.Any]
@@ -1,10 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
- from .prompt_request_string_input_request import PromptRequestStringInputRequest
5
- from .prompt_request_json_input_request import PromptRequestJsonInputRequest
6
- from .prompt_request_chat_history_input_request import PromptRequestChatHistoryInputRequest
7
-
8
- PromptRequestInputRequest = typing.Union[
9
- PromptRequestStringInputRequest, PromptRequestJsonInputRequest, PromptRequestChatHistoryInputRequest
10
- ]
@@ -1,7 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
- from .variable_prompt_block_request import VariablePromptBlockRequest
5
- from .plain_text_prompt_block_request import PlainTextPromptBlockRequest
6
-
7
- RichTextChildBlockRequest = typing.Union[VariablePromptBlockRequest, PlainTextPromptBlockRequest]
@@ -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 .rich_text_child_block_request import RichTextChildBlockRequest
6
- from .prompt_block_state import PromptBlockState
7
- from .ephemeral_prompt_cache_config_request import EphemeralPromptCacheConfigRequest
8
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
- import pydantic
10
-
11
-
12
- class RichTextPromptBlockRequest(UniversalBaseModel):
13
- """
14
- A block that includes a combination of plain text and variable blocks.
15
- """
16
-
17
- block_type: typing.Literal["RICH_TEXT"] = "RICH_TEXT"
18
- blocks: typing.List[RichTextChildBlockRequest]
19
- id: str
20
- state: typing.Optional[PromptBlockState] = None
21
- cache_config: typing.Optional[EphemeralPromptCacheConfigRequest] = 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,28 +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 .prompt_block_state import PromptBlockState
6
- from .ephemeral_prompt_cache_config_request import EphemeralPromptCacheConfigRequest
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
- import pydantic
9
-
10
-
11
- class VariablePromptBlockRequest(UniversalBaseModel):
12
- """
13
- A block that represents a variable in a prompt template.
14
- """
15
-
16
- state: typing.Optional[PromptBlockState] = None
17
- cache_config: typing.Optional[EphemeralPromptCacheConfigRequest] = None
18
- block_type: typing.Literal["VARIABLE"] = "VARIABLE"
19
- input_variable_id: str
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
@@ -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 ..core.pydantic_utilities import IS_PYDANTIC_V2
6
- import pydantic
7
-
8
-
9
- class VellumVariableExtensionsRequest(UniversalBaseModel):
10
- """
11
- A set of fields with additional properties for use in Vellum Variables.
12
- """
13
-
14
- color: 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,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
- from .array_vellum_value_request import ArrayVellumValueRequest
6
- from .vellum_variable_type import VellumVariableType
7
- import typing
8
- from .vellum_value_request import VellumValueRequest
9
- from .vellum_variable_extensions_request import VellumVariableExtensionsRequest
10
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
- import pydantic
12
- from ..core.pydantic_utilities import update_forward_refs
13
-
14
-
15
- class VellumVariableRequest(UniversalBaseModel):
16
- id: str
17
- key: str
18
- type: VellumVariableType
19
- required: typing.Optional[bool] = None
20
- default: typing.Optional[VellumValueRequest] = None
21
- extensions: typing.Optional[VellumVariableExtensionsRequest] = 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
31
-
32
-
33
- update_forward_refs(ArrayVellumValueRequest, VellumVariableRequest=VellumVariableRequest)