vellum-ai 0.3.22__py3-none-any.whl → 0.3.23__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +44 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/types/__init__.py +46 -0
- vellum/types/external_test_case_execution.py +35 -0
- vellum/types/external_test_case_execution_request.py +35 -0
- vellum/types/named_test_case_chat_history_variable_value.py +35 -0
- vellum/types/named_test_case_error_variable_value.py +35 -0
- vellum/types/named_test_case_json_variable_value.py +34 -0
- vellum/types/named_test_case_number_variable_value.py +34 -0
- vellum/types/named_test_case_search_results_variable_value.py +35 -0
- vellum/types/named_test_case_string_variable_value.py +34 -0
- vellum/types/named_test_case_variable_value.py +82 -0
- vellum/types/sandbox_scenario.py +4 -0
- vellum/types/test_case_chat_history_variable_value.py +5 -0
- vellum/types/test_case_error_variable_value.py +5 -0
- vellum/types/test_case_json_variable_value.py +5 -0
- vellum/types/test_case_number_variable_value.py +5 -0
- vellum/types/test_case_search_results_variable_value.py +5 -0
- vellum/types/test_case_string_variable_value.py +5 -0
- vellum/types/test_suite_run_exec_config.py +14 -1
- vellum/types/test_suite_run_exec_config_request.py +14 -1
- vellum/types/test_suite_run_external_exec_config.py +38 -0
- vellum/types/test_suite_run_external_exec_config_data.py +33 -0
- vellum/types/test_suite_run_external_exec_config_data_request.py +33 -0
- vellum/types/test_suite_run_external_exec_config_request.py +38 -0
- vellum/types/test_suite_run_external_exec_config_type_enum.py +5 -0
- {vellum_ai-0.3.22.dist-info → vellum_ai-0.3.23.dist-info}/METADATA +2 -1
- {vellum_ai-0.3.22.dist-info → vellum_ai-0.3.23.dist-info}/RECORD +30 -16
- {vellum_ai-0.3.22.dist-info → vellum_ai-0.3.23.dist-info}/LICENSE +0 -0
- {vellum_ai-0.3.22.dist-info → vellum_ai-0.3.23.dist-info}/WHEEL +0 -0
vellum/__init__.py
CHANGED
@@ -104,6 +104,8 @@ from .types import (
|
|
104
104
|
ExecutionVellumValue_Number,
|
105
105
|
ExecutionVellumValue_SearchResults,
|
106
106
|
ExecutionVellumValue_String,
|
107
|
+
ExternalTestCaseExecution,
|
108
|
+
ExternalTestCaseExecutionRequest,
|
107
109
|
FinishReasonEnum,
|
108
110
|
FulfilledEnum,
|
109
111
|
FulfilledExecutePromptEvent,
|
@@ -155,12 +157,19 @@ from .types import (
|
|
155
157
|
ModelVersionRead,
|
156
158
|
ModelVersionReadStatusEnum,
|
157
159
|
ModelVersionSandboxSnapshot,
|
160
|
+
NamedTestCaseChatHistoryVariableValue,
|
158
161
|
NamedTestCaseChatHistoryVariableValueRequest,
|
162
|
+
NamedTestCaseErrorVariableValue,
|
159
163
|
NamedTestCaseErrorVariableValueRequest,
|
164
|
+
NamedTestCaseJsonVariableValue,
|
160
165
|
NamedTestCaseJsonVariableValueRequest,
|
166
|
+
NamedTestCaseNumberVariableValue,
|
161
167
|
NamedTestCaseNumberVariableValueRequest,
|
168
|
+
NamedTestCaseSearchResultsVariableValue,
|
162
169
|
NamedTestCaseSearchResultsVariableValueRequest,
|
170
|
+
NamedTestCaseStringVariableValue,
|
163
171
|
NamedTestCaseStringVariableValueRequest,
|
172
|
+
NamedTestCaseVariableValue,
|
164
173
|
NamedTestCaseVariableValueRequest,
|
165
174
|
NamedTestCaseVariableValueRequest_ChatHistory,
|
166
175
|
NamedTestCaseVariableValueRequest_Error,
|
@@ -168,6 +177,12 @@ from .types import (
|
|
168
177
|
NamedTestCaseVariableValueRequest_Number,
|
169
178
|
NamedTestCaseVariableValueRequest_SearchResults,
|
170
179
|
NamedTestCaseVariableValueRequest_String,
|
180
|
+
NamedTestCaseVariableValue_ChatHistory,
|
181
|
+
NamedTestCaseVariableValue_Error,
|
182
|
+
NamedTestCaseVariableValue_Json,
|
183
|
+
NamedTestCaseVariableValue_Number,
|
184
|
+
NamedTestCaseVariableValue_SearchResults,
|
185
|
+
NamedTestCaseVariableValue_String,
|
171
186
|
NodeInputCompiledArrayValue,
|
172
187
|
NodeInputCompiledChatHistoryValue,
|
173
188
|
NodeInputCompiledErrorValue,
|
@@ -350,8 +365,10 @@ from .types import (
|
|
350
365
|
TestSuiteRunExecConfig,
|
351
366
|
TestSuiteRunExecConfigRequest,
|
352
367
|
TestSuiteRunExecConfigRequest_DeploymentReleaseTag,
|
368
|
+
TestSuiteRunExecConfigRequest_External,
|
353
369
|
TestSuiteRunExecConfigRequest_WorkflowReleaseTag,
|
354
370
|
TestSuiteRunExecConfig_DeploymentReleaseTag,
|
371
|
+
TestSuiteRunExecConfig_External,
|
355
372
|
TestSuiteRunExecConfig_WorkflowReleaseTag,
|
356
373
|
TestSuiteRunExecution,
|
357
374
|
TestSuiteRunExecutionChatHistoryOutput,
|
@@ -369,6 +386,11 @@ from .types import (
|
|
369
386
|
TestSuiteRunExecutionOutput_String,
|
370
387
|
TestSuiteRunExecutionSearchResultsOutput,
|
371
388
|
TestSuiteRunExecutionStringOutput,
|
389
|
+
TestSuiteRunExternalExecConfig,
|
390
|
+
TestSuiteRunExternalExecConfigData,
|
391
|
+
TestSuiteRunExternalExecConfigDataRequest,
|
392
|
+
TestSuiteRunExternalExecConfigRequest,
|
393
|
+
TestSuiteRunExternalExecConfigTypeEnum,
|
372
394
|
TestSuiteRunMetricErrorOutput,
|
373
395
|
TestSuiteRunMetricErrorOutputTypeEnum,
|
374
396
|
TestSuiteRunMetricNumberOutput,
|
@@ -598,6 +620,8 @@ __all__ = [
|
|
598
620
|
"ExecutionVellumValue_Number",
|
599
621
|
"ExecutionVellumValue_SearchResults",
|
600
622
|
"ExecutionVellumValue_String",
|
623
|
+
"ExternalTestCaseExecution",
|
624
|
+
"ExternalTestCaseExecutionRequest",
|
601
625
|
"FinishReasonEnum",
|
602
626
|
"ForbiddenError",
|
603
627
|
"FulfilledEnum",
|
@@ -651,12 +675,19 @@ __all__ = [
|
|
651
675
|
"ModelVersionRead",
|
652
676
|
"ModelVersionReadStatusEnum",
|
653
677
|
"ModelVersionSandboxSnapshot",
|
678
|
+
"NamedTestCaseChatHistoryVariableValue",
|
654
679
|
"NamedTestCaseChatHistoryVariableValueRequest",
|
680
|
+
"NamedTestCaseErrorVariableValue",
|
655
681
|
"NamedTestCaseErrorVariableValueRequest",
|
682
|
+
"NamedTestCaseJsonVariableValue",
|
656
683
|
"NamedTestCaseJsonVariableValueRequest",
|
684
|
+
"NamedTestCaseNumberVariableValue",
|
657
685
|
"NamedTestCaseNumberVariableValueRequest",
|
686
|
+
"NamedTestCaseSearchResultsVariableValue",
|
658
687
|
"NamedTestCaseSearchResultsVariableValueRequest",
|
688
|
+
"NamedTestCaseStringVariableValue",
|
659
689
|
"NamedTestCaseStringVariableValueRequest",
|
690
|
+
"NamedTestCaseVariableValue",
|
660
691
|
"NamedTestCaseVariableValueRequest",
|
661
692
|
"NamedTestCaseVariableValueRequest_ChatHistory",
|
662
693
|
"NamedTestCaseVariableValueRequest_Error",
|
@@ -664,6 +695,12 @@ __all__ = [
|
|
664
695
|
"NamedTestCaseVariableValueRequest_Number",
|
665
696
|
"NamedTestCaseVariableValueRequest_SearchResults",
|
666
697
|
"NamedTestCaseVariableValueRequest_String",
|
698
|
+
"NamedTestCaseVariableValue_ChatHistory",
|
699
|
+
"NamedTestCaseVariableValue_Error",
|
700
|
+
"NamedTestCaseVariableValue_Json",
|
701
|
+
"NamedTestCaseVariableValue_Number",
|
702
|
+
"NamedTestCaseVariableValue_SearchResults",
|
703
|
+
"NamedTestCaseVariableValue_String",
|
667
704
|
"NodeInputCompiledArrayValue",
|
668
705
|
"NodeInputCompiledChatHistoryValue",
|
669
706
|
"NodeInputCompiledErrorValue",
|
@@ -847,8 +884,10 @@ __all__ = [
|
|
847
884
|
"TestSuiteRunExecConfig",
|
848
885
|
"TestSuiteRunExecConfigRequest",
|
849
886
|
"TestSuiteRunExecConfigRequest_DeploymentReleaseTag",
|
887
|
+
"TestSuiteRunExecConfigRequest_External",
|
850
888
|
"TestSuiteRunExecConfigRequest_WorkflowReleaseTag",
|
851
889
|
"TestSuiteRunExecConfig_DeploymentReleaseTag",
|
890
|
+
"TestSuiteRunExecConfig_External",
|
852
891
|
"TestSuiteRunExecConfig_WorkflowReleaseTag",
|
853
892
|
"TestSuiteRunExecution",
|
854
893
|
"TestSuiteRunExecutionChatHistoryOutput",
|
@@ -866,6 +905,11 @@ __all__ = [
|
|
866
905
|
"TestSuiteRunExecutionOutput_String",
|
867
906
|
"TestSuiteRunExecutionSearchResultsOutput",
|
868
907
|
"TestSuiteRunExecutionStringOutput",
|
908
|
+
"TestSuiteRunExternalExecConfig",
|
909
|
+
"TestSuiteRunExternalExecConfigData",
|
910
|
+
"TestSuiteRunExternalExecConfigDataRequest",
|
911
|
+
"TestSuiteRunExternalExecConfigRequest",
|
912
|
+
"TestSuiteRunExternalExecConfigTypeEnum",
|
869
913
|
"TestSuiteRunMetricErrorOutput",
|
870
914
|
"TestSuiteRunMetricErrorOutputTypeEnum",
|
871
915
|
"TestSuiteRunMetricNumberOutput",
|
vellum/core/client_wrapper.py
CHANGED
@@ -18,7 +18,7 @@ class BaseClientWrapper:
|
|
18
18
|
headers: typing.Dict[str, str] = {
|
19
19
|
"X-Fern-Language": "Python",
|
20
20
|
"X-Fern-SDK-Name": "vellum-ai",
|
21
|
-
"X-Fern-SDK-Version": "0.3.
|
21
|
+
"X-Fern-SDK-Version": "0.3.23",
|
22
22
|
}
|
23
23
|
headers["X_API_KEY"] = self.api_key
|
24
24
|
return headers
|
vellum/types/__init__.py
CHANGED
@@ -123,6 +123,8 @@ from .execution_vellum_value import (
|
|
123
123
|
ExecutionVellumValue_SearchResults,
|
124
124
|
ExecutionVellumValue_String,
|
125
125
|
)
|
126
|
+
from .external_test_case_execution import ExternalTestCaseExecution
|
127
|
+
from .external_test_case_execution_request import ExternalTestCaseExecutionRequest
|
126
128
|
from .finish_reason_enum import FinishReasonEnum
|
127
129
|
from .fulfilled_enum import FulfilledEnum
|
128
130
|
from .fulfilled_execute_prompt_event import FulfilledExecutePromptEvent
|
@@ -172,12 +174,27 @@ from .model_version_exec_config_parameters import ModelVersionExecConfigParamete
|
|
172
174
|
from .model_version_read import ModelVersionRead
|
173
175
|
from .model_version_read_status_enum import ModelVersionReadStatusEnum
|
174
176
|
from .model_version_sandbox_snapshot import ModelVersionSandboxSnapshot
|
177
|
+
from .named_test_case_chat_history_variable_value import NamedTestCaseChatHistoryVariableValue
|
175
178
|
from .named_test_case_chat_history_variable_value_request import NamedTestCaseChatHistoryVariableValueRequest
|
179
|
+
from .named_test_case_error_variable_value import NamedTestCaseErrorVariableValue
|
176
180
|
from .named_test_case_error_variable_value_request import NamedTestCaseErrorVariableValueRequest
|
181
|
+
from .named_test_case_json_variable_value import NamedTestCaseJsonVariableValue
|
177
182
|
from .named_test_case_json_variable_value_request import NamedTestCaseJsonVariableValueRequest
|
183
|
+
from .named_test_case_number_variable_value import NamedTestCaseNumberVariableValue
|
178
184
|
from .named_test_case_number_variable_value_request import NamedTestCaseNumberVariableValueRequest
|
185
|
+
from .named_test_case_search_results_variable_value import NamedTestCaseSearchResultsVariableValue
|
179
186
|
from .named_test_case_search_results_variable_value_request import NamedTestCaseSearchResultsVariableValueRequest
|
187
|
+
from .named_test_case_string_variable_value import NamedTestCaseStringVariableValue
|
180
188
|
from .named_test_case_string_variable_value_request import NamedTestCaseStringVariableValueRequest
|
189
|
+
from .named_test_case_variable_value import (
|
190
|
+
NamedTestCaseVariableValue,
|
191
|
+
NamedTestCaseVariableValue_ChatHistory,
|
192
|
+
NamedTestCaseVariableValue_Error,
|
193
|
+
NamedTestCaseVariableValue_Json,
|
194
|
+
NamedTestCaseVariableValue_Number,
|
195
|
+
NamedTestCaseVariableValue_SearchResults,
|
196
|
+
NamedTestCaseVariableValue_String,
|
197
|
+
)
|
181
198
|
from .named_test_case_variable_value_request import (
|
182
199
|
NamedTestCaseVariableValueRequest,
|
183
200
|
NamedTestCaseVariableValueRequest_ChatHistory,
|
@@ -389,11 +406,13 @@ from .test_suite_run_deployment_release_tag_exec_config_type_enum import (
|
|
389
406
|
from .test_suite_run_exec_config import (
|
390
407
|
TestSuiteRunExecConfig,
|
391
408
|
TestSuiteRunExecConfig_DeploymentReleaseTag,
|
409
|
+
TestSuiteRunExecConfig_External,
|
392
410
|
TestSuiteRunExecConfig_WorkflowReleaseTag,
|
393
411
|
)
|
394
412
|
from .test_suite_run_exec_config_request import (
|
395
413
|
TestSuiteRunExecConfigRequest,
|
396
414
|
TestSuiteRunExecConfigRequest_DeploymentReleaseTag,
|
415
|
+
TestSuiteRunExecConfigRequest_External,
|
397
416
|
TestSuiteRunExecConfigRequest_WorkflowReleaseTag,
|
398
417
|
)
|
399
418
|
from .test_suite_run_execution import TestSuiteRunExecution
|
@@ -414,6 +433,11 @@ from .test_suite_run_execution_output import (
|
|
414
433
|
)
|
415
434
|
from .test_suite_run_execution_search_results_output import TestSuiteRunExecutionSearchResultsOutput
|
416
435
|
from .test_suite_run_execution_string_output import TestSuiteRunExecutionStringOutput
|
436
|
+
from .test_suite_run_external_exec_config import TestSuiteRunExternalExecConfig
|
437
|
+
from .test_suite_run_external_exec_config_data import TestSuiteRunExternalExecConfigData
|
438
|
+
from .test_suite_run_external_exec_config_data_request import TestSuiteRunExternalExecConfigDataRequest
|
439
|
+
from .test_suite_run_external_exec_config_request import TestSuiteRunExternalExecConfigRequest
|
440
|
+
from .test_suite_run_external_exec_config_type_enum import TestSuiteRunExternalExecConfigTypeEnum
|
417
441
|
from .test_suite_run_metric_error_output import TestSuiteRunMetricErrorOutput
|
418
442
|
from .test_suite_run_metric_error_output_type_enum import TestSuiteRunMetricErrorOutputTypeEnum
|
419
443
|
from .test_suite_run_metric_number_output import TestSuiteRunMetricNumberOutput
|
@@ -632,6 +656,8 @@ __all__ = [
|
|
632
656
|
"ExecutionVellumValue_Number",
|
633
657
|
"ExecutionVellumValue_SearchResults",
|
634
658
|
"ExecutionVellumValue_String",
|
659
|
+
"ExternalTestCaseExecution",
|
660
|
+
"ExternalTestCaseExecutionRequest",
|
635
661
|
"FinishReasonEnum",
|
636
662
|
"FulfilledEnum",
|
637
663
|
"FulfilledExecutePromptEvent",
|
@@ -683,12 +709,19 @@ __all__ = [
|
|
683
709
|
"ModelVersionRead",
|
684
710
|
"ModelVersionReadStatusEnum",
|
685
711
|
"ModelVersionSandboxSnapshot",
|
712
|
+
"NamedTestCaseChatHistoryVariableValue",
|
686
713
|
"NamedTestCaseChatHistoryVariableValueRequest",
|
714
|
+
"NamedTestCaseErrorVariableValue",
|
687
715
|
"NamedTestCaseErrorVariableValueRequest",
|
716
|
+
"NamedTestCaseJsonVariableValue",
|
688
717
|
"NamedTestCaseJsonVariableValueRequest",
|
718
|
+
"NamedTestCaseNumberVariableValue",
|
689
719
|
"NamedTestCaseNumberVariableValueRequest",
|
720
|
+
"NamedTestCaseSearchResultsVariableValue",
|
690
721
|
"NamedTestCaseSearchResultsVariableValueRequest",
|
722
|
+
"NamedTestCaseStringVariableValue",
|
691
723
|
"NamedTestCaseStringVariableValueRequest",
|
724
|
+
"NamedTestCaseVariableValue",
|
692
725
|
"NamedTestCaseVariableValueRequest",
|
693
726
|
"NamedTestCaseVariableValueRequest_ChatHistory",
|
694
727
|
"NamedTestCaseVariableValueRequest_Error",
|
@@ -696,6 +729,12 @@ __all__ = [
|
|
696
729
|
"NamedTestCaseVariableValueRequest_Number",
|
697
730
|
"NamedTestCaseVariableValueRequest_SearchResults",
|
698
731
|
"NamedTestCaseVariableValueRequest_String",
|
732
|
+
"NamedTestCaseVariableValue_ChatHistory",
|
733
|
+
"NamedTestCaseVariableValue_Error",
|
734
|
+
"NamedTestCaseVariableValue_Json",
|
735
|
+
"NamedTestCaseVariableValue_Number",
|
736
|
+
"NamedTestCaseVariableValue_SearchResults",
|
737
|
+
"NamedTestCaseVariableValue_String",
|
699
738
|
"NodeInputCompiledArrayValue",
|
700
739
|
"NodeInputCompiledChatHistoryValue",
|
701
740
|
"NodeInputCompiledErrorValue",
|
@@ -878,8 +917,10 @@ __all__ = [
|
|
878
917
|
"TestSuiteRunExecConfig",
|
879
918
|
"TestSuiteRunExecConfigRequest",
|
880
919
|
"TestSuiteRunExecConfigRequest_DeploymentReleaseTag",
|
920
|
+
"TestSuiteRunExecConfigRequest_External",
|
881
921
|
"TestSuiteRunExecConfigRequest_WorkflowReleaseTag",
|
882
922
|
"TestSuiteRunExecConfig_DeploymentReleaseTag",
|
923
|
+
"TestSuiteRunExecConfig_External",
|
883
924
|
"TestSuiteRunExecConfig_WorkflowReleaseTag",
|
884
925
|
"TestSuiteRunExecution",
|
885
926
|
"TestSuiteRunExecutionChatHistoryOutput",
|
@@ -897,6 +938,11 @@ __all__ = [
|
|
897
938
|
"TestSuiteRunExecutionOutput_String",
|
898
939
|
"TestSuiteRunExecutionSearchResultsOutput",
|
899
940
|
"TestSuiteRunExecutionStringOutput",
|
941
|
+
"TestSuiteRunExternalExecConfig",
|
942
|
+
"TestSuiteRunExternalExecConfigData",
|
943
|
+
"TestSuiteRunExternalExecConfigDataRequest",
|
944
|
+
"TestSuiteRunExternalExecConfigRequest",
|
945
|
+
"TestSuiteRunExternalExecConfigTypeEnum",
|
900
946
|
"TestSuiteRunMetricErrorOutput",
|
901
947
|
"TestSuiteRunMetricErrorOutputTypeEnum",
|
902
948
|
"TestSuiteRunMetricNumberOutput",
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .named_test_case_variable_value import NamedTestCaseVariableValue
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class ExternalTestCaseExecution(pydantic.BaseModel):
|
16
|
+
outputs: typing.List[NamedTestCaseVariableValue] = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The output values of a callable that was executed against a Test Case outside of Vellum
|
19
|
+
"""
|
20
|
+
|
21
|
+
test_case_id: str
|
22
|
+
|
23
|
+
def json(self, **kwargs: typing.Any) -> str:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().json(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
+
return super().dict(**kwargs_with_defaults)
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class ExternalTestCaseExecutionRequest(pydantic.BaseModel):
|
16
|
+
outputs: typing.List[NamedTestCaseVariableValueRequest] = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The output values of a callable that was executed against a Test Case outside of Vellum
|
19
|
+
"""
|
20
|
+
|
21
|
+
test_case_id: str
|
22
|
+
|
23
|
+
def json(self, **kwargs: typing.Any) -> str:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().json(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
+
return super().dict(**kwargs_with_defaults)
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .chat_message import ChatMessage
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class NamedTestCaseChatHistoryVariableValue(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
Named Test Case value that is of type CHAT_HISTORY
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: typing.Optional[typing.List[ChatMessage]] = None
|
21
|
+
name: str
|
22
|
+
|
23
|
+
def json(self, **kwargs: typing.Any) -> str:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().json(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
+
return super().dict(**kwargs_with_defaults)
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .vellum_error import VellumError
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class NamedTestCaseErrorVariableValue(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
Named Test Case value that is of type ERROR
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: typing.Optional[VellumError] = None
|
21
|
+
name: str
|
22
|
+
|
23
|
+
def json(self, **kwargs: typing.Any) -> str:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().json(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
+
return super().dict(**kwargs_with_defaults)
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
13
|
+
|
14
|
+
class NamedTestCaseJsonVariableValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
Named Test Case value that is of type JSON
|
17
|
+
"""
|
18
|
+
|
19
|
+
value: typing.Optional[typing.Dict[str, typing.Any]] = None
|
20
|
+
name: str
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
extra = pydantic.Extra.allow
|
34
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
13
|
+
|
14
|
+
class NamedTestCaseNumberVariableValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
Named Test Case value that is of type NUMBER
|
17
|
+
"""
|
18
|
+
|
19
|
+
value: typing.Optional[float] = None
|
20
|
+
name: str
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
extra = pydantic.Extra.allow
|
34
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .search_result import SearchResult
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class NamedTestCaseSearchResultsVariableValue(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
Named Test Case value that is of type SEARCH_RESULTS
|
18
|
+
"""
|
19
|
+
|
20
|
+
value: typing.Optional[typing.List[SearchResult]] = None
|
21
|
+
name: str
|
22
|
+
|
23
|
+
def json(self, **kwargs: typing.Any) -> str:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().json(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
28
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
+
return super().dict(**kwargs_with_defaults)
|
30
|
+
|
31
|
+
class Config:
|
32
|
+
frozen = True
|
33
|
+
smart_union = True
|
34
|
+
extra = pydantic.Extra.allow
|
35
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
|
8
|
+
try:
|
9
|
+
import pydantic.v1 as pydantic # type: ignore
|
10
|
+
except ImportError:
|
11
|
+
import pydantic # type: ignore
|
12
|
+
|
13
|
+
|
14
|
+
class NamedTestCaseStringVariableValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
Named Test Case value that is of type STRING
|
17
|
+
"""
|
18
|
+
|
19
|
+
value: typing.Optional[str] = None
|
20
|
+
name: str
|
21
|
+
|
22
|
+
def json(self, **kwargs: typing.Any) -> str:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().json(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().dict(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
class Config:
|
31
|
+
frozen = True
|
32
|
+
smart_union = True
|
33
|
+
extra = pydantic.Extra.allow
|
34
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
|
5
|
+
import typing
|
6
|
+
|
7
|
+
from .named_test_case_chat_history_variable_value import NamedTestCaseChatHistoryVariableValue
|
8
|
+
from .named_test_case_error_variable_value import NamedTestCaseErrorVariableValue
|
9
|
+
from .named_test_case_json_variable_value import NamedTestCaseJsonVariableValue
|
10
|
+
from .named_test_case_number_variable_value import NamedTestCaseNumberVariableValue
|
11
|
+
from .named_test_case_search_results_variable_value import NamedTestCaseSearchResultsVariableValue
|
12
|
+
from .named_test_case_string_variable_value import NamedTestCaseStringVariableValue
|
13
|
+
|
14
|
+
|
15
|
+
class NamedTestCaseVariableValue_String(NamedTestCaseStringVariableValue):
|
16
|
+
type: typing.Literal["STRING"] = "STRING"
|
17
|
+
|
18
|
+
class Config:
|
19
|
+
frozen = True
|
20
|
+
smart_union = True
|
21
|
+
allow_population_by_field_name = True
|
22
|
+
populate_by_name = True
|
23
|
+
|
24
|
+
|
25
|
+
class NamedTestCaseVariableValue_Number(NamedTestCaseNumberVariableValue):
|
26
|
+
type: typing.Literal["NUMBER"] = "NUMBER"
|
27
|
+
|
28
|
+
class Config:
|
29
|
+
frozen = True
|
30
|
+
smart_union = True
|
31
|
+
allow_population_by_field_name = True
|
32
|
+
populate_by_name = True
|
33
|
+
|
34
|
+
|
35
|
+
class NamedTestCaseVariableValue_Json(NamedTestCaseJsonVariableValue):
|
36
|
+
type: typing.Literal["JSON"] = "JSON"
|
37
|
+
|
38
|
+
class Config:
|
39
|
+
frozen = True
|
40
|
+
smart_union = True
|
41
|
+
allow_population_by_field_name = True
|
42
|
+
populate_by_name = True
|
43
|
+
|
44
|
+
|
45
|
+
class NamedTestCaseVariableValue_ChatHistory(NamedTestCaseChatHistoryVariableValue):
|
46
|
+
type: typing.Literal["CHAT_HISTORY"] = "CHAT_HISTORY"
|
47
|
+
|
48
|
+
class Config:
|
49
|
+
frozen = True
|
50
|
+
smart_union = True
|
51
|
+
allow_population_by_field_name = True
|
52
|
+
populate_by_name = True
|
53
|
+
|
54
|
+
|
55
|
+
class NamedTestCaseVariableValue_SearchResults(NamedTestCaseSearchResultsVariableValue):
|
56
|
+
type: typing.Literal["SEARCH_RESULTS"] = "SEARCH_RESULTS"
|
57
|
+
|
58
|
+
class Config:
|
59
|
+
frozen = True
|
60
|
+
smart_union = True
|
61
|
+
allow_population_by_field_name = True
|
62
|
+
populate_by_name = True
|
63
|
+
|
64
|
+
|
65
|
+
class NamedTestCaseVariableValue_Error(NamedTestCaseErrorVariableValue):
|
66
|
+
type: typing.Literal["ERROR"] = "ERROR"
|
67
|
+
|
68
|
+
class Config:
|
69
|
+
frozen = True
|
70
|
+
smart_union = True
|
71
|
+
allow_population_by_field_name = True
|
72
|
+
populate_by_name = True
|
73
|
+
|
74
|
+
|
75
|
+
NamedTestCaseVariableValue = typing.Union[
|
76
|
+
NamedTestCaseVariableValue_String,
|
77
|
+
NamedTestCaseVariableValue_Number,
|
78
|
+
NamedTestCaseVariableValue_Json,
|
79
|
+
NamedTestCaseVariableValue_ChatHistory,
|
80
|
+
NamedTestCaseVariableValue_SearchResults,
|
81
|
+
NamedTestCaseVariableValue_Error,
|
82
|
+
]
|
vellum/types/sandbox_scenario.py
CHANGED
@@ -13,7 +13,12 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class TestCaseChatHistoryVariableValue(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
A chat history value for a variable in a Test Case.
|
18
|
+
"""
|
19
|
+
|
16
20
|
variable_id: str
|
21
|
+
name: str
|
17
22
|
value: typing.Optional[typing.List[ChatMessage]] = None
|
18
23
|
|
19
24
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -13,7 +13,12 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class TestCaseErrorVariableValue(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
An error value for a variable in a Test Case.
|
18
|
+
"""
|
19
|
+
|
16
20
|
variable_id: str
|
21
|
+
name: str
|
17
22
|
value: typing.Optional[VellumError] = None
|
18
23
|
|
19
24
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -12,7 +12,12 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class TestCaseJsonVariableValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
A JSON value for a variable in a Test Case.
|
17
|
+
"""
|
18
|
+
|
15
19
|
variable_id: str
|
20
|
+
name: str
|
16
21
|
value: typing.Optional[typing.Dict[str, typing.Any]] = None
|
17
22
|
|
18
23
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -12,7 +12,12 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class TestCaseNumberVariableValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
A numerical value for a variable in a Test Case.
|
17
|
+
"""
|
18
|
+
|
15
19
|
variable_id: str
|
20
|
+
name: str
|
16
21
|
value: typing.Optional[float] = None
|
17
22
|
|
18
23
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -13,7 +13,12 @@ except ImportError:
|
|
13
13
|
|
14
14
|
|
15
15
|
class TestCaseSearchResultsVariableValue(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
A search results value for a variable in a Test Case.
|
18
|
+
"""
|
19
|
+
|
16
20
|
variable_id: str
|
21
|
+
name: str
|
17
22
|
value: typing.Optional[typing.List[SearchResult]] = None
|
18
23
|
|
19
24
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -12,7 +12,12 @@ except ImportError:
|
|
12
12
|
|
13
13
|
|
14
14
|
class TestCaseStringVariableValue(pydantic.BaseModel):
|
15
|
+
"""
|
16
|
+
A string value for a variable in a Test Case.
|
17
|
+
"""
|
18
|
+
|
15
19
|
variable_id: str
|
20
|
+
name: str
|
16
21
|
value: typing.Optional[str] = None
|
17
22
|
|
18
23
|
def json(self, **kwargs: typing.Any) -> str:
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
5
5
|
import typing
|
6
6
|
|
7
7
|
from .test_suite_run_deployment_release_tag_exec_config import TestSuiteRunDeploymentReleaseTagExecConfig
|
8
|
+
from .test_suite_run_external_exec_config import TestSuiteRunExternalExecConfig
|
8
9
|
from .test_suite_run_workflow_release_tag_exec_config import TestSuiteRunWorkflowReleaseTagExecConfig
|
9
10
|
|
10
11
|
|
@@ -28,6 +29,18 @@ class TestSuiteRunExecConfig_WorkflowReleaseTag(TestSuiteRunWorkflowReleaseTagEx
|
|
28
29
|
populate_by_name = True
|
29
30
|
|
30
31
|
|
32
|
+
class TestSuiteRunExecConfig_External(TestSuiteRunExternalExecConfig):
|
33
|
+
type: typing.Literal["EXTERNAL"] = "EXTERNAL"
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
frozen = True
|
37
|
+
smart_union = True
|
38
|
+
allow_population_by_field_name = True
|
39
|
+
populate_by_name = True
|
40
|
+
|
41
|
+
|
31
42
|
TestSuiteRunExecConfig = typing.Union[
|
32
|
-
TestSuiteRunExecConfig_DeploymentReleaseTag,
|
43
|
+
TestSuiteRunExecConfig_DeploymentReleaseTag,
|
44
|
+
TestSuiteRunExecConfig_WorkflowReleaseTag,
|
45
|
+
TestSuiteRunExecConfig_External,
|
33
46
|
]
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
5
5
|
import typing
|
6
6
|
|
7
7
|
from .test_suite_run_deployment_release_tag_exec_config_request import TestSuiteRunDeploymentReleaseTagExecConfigRequest
|
8
|
+
from .test_suite_run_external_exec_config_request import TestSuiteRunExternalExecConfigRequest
|
8
9
|
from .test_suite_run_workflow_release_tag_exec_config_request import TestSuiteRunWorkflowReleaseTagExecConfigRequest
|
9
10
|
|
10
11
|
|
@@ -28,6 +29,18 @@ class TestSuiteRunExecConfigRequest_WorkflowReleaseTag(TestSuiteRunWorkflowRelea
|
|
28
29
|
populate_by_name = True
|
29
30
|
|
30
31
|
|
32
|
+
class TestSuiteRunExecConfigRequest_External(TestSuiteRunExternalExecConfigRequest):
|
33
|
+
type: typing.Literal["EXTERNAL"] = "EXTERNAL"
|
34
|
+
|
35
|
+
class Config:
|
36
|
+
frozen = True
|
37
|
+
smart_union = True
|
38
|
+
allow_population_by_field_name = True
|
39
|
+
populate_by_name = True
|
40
|
+
|
41
|
+
|
31
42
|
TestSuiteRunExecConfigRequest = typing.Union[
|
32
|
-
TestSuiteRunExecConfigRequest_DeploymentReleaseTag,
|
43
|
+
TestSuiteRunExecConfigRequest_DeploymentReleaseTag,
|
44
|
+
TestSuiteRunExecConfigRequest_WorkflowReleaseTag,
|
45
|
+
TestSuiteRunExecConfigRequest_External,
|
33
46
|
]
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .test_suite_run_external_exec_config_data import TestSuiteRunExternalExecConfigData
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class TestSuiteRunExternalExecConfig(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
Execution configuration for running a Vellum Test Suite against an external callable
|
18
|
+
"""
|
19
|
+
|
20
|
+
data: TestSuiteRunExternalExecConfigData
|
21
|
+
test_case_ids: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
22
|
+
"""
|
23
|
+
Optionally specify a subset of test case ids to run. If not provided, all test cases within the test suite will be run by default.
|
24
|
+
"""
|
25
|
+
|
26
|
+
def json(self, **kwargs: typing.Any) -> str:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().json(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
31
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
32
|
+
return super().dict(**kwargs_with_defaults)
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
frozen = True
|
36
|
+
smart_union = True
|
37
|
+
extra = pydantic.Extra.allow
|
38
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .external_test_case_execution import ExternalTestCaseExecution
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class TestSuiteRunExternalExecConfigData(pydantic.BaseModel):
|
16
|
+
executions: typing.List[ExternalTestCaseExecution] = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The executions of some callable external to Vellum whose outputs you would like to evaluate.
|
19
|
+
"""
|
20
|
+
|
21
|
+
def json(self, **kwargs: typing.Any) -> str:
|
22
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
+
return super().json(**kwargs_with_defaults)
|
24
|
+
|
25
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
26
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
+
return super().dict(**kwargs_with_defaults)
|
28
|
+
|
29
|
+
class Config:
|
30
|
+
frozen = True
|
31
|
+
smart_union = True
|
32
|
+
extra = pydantic.Extra.allow
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .external_test_case_execution_request import ExternalTestCaseExecutionRequest
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class TestSuiteRunExternalExecConfigDataRequest(pydantic.BaseModel):
|
16
|
+
executions: typing.List[ExternalTestCaseExecutionRequest] = pydantic.Field()
|
17
|
+
"""
|
18
|
+
The executions of some callable external to Vellum whose outputs you would like to evaluate.
|
19
|
+
"""
|
20
|
+
|
21
|
+
def json(self, **kwargs: typing.Any) -> str:
|
22
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
+
return super().json(**kwargs_with_defaults)
|
24
|
+
|
25
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
26
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
+
return super().dict(**kwargs_with_defaults)
|
28
|
+
|
29
|
+
class Config:
|
30
|
+
frozen = True
|
31
|
+
smart_union = True
|
32
|
+
extra = pydantic.Extra.allow
|
33
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import datetime as dt
|
4
|
+
import typing
|
5
|
+
|
6
|
+
from ..core.datetime_utils import serialize_datetime
|
7
|
+
from .test_suite_run_external_exec_config_data_request import TestSuiteRunExternalExecConfigDataRequest
|
8
|
+
|
9
|
+
try:
|
10
|
+
import pydantic.v1 as pydantic # type: ignore
|
11
|
+
except ImportError:
|
12
|
+
import pydantic # type: ignore
|
13
|
+
|
14
|
+
|
15
|
+
class TestSuiteRunExternalExecConfigRequest(pydantic.BaseModel):
|
16
|
+
"""
|
17
|
+
Execution configuration for running a Vellum Test Suite against an external callable
|
18
|
+
"""
|
19
|
+
|
20
|
+
data: TestSuiteRunExternalExecConfigDataRequest
|
21
|
+
test_case_ids: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
22
|
+
"""
|
23
|
+
Optionally specify a subset of test case ids to run. If not provided, all test cases within the test suite will be run by default.
|
24
|
+
"""
|
25
|
+
|
26
|
+
def json(self, **kwargs: typing.Any) -> str:
|
27
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
+
return super().json(**kwargs_with_defaults)
|
29
|
+
|
30
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
31
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
32
|
+
return super().dict(**kwargs_with_defaults)
|
33
|
+
|
34
|
+
class Config:
|
35
|
+
frozen = True
|
36
|
+
smart_union = True
|
37
|
+
extra = pydantic.Extra.allow
|
38
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: vellum-ai
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.23
|
4
4
|
Summary:
|
5
5
|
Requires-Python: >=3.8,<4.0
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
@@ -12,6 +12,7 @@ Requires-Dist: cdktf (>=0.20.5,<0.21.0)
|
|
12
12
|
Requires-Dist: httpx (>=0.21.2)
|
13
13
|
Requires-Dist: publication (==0.0.3)
|
14
14
|
Requires-Dist: pydantic (>=1.9.2)
|
15
|
+
Requires-Dist: requests_mock (>=1.11.0,<2.0.0)
|
15
16
|
Requires-Dist: typing_extensions (>=4.0.0)
|
16
17
|
Description-Content-Type: text/markdown
|
17
18
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
vellum/__init__.py,sha256=
|
1
|
+
vellum/__init__.py,sha256=zm-CWI_Au1C6g1pl0fpSNhkcxxAKqAm_ItDmOEbVOaE,35917
|
2
2
|
vellum/client.py,sha256=ViOMnbiP_kKm3ayXW6DY1wC7Ge8tnI389qC8XVffyB8,96748
|
3
3
|
vellum/core/__init__.py,sha256=RWfyDqkzWsf8e3VGc3NV60MovfJbg5XWzNFGB2DZ0hA,790
|
4
4
|
vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
5
|
-
vellum/core/client_wrapper.py,sha256=
|
5
|
+
vellum/core/client_wrapper.py,sha256=SO-9_qHhPtQgGR2hRQ59d9BqN1YH2UEfVsqghxfNUOc,1698
|
6
6
|
vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
7
7
|
vellum/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
|
8
8
|
vellum/core/http_client.py,sha256=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
|
@@ -53,7 +53,7 @@ vellum/terraform/document_index/__init__.py,sha256=qq2zENI22bUvqGk_a1lmsoTr5O_xC
|
|
53
53
|
vellum/terraform/provider/__init__.py,sha256=K1yLlTZkYBxhD4bhUV1v23hxDGgbfsAIGsSyeB54dNQ,10298
|
54
54
|
vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
55
55
|
vellum/terraform/versions.json,sha256=STW6Mg3BKDacFmbWHXziHxE90GWncZf4AIzCLiXm_7o,56
|
56
|
-
vellum/types/__init__.py,sha256=
|
56
|
+
vellum/types/__init__.py,sha256=gHhZPDj0jEl6wl1-aSQQYeigJUFcmLulwwZiYdjIpho,48010
|
57
57
|
vellum/types/api_node_result.py,sha256=aLOooryBCfglTeZwOuyyqRoHz5oPTja2mYYY7Gj8XxA,1040
|
58
58
|
vellum/types/api_node_result_data.py,sha256=cQcZiwI1hjRvQFlkVEGxyaD360vEklIfjBmhBAeI75U,1215
|
59
59
|
vellum/types/array_chat_message_content.py,sha256=Z7nKH8RNgot0i4-159w95OHywLjc-376gBPOovbw2hk,1087
|
@@ -111,6 +111,8 @@ vellum/types/execution_number_vellum_value.py,sha256=N3lcnG1cc21T8b4pO7O8ccnc5T9
|
|
111
111
|
vellum/types/execution_search_results_vellum_value.py,sha256=tj3hPVHyTJ9RrYyOJ8w0R2vw7Mf_mazjJHSURiSsgk8,1129
|
112
112
|
vellum/types/execution_string_vellum_value.py,sha256=B9Vvtmvz9KHynnomuHl9vwLur2fGMs6PQma4wsFv55w,1060
|
113
113
|
vellum/types/execution_vellum_value.py,sha256=aEkd5eaFhGrI3POUFii5w3WZkvUgpB47KIFaAKS9_cQ,3144
|
114
|
+
vellum/types/external_test_case_execution.py,sha256=gnTaatDxnxDzCjV6DIBiW1dX1vcHTvtI7fk8CcHaUyI,1179
|
115
|
+
vellum/types/external_test_case_execution_request.py,sha256=pi-T5ODv1pnCpVDs3qXpw5BCMoNt4LBcVE1L6vHsvcA,1208
|
114
116
|
vellum/types/finish_reason_enum.py,sha256=zAvOLiq2ngmDILEftziwCGYb4z-wlih0XHRNOo35FzM,726
|
115
117
|
vellum/types/fulfilled_enum.py,sha256=MenrGneRMBvsq-n8tkMXAx0wppGWLJgkqdKnfklGP9U,124
|
116
118
|
vellum/types/fulfilled_execute_prompt_event.py,sha256=2_jNUOaSg12WKggFiczulVoHFM7i3yIAIZbL99tVf2M,1292
|
@@ -160,12 +162,19 @@ vellum/types/model_version_exec_config_parameters.py,sha256=jF4wm_GIeITFavMNGSvB
|
|
160
162
|
vellum/types/model_version_read.py,sha256=Ize9tyNNnR2oMXQSKwrEfuJilR5O3qSssfrJQwmSFqw,2425
|
161
163
|
vellum/types/model_version_read_status_enum.py,sha256=uQCzeBoMqn29-V2b6fiq5rv9G3yBApaHWQLMMRRL-Hs,1032
|
162
164
|
vellum/types/model_version_sandbox_snapshot.py,sha256=bXe_7Fp-CSQ_WOvjX8GJfO7ZbV0i99nbkv5yiqdFjeI,1309
|
165
|
+
vellum/types/named_test_case_chat_history_variable_value.py,sha256=5wH7HIREWrDevirBMYqD276snHoAQzZ1H6GqHTzIECU,1101
|
163
166
|
vellum/types/named_test_case_chat_history_variable_value_request.py,sha256=pYXfGF4VX_PcKdow8ttZo0Afv91vVZD3r0ZLIPmYE4w,1130
|
167
|
+
vellum/types/named_test_case_error_variable_value.py,sha256=a17xJ5OjHhcLJeiC572_RIUdBDjIGJOLZUHDHW-V22E,1075
|
164
168
|
vellum/types/named_test_case_error_variable_value_request.py,sha256=Hlihlz1rd9XMD_WPJKhuq8u8cTwAW-RM4JIlN9mrqak,1104
|
169
|
+
vellum/types/named_test_case_json_variable_value.py,sha256=QrAD4HK3vrqV9P3k9-toDbEv_TDazBEyHD4MxQrG4nw,1052
|
165
170
|
vellum/types/named_test_case_json_variable_value_request.py,sha256=eYUPPF1meDi5aIoQUvCmUVzh9u7MDt2lFyRK6NWI8m8,1059
|
171
|
+
vellum/types/named_test_case_number_variable_value.py,sha256=3kcix5uYk2K9rxe9l17YuzjuFMt2kqxF6LkVO23tDAU,1033
|
166
172
|
vellum/types/named_test_case_number_variable_value_request.py,sha256=RfKzbPCKINiCaMwul-XXxOb7QaAYqBzud_5cFFINY7E,1040
|
173
|
+
vellum/types/named_test_case_search_results_variable_value.py,sha256=4Qb2imPy1nk7hbahG314XJbmrginXbsRnhUzYLhIU6s,1108
|
167
174
|
vellum/types/named_test_case_search_results_variable_value_request.py,sha256=25mLk7D6u3btNhI8q9xHdpZlJJTLFZCIjZscFFCz1l0,1137
|
175
|
+
vellum/types/named_test_case_string_variable_value.py,sha256=h5t9JDk6R8s73iw3bCsTfVtBjXtqIIZQMqvWHIOcYgI,1031
|
168
176
|
vellum/types/named_test_case_string_variable_value_request.py,sha256=Mch56tlzPnlAuDrkuqLpPYehsca245u1QpYEnOz9LmU,1038
|
177
|
+
vellum/types/named_test_case_variable_value.py,sha256=VQEAojwa2aSdLayEMn6oCBXMYY5Zr5dTZxfVJ_oJJTs,2584
|
169
178
|
vellum/types/named_test_case_variable_value_request.py,sha256=hCNEq0Ubqod6kOELWZcbizCocKvLGbPwgaFAo1sWOuw,2807
|
170
179
|
vellum/types/node_input_compiled_array_value.py,sha256=Zw78U4629WGprdmBVsnsthUsDNiJcC_7CecOs3B1M4M,1076
|
171
180
|
vellum/types/node_input_compiled_chat_history_value.py,sha256=aOY49Id1sawCnfSnkP_UDoHMTUp3I1JwHrSUMtt57J8,1047
|
@@ -229,7 +238,7 @@ vellum/types/rejected_execute_workflow_workflow_result_event.py,sha256=l3tAFlDWB
|
|
229
238
|
vellum/types/rejected_function_call.py,sha256=LeTe__cO3r7TqqiLRUDIoraetIMPbUZF52lDx3tTNEg,1095
|
230
239
|
vellum/types/rejected_prompt_execution_meta.py,sha256=qlkDcHDCoJM1e4S_Dm9pdB3Mqy-g4rDFWuWx6xO9ezY,1195
|
231
240
|
vellum/types/rejected_workflow_node_result_event.py,sha256=2HrFDp3H1sH4a03enG4E6HgWHp5w0yrs4kVYkxbJwfY,1350
|
232
|
-
vellum/types/sandbox_scenario.py,sha256=
|
241
|
+
vellum/types/sandbox_scenario.py,sha256=XJwq_VrO5I5aEmL4ce9R2u3qmmyyQSj48PfMiPeItDc,1195
|
233
242
|
vellum/types/scenario_input.py,sha256=UqdiHUjPCcj-evU5jYL7TNdctXaslpvuNeps2mimslk,1166
|
234
243
|
vellum/types/scenario_input_request.py,sha256=Ir9rXTN4hmAAdW-CRR75V-gDi4ddebq-qXX5tEKkcnI,1195
|
235
244
|
vellum/types/scenario_input_type_enum.py,sha256=S16TuGQ_Ifge1QLKem_ZlHSsqr3_lfLGZpEAj2IYrQk,580
|
@@ -286,20 +295,20 @@ vellum/types/terminal_node_result_data.py,sha256=i4Oa1itlpyFKDwXPAOtfu--vqyM6UG_
|
|
286
295
|
vellum/types/terminal_node_result_output.py,sha256=lKXaYst9-JuY0rk0tjDV4mD2s_G-7gZm5FTKbW9xYo8,3164
|
287
296
|
vellum/types/terminal_node_search_results_result.py,sha256=PZ-PsvMnI6_CdkbwfhN0KqwxcsBECoG5C3oZaSN84BU,1172
|
288
297
|
vellum/types/terminal_node_string_result.py,sha256=38fufuCtk8ifqcBqTxT9wT3B8eulWfYGPZGRHE3x4RE,1103
|
289
|
-
vellum/types/test_case_chat_history_variable_value.py,sha256=
|
290
|
-
vellum/types/test_case_error_variable_value.py,sha256=
|
291
|
-
vellum/types/test_case_json_variable_value.py,sha256=
|
292
|
-
vellum/types/test_case_number_variable_value.py,sha256=
|
293
|
-
vellum/types/test_case_search_results_variable_value.py,sha256=
|
294
|
-
vellum/types/test_case_string_variable_value.py,sha256=
|
298
|
+
vellum/types/test_case_chat_history_variable_value.py,sha256=sFqH6lVDNK1oCH7F_WL3POv00yVj5HSXkdGzt5jYW7A,1118
|
299
|
+
vellum/types/test_case_error_variable_value.py,sha256=7BYEk3YQH4XAR2BEMIJmq7RRuTgg1s-ehJGd2V476Oo,1093
|
300
|
+
vellum/types/test_case_json_variable_value.py,sha256=2rrCqJLIRNK1Ld23eAF4UZ3yMbvvQSrRF0JF_ODDepU,1069
|
301
|
+
vellum/types/test_case_number_variable_value.py,sha256=C4kb2mdgaRLVBfG965hYIaemtwVCglEQlKykvoNCI7E,1053
|
302
|
+
vellum/types/test_case_search_results_variable_value.py,sha256=B_9E4ZxrOVeyjHaYp2LJkFmTkV0Ym8ycWkHPBLPly34,1125
|
303
|
+
vellum/types/test_case_string_variable_value.py,sha256=afj2U-uuikqPGf7tcNCvHWScAosZ5VtdEF4PecUGE-I,1048
|
295
304
|
vellum/types/test_case_variable_value.py,sha256=bE_lqnjrZMYFedIdd8Dqt1jlZ1wLdeuhCviHrawELEQ,2423
|
296
305
|
vellum/types/test_suite_run_deployment_release_tag_exec_config.py,sha256=dixH2anYonGi3INTDnCtQgQ1VLtSLIcsWOX-qpBhR1c,1427
|
297
306
|
vellum/types/test_suite_run_deployment_release_tag_exec_config_data.py,sha256=h1KBU0bSZZ9qDeq4wEFLgBwXC9aLSBRaxbvadjKQaD0,1279
|
298
307
|
vellum/types/test_suite_run_deployment_release_tag_exec_config_data_request.py,sha256=XwWET1EsPwKszS3r5h2m5ZMxH5CyryBBtwQ7R5sbBio,1286
|
299
308
|
vellum/types/test_suite_run_deployment_release_tag_exec_config_request.py,sha256=yTK-3MlF81q0NiQ0SO7VC2dnjaVX8fBDlJUqQzGArUg,1465
|
300
309
|
vellum/types/test_suite_run_deployment_release_tag_exec_config_type_enum.py,sha256=P49aTblFExVUA90soNhC-_S0q8xAHGCWOnm9uRiqgp0,174
|
301
|
-
vellum/types/test_suite_run_exec_config.py,sha256=
|
302
|
-
vellum/types/test_suite_run_exec_config_request.py,sha256=
|
310
|
+
vellum/types/test_suite_run_exec_config.py,sha256=ilF_6HuSMOt1csjBLGd8zzKB4BxbF1KL8okpD79xhag,1483
|
311
|
+
vellum/types/test_suite_run_exec_config_request.py,sha256=cV_Yq4cbHK8MZxPp6RQqA6HerbTSyDPcZCyBULxELF0,1598
|
303
312
|
vellum/types/test_suite_run_execution.py,sha256=Gj0jFE9-VZDQCxdzM9xe5-r3XX726WUgaVwoAxZQZ84,1215
|
304
313
|
vellum/types/test_suite_run_execution_chat_history_output.py,sha256=54-Tq87GTSgHeS7ntFg6nQsYi2X4ppIcrZotRFEfE5s,1172
|
305
314
|
vellum/types/test_suite_run_execution_error_output.py,sha256=fqI3Saza7PEsHHUAeVENzgT-WcS5oJMyW1H7D1Em-gg,1146
|
@@ -310,6 +319,11 @@ vellum/types/test_suite_run_execution_number_output.py,sha256=OiUI84wzKTuxx4XODC
|
|
310
319
|
vellum/types/test_suite_run_execution_output.py,sha256=vOm3PiblQDdybmDUzP5KUzgkZxSrk31MBmJog-iW3Pk,2615
|
311
320
|
vellum/types/test_suite_run_execution_search_results_output.py,sha256=9KJlNGazc74AkXEzg8oqycd08CO8ib5gJ96qpaaGmIw,1179
|
312
321
|
vellum/types/test_suite_run_execution_string_output.py,sha256=JdfHP1icwQDRFFaim0wFQHuIC3yg2_t8946vH3MwdY4,1102
|
322
|
+
vellum/types/test_suite_run_external_exec_config.py,sha256=J5DAkJlFNENbDw4qOQj9bfduQpA1pP_DP8mXh01ZxNU,1385
|
323
|
+
vellum/types/test_suite_run_external_exec_config_data.py,sha256=1VEFnB6GDwiR0Kf_onQylBxrTMHUE8pGQ5xuwfZkMMU,1169
|
324
|
+
vellum/types/test_suite_run_external_exec_config_data_request.py,sha256=rj5irhCWV5BltCXnq0yRkLdbTZfnumrPLyFjNQw2zjc,1198
|
325
|
+
vellum/types/test_suite_run_external_exec_config_request.py,sha256=zx8gUKZ5lzV--oPPzEkR2U1vlZyIfma-AVOY6DD2dUw,1414
|
326
|
+
vellum/types/test_suite_run_external_exec_config_type_enum.py,sha256=yX-VwukrI1rPH7_R2D7sRlBioduW6q791zXWiODMlo0,148
|
313
327
|
vellum/types/test_suite_run_metric_error_output.py,sha256=N0ZRTO1QV4Bobrh9u1-k5qBMiFh8CF2NLiElGA94oIo,1062
|
314
328
|
vellum/types/test_suite_run_metric_error_output_type_enum.py,sha256=ZPKy0jkcgfuMhI2hG_3UUcw2sYH1BlV_ze8Axlq5nIU,144
|
315
329
|
vellum/types/test_suite_run_metric_number_output.py,sha256=vedeqnSpDl7Y23DdgAlcl16Gxd1WlNo4m4PQ2SGI8Tk,1020
|
@@ -374,7 +388,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=wYc76-DW
|
|
374
388
|
vellum/types/workflow_result_event_output_data_string.py,sha256=7SR46tKt-I_cGd_eVeKU8ymQ7R3vKkA_dFHCgAU1GcQ,1533
|
375
389
|
vellum/types/workflow_stream_event.py,sha256=KA6Bkk_XA6AIPWR-1vKnwF1A8l_Bm5y0arQCWWWRpsk,911
|
376
390
|
vellum/version.py,sha256=neLt8HBHHUtDF9M5fsyUzHT-pKooEPvceaLDqqIGb0s,77
|
377
|
-
vellum_ai-0.3.
|
378
|
-
vellum_ai-0.3.
|
379
|
-
vellum_ai-0.3.
|
380
|
-
vellum_ai-0.3.
|
391
|
+
vellum_ai-0.3.23.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
|
392
|
+
vellum_ai-0.3.23.dist-info/METADATA,sha256=ue4qundj5MNtdoq_lrm-kPpsbb7w_uAQRUub6hgX-Xc,3597
|
393
|
+
vellum_ai-0.3.23.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
394
|
+
vellum_ai-0.3.23.dist-info/RECORD,,
|
File without changes
|
File without changes
|