vellum-ai 0.7.1__py3-none-any.whl → 0.7.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +46 -0
- vellum/client.py +45 -12
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/deployments/client.py +11 -0
- vellum/types/__init__.py +48 -0
- vellum/types/array_vellum_value_item_request.py +82 -0
- vellum/types/compile_prompt_deployment_expand_meta_request.py +38 -0
- vellum/types/compile_prompt_meta.py +31 -0
- vellum/types/deployment_provider_payload_response.py +2 -0
- vellum/types/error_vellum_value_request.py +30 -0
- vellum/types/function_call_vellum_value_request.py +30 -0
- vellum/types/image_vellum_value_request.py +30 -0
- vellum/types/json_vellum_value_request.py +29 -0
- vellum/types/named_test_case_array_variable_value.py +31 -0
- vellum/types/named_test_case_array_variable_value_request.py +31 -0
- vellum/types/named_test_case_variable_value.py +12 -0
- vellum/types/named_test_case_variable_value_request.py +12 -0
- vellum/types/number_vellum_value_request.py +29 -0
- vellum/types/prompt_deployment_expand_meta_request_request.py +11 -11
- vellum/types/prompt_execution_meta.py +1 -1
- vellum/types/prompt_node_execution_meta.py +30 -0
- vellum/types/prompt_node_result_data.py +2 -0
- vellum/types/string_vellum_value_request.py +29 -0
- vellum/types/test_case_array_variable_value.py +32 -0
- vellum/types/test_case_variable_value.py +12 -0
- vellum/types/workflow_expand_meta_request.py +28 -0
- {vellum_ai-0.7.1.dist-info → vellum_ai-0.7.3.dist-info}/METADATA +1 -1
- {vellum_ai-0.7.1.dist-info → vellum_ai-0.7.3.dist-info}/RECORD +30 -16
- {vellum_ai-0.7.1.dist-info → vellum_ai-0.7.3.dist-info}/LICENSE +0 -0
- {vellum_ai-0.7.1.dist-info → vellum_ai-0.7.3.dist-info}/WHEEL +0 -0
vellum/types/__init__.py
CHANGED
@@ -36,6 +36,15 @@ from .array_vellum_value_item import (
|
|
36
36
|
ArrayVellumValueItem_Number,
|
37
37
|
ArrayVellumValueItem_String,
|
38
38
|
)
|
39
|
+
from .array_vellum_value_item_request import (
|
40
|
+
ArrayVellumValueItemRequest,
|
41
|
+
ArrayVellumValueItemRequest_Error,
|
42
|
+
ArrayVellumValueItemRequest_FunctionCall,
|
43
|
+
ArrayVellumValueItemRequest_Image,
|
44
|
+
ArrayVellumValueItemRequest_Json,
|
45
|
+
ArrayVellumValueItemRequest_Number,
|
46
|
+
ArrayVellumValueItemRequest_String,
|
47
|
+
)
|
39
48
|
from .basic_vectorizer_intfloat_multilingual_e_5_large import BasicVectorizerIntfloatMultilingualE5Large
|
40
49
|
from .basic_vectorizer_intfloat_multilingual_e_5_large_request import BasicVectorizerIntfloatMultilingualE5LargeRequest
|
41
50
|
from .basic_vectorizer_sentence_transformers_multi_qa_mpnet_base_cos_v_1 import (
|
@@ -90,6 +99,8 @@ from .code_execution_node_result_output import (
|
|
90
99
|
)
|
91
100
|
from .code_execution_node_search_results_result import CodeExecutionNodeSearchResultsResult
|
92
101
|
from .code_execution_node_string_result import CodeExecutionNodeStringResult
|
102
|
+
from .compile_prompt_deployment_expand_meta_request import CompilePromptDeploymentExpandMetaRequest
|
103
|
+
from .compile_prompt_meta import CompilePromptMeta
|
93
104
|
from .conditional_node_result import ConditionalNodeResult
|
94
105
|
from .conditional_node_result_data import ConditionalNodeResultData
|
95
106
|
from .create_enum import CreateEnum
|
@@ -126,6 +137,7 @@ from .environment_enum import EnvironmentEnum
|
|
126
137
|
from .error_enum import ErrorEnum
|
127
138
|
from .error_variable_value import ErrorVariableValue
|
128
139
|
from .error_vellum_value import ErrorVellumValue
|
140
|
+
from .error_vellum_value_request import ErrorVellumValueRequest
|
129
141
|
from .execute_prompt_api_error_response import ExecutePromptApiErrorResponse
|
130
142
|
from .execute_prompt_event import (
|
131
143
|
ExecutePromptEvent,
|
@@ -184,6 +196,7 @@ from .function_call_enum import FunctionCallEnum
|
|
184
196
|
from .function_call_request import FunctionCallRequest
|
185
197
|
from .function_call_variable_value import FunctionCallVariableValue
|
186
198
|
from .function_call_vellum_value import FunctionCallVellumValue
|
199
|
+
from .function_call_vellum_value_request import FunctionCallVellumValueRequest
|
187
200
|
from .generate_error_response import GenerateErrorResponse
|
188
201
|
from .generate_options_request import GenerateOptionsRequest
|
189
202
|
from .generate_request import GenerateRequest
|
@@ -202,6 +215,7 @@ from .image_chat_message_content_request import ImageChatMessageContentRequest
|
|
202
215
|
from .image_enum import ImageEnum
|
203
216
|
from .image_variable_value import ImageVariableValue
|
204
217
|
from .image_vellum_value import ImageVellumValue
|
218
|
+
from .image_vellum_value_request import ImageVellumValueRequest
|
205
219
|
from .indexing_config_vectorizer import (
|
206
220
|
IndexingConfigVectorizer,
|
207
221
|
IndexingConfigVectorizer_HkunlpInstructorXl,
|
@@ -235,6 +249,7 @@ from .json_enum import JsonEnum
|
|
235
249
|
from .json_input_request import JsonInputRequest
|
236
250
|
from .json_variable_value import JsonVariableValue
|
237
251
|
from .json_vellum_value import JsonVellumValue
|
252
|
+
from .json_vellum_value_request import JsonVellumValueRequest
|
238
253
|
from .logical_operator import LogicalOperator
|
239
254
|
from .logprobs_enum import LogprobsEnum
|
240
255
|
from .map_enum import MapEnum
|
@@ -256,6 +271,8 @@ from .named_scenario_input_request import (
|
|
256
271
|
NamedScenarioInputRequest_String,
|
257
272
|
)
|
258
273
|
from .named_scenario_input_string_variable_value_request import NamedScenarioInputStringVariableValueRequest
|
274
|
+
from .named_test_case_array_variable_value import NamedTestCaseArrayVariableValue
|
275
|
+
from .named_test_case_array_variable_value_request import NamedTestCaseArrayVariableValueRequest
|
259
276
|
from .named_test_case_chat_history_variable_value import NamedTestCaseChatHistoryVariableValue
|
260
277
|
from .named_test_case_chat_history_variable_value_request import NamedTestCaseChatHistoryVariableValueRequest
|
261
278
|
from .named_test_case_error_variable_value import NamedTestCaseErrorVariableValue
|
@@ -272,6 +289,7 @@ from .named_test_case_string_variable_value import NamedTestCaseStringVariableVa
|
|
272
289
|
from .named_test_case_string_variable_value_request import NamedTestCaseStringVariableValueRequest
|
273
290
|
from .named_test_case_variable_value import (
|
274
291
|
NamedTestCaseVariableValue,
|
292
|
+
NamedTestCaseVariableValue_Array,
|
275
293
|
NamedTestCaseVariableValue_ChatHistory,
|
276
294
|
NamedTestCaseVariableValue_Error,
|
277
295
|
NamedTestCaseVariableValue_FunctionCall,
|
@@ -282,6 +300,7 @@ from .named_test_case_variable_value import (
|
|
282
300
|
)
|
283
301
|
from .named_test_case_variable_value_request import (
|
284
302
|
NamedTestCaseVariableValueRequest,
|
303
|
+
NamedTestCaseVariableValueRequest_Array,
|
285
304
|
NamedTestCaseVariableValueRequest_ChatHistory,
|
286
305
|
NamedTestCaseVariableValueRequest_Error,
|
287
306
|
NamedTestCaseVariableValueRequest_FunctionCall,
|
@@ -333,6 +352,7 @@ from .normalized_token_log_probs import NormalizedTokenLogProbs
|
|
333
352
|
from .number_enum import NumberEnum
|
334
353
|
from .number_variable_value import NumberVariableValue
|
335
354
|
from .number_vellum_value import NumberVellumValue
|
355
|
+
from .number_vellum_value_request import NumberVellumValueRequest
|
336
356
|
from .open_ai_vectorizer_config import OpenAiVectorizerConfig
|
337
357
|
from .open_ai_vectorizer_config_request import OpenAiVectorizerConfigRequest
|
338
358
|
from .open_ai_vectorizer_text_embedding_3_large import OpenAiVectorizerTextEmbedding3Large
|
@@ -360,6 +380,7 @@ from .prompt_deployment_input_request import (
|
|
360
380
|
PromptDeploymentInputRequest_String,
|
361
381
|
)
|
362
382
|
from .prompt_execution_meta import PromptExecutionMeta
|
383
|
+
from .prompt_node_execution_meta import PromptNodeExecutionMeta
|
363
384
|
from .prompt_node_result import PromptNodeResult
|
364
385
|
from .prompt_node_result_data import PromptNodeResultData
|
365
386
|
from .prompt_output import (
|
@@ -426,6 +447,7 @@ from .string_enum import StringEnum
|
|
426
447
|
from .string_input_request import StringInputRequest
|
427
448
|
from .string_variable_value import StringVariableValue
|
428
449
|
from .string_vellum_value import StringVellumValue
|
450
|
+
from .string_vellum_value_request import StringVellumValueRequest
|
429
451
|
from .submit_completion_actual_request import SubmitCompletionActualRequest
|
430
452
|
from .submit_completion_actuals_error_response import SubmitCompletionActualsErrorResponse
|
431
453
|
from .submit_workflow_execution_actual_request import (
|
@@ -479,6 +501,7 @@ from .terminal_node_result_output import (
|
|
479
501
|
)
|
480
502
|
from .terminal_node_search_results_result import TerminalNodeSearchResultsResult
|
481
503
|
from .terminal_node_string_result import TerminalNodeStringResult
|
504
|
+
from .test_case_array_variable_value import TestCaseArrayVariableValue
|
482
505
|
from .test_case_chat_history_variable_value import TestCaseChatHistoryVariableValue
|
483
506
|
from .test_case_error_variable_value import TestCaseErrorVariableValue
|
484
507
|
from .test_case_function_call_variable_value import TestCaseFunctionCallVariableValue
|
@@ -488,6 +511,7 @@ from .test_case_search_results_variable_value import TestCaseSearchResultsVariab
|
|
488
511
|
from .test_case_string_variable_value import TestCaseStringVariableValue
|
489
512
|
from .test_case_variable_value import (
|
490
513
|
TestCaseVariableValue,
|
514
|
+
TestCaseVariableValue_Array,
|
491
515
|
TestCaseVariableValue_ChatHistory,
|
492
516
|
TestCaseVariableValue_Error,
|
493
517
|
TestCaseVariableValue_FunctionCall,
|
@@ -621,6 +645,7 @@ from .workflow_execution_event_error_code import WorkflowExecutionEventErrorCode
|
|
621
645
|
from .workflow_execution_event_type import WorkflowExecutionEventType
|
622
646
|
from .workflow_execution_node_result_event import WorkflowExecutionNodeResultEvent
|
623
647
|
from .workflow_execution_workflow_result_event import WorkflowExecutionWorkflowResultEvent
|
648
|
+
from .workflow_expand_meta_request import WorkflowExpandMetaRequest
|
624
649
|
from .workflow_node_result_data import (
|
625
650
|
WorkflowNodeResultData,
|
626
651
|
WorkflowNodeResultData_Api,
|
@@ -722,6 +747,13 @@ __all__ = [
|
|
722
747
|
"ArrayVariableValueItem_Number",
|
723
748
|
"ArrayVariableValueItem_String",
|
724
749
|
"ArrayVellumValueItem",
|
750
|
+
"ArrayVellumValueItemRequest",
|
751
|
+
"ArrayVellumValueItemRequest_Error",
|
752
|
+
"ArrayVellumValueItemRequest_FunctionCall",
|
753
|
+
"ArrayVellumValueItemRequest_Image",
|
754
|
+
"ArrayVellumValueItemRequest_Json",
|
755
|
+
"ArrayVellumValueItemRequest_Number",
|
756
|
+
"ArrayVellumValueItemRequest_String",
|
725
757
|
"ArrayVellumValueItem_Error",
|
726
758
|
"ArrayVellumValueItem_FunctionCall",
|
727
759
|
"ArrayVellumValueItem_Image",
|
@@ -768,6 +800,8 @@ __all__ = [
|
|
768
800
|
"CodeExecutionNodeResultOutput_String",
|
769
801
|
"CodeExecutionNodeSearchResultsResult",
|
770
802
|
"CodeExecutionNodeStringResult",
|
803
|
+
"CompilePromptDeploymentExpandMetaRequest",
|
804
|
+
"CompilePromptMeta",
|
771
805
|
"ConditionalNodeResult",
|
772
806
|
"ConditionalNodeResultData",
|
773
807
|
"CreateEnum",
|
@@ -800,6 +834,7 @@ __all__ = [
|
|
800
834
|
"ErrorEnum",
|
801
835
|
"ErrorVariableValue",
|
802
836
|
"ErrorVellumValue",
|
837
|
+
"ErrorVellumValueRequest",
|
803
838
|
"ExecutePromptApiErrorResponse",
|
804
839
|
"ExecutePromptEvent",
|
805
840
|
"ExecutePromptEvent_Fulfilled",
|
@@ -850,6 +885,7 @@ __all__ = [
|
|
850
885
|
"FunctionCallRequest",
|
851
886
|
"FunctionCallVariableValue",
|
852
887
|
"FunctionCallVellumValue",
|
888
|
+
"FunctionCallVellumValueRequest",
|
853
889
|
"GenerateErrorResponse",
|
854
890
|
"GenerateOptionsRequest",
|
855
891
|
"GenerateRequest",
|
@@ -868,6 +904,7 @@ __all__ = [
|
|
868
904
|
"ImageEnum",
|
869
905
|
"ImageVariableValue",
|
870
906
|
"ImageVellumValue",
|
907
|
+
"ImageVellumValueRequest",
|
871
908
|
"IndexingConfigVectorizer",
|
872
909
|
"IndexingConfigVectorizerRequest",
|
873
910
|
"IndexingConfigVectorizerRequest_HkunlpInstructorXl",
|
@@ -897,6 +934,7 @@ __all__ = [
|
|
897
934
|
"JsonInputRequest",
|
898
935
|
"JsonVariableValue",
|
899
936
|
"JsonVellumValue",
|
937
|
+
"JsonVellumValueRequest",
|
900
938
|
"LogicalOperator",
|
901
939
|
"LogprobsEnum",
|
902
940
|
"MapEnum",
|
@@ -916,6 +954,8 @@ __all__ = [
|
|
916
954
|
"NamedScenarioInputRequest_ChatHistory",
|
917
955
|
"NamedScenarioInputRequest_String",
|
918
956
|
"NamedScenarioInputStringVariableValueRequest",
|
957
|
+
"NamedTestCaseArrayVariableValue",
|
958
|
+
"NamedTestCaseArrayVariableValueRequest",
|
919
959
|
"NamedTestCaseChatHistoryVariableValue",
|
920
960
|
"NamedTestCaseChatHistoryVariableValueRequest",
|
921
961
|
"NamedTestCaseErrorVariableValue",
|
@@ -932,6 +972,7 @@ __all__ = [
|
|
932
972
|
"NamedTestCaseStringVariableValueRequest",
|
933
973
|
"NamedTestCaseVariableValue",
|
934
974
|
"NamedTestCaseVariableValueRequest",
|
975
|
+
"NamedTestCaseVariableValueRequest_Array",
|
935
976
|
"NamedTestCaseVariableValueRequest_ChatHistory",
|
936
977
|
"NamedTestCaseVariableValueRequest_Error",
|
937
978
|
"NamedTestCaseVariableValueRequest_FunctionCall",
|
@@ -939,6 +980,7 @@ __all__ = [
|
|
939
980
|
"NamedTestCaseVariableValueRequest_Number",
|
940
981
|
"NamedTestCaseVariableValueRequest_SearchResults",
|
941
982
|
"NamedTestCaseVariableValueRequest_String",
|
983
|
+
"NamedTestCaseVariableValue_Array",
|
942
984
|
"NamedTestCaseVariableValue_ChatHistory",
|
943
985
|
"NamedTestCaseVariableValue_Error",
|
944
986
|
"NamedTestCaseVariableValue_FunctionCall",
|
@@ -985,6 +1027,7 @@ __all__ = [
|
|
985
1027
|
"NumberEnum",
|
986
1028
|
"NumberVariableValue",
|
987
1029
|
"NumberVellumValue",
|
1030
|
+
"NumberVellumValueRequest",
|
988
1031
|
"OpenAiVectorizerConfig",
|
989
1032
|
"OpenAiVectorizerConfigRequest",
|
990
1033
|
"OpenAiVectorizerTextEmbedding3Large",
|
@@ -1010,6 +1053,7 @@ __all__ = [
|
|
1010
1053
|
"PromptDeploymentInputRequest_Json",
|
1011
1054
|
"PromptDeploymentInputRequest_String",
|
1012
1055
|
"PromptExecutionMeta",
|
1056
|
+
"PromptNodeExecutionMeta",
|
1013
1057
|
"PromptNodeResult",
|
1014
1058
|
"PromptNodeResultData",
|
1015
1059
|
"PromptOutput",
|
@@ -1078,6 +1122,7 @@ __all__ = [
|
|
1078
1122
|
"StringInputRequest",
|
1079
1123
|
"StringVariableValue",
|
1080
1124
|
"StringVellumValue",
|
1125
|
+
"StringVellumValueRequest",
|
1081
1126
|
"SubmitCompletionActualRequest",
|
1082
1127
|
"SubmitCompletionActualsErrorResponse",
|
1083
1128
|
"SubmitWorkflowExecutionActualRequest",
|
@@ -1125,6 +1170,7 @@ __all__ = [
|
|
1125
1170
|
"TerminalNodeResultOutput_String",
|
1126
1171
|
"TerminalNodeSearchResultsResult",
|
1127
1172
|
"TerminalNodeStringResult",
|
1173
|
+
"TestCaseArrayVariableValue",
|
1128
1174
|
"TestCaseChatHistoryVariableValue",
|
1129
1175
|
"TestCaseErrorVariableValue",
|
1130
1176
|
"TestCaseFunctionCallVariableValue",
|
@@ -1133,6 +1179,7 @@ __all__ = [
|
|
1133
1179
|
"TestCaseSearchResultsVariableValue",
|
1134
1180
|
"TestCaseStringVariableValue",
|
1135
1181
|
"TestCaseVariableValue",
|
1182
|
+
"TestCaseVariableValue_Array",
|
1136
1183
|
"TestCaseVariableValue_ChatHistory",
|
1137
1184
|
"TestCaseVariableValue_Error",
|
1138
1185
|
"TestCaseVariableValue_FunctionCall",
|
@@ -1247,6 +1294,7 @@ __all__ = [
|
|
1247
1294
|
"WorkflowExecutionEventType",
|
1248
1295
|
"WorkflowExecutionNodeResultEvent",
|
1249
1296
|
"WorkflowExecutionWorkflowResultEvent",
|
1297
|
+
"WorkflowExpandMetaRequest",
|
1250
1298
|
"WorkflowNodeResultData",
|
1251
1299
|
"WorkflowNodeResultData_Api",
|
1252
1300
|
"WorkflowNodeResultData_CodeExecution",
|
@@ -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 .error_vellum_value_request import ErrorVellumValueRequest
|
8
|
+
from .function_call_vellum_value_request import FunctionCallVellumValueRequest
|
9
|
+
from .image_vellum_value_request import ImageVellumValueRequest
|
10
|
+
from .json_vellum_value_request import JsonVellumValueRequest
|
11
|
+
from .number_vellum_value_request import NumberVellumValueRequest
|
12
|
+
from .string_vellum_value_request import StringVellumValueRequest
|
13
|
+
|
14
|
+
|
15
|
+
class ArrayVellumValueItemRequest_String(StringVellumValueRequest):
|
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 ArrayVellumValueItemRequest_Number(NumberVellumValueRequest):
|
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 ArrayVellumValueItemRequest_Json(JsonVellumValueRequest):
|
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 ArrayVellumValueItemRequest_Image(ImageVellumValueRequest):
|
46
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
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 ArrayVellumValueItemRequest_FunctionCall(FunctionCallVellumValueRequest):
|
56
|
+
type: typing.Literal["FUNCTION_CALL"] = "FUNCTION_CALL"
|
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 ArrayVellumValueItemRequest_Error(ErrorVellumValueRequest):
|
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
|
+
ArrayVellumValueItemRequest = typing.Union[
|
76
|
+
ArrayVellumValueItemRequest_String,
|
77
|
+
ArrayVellumValueItemRequest_Number,
|
78
|
+
ArrayVellumValueItemRequest_Json,
|
79
|
+
ArrayVellumValueItemRequest_Image,
|
80
|
+
ArrayVellumValueItemRequest_FunctionCall,
|
81
|
+
ArrayVellumValueItemRequest_Error,
|
82
|
+
]
|
@@ -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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
|
9
|
+
|
10
|
+
class CompilePromptDeploymentExpandMetaRequest(pydantic_v1.BaseModel):
|
11
|
+
model_name: typing.Optional[bool] = pydantic_v1.Field(default=None)
|
12
|
+
"""
|
13
|
+
If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt.
|
14
|
+
"""
|
15
|
+
|
16
|
+
deployment_release_tag: typing.Optional[bool] = pydantic_v1.Field(default=None)
|
17
|
+
"""
|
18
|
+
If enabled, the response will include the release tag of the Prompt Deployment.
|
19
|
+
"""
|
20
|
+
|
21
|
+
prompt_version_id: typing.Optional[bool] = pydantic_v1.Field(default=None)
|
22
|
+
"""
|
23
|
+
If enabled, the response will include the ID of the Prompt Version backing the deployment.
|
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_v1.Extra.allow
|
38
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,31 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
|
9
|
+
|
10
|
+
class CompilePromptMeta(pydantic_v1.BaseModel):
|
11
|
+
"""
|
12
|
+
The subset of the metadata tracked by Vellum during Prompt Deployment compilation that the request opted into with `expand_meta`.
|
13
|
+
"""
|
14
|
+
|
15
|
+
model_name: typing.Optional[str] = None
|
16
|
+
deployment_release_tag: typing.Optional[str] = None
|
17
|
+
prompt_version_id: typing.Optional[str] = None
|
18
|
+
|
19
|
+
def json(self, **kwargs: typing.Any) -> str:
|
20
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
21
|
+
return super().json(**kwargs_with_defaults)
|
22
|
+
|
23
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().dict(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic_v1.Extra.allow
|
31
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -5,11 +5,13 @@ import typing
|
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .compile_prompt_meta import CompilePromptMeta
|
8
9
|
from .deployment_provider_payload_response_payload import DeploymentProviderPayloadResponsePayload
|
9
10
|
|
10
11
|
|
11
12
|
class DeploymentProviderPayloadResponse(pydantic_v1.BaseModel):
|
12
13
|
payload: DeploymentProviderPayloadResponsePayload
|
14
|
+
meta: typing.Optional[CompilePromptMeta] = None
|
13
15
|
|
14
16
|
def json(self, **kwargs: typing.Any) -> str:
|
15
17
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
@@ -0,0 +1,30 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .vellum_error_request import VellumErrorRequest
|
9
|
+
|
10
|
+
|
11
|
+
class ErrorVellumValueRequest(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
A value representing an Error.
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: typing.Optional[VellumErrorRequest] = None
|
17
|
+
|
18
|
+
def json(self, **kwargs: typing.Any) -> str:
|
19
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
+
return super().json(**kwargs_with_defaults)
|
21
|
+
|
22
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().dict(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
class Config:
|
27
|
+
frozen = True
|
28
|
+
smart_union = True
|
29
|
+
extra = pydantic_v1.Extra.allow
|
30
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,30 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .function_call_request import FunctionCallRequest
|
9
|
+
|
10
|
+
|
11
|
+
class FunctionCallVellumValueRequest(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
A value representing a Function Call.
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: typing.Optional[FunctionCallRequest] = None
|
17
|
+
|
18
|
+
def json(self, **kwargs: typing.Any) -> str:
|
19
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
+
return super().json(**kwargs_with_defaults)
|
21
|
+
|
22
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().dict(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
class Config:
|
27
|
+
frozen = True
|
28
|
+
smart_union = True
|
29
|
+
extra = pydantic_v1.Extra.allow
|
30
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,30 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .vellum_image_request import VellumImageRequest
|
9
|
+
|
10
|
+
|
11
|
+
class ImageVellumValueRequest(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
A base Vellum primitive value representing an image.
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: typing.Optional[VellumImageRequest] = None
|
17
|
+
|
18
|
+
def json(self, **kwargs: typing.Any) -> str:
|
19
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
+
return super().json(**kwargs_with_defaults)
|
21
|
+
|
22
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
23
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
+
return super().dict(**kwargs_with_defaults)
|
25
|
+
|
26
|
+
class Config:
|
27
|
+
frozen = True
|
28
|
+
smart_union = True
|
29
|
+
extra = pydantic_v1.Extra.allow
|
30
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,29 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
|
9
|
+
|
10
|
+
class JsonVellumValueRequest(pydantic_v1.BaseModel):
|
11
|
+
"""
|
12
|
+
A value representing a JSON object.
|
13
|
+
"""
|
14
|
+
|
15
|
+
value: typing.Any
|
16
|
+
|
17
|
+
def json(self, **kwargs: typing.Any) -> str:
|
18
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
+
return super().json(**kwargs_with_defaults)
|
20
|
+
|
21
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
22
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
+
return super().dict(**kwargs_with_defaults)
|
24
|
+
|
25
|
+
class Config:
|
26
|
+
frozen = True
|
27
|
+
smart_union = True
|
28
|
+
extra = pydantic_v1.Extra.allow
|
29
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,31 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .array_vellum_value_item import ArrayVellumValueItem
|
9
|
+
|
10
|
+
|
11
|
+
class NamedTestCaseArrayVariableValue(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
Named Test Case value that is of type ARRAY
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: typing.Optional[typing.List[ArrayVellumValueItem]] = None
|
17
|
+
name: str
|
18
|
+
|
19
|
+
def json(self, **kwargs: typing.Any) -> str:
|
20
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
21
|
+
return super().json(**kwargs_with_defaults)
|
22
|
+
|
23
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().dict(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic_v1.Extra.allow
|
31
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -0,0 +1,31 @@
|
|
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 ..core.pydantic_utilities import pydantic_v1
|
8
|
+
from .array_vellum_value_item_request import ArrayVellumValueItemRequest
|
9
|
+
|
10
|
+
|
11
|
+
class NamedTestCaseArrayVariableValueRequest(pydantic_v1.BaseModel):
|
12
|
+
"""
|
13
|
+
Named Test Case value that is of type ARRAY
|
14
|
+
"""
|
15
|
+
|
16
|
+
value: typing.Optional[typing.List[ArrayVellumValueItemRequest]] = None
|
17
|
+
name: str
|
18
|
+
|
19
|
+
def json(self, **kwargs: typing.Any) -> str:
|
20
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
21
|
+
return super().json(**kwargs_with_defaults)
|
22
|
+
|
23
|
+
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
24
|
+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
+
return super().dict(**kwargs_with_defaults)
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic_v1.Extra.allow
|
31
|
+
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -4,6 +4,7 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
+
from .named_test_case_array_variable_value import NamedTestCaseArrayVariableValue
|
7
8
|
from .named_test_case_chat_history_variable_value import NamedTestCaseChatHistoryVariableValue
|
8
9
|
from .named_test_case_error_variable_value import NamedTestCaseErrorVariableValue
|
9
10
|
from .named_test_case_function_call_variable_value import NamedTestCaseFunctionCallVariableValue
|
@@ -83,6 +84,16 @@ class NamedTestCaseVariableValue_FunctionCall(NamedTestCaseFunctionCallVariableV
|
|
83
84
|
populate_by_name = True
|
84
85
|
|
85
86
|
|
87
|
+
class NamedTestCaseVariableValue_Array(NamedTestCaseArrayVariableValue):
|
88
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
89
|
+
|
90
|
+
class Config:
|
91
|
+
frozen = True
|
92
|
+
smart_union = True
|
93
|
+
allow_population_by_field_name = True
|
94
|
+
populate_by_name = True
|
95
|
+
|
96
|
+
|
86
97
|
NamedTestCaseVariableValue = typing.Union[
|
87
98
|
NamedTestCaseVariableValue_String,
|
88
99
|
NamedTestCaseVariableValue_Number,
|
@@ -91,4 +102,5 @@ NamedTestCaseVariableValue = typing.Union[
|
|
91
102
|
NamedTestCaseVariableValue_SearchResults,
|
92
103
|
NamedTestCaseVariableValue_Error,
|
93
104
|
NamedTestCaseVariableValue_FunctionCall,
|
105
|
+
NamedTestCaseVariableValue_Array,
|
94
106
|
]
|
@@ -4,6 +4,7 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import typing
|
6
6
|
|
7
|
+
from .named_test_case_array_variable_value_request import NamedTestCaseArrayVariableValueRequest
|
7
8
|
from .named_test_case_chat_history_variable_value_request import NamedTestCaseChatHistoryVariableValueRequest
|
8
9
|
from .named_test_case_error_variable_value_request import NamedTestCaseErrorVariableValueRequest
|
9
10
|
from .named_test_case_function_call_variable_value_request import NamedTestCaseFunctionCallVariableValueRequest
|
@@ -83,6 +84,16 @@ class NamedTestCaseVariableValueRequest_FunctionCall(NamedTestCaseFunctionCallVa
|
|
83
84
|
populate_by_name = True
|
84
85
|
|
85
86
|
|
87
|
+
class NamedTestCaseVariableValueRequest_Array(NamedTestCaseArrayVariableValueRequest):
|
88
|
+
type: typing.Literal["ARRAY"] = "ARRAY"
|
89
|
+
|
90
|
+
class Config:
|
91
|
+
frozen = True
|
92
|
+
smart_union = True
|
93
|
+
allow_population_by_field_name = True
|
94
|
+
populate_by_name = True
|
95
|
+
|
96
|
+
|
86
97
|
NamedTestCaseVariableValueRequest = typing.Union[
|
87
98
|
NamedTestCaseVariableValueRequest_String,
|
88
99
|
NamedTestCaseVariableValueRequest_Number,
|
@@ -91,4 +102,5 @@ NamedTestCaseVariableValueRequest = typing.Union[
|
|
91
102
|
NamedTestCaseVariableValueRequest_SearchResults,
|
92
103
|
NamedTestCaseVariableValueRequest_Error,
|
93
104
|
NamedTestCaseVariableValueRequest_FunctionCall,
|
105
|
+
NamedTestCaseVariableValueRequest_Array,
|
94
106
|
]
|