vellum-ai 1.2.2__py3-none-any.whl → 1.2.3__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.
- vellum/__init__.py +40 -0
- vellum/client/core/client_wrapper.py +2 -2
- vellum/client/core/pydantic_utilities.py +3 -2
- vellum/client/reference.md +16 -0
- vellum/client/resources/workflow_executions/client.py +28 -4
- vellum/client/resources/workflow_executions/raw_client.py +32 -2
- vellum/client/types/__init__.py +40 -0
- vellum/client/types/audio_input_request.py +30 -0
- vellum/client/types/delimiter_chunker_config.py +20 -0
- vellum/client/types/delimiter_chunker_config_request.py +20 -0
- vellum/client/types/delimiter_chunking.py +21 -0
- vellum/client/types/delimiter_chunking_request.py +21 -0
- vellum/client/types/document_index_chunking.py +4 -1
- vellum/client/types/document_index_chunking_request.py +2 -1
- vellum/client/types/document_input_request.py +30 -0
- vellum/client/types/execution_audio_vellum_value.py +31 -0
- vellum/client/types/execution_document_vellum_value.py +31 -0
- vellum/client/types/execution_image_vellum_value.py +31 -0
- vellum/client/types/execution_vellum_value.py +8 -0
- vellum/client/types/execution_video_vellum_value.py +31 -0
- vellum/client/types/image_input_request.py +30 -0
- vellum/client/types/logical_operator.py +1 -0
- vellum/client/types/node_input_compiled_audio_value.py +23 -0
- vellum/client/types/node_input_compiled_document_value.py +23 -0
- vellum/client/types/node_input_compiled_image_value.py +23 -0
- vellum/client/types/node_input_compiled_video_value.py +23 -0
- vellum/client/types/node_input_variable_compiled_value.py +8 -0
- vellum/client/types/prompt_deployment_input_request.py +13 -1
- vellum/client/types/prompt_request_audio_input.py +26 -0
- vellum/client/types/prompt_request_document_input.py +26 -0
- vellum/client/types/prompt_request_image_input.py +26 -0
- vellum/client/types/prompt_request_input.py +13 -1
- vellum/client/types/prompt_request_video_input.py +26 -0
- vellum/client/types/video_input_request.py +30 -0
- vellum/types/audio_input_request.py +3 -0
- vellum/types/delimiter_chunker_config.py +3 -0
- vellum/types/delimiter_chunker_config_request.py +3 -0
- vellum/types/delimiter_chunking.py +3 -0
- vellum/types/delimiter_chunking_request.py +3 -0
- vellum/types/document_input_request.py +3 -0
- vellum/types/execution_audio_vellum_value.py +3 -0
- vellum/types/execution_document_vellum_value.py +3 -0
- vellum/types/execution_image_vellum_value.py +3 -0
- vellum/types/execution_video_vellum_value.py +3 -0
- vellum/types/image_input_request.py +3 -0
- vellum/types/node_input_compiled_audio_value.py +3 -0
- vellum/types/node_input_compiled_document_value.py +3 -0
- vellum/types/node_input_compiled_image_value.py +3 -0
- vellum/types/node_input_compiled_video_value.py +3 -0
- vellum/types/prompt_request_audio_input.py +3 -0
- vellum/types/prompt_request_document_input.py +3 -0
- vellum/types/prompt_request_image_input.py +3 -0
- vellum/types/prompt_request_video_input.py +3 -0
- vellum/types/video_input_request.py +3 -0
- vellum/workflows/context.py +27 -9
- vellum/workflows/events/context.py +53 -78
- vellum/workflows/events/node.py +5 -5
- vellum/workflows/events/relational_threads.py +41 -0
- vellum/workflows/events/tests/test_basic_workflow.py +50 -0
- vellum/workflows/events/workflow.py +12 -1
- vellum/workflows/expressions/contains.py +7 -0
- vellum/workflows/expressions/tests/test_contains.py +175 -0
- vellum/workflows/graph/graph.py +52 -8
- vellum/workflows/graph/tests/test_graph.py +17 -0
- vellum/workflows/integrations/mcp_service.py +35 -5
- vellum/workflows/integrations/tests/test_mcp_service.py +81 -0
- vellum/workflows/nodes/core/error_node/node.py +4 -0
- vellum/workflows/nodes/core/map_node/node.py +7 -0
- vellum/workflows/nodes/core/map_node/tests/test_node.py +19 -0
- vellum/workflows/nodes/displayable/final_output_node/node.py +4 -0
- vellum/workflows/nodes/displayable/subworkflow_deployment_node/node.py +1 -1
- vellum/workflows/ports/node_ports.py +3 -0
- vellum/workflows/ports/port.py +7 -0
- vellum/workflows/state/context.py +35 -4
- vellum/workflows/utils/uuids.py +15 -0
- {vellum_ai-1.2.2.dist-info → vellum_ai-1.2.3.dist-info}/METADATA +1 -1
- {vellum_ai-1.2.2.dist-info → vellum_ai-1.2.3.dist-info}/RECORD +85 -39
- vellum_ee/workflows/display/nodes/vellum/error_node.py +1 -5
- vellum_ee/workflows/display/nodes/vellum/final_output_node.py +1 -5
- vellum_ee/workflows/display/utils/events.py +24 -0
- vellum_ee/workflows/display/utils/tests/test_events.py +69 -0
- vellum_ee/workflows/tests/test_server.py +95 -0
- {vellum_ai-1.2.2.dist-info → vellum_ai-1.2.3.dist-info}/LICENSE +0 -0
- {vellum_ai-1.2.2.dist-info → vellum_ai-1.2.3.dist-info}/WHEEL +0 -0
- {vellum_ai-1.2.2.dist-info → vellum_ai-1.2.3.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,21 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .delimiter_chunker_config_request import DelimiterChunkerConfigRequest
|
8
|
+
|
9
|
+
|
10
|
+
class DelimiterChunkingRequest(UniversalBaseModel):
|
11
|
+
chunker_name: typing.Literal["delimiter-chunker"] = "delimiter-chunker"
|
12
|
+
chunker_config: typing.Optional[DelimiterChunkerConfigRequest] = 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
|
@@ -2,8 +2,11 @@
|
|
2
2
|
|
3
3
|
import typing
|
4
4
|
|
5
|
+
from .delimiter_chunking import DelimiterChunking
|
5
6
|
from .reducto_chunking import ReductoChunking
|
6
7
|
from .sentence_chunking import SentenceChunking
|
7
8
|
from .token_overlapping_window_chunking import TokenOverlappingWindowChunking
|
8
9
|
|
9
|
-
DocumentIndexChunking = typing.Union[
|
10
|
+
DocumentIndexChunking = typing.Union[
|
11
|
+
ReductoChunking, SentenceChunking, TokenOverlappingWindowChunking, DelimiterChunking
|
12
|
+
]
|
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
import typing
|
4
4
|
|
5
|
+
from .delimiter_chunking_request import DelimiterChunkingRequest
|
5
6
|
from .reducto_chunking_request import ReductoChunkingRequest
|
6
7
|
from .sentence_chunking_request import SentenceChunkingRequest
|
7
8
|
from .token_overlapping_window_chunking_request import TokenOverlappingWindowChunkingRequest
|
8
9
|
|
9
10
|
DocumentIndexChunkingRequest = typing.Union[
|
10
|
-
ReductoChunkingRequest, SentenceChunkingRequest, TokenOverlappingWindowChunkingRequest
|
11
|
+
ReductoChunkingRequest, SentenceChunkingRequest, TokenOverlappingWindowChunkingRequest, DelimiterChunkingRequest
|
11
12
|
]
|
@@ -0,0 +1,30 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_document_request import VellumDocumentRequest
|
8
|
+
|
9
|
+
|
10
|
+
class DocumentInputRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Document value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["DOCUMENT"] = "DOCUMENT"
|
21
|
+
value: VellumDocumentRequest
|
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
|
@@ -0,0 +1,31 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_audio import VellumAudio
|
8
|
+
|
9
|
+
|
10
|
+
class ExecutionAudioVellumValue(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A base Vellum primitive value representing audio.
|
13
|
+
"""
|
14
|
+
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
20
|
+
name: str
|
21
|
+
type: typing.Literal["AUDIO"] = "AUDIO"
|
22
|
+
value: typing.Optional[VellumAudio] = 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
|
@@ -0,0 +1,31 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_document import VellumDocument
|
8
|
+
|
9
|
+
|
10
|
+
class ExecutionDocumentVellumValue(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A base Vellum primitive value representing a document.
|
13
|
+
"""
|
14
|
+
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
20
|
+
name: str
|
21
|
+
type: typing.Literal["DOCUMENT"] = "DOCUMENT"
|
22
|
+
value: typing.Optional[VellumDocument] = 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
|
@@ -0,0 +1,31 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_image import VellumImage
|
8
|
+
|
9
|
+
|
10
|
+
class ExecutionImageVellumValue(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A base Vellum primitive value representing an image.
|
13
|
+
"""
|
14
|
+
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
20
|
+
name: str
|
21
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
22
|
+
value: typing.Optional[VellumImage] = 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
|
@@ -3,14 +3,18 @@
|
|
3
3
|
import typing
|
4
4
|
|
5
5
|
from .execution_array_vellum_value import ExecutionArrayVellumValue
|
6
|
+
from .execution_audio_vellum_value import ExecutionAudioVellumValue
|
6
7
|
from .execution_chat_history_vellum_value import ExecutionChatHistoryVellumValue
|
8
|
+
from .execution_document_vellum_value import ExecutionDocumentVellumValue
|
7
9
|
from .execution_error_vellum_value import ExecutionErrorVellumValue
|
8
10
|
from .execution_function_call_vellum_value import ExecutionFunctionCallVellumValue
|
11
|
+
from .execution_image_vellum_value import ExecutionImageVellumValue
|
9
12
|
from .execution_json_vellum_value import ExecutionJsonVellumValue
|
10
13
|
from .execution_number_vellum_value import ExecutionNumberVellumValue
|
11
14
|
from .execution_search_results_vellum_value import ExecutionSearchResultsVellumValue
|
12
15
|
from .execution_string_vellum_value import ExecutionStringVellumValue
|
13
16
|
from .execution_thinking_vellum_value import ExecutionThinkingVellumValue
|
17
|
+
from .execution_video_vellum_value import ExecutionVideoVellumValue
|
14
18
|
|
15
19
|
ExecutionVellumValue = typing.Union[
|
16
20
|
ExecutionStringVellumValue,
|
@@ -22,4 +26,8 @@ ExecutionVellumValue = typing.Union[
|
|
22
26
|
ExecutionArrayVellumValue,
|
23
27
|
ExecutionFunctionCallVellumValue,
|
24
28
|
ExecutionThinkingVellumValue,
|
29
|
+
ExecutionAudioVellumValue,
|
30
|
+
ExecutionVideoVellumValue,
|
31
|
+
ExecutionImageVellumValue,
|
32
|
+
ExecutionDocumentVellumValue,
|
25
33
|
]
|
@@ -0,0 +1,31 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_video import VellumVideo
|
8
|
+
|
9
|
+
|
10
|
+
class ExecutionVideoVellumValue(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A base Vellum primitive value representing a video.
|
13
|
+
"""
|
14
|
+
|
15
|
+
id: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's uniquely identifying internal id.
|
18
|
+
"""
|
19
|
+
|
20
|
+
name: str
|
21
|
+
type: typing.Literal["VIDEO"] = "VIDEO"
|
22
|
+
value: typing.Optional[VellumVideo] = 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
|
@@ -0,0 +1,30 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_image_request import VellumImageRequest
|
8
|
+
|
9
|
+
|
10
|
+
class ImageInputRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Image value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
21
|
+
value: VellumImageRequest
|
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
|
@@ -0,0 +1,23 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_audio import VellumAudio
|
8
|
+
|
9
|
+
|
10
|
+
class NodeInputCompiledAudioValue(UniversalBaseModel):
|
11
|
+
node_input_id: str
|
12
|
+
key: str
|
13
|
+
type: typing.Literal["AUDIO"] = "AUDIO"
|
14
|
+
value: typing.Optional[VellumAudio] = 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
|
@@ -0,0 +1,23 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_document import VellumDocument
|
8
|
+
|
9
|
+
|
10
|
+
class NodeInputCompiledDocumentValue(UniversalBaseModel):
|
11
|
+
node_input_id: str
|
12
|
+
key: str
|
13
|
+
type: typing.Literal["DOCUMENT"] = "DOCUMENT"
|
14
|
+
value: typing.Optional[VellumDocument] = 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
|
@@ -0,0 +1,23 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_image import VellumImage
|
8
|
+
|
9
|
+
|
10
|
+
class NodeInputCompiledImageValue(UniversalBaseModel):
|
11
|
+
node_input_id: str
|
12
|
+
key: str
|
13
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
14
|
+
value: typing.Optional[VellumImage] = 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
|
@@ -0,0 +1,23 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_video import VellumVideo
|
8
|
+
|
9
|
+
|
10
|
+
class NodeInputCompiledVideoValue(UniversalBaseModel):
|
11
|
+
node_input_id: str
|
12
|
+
key: str
|
13
|
+
type: typing.Literal["VIDEO"] = "VIDEO"
|
14
|
+
value: typing.Optional[VellumVideo] = 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
|
@@ -3,14 +3,18 @@
|
|
3
3
|
import typing
|
4
4
|
|
5
5
|
from .node_input_compiled_array_value import NodeInputCompiledArrayValue
|
6
|
+
from .node_input_compiled_audio_value import NodeInputCompiledAudioValue
|
6
7
|
from .node_input_compiled_chat_history_value import NodeInputCompiledChatHistoryValue
|
8
|
+
from .node_input_compiled_document_value import NodeInputCompiledDocumentValue
|
7
9
|
from .node_input_compiled_error_value import NodeInputCompiledErrorValue
|
8
10
|
from .node_input_compiled_function_call_value import NodeInputCompiledFunctionCallValue
|
11
|
+
from .node_input_compiled_image_value import NodeInputCompiledImageValue
|
9
12
|
from .node_input_compiled_json_value import NodeInputCompiledJsonValue
|
10
13
|
from .node_input_compiled_number_value import NodeInputCompiledNumberValue
|
11
14
|
from .node_input_compiled_search_results_value import NodeInputCompiledSearchResultsValue
|
12
15
|
from .node_input_compiled_secret_value import NodeInputCompiledSecretValue
|
13
16
|
from .node_input_compiled_string_value import NodeInputCompiledStringValue
|
17
|
+
from .node_input_compiled_video_value import NodeInputCompiledVideoValue
|
14
18
|
|
15
19
|
NodeInputVariableCompiledValue = typing.Union[
|
16
20
|
NodeInputCompiledStringValue,
|
@@ -22,4 +26,8 @@ NodeInputVariableCompiledValue = typing.Union[
|
|
22
26
|
NodeInputCompiledArrayValue,
|
23
27
|
NodeInputCompiledFunctionCallValue,
|
24
28
|
NodeInputCompiledSecretValue,
|
29
|
+
NodeInputCompiledAudioValue,
|
30
|
+
NodeInputCompiledVideoValue,
|
31
|
+
NodeInputCompiledImageValue,
|
32
|
+
NodeInputCompiledDocumentValue,
|
25
33
|
]
|
@@ -2,8 +2,20 @@
|
|
2
2
|
|
3
3
|
import typing
|
4
4
|
|
5
|
+
from .audio_input_request import AudioInputRequest
|
5
6
|
from .chat_history_input_request import ChatHistoryInputRequest
|
7
|
+
from .document_input_request import DocumentInputRequest
|
8
|
+
from .image_input_request import ImageInputRequest
|
6
9
|
from .json_input_request import JsonInputRequest
|
7
10
|
from .string_input_request import StringInputRequest
|
11
|
+
from .video_input_request import VideoInputRequest
|
8
12
|
|
9
|
-
PromptDeploymentInputRequest = typing.Union[
|
13
|
+
PromptDeploymentInputRequest = typing.Union[
|
14
|
+
StringInputRequest,
|
15
|
+
JsonInputRequest,
|
16
|
+
ChatHistoryInputRequest,
|
17
|
+
AudioInputRequest,
|
18
|
+
VideoInputRequest,
|
19
|
+
ImageInputRequest,
|
20
|
+
DocumentInputRequest,
|
21
|
+
]
|
@@ -0,0 +1,26 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_audio import VellumAudio
|
8
|
+
|
9
|
+
|
10
|
+
class PromptRequestAudioInput(UniversalBaseModel):
|
11
|
+
key: str = pydantic.Field()
|
12
|
+
"""
|
13
|
+
The variable's name, as defined in the Prompt.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["AUDIO"] = "AUDIO"
|
17
|
+
value: VellumAudio
|
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
|
@@ -0,0 +1,26 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_document import VellumDocument
|
8
|
+
|
9
|
+
|
10
|
+
class PromptRequestDocumentInput(UniversalBaseModel):
|
11
|
+
key: str = pydantic.Field()
|
12
|
+
"""
|
13
|
+
The variable's name, as defined in the Prompt.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["DOCUMENT"] = "DOCUMENT"
|
17
|
+
value: VellumDocument
|
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
|
@@ -0,0 +1,26 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_image import VellumImage
|
8
|
+
|
9
|
+
|
10
|
+
class PromptRequestImageInput(UniversalBaseModel):
|
11
|
+
key: str = pydantic.Field()
|
12
|
+
"""
|
13
|
+
The variable's name, as defined in the Prompt.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
17
|
+
value: VellumImage
|
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
|
@@ -2,8 +2,20 @@
|
|
2
2
|
|
3
3
|
import typing
|
4
4
|
|
5
|
+
from .prompt_request_audio_input import PromptRequestAudioInput
|
5
6
|
from .prompt_request_chat_history_input import PromptRequestChatHistoryInput
|
7
|
+
from .prompt_request_document_input import PromptRequestDocumentInput
|
8
|
+
from .prompt_request_image_input import PromptRequestImageInput
|
6
9
|
from .prompt_request_json_input import PromptRequestJsonInput
|
7
10
|
from .prompt_request_string_input import PromptRequestStringInput
|
11
|
+
from .prompt_request_video_input import PromptRequestVideoInput
|
8
12
|
|
9
|
-
PromptRequestInput = typing.Union[
|
13
|
+
PromptRequestInput = typing.Union[
|
14
|
+
PromptRequestStringInput,
|
15
|
+
PromptRequestJsonInput,
|
16
|
+
PromptRequestChatHistoryInput,
|
17
|
+
PromptRequestAudioInput,
|
18
|
+
PromptRequestVideoInput,
|
19
|
+
PromptRequestImageInput,
|
20
|
+
PromptRequestDocumentInput,
|
21
|
+
]
|
@@ -0,0 +1,26 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_video import VellumVideo
|
8
|
+
|
9
|
+
|
10
|
+
class PromptRequestVideoInput(UniversalBaseModel):
|
11
|
+
key: str = pydantic.Field()
|
12
|
+
"""
|
13
|
+
The variable's name, as defined in the Prompt.
|
14
|
+
"""
|
15
|
+
|
16
|
+
type: typing.Literal["VIDEO"] = "VIDEO"
|
17
|
+
value: VellumVideo
|
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
|
@@ -0,0 +1,30 @@
|
|
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, UniversalBaseModel
|
7
|
+
from .vellum_video_request import VellumVideoRequest
|
8
|
+
|
9
|
+
|
10
|
+
class VideoInputRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Video value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["VIDEO"] = "VIDEO"
|
21
|
+
value: VellumVideoRequest
|
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
|