vellum-ai 0.8.15__py3-none-any.whl → 0.8.17__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +50 -0
- vellum/client.py +223 -6
- vellum/core/client_wrapper.py +3 -3
- vellum/core/http_client.py +22 -16
- vellum/core/pydantic_utilities.py +26 -3
- vellum/resources/__init__.py +2 -0
- vellum/resources/metric_definitions/__init__.py +2 -0
- vellum/resources/metric_definitions/client.py +178 -0
- vellum/resources/test_suites/client.py +8 -8
- vellum/types/__init__.py +52 -0
- vellum/types/array_input_request.py +36 -0
- vellum/types/code_execution_package_request.py +20 -0
- vellum/types/code_execution_runtime.py +5 -0
- vellum/types/code_executor_input_request.py +22 -0
- vellum/types/code_executor_response.py +27 -0
- vellum/types/condition_combinator.py +5 -0
- vellum/types/error_input_request.py +30 -0
- vellum/types/function_call_input_request.py +30 -0
- vellum/types/google_vertex_ai_vectorizer_config.py +20 -0
- vellum/types/google_vertex_ai_vectorizer_config_request.py +20 -0
- vellum/types/google_vertex_ai_vectorizer_text_embedding_004.py +21 -0
- vellum/types/google_vertex_ai_vectorizer_text_embedding_004_request.py +21 -0
- vellum/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002.py +21 -0
- vellum/types/google_vertex_ai_vectorizer_text_multilingual_embedding_002_request.py +21 -0
- vellum/types/indexing_config_vectorizer.py +6 -0
- vellum/types/indexing_config_vectorizer_request.py +6 -0
- vellum/types/json_input_request.py +1 -1
- vellum/types/logical_operator.py +2 -0
- vellum/types/metadata_filter_config_request.py +4 -0
- vellum/types/metadata_filters_request.py +7 -0
- vellum/types/metric_definition_execution.py +20 -0
- vellum/types/metric_definition_input_request.py +11 -0
- vellum/types/number_input_request.py +29 -0
- vellum/types/search_filters_request.py +6 -2
- vellum/types/search_request_options_request.py +4 -0
- vellum/types/search_results_input_request.py +30 -0
- vellum/types/string_input_request.py +1 -1
- vellum/types/vellum_value.py +24 -0
- vellum/types/vellum_value_logical_condition_group_request.py +38 -0
- vellum/types/vellum_value_logical_condition_request.py +34 -0
- vellum/types/vellum_value_logical_expression_request.py +12 -0
- vellum/types/vellum_value_request.py +24 -0
- {vellum_ai-0.8.15.dist-info → vellum_ai-0.8.17.dist-info}/METADATA +1 -1
- {vellum_ai-0.8.15.dist-info → vellum_ai-0.8.17.dist-info}/RECORD +46 -20
- {vellum_ai-0.8.15.dist-info → vellum_ai-0.8.17.dist-info}/LICENSE +0 -0
- {vellum_ai-0.8.15.dist-info → vellum_ai-0.8.17.dist-info}/WHEEL +0 -0
@@ -0,0 +1,21 @@
|
|
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 .google_vertex_ai_vectorizer_config import GoogleVertexAiVectorizerConfig
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class GoogleVertexAiVectorizerTextEmbedding004(UniversalBaseModel):
|
11
|
+
model_name: typing.Literal["text-embedding-004"] = "text-embedding-004"
|
12
|
+
config: GoogleVertexAiVectorizerConfig
|
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
|
@@ -0,0 +1,21 @@
|
|
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 .google_vertex_ai_vectorizer_config_request import GoogleVertexAiVectorizerConfigRequest
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class GoogleVertexAiVectorizerTextEmbedding004Request(UniversalBaseModel):
|
11
|
+
model_name: typing.Literal["text-embedding-004"] = "text-embedding-004"
|
12
|
+
config: GoogleVertexAiVectorizerConfigRequest
|
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
|
@@ -0,0 +1,21 @@
|
|
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 .google_vertex_ai_vectorizer_config import GoogleVertexAiVectorizerConfig
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class GoogleVertexAiVectorizerTextMultilingualEmbedding002(UniversalBaseModel):
|
11
|
+
model_name: typing.Literal["text-multilingual-embedding-002"] = "text-multilingual-embedding-002"
|
12
|
+
config: GoogleVertexAiVectorizerConfig
|
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
|
@@ -0,0 +1,21 @@
|
|
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 .google_vertex_ai_vectorizer_config_request import GoogleVertexAiVectorizerConfigRequest
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class GoogleVertexAiVectorizerTextMultilingualEmbedding002Request(UniversalBaseModel):
|
11
|
+
model_name: typing.Literal["text-multilingual-embedding-002"] = "text-multilingual-embedding-002"
|
12
|
+
config: GoogleVertexAiVectorizerConfigRequest
|
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
|
@@ -12,6 +12,10 @@ from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1 import
|
|
12
12
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1,
|
13
13
|
)
|
14
14
|
from .hkunlp_instructor_xl_vectorizer import HkunlpInstructorXlVectorizer
|
15
|
+
from .google_vertex_ai_vectorizer_text_embedding_004 import GoogleVertexAiVectorizerTextEmbedding004
|
16
|
+
from .google_vertex_ai_vectorizer_text_multilingual_embedding_002 import (
|
17
|
+
GoogleVertexAiVectorizerTextMultilingualEmbedding002,
|
18
|
+
)
|
15
19
|
|
16
20
|
IndexingConfigVectorizer = typing.Union[
|
17
21
|
OpenAiVectorizerTextEmbedding3Small,
|
@@ -21,4 +25,6 @@ IndexingConfigVectorizer = typing.Union[
|
|
21
25
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1,
|
22
26
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1,
|
23
27
|
HkunlpInstructorXlVectorizer,
|
28
|
+
GoogleVertexAiVectorizerTextEmbedding004,
|
29
|
+
GoogleVertexAiVectorizerTextMultilingualEmbedding002,
|
24
30
|
]
|
@@ -12,6 +12,10 @@ from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_dot_v_1_request
|
|
12
12
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
13
13
|
)
|
14
14
|
from .hkunlp_instructor_xl_vectorizer_request import HkunlpInstructorXlVectorizerRequest
|
15
|
+
from .google_vertex_ai_vectorizer_text_embedding_004_request import GoogleVertexAiVectorizerTextEmbedding004Request
|
16
|
+
from .google_vertex_ai_vectorizer_text_multilingual_embedding_002_request import (
|
17
|
+
GoogleVertexAiVectorizerTextMultilingualEmbedding002Request,
|
18
|
+
)
|
15
19
|
|
16
20
|
IndexingConfigVectorizerRequest = typing.Union[
|
17
21
|
OpenAiVectorizerTextEmbedding3SmallRequest,
|
@@ -21,4 +25,6 @@ IndexingConfigVectorizerRequest = typing.Union[
|
|
21
25
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request,
|
22
26
|
BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request,
|
23
27
|
HkunlpInstructorXlVectorizerRequest,
|
28
|
+
GoogleVertexAiVectorizerTextEmbedding004Request,
|
29
|
+
GoogleVertexAiVectorizerTextMultilingualEmbedding002Request,
|
24
30
|
]
|
vellum/types/logical_operator.py
CHANGED
@@ -12,6 +12,10 @@ from ..core.pydantic_utilities import update_forward_refs
|
|
12
12
|
|
13
13
|
|
14
14
|
class MetadataFilterConfigRequest(UniversalBaseModel):
|
15
|
+
"""
|
16
|
+
A deprecated pattern for filtering on metadata. Please use MetadataFilters instead.
|
17
|
+
"""
|
18
|
+
|
15
19
|
combinator: typing.Optional[MetadataFilterRuleCombinator] = None
|
16
20
|
negated: typing.Optional[bool] = None
|
17
21
|
rules: typing.Optional[typing.List[MetadataFilterRuleRequest]] = None
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from .metadata_filter_config_request import MetadataFilterConfigRequest
|
5
|
+
from .vellum_value_logical_expression_request import VellumValueLogicalExpressionRequest
|
6
|
+
|
7
|
+
MetadataFiltersRequest = typing.Union[MetadataFilterConfigRequest, VellumValueLogicalExpressionRequest]
|
@@ -0,0 +1,20 @@
|
|
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 .test_suite_run_metric_output import TestSuiteRunMetricOutput
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
import pydantic
|
8
|
+
|
9
|
+
|
10
|
+
class MetricDefinitionExecution(UniversalBaseModel):
|
11
|
+
outputs: typing.List[TestSuiteRunMetricOutput]
|
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
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from .string_input_request import StringInputRequest
|
5
|
+
from .json_input_request import JsonInputRequest
|
6
|
+
from .chat_history_input_request import ChatHistoryInputRequest
|
7
|
+
from .number_input_request import NumberInputRequest
|
8
|
+
|
9
|
+
MetricDefinitionInputRequest = typing.Union[
|
10
|
+
StringInputRequest, JsonInputRequest, ChatHistoryInputRequest, NumberInputRequest
|
11
|
+
]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import pydantic
|
5
|
+
import typing
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
7
|
+
|
8
|
+
|
9
|
+
class NumberInputRequest(UniversalBaseModel):
|
10
|
+
"""
|
11
|
+
A user input representing a number value
|
12
|
+
"""
|
13
|
+
|
14
|
+
name: str = pydantic.Field()
|
15
|
+
"""
|
16
|
+
The variable's name
|
17
|
+
"""
|
18
|
+
|
19
|
+
type: typing.Literal["NUMBER"] = "NUMBER"
|
20
|
+
value: float
|
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
|
@@ -2,10 +2,12 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
5
6
|
from .metadata_filter_rule_request import MetadataFilterRuleRequest
|
7
|
+
from .vellum_value_logical_condition_group_request import VellumValueLogicalConditionGroupRequest
|
6
8
|
import typing
|
7
9
|
import pydantic
|
8
|
-
from .
|
10
|
+
from .metadata_filters_request import MetadataFiltersRequest
|
9
11
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
12
|
from ..core.pydantic_utilities import update_forward_refs
|
11
13
|
|
@@ -16,7 +18,7 @@ class SearchFiltersRequest(UniversalBaseModel):
|
|
16
18
|
The document external IDs to filter by
|
17
19
|
"""
|
18
20
|
|
19
|
-
metadata: typing.Optional[
|
21
|
+
metadata: typing.Optional[MetadataFiltersRequest] = pydantic.Field(default=None)
|
20
22
|
"""
|
21
23
|
The metadata filters to apply to the search
|
22
24
|
"""
|
@@ -31,4 +33,6 @@ class SearchFiltersRequest(UniversalBaseModel):
|
|
31
33
|
extra = pydantic.Extra.allow
|
32
34
|
|
33
35
|
|
36
|
+
update_forward_refs(ArrayVellumValueRequest, SearchFiltersRequest=SearchFiltersRequest)
|
34
37
|
update_forward_refs(MetadataFilterRuleRequest, SearchFiltersRequest=SearchFiltersRequest)
|
38
|
+
update_forward_refs(VellumValueLogicalConditionGroupRequest, SearchFiltersRequest=SearchFiltersRequest)
|
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
5
6
|
from .metadata_filter_rule_request import MetadataFilterRuleRequest
|
7
|
+
from .vellum_value_logical_condition_group_request import VellumValueLogicalConditionGroupRequest
|
6
8
|
import typing
|
7
9
|
import pydantic
|
8
10
|
from .search_weights_request import SearchWeightsRequest
|
@@ -43,4 +45,6 @@ class SearchRequestOptionsRequest(UniversalBaseModel):
|
|
43
45
|
extra = pydantic.Extra.allow
|
44
46
|
|
45
47
|
|
48
|
+
update_forward_refs(ArrayVellumValueRequest, SearchRequestOptionsRequest=SearchRequestOptionsRequest)
|
46
49
|
update_forward_refs(MetadataFilterRuleRequest, SearchRequestOptionsRequest=SearchRequestOptionsRequest)
|
50
|
+
update_forward_refs(VellumValueLogicalConditionGroupRequest, SearchRequestOptionsRequest=SearchRequestOptionsRequest)
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
import pydantic
|
5
|
+
import typing
|
6
|
+
from .search_result_request import SearchResultRequest
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
|
9
|
+
|
10
|
+
class SearchResultsInputRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a search results value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["SEARCH_RESULTS"] = "SEARCH_RESULTS"
|
21
|
+
value: typing.List[SearchResultRequest]
|
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,24 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from .string_vellum_value import StringVellumValue
|
5
|
+
from .number_vellum_value import NumberVellumValue
|
6
|
+
from .json_vellum_value import JsonVellumValue
|
7
|
+
from .image_vellum_value import ImageVellumValue
|
8
|
+
from .function_call_vellum_value import FunctionCallVellumValue
|
9
|
+
from .error_vellum_value import ErrorVellumValue
|
10
|
+
from .array_vellum_value import ArrayVellumValue
|
11
|
+
from .chat_history_vellum_value import ChatHistoryVellumValue
|
12
|
+
from .search_results_vellum_value import SearchResultsVellumValue
|
13
|
+
|
14
|
+
VellumValue = typing.Union[
|
15
|
+
StringVellumValue,
|
16
|
+
NumberVellumValue,
|
17
|
+
JsonVellumValue,
|
18
|
+
ImageVellumValue,
|
19
|
+
FunctionCallVellumValue,
|
20
|
+
ErrorVellumValue,
|
21
|
+
ArrayVellumValue,
|
22
|
+
ChatHistoryVellumValue,
|
23
|
+
SearchResultsVellumValue,
|
24
|
+
]
|
@@ -0,0 +1,38 @@
|
|
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
|
+
import typing
|
7
|
+
from .condition_combinator import ConditionCombinator
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
9
|
+
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
11
|
+
|
12
|
+
|
13
|
+
class VellumValueLogicalConditionGroupRequest(UniversalBaseModel):
|
14
|
+
"""
|
15
|
+
A higher-order condition that combines one or more basic conditions or other higher-order conditions.
|
16
|
+
"""
|
17
|
+
|
18
|
+
type: typing.Literal["LOGICAL_CONDITION_GROUP"] = "LOGICAL_CONDITION_GROUP"
|
19
|
+
conditions: typing.List["VellumValueLogicalExpressionRequest"]
|
20
|
+
combinator: ConditionCombinator
|
21
|
+
negated: bool
|
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
|
+
from .vellum_value_logical_expression_request import VellumValueLogicalExpressionRequest # noqa: E402
|
34
|
+
|
35
|
+
update_forward_refs(
|
36
|
+
ArrayVellumValueRequest, VellumValueLogicalConditionGroupRequest=VellumValueLogicalConditionGroupRequest
|
37
|
+
)
|
38
|
+
update_forward_refs(VellumValueLogicalConditionGroupRequest)
|
@@ -0,0 +1,34 @@
|
|
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
|
+
import typing
|
7
|
+
from .vellum_value_request import VellumValueRequest
|
8
|
+
from .logical_operator import LogicalOperator
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
|
+
import pydantic
|
11
|
+
from ..core.pydantic_utilities import update_forward_refs
|
12
|
+
|
13
|
+
|
14
|
+
class VellumValueLogicalConditionRequest(UniversalBaseModel):
|
15
|
+
"""
|
16
|
+
A basic condition comparing two Vellum values.
|
17
|
+
"""
|
18
|
+
|
19
|
+
type: typing.Literal["LOGICAL_CONDITION"] = "LOGICAL_CONDITION"
|
20
|
+
lhs_variable: VellumValueRequest
|
21
|
+
operator: LogicalOperator
|
22
|
+
rhs_variable: VellumValueRequest
|
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
|
32
|
+
|
33
|
+
|
34
|
+
update_forward_refs(ArrayVellumValueRequest, VellumValueLogicalConditionRequest=VellumValueLogicalConditionRequest)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
import typing
|
5
|
+
from .vellum_value_logical_condition_request import VellumValueLogicalConditionRequest
|
6
|
+
import typing
|
7
|
+
|
8
|
+
if typing.TYPE_CHECKING:
|
9
|
+
from .vellum_value_logical_condition_group_request import VellumValueLogicalConditionGroupRequest
|
10
|
+
VellumValueLogicalExpressionRequest = typing.Union[
|
11
|
+
VellumValueLogicalConditionRequest, "VellumValueLogicalConditionGroupRequest"
|
12
|
+
]
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from .string_vellum_value_request import StringVellumValueRequest
|
5
|
+
from .number_vellum_value_request import NumberVellumValueRequest
|
6
|
+
from .json_vellum_value_request import JsonVellumValueRequest
|
7
|
+
from .image_vellum_value_request import ImageVellumValueRequest
|
8
|
+
from .function_call_vellum_value_request import FunctionCallVellumValueRequest
|
9
|
+
from .error_vellum_value_request import ErrorVellumValueRequest
|
10
|
+
from .array_vellum_value_request import ArrayVellumValueRequest
|
11
|
+
from .chat_history_vellum_value_request import ChatHistoryVellumValueRequest
|
12
|
+
from .search_results_vellum_value_request import SearchResultsVellumValueRequest
|
13
|
+
|
14
|
+
VellumValueRequest = typing.Union[
|
15
|
+
StringVellumValueRequest,
|
16
|
+
NumberVellumValueRequest,
|
17
|
+
JsonVellumValueRequest,
|
18
|
+
ImageVellumValueRequest,
|
19
|
+
FunctionCallVellumValueRequest,
|
20
|
+
ErrorVellumValueRequest,
|
21
|
+
ArrayVellumValueRequest,
|
22
|
+
ChatHistoryVellumValueRequest,
|
23
|
+
SearchResultsVellumValueRequest,
|
24
|
+
]
|