vellum-ai 0.8.16__py3-none-any.whl → 0.8.18__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 +1 -1
- 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.16.dist-info → vellum_ai-0.8.18.dist-info}/METADATA +1 -1
- {vellum_ai-0.8.16.dist-info → vellum_ai-0.8.18.dist-info}/RECORD +44 -18
- {vellum_ai-0.8.16.dist-info → vellum_ai-0.8.18.dist-info}/LICENSE +0 -0
- {vellum_ai-0.8.16.dist-info → vellum_ai-0.8.18.dist-info}/WHEEL +0 -0
@@ -38,7 +38,7 @@ class TestSuitesClient:
|
|
38
38
|
Parameters
|
39
39
|
----------
|
40
40
|
id : str
|
41
|
-
|
41
|
+
Either the Test Suites' ID or its unique name
|
42
42
|
|
43
43
|
limit : typing.Optional[int]
|
44
44
|
Number of results to return per page.
|
@@ -112,7 +112,7 @@ class TestSuitesClient:
|
|
112
112
|
Parameters
|
113
113
|
----------
|
114
114
|
id_ : str
|
115
|
-
|
115
|
+
Either the Test Suites' ID or its unique name
|
116
116
|
|
117
117
|
input_values : typing.Sequence[NamedTestCaseVariableValueRequest]
|
118
118
|
Values for each of the Test Case's input variables
|
@@ -207,7 +207,7 @@ class TestSuitesClient:
|
|
207
207
|
Parameters
|
208
208
|
----------
|
209
209
|
id : str
|
210
|
-
|
210
|
+
Either the Test Suites' ID or its unique name
|
211
211
|
|
212
212
|
request : typing.Sequence[TestSuiteTestCaseBulkOperationRequest]
|
213
213
|
|
@@ -299,7 +299,7 @@ class TestSuitesClient:
|
|
299
299
|
Parameters
|
300
300
|
----------
|
301
301
|
id : str
|
302
|
-
|
302
|
+
Either the Test Suites' ID or its unique name
|
303
303
|
|
304
304
|
test_case_id : str
|
305
305
|
An id identifying the test case that you'd like to delete
|
@@ -356,7 +356,7 @@ class AsyncTestSuitesClient:
|
|
356
356
|
Parameters
|
357
357
|
----------
|
358
358
|
id : str
|
359
|
-
|
359
|
+
Either the Test Suites' ID or its unique name
|
360
360
|
|
361
361
|
limit : typing.Optional[int]
|
362
362
|
Number of results to return per page.
|
@@ -438,7 +438,7 @@ class AsyncTestSuitesClient:
|
|
438
438
|
Parameters
|
439
439
|
----------
|
440
440
|
id_ : str
|
441
|
-
|
441
|
+
Either the Test Suites' ID or its unique name
|
442
442
|
|
443
443
|
input_values : typing.Sequence[NamedTestCaseVariableValueRequest]
|
444
444
|
Values for each of the Test Case's input variables
|
@@ -541,7 +541,7 @@ class AsyncTestSuitesClient:
|
|
541
541
|
Parameters
|
542
542
|
----------
|
543
543
|
id : str
|
544
|
-
|
544
|
+
Either the Test Suites' ID or its unique name
|
545
545
|
|
546
546
|
request : typing.Sequence[TestSuiteTestCaseBulkOperationRequest]
|
547
547
|
|
@@ -641,7 +641,7 @@ class AsyncTestSuitesClient:
|
|
641
641
|
Parameters
|
642
642
|
----------
|
643
643
|
id : str
|
644
|
-
|
644
|
+
Either the Test Suites' ID or its unique name
|
645
645
|
|
646
646
|
test_case_id : str
|
647
647
|
An id identifying the test case that you'd like to delete
|
vellum/types/__init__.py
CHANGED
@@ -13,6 +13,7 @@ from .array_chat_message_content import ArrayChatMessageContent
|
|
13
13
|
from .array_chat_message_content_item import ArrayChatMessageContentItem
|
14
14
|
from .array_chat_message_content_item_request import ArrayChatMessageContentItemRequest
|
15
15
|
from .array_chat_message_content_request import ArrayChatMessageContentRequest
|
16
|
+
from .array_input_request import ArrayInputRequest
|
16
17
|
from .array_variable_value import ArrayVariableValue
|
17
18
|
from .array_variable_value_item import ArrayVariableValueItem
|
18
19
|
from .array_vellum_value import ArrayVellumValue
|
@@ -55,10 +56,15 @@ from .code_execution_node_result_data import CodeExecutionNodeResultData
|
|
55
56
|
from .code_execution_node_result_output import CodeExecutionNodeResultOutput
|
56
57
|
from .code_execution_node_search_results_result import CodeExecutionNodeSearchResultsResult
|
57
58
|
from .code_execution_node_string_result import CodeExecutionNodeStringResult
|
59
|
+
from .code_execution_package_request import CodeExecutionPackageRequest
|
60
|
+
from .code_execution_runtime import CodeExecutionRuntime
|
61
|
+
from .code_executor_input_request import CodeExecutorInputRequest
|
62
|
+
from .code_executor_response import CodeExecutorResponse
|
58
63
|
from .compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
59
64
|
from .compile_prompt_meta import CompilePromptMeta
|
60
65
|
from .components_schemas_pdf_search_result_meta_source import ComponentsSchemasPdfSearchResultMetaSource
|
61
66
|
from .components_schemas_pdf_search_result_meta_source_request import ComponentsSchemasPdfSearchResultMetaSourceRequest
|
67
|
+
from .condition_combinator import ConditionCombinator
|
62
68
|
from .conditional_node_result import ConditionalNodeResult
|
63
69
|
from .conditional_node_result_data import ConditionalNodeResultData
|
64
70
|
from .create_test_suite_test_case_request import CreateTestSuiteTestCaseRequest
|
@@ -80,6 +86,7 @@ from .entity_status import EntityStatus
|
|
80
86
|
from .environment_enum import EnvironmentEnum
|
81
87
|
from .ephemeral_prompt_cache_config_request import EphemeralPromptCacheConfigRequest
|
82
88
|
from .ephemeral_prompt_cache_config_type_enum import EphemeralPromptCacheConfigTypeEnum
|
89
|
+
from .error_input_request import ErrorInputRequest
|
83
90
|
from .error_variable_value import ErrorVariableValue
|
84
91
|
from .error_vellum_value import ErrorVellumValue
|
85
92
|
from .error_vellum_value_request import ErrorVellumValueRequest
|
@@ -111,6 +118,7 @@ from .function_call_chat_message_content import FunctionCallChatMessageContent
|
|
111
118
|
from .function_call_chat_message_content_request import FunctionCallChatMessageContentRequest
|
112
119
|
from .function_call_chat_message_content_value import FunctionCallChatMessageContentValue
|
113
120
|
from .function_call_chat_message_content_value_request import FunctionCallChatMessageContentValueRequest
|
121
|
+
from .function_call_input_request import FunctionCallInputRequest
|
114
122
|
from .function_call_request import FunctionCallRequest
|
115
123
|
from .function_call_variable_value import FunctionCallVariableValue
|
116
124
|
from .function_call_vellum_value import FunctionCallVellumValue
|
@@ -126,6 +134,16 @@ from .generate_result_error import GenerateResultError
|
|
126
134
|
from .generate_stream_response import GenerateStreamResponse
|
127
135
|
from .generate_stream_result import GenerateStreamResult
|
128
136
|
from .generate_stream_result_data import GenerateStreamResultData
|
137
|
+
from .google_vertex_ai_vectorizer_config import GoogleVertexAiVectorizerConfig
|
138
|
+
from .google_vertex_ai_vectorizer_config_request import GoogleVertexAiVectorizerConfigRequest
|
139
|
+
from .google_vertex_ai_vectorizer_text_embedding_004 import GoogleVertexAiVectorizerTextEmbedding004
|
140
|
+
from .google_vertex_ai_vectorizer_text_embedding_004_request import GoogleVertexAiVectorizerTextEmbedding004Request
|
141
|
+
from .google_vertex_ai_vectorizer_text_multilingual_embedding_002 import (
|
142
|
+
GoogleVertexAiVectorizerTextMultilingualEmbedding002,
|
143
|
+
)
|
144
|
+
from .google_vertex_ai_vectorizer_text_multilingual_embedding_002_request import (
|
145
|
+
GoogleVertexAiVectorizerTextMultilingualEmbedding002Request,
|
146
|
+
)
|
129
147
|
from .hkunlp_instructor_xl_vectorizer import HkunlpInstructorXlVectorizer
|
130
148
|
from .hkunlp_instructor_xl_vectorizer_request import HkunlpInstructorXlVectorizerRequest
|
131
149
|
from .image_chat_message_content import ImageChatMessageContent
|
@@ -158,6 +176,9 @@ from .merge_node_result_data import MergeNodeResultData
|
|
158
176
|
from .metadata_filter_config_request import MetadataFilterConfigRequest
|
159
177
|
from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
|
160
178
|
from .metadata_filter_rule_request import MetadataFilterRuleRequest
|
179
|
+
from .metadata_filters_request import MetadataFiltersRequest
|
180
|
+
from .metric_definition_execution import MetricDefinitionExecution
|
181
|
+
from .metric_definition_input_request import MetricDefinitionInputRequest
|
161
182
|
from .metric_node_result import MetricNodeResult
|
162
183
|
from .ml_model_usage import MlModelUsage
|
163
184
|
from .named_scenario_input_chat_history_variable_value_request import NamedScenarioInputChatHistoryVariableValueRequest
|
@@ -202,6 +223,7 @@ from .node_output_compiled_string_value import NodeOutputCompiledStringValue
|
|
202
223
|
from .node_output_compiled_value import NodeOutputCompiledValue
|
203
224
|
from .normalized_log_probs import NormalizedLogProbs
|
204
225
|
from .normalized_token_log_probs import NormalizedTokenLogProbs
|
226
|
+
from .number_input_request import NumberInputRequest
|
205
227
|
from .number_variable_value import NumberVariableValue
|
206
228
|
from .number_vellum_value import NumberVellumValue
|
207
229
|
from .number_vellum_value_request import NumberVellumValueRequest
|
@@ -271,6 +293,7 @@ from .search_result_merging_request import SearchResultMergingRequest
|
|
271
293
|
from .search_result_meta import SearchResultMeta
|
272
294
|
from .search_result_meta_request import SearchResultMetaRequest
|
273
295
|
from .search_result_request import SearchResultRequest
|
296
|
+
from .search_results_input_request import SearchResultsInputRequest
|
274
297
|
from .search_results_variable_value import SearchResultsVariableValue
|
275
298
|
from .search_results_vellum_value import SearchResultsVellumValue
|
276
299
|
from .search_results_vellum_value_request import SearchResultsVellumValueRequest
|
@@ -393,6 +416,11 @@ from .vellum_error_code_enum import VellumErrorCodeEnum
|
|
393
416
|
from .vellum_error_request import VellumErrorRequest
|
394
417
|
from .vellum_image import VellumImage
|
395
418
|
from .vellum_image_request import VellumImageRequest
|
419
|
+
from .vellum_value import VellumValue
|
420
|
+
from .vellum_value_logical_condition_group_request import VellumValueLogicalConditionGroupRequest
|
421
|
+
from .vellum_value_logical_condition_request import VellumValueLogicalConditionRequest
|
422
|
+
from .vellum_value_logical_expression_request import VellumValueLogicalExpressionRequest
|
423
|
+
from .vellum_value_request import VellumValueRequest
|
396
424
|
from .vellum_variable import VellumVariable
|
397
425
|
from .vellum_variable_request import VellumVariableRequest
|
398
426
|
from .vellum_variable_type import VellumVariableType
|
@@ -452,6 +480,7 @@ __all__ = [
|
|
452
480
|
"ArrayChatMessageContentItem",
|
453
481
|
"ArrayChatMessageContentItemRequest",
|
454
482
|
"ArrayChatMessageContentRequest",
|
483
|
+
"ArrayInputRequest",
|
455
484
|
"ArrayVariableValue",
|
456
485
|
"ArrayVariableValueItem",
|
457
486
|
"ArrayVellumValue",
|
@@ -486,10 +515,15 @@ __all__ = [
|
|
486
515
|
"CodeExecutionNodeResultOutput",
|
487
516
|
"CodeExecutionNodeSearchResultsResult",
|
488
517
|
"CodeExecutionNodeStringResult",
|
518
|
+
"CodeExecutionPackageRequest",
|
519
|
+
"CodeExecutionRuntime",
|
520
|
+
"CodeExecutorInputRequest",
|
521
|
+
"CodeExecutorResponse",
|
489
522
|
"CompilePromptDeploymentExpandMetaRequest",
|
490
523
|
"CompilePromptMeta",
|
491
524
|
"ComponentsSchemasPdfSearchResultMetaSource",
|
492
525
|
"ComponentsSchemasPdfSearchResultMetaSourceRequest",
|
526
|
+
"ConditionCombinator",
|
493
527
|
"ConditionalNodeResult",
|
494
528
|
"ConditionalNodeResultData",
|
495
529
|
"CreateTestSuiteTestCaseRequest",
|
@@ -511,6 +545,7 @@ __all__ = [
|
|
511
545
|
"EnvironmentEnum",
|
512
546
|
"EphemeralPromptCacheConfigRequest",
|
513
547
|
"EphemeralPromptCacheConfigTypeEnum",
|
548
|
+
"ErrorInputRequest",
|
514
549
|
"ErrorVariableValue",
|
515
550
|
"ErrorVellumValue",
|
516
551
|
"ErrorVellumValueRequest",
|
@@ -542,6 +577,7 @@ __all__ = [
|
|
542
577
|
"FunctionCallChatMessageContentRequest",
|
543
578
|
"FunctionCallChatMessageContentValue",
|
544
579
|
"FunctionCallChatMessageContentValueRequest",
|
580
|
+
"FunctionCallInputRequest",
|
545
581
|
"FunctionCallRequest",
|
546
582
|
"FunctionCallVariableValue",
|
547
583
|
"FunctionCallVellumValue",
|
@@ -557,6 +593,12 @@ __all__ = [
|
|
557
593
|
"GenerateStreamResponse",
|
558
594
|
"GenerateStreamResult",
|
559
595
|
"GenerateStreamResultData",
|
596
|
+
"GoogleVertexAiVectorizerConfig",
|
597
|
+
"GoogleVertexAiVectorizerConfigRequest",
|
598
|
+
"GoogleVertexAiVectorizerTextEmbedding004",
|
599
|
+
"GoogleVertexAiVectorizerTextEmbedding004Request",
|
600
|
+
"GoogleVertexAiVectorizerTextMultilingualEmbedding002",
|
601
|
+
"GoogleVertexAiVectorizerTextMultilingualEmbedding002Request",
|
560
602
|
"HkunlpInstructorXlVectorizer",
|
561
603
|
"HkunlpInstructorXlVectorizerRequest",
|
562
604
|
"ImageChatMessageContent",
|
@@ -589,6 +631,9 @@ __all__ = [
|
|
589
631
|
"MetadataFilterConfigRequest",
|
590
632
|
"MetadataFilterRuleCombinator",
|
591
633
|
"MetadataFilterRuleRequest",
|
634
|
+
"MetadataFiltersRequest",
|
635
|
+
"MetricDefinitionExecution",
|
636
|
+
"MetricDefinitionInputRequest",
|
592
637
|
"MetricNodeResult",
|
593
638
|
"MlModelUsage",
|
594
639
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
@@ -633,6 +678,7 @@ __all__ = [
|
|
633
678
|
"NodeOutputCompiledValue",
|
634
679
|
"NormalizedLogProbs",
|
635
680
|
"NormalizedTokenLogProbs",
|
681
|
+
"NumberInputRequest",
|
636
682
|
"NumberVariableValue",
|
637
683
|
"NumberVellumValue",
|
638
684
|
"NumberVellumValueRequest",
|
@@ -702,6 +748,7 @@ __all__ = [
|
|
702
748
|
"SearchResultMeta",
|
703
749
|
"SearchResultMetaRequest",
|
704
750
|
"SearchResultRequest",
|
751
|
+
"SearchResultsInputRequest",
|
705
752
|
"SearchResultsVariableValue",
|
706
753
|
"SearchResultsVellumValue",
|
707
754
|
"SearchResultsVellumValueRequest",
|
@@ -820,6 +867,11 @@ __all__ = [
|
|
820
867
|
"VellumErrorRequest",
|
821
868
|
"VellumImage",
|
822
869
|
"VellumImageRequest",
|
870
|
+
"VellumValue",
|
871
|
+
"VellumValueLogicalConditionGroupRequest",
|
872
|
+
"VellumValueLogicalConditionRequest",
|
873
|
+
"VellumValueLogicalExpressionRequest",
|
874
|
+
"VellumValueRequest",
|
823
875
|
"VellumVariable",
|
824
876
|
"VellumVariableRequest",
|
825
877
|
"VellumVariableType",
|
@@ -0,0 +1,36 @@
|
|
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 pydantic
|
7
|
+
import typing
|
8
|
+
from .array_vellum_value_item_request import ArrayVellumValueItemRequest
|
9
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
11
|
+
|
12
|
+
|
13
|
+
class ArrayInputRequest(UniversalBaseModel):
|
14
|
+
"""
|
15
|
+
A user input representing a Vellum Array value
|
16
|
+
"""
|
17
|
+
|
18
|
+
name: str = pydantic.Field()
|
19
|
+
"""
|
20
|
+
The variable's name
|
21
|
+
"""
|
22
|
+
|
23
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
24
|
+
value: typing.List[ArrayVellumValueItemRequest]
|
25
|
+
|
26
|
+
if IS_PYDANTIC_V2:
|
27
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
28
|
+
else:
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
extra = pydantic.Extra.allow
|
34
|
+
|
35
|
+
|
36
|
+
update_forward_refs(ArrayVellumValueRequest, ArrayInputRequest=ArrayInputRequest)
|
@@ -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
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
5
|
+
import typing
|
6
|
+
import pydantic
|
7
|
+
|
8
|
+
|
9
|
+
class CodeExecutionPackageRequest(UniversalBaseModel):
|
10
|
+
version: str
|
11
|
+
name: str
|
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,22 @@
|
|
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
|
+
from .search_results_input_request import SearchResultsInputRequest
|
9
|
+
from .error_input_request import ErrorInputRequest
|
10
|
+
from .array_input_request import ArrayInputRequest
|
11
|
+
from .function_call_input_request import FunctionCallInputRequest
|
12
|
+
|
13
|
+
CodeExecutorInputRequest = typing.Union[
|
14
|
+
StringInputRequest,
|
15
|
+
JsonInputRequest,
|
16
|
+
ChatHistoryInputRequest,
|
17
|
+
NumberInputRequest,
|
18
|
+
SearchResultsInputRequest,
|
19
|
+
ErrorInputRequest,
|
20
|
+
ArrayInputRequest,
|
21
|
+
FunctionCallInputRequest,
|
22
|
+
]
|
@@ -0,0 +1,27 @@
|
|
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 import ArrayVellumValue
|
6
|
+
from .vellum_value import VellumValue
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
import typing
|
9
|
+
import pydantic
|
10
|
+
from ..core.pydantic_utilities import update_forward_refs
|
11
|
+
|
12
|
+
|
13
|
+
class CodeExecutorResponse(UniversalBaseModel):
|
14
|
+
log: str
|
15
|
+
output: VellumValue
|
16
|
+
|
17
|
+
if IS_PYDANTIC_V2:
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
19
|
+
else:
|
20
|
+
|
21
|
+
class Config:
|
22
|
+
frozen = True
|
23
|
+
smart_union = True
|
24
|
+
extra = pydantic.Extra.allow
|
25
|
+
|
26
|
+
|
27
|
+
update_forward_refs(ArrayVellumValue, CodeExecutorResponse=CodeExecutorResponse)
|
@@ -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 .vellum_error_request import VellumErrorRequest
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
|
9
|
+
|
10
|
+
class ErrorInputRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Error value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["ERROR"] = "ERROR"
|
21
|
+
value: VellumErrorRequest
|
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,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 .function_call_request import FunctionCallRequest
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
8
|
+
|
9
|
+
|
10
|
+
class FunctionCallInputRequest(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Function Call value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
21
|
+
value: FunctionCallRequest
|
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,20 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
5
|
+
import typing
|
6
|
+
import pydantic
|
7
|
+
|
8
|
+
|
9
|
+
class GoogleVertexAiVectorizerConfig(UniversalBaseModel):
|
10
|
+
project_id: str
|
11
|
+
region: str
|
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,20 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
4
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
5
|
+
import typing
|
6
|
+
import pydantic
|
7
|
+
|
8
|
+
|
9
|
+
class GoogleVertexAiVectorizerConfigRequest(UniversalBaseModel):
|
10
|
+
project_id: str
|
11
|
+
region: str
|
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,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]
|