vellum-ai 0.6.9__py3-none-any.whl → 0.7.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vellum/__init__.py +56 -0
- vellum/client.py +73 -40
- vellum/core/client_wrapper.py +1 -1
- vellum/lib/test_suites/resources.py +5 -5
- vellum/resources/document_indexes/client.py +114 -0
- vellum/resources/test_suites/client.py +19 -51
- vellum/types/__init__.py +58 -0
- vellum/types/array_vellum_value_item_request.py +82 -0
- vellum/types/code_execution_node_json_result.py +1 -1
- vellum/types/error_vellum_value_request.py +30 -0
- vellum/types/execution_json_vellum_value.py +1 -1
- vellum/types/function_call_vellum_value_request.py +30 -0
- vellum/types/image_vellum_value_request.py +30 -0
- vellum/types/json_variable_value.py +1 -1
- vellum/types/json_vellum_value.py +1 -1
- vellum/types/json_vellum_value_request.py +29 -0
- vellum/types/merge_node_result.py +3 -0
- vellum/types/merge_node_result_data.py +25 -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_json_variable_value.py +1 -1
- vellum/types/named_test_case_json_variable_value_request.py +1 -1
- vellum/types/named_test_case_variable_value.py +12 -0
- vellum/types/named_test_case_variable_value_request.py +12 -0
- vellum/types/node_input_compiled_json_value.py +1 -1
- vellum/types/node_output_compiled_json_value.py +1 -1
- 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 +3 -0
- vellum/types/string_vellum_value_request.py +29 -0
- vellum/types/templating_node_json_result.py +1 -1
- vellum/types/terminal_node_json_result.py +1 -1
- vellum/types/test_case_array_variable_value.py +32 -0
- vellum/types/test_case_variable_value.py +12 -0
- vellum/types/test_suite_run_execution_array_output.py +32 -0
- vellum/types/test_suite_run_execution_json_output.py +1 -1
- vellum/types/test_suite_run_execution_output.py +12 -0
- vellum/types/test_suite_run_metric_number_output.py +1 -1
- vellum/types/test_suite_run_metric_string_output.py +1 -1
- vellum/types/test_suite_test_case_bulk_operation_request.py +12 -0
- vellum/types/test_suite_test_case_rejected_bulk_result.py +1 -1
- vellum/types/test_suite_test_case_upsert_bulk_operation_request.py +35 -0
- vellum/types/upsert_enum.py +5 -0
- vellum/types/upsert_test_suite_test_case_request.py +49 -0
- vellum/types/workflow_expand_meta_request.py +28 -0
- vellum/types/workflow_output_json.py +1 -1
- vellum/types/workflow_request_json_input_request.py +1 -1
- vellum/types/workflow_result_event_output_data_json.py +1 -1
- {vellum_ai-0.6.9.dist-info → vellum_ai-0.7.2.dist-info}/METADATA +1 -1
- {vellum_ai-0.6.9.dist-info → vellum_ai-0.7.2.dist-info}/RECORD +54 -37
- {vellum_ai-0.6.9.dist-info → vellum_ai-0.7.2.dist-info}/LICENSE +0 -0
- {vellum_ai-0.6.9.dist-info → vellum_ai-0.7.2.dist-info}/WHEEL +0 -0
@@ -11,11 +11,11 @@ from ...core.jsonable_encoder import jsonable_encoder
|
|
11
11
|
from ...core.pydantic_utilities import pydantic_v1
|
12
12
|
from ...core.remove_none_from_dict import remove_none_from_dict
|
13
13
|
from ...core.request_options import RequestOptions
|
14
|
-
from ...types.named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
|
15
14
|
from ...types.paginated_test_suite_test_case_list import PaginatedTestSuiteTestCaseList
|
16
15
|
from ...types.test_suite_test_case import TestSuiteTestCase
|
17
16
|
from ...types.test_suite_test_case_bulk_operation_request import TestSuiteTestCaseBulkOperationRequest
|
18
17
|
from ...types.test_suite_test_case_bulk_result import TestSuiteTestCaseBulkResult
|
18
|
+
from ...types.upsert_test_suite_test_case_request import UpsertTestSuiteTestCaseRequest
|
19
19
|
|
20
20
|
# this is used as the default value for optional parameters
|
21
21
|
OMIT = typing.cast(typing.Any, ...)
|
@@ -99,11 +99,7 @@ class TestSuitesClient:
|
|
99
99
|
self,
|
100
100
|
id: str,
|
101
101
|
*,
|
102
|
-
|
103
|
-
external_id: typing.Optional[str] = OMIT,
|
104
|
-
label: typing.Optional[str] = OMIT,
|
105
|
-
input_values: typing.Sequence[NamedTestCaseVariableValueRequest],
|
106
|
-
evaluation_values: typing.Sequence[NamedTestCaseVariableValueRequest],
|
102
|
+
request: UpsertTestSuiteTestCaseRequest,
|
107
103
|
request_options: typing.Optional[RequestOptions] = None,
|
108
104
|
) -> TestSuiteTestCase:
|
109
105
|
"""
|
@@ -118,18 +114,11 @@ class TestSuitesClient:
|
|
118
114
|
Parameters:
|
119
115
|
- id: str. A UUID string identifying this test suite.
|
120
116
|
|
121
|
-
-
|
122
|
-
|
123
|
-
- external_id: typing.Optional[str]. An ID external to Vellum that uniquely identifies the Test Case that you'd like to create/update. If there's a match on a Test Case that was previously created with the same external_id, it will be updated. Otherwise, a new Test Case will be created with this value as its external_id. If no external_id is specified, then a new Test Case will always be created.
|
124
|
-
|
125
|
-
- label: typing.Optional[str]. A human-readable label used to convey the intention of this Test Case
|
126
|
-
|
127
|
-
- input_values: typing.Sequence[NamedTestCaseVariableValueRequest]. Values for each of the Test Case's input variables
|
128
|
-
|
129
|
-
- evaluation_values: typing.Sequence[NamedTestCaseVariableValueRequest]. Values for each of the Test Case's evaluation variables
|
117
|
+
- request: UpsertTestSuiteTestCaseRequest.
|
130
118
|
|
131
119
|
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
|
132
120
|
---
|
121
|
+
from vellum import UpsertTestSuiteTestCaseRequest
|
133
122
|
from vellum.client import Vellum
|
134
123
|
|
135
124
|
client = Vellum(
|
@@ -137,17 +126,12 @@ class TestSuitesClient:
|
|
137
126
|
)
|
138
127
|
client.test_suites.upsert_test_suite_test_case(
|
139
128
|
id="id",
|
140
|
-
|
141
|
-
|
129
|
+
request=UpsertTestSuiteTestCaseRequest(
|
130
|
+
input_values=[],
|
131
|
+
evaluation_values=[],
|
132
|
+
),
|
142
133
|
)
|
143
134
|
"""
|
144
|
-
_request: typing.Dict[str, typing.Any] = {"input_values": input_values, "evaluation_values": evaluation_values}
|
145
|
-
if upsert_test_suite_test_case_request_id is not OMIT:
|
146
|
-
_request["id"] = upsert_test_suite_test_case_request_id
|
147
|
-
if external_id is not OMIT:
|
148
|
-
_request["external_id"] = external_id
|
149
|
-
if label is not OMIT:
|
150
|
-
_request["label"] = label
|
151
135
|
_response = self._client_wrapper.httpx_client.request(
|
152
136
|
method="POST",
|
153
137
|
url=urllib.parse.urljoin(
|
@@ -157,10 +141,10 @@ class TestSuitesClient:
|
|
157
141
|
params=jsonable_encoder(
|
158
142
|
request_options.get("additional_query_parameters") if request_options is not None else None
|
159
143
|
),
|
160
|
-
json=jsonable_encoder(
|
144
|
+
json=jsonable_encoder(request)
|
161
145
|
if request_options is None or request_options.get("additional_body_parameters") is None
|
162
146
|
else {
|
163
|
-
**jsonable_encoder(
|
147
|
+
**jsonable_encoder(request),
|
164
148
|
**(jsonable_encoder(remove_none_from_dict(request_options.get("additional_body_parameters", {})))),
|
165
149
|
},
|
166
150
|
headers=jsonable_encoder(
|
@@ -402,11 +386,7 @@ class AsyncTestSuitesClient:
|
|
402
386
|
self,
|
403
387
|
id: str,
|
404
388
|
*,
|
405
|
-
|
406
|
-
external_id: typing.Optional[str] = OMIT,
|
407
|
-
label: typing.Optional[str] = OMIT,
|
408
|
-
input_values: typing.Sequence[NamedTestCaseVariableValueRequest],
|
409
|
-
evaluation_values: typing.Sequence[NamedTestCaseVariableValueRequest],
|
389
|
+
request: UpsertTestSuiteTestCaseRequest,
|
410
390
|
request_options: typing.Optional[RequestOptions] = None,
|
411
391
|
) -> TestSuiteTestCase:
|
412
392
|
"""
|
@@ -421,18 +401,11 @@ class AsyncTestSuitesClient:
|
|
421
401
|
Parameters:
|
422
402
|
- id: str. A UUID string identifying this test suite.
|
423
403
|
|
424
|
-
-
|
425
|
-
|
426
|
-
- external_id: typing.Optional[str]. An ID external to Vellum that uniquely identifies the Test Case that you'd like to create/update. If there's a match on a Test Case that was previously created with the same external_id, it will be updated. Otherwise, a new Test Case will be created with this value as its external_id. If no external_id is specified, then a new Test Case will always be created.
|
427
|
-
|
428
|
-
- label: typing.Optional[str]. A human-readable label used to convey the intention of this Test Case
|
429
|
-
|
430
|
-
- input_values: typing.Sequence[NamedTestCaseVariableValueRequest]. Values for each of the Test Case's input variables
|
431
|
-
|
432
|
-
- evaluation_values: typing.Sequence[NamedTestCaseVariableValueRequest]. Values for each of the Test Case's evaluation variables
|
404
|
+
- request: UpsertTestSuiteTestCaseRequest.
|
433
405
|
|
434
406
|
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
|
435
407
|
---
|
408
|
+
from vellum import UpsertTestSuiteTestCaseRequest
|
436
409
|
from vellum.client import AsyncVellum
|
437
410
|
|
438
411
|
client = AsyncVellum(
|
@@ -440,17 +413,12 @@ class AsyncTestSuitesClient:
|
|
440
413
|
)
|
441
414
|
await client.test_suites.upsert_test_suite_test_case(
|
442
415
|
id="id",
|
443
|
-
|
444
|
-
|
416
|
+
request=UpsertTestSuiteTestCaseRequest(
|
417
|
+
input_values=[],
|
418
|
+
evaluation_values=[],
|
419
|
+
),
|
445
420
|
)
|
446
421
|
"""
|
447
|
-
_request: typing.Dict[str, typing.Any] = {"input_values": input_values, "evaluation_values": evaluation_values}
|
448
|
-
if upsert_test_suite_test_case_request_id is not OMIT:
|
449
|
-
_request["id"] = upsert_test_suite_test_case_request_id
|
450
|
-
if external_id is not OMIT:
|
451
|
-
_request["external_id"] = external_id
|
452
|
-
if label is not OMIT:
|
453
|
-
_request["label"] = label
|
454
422
|
_response = await self._client_wrapper.httpx_client.request(
|
455
423
|
method="POST",
|
456
424
|
url=urllib.parse.urljoin(
|
@@ -460,10 +428,10 @@ class AsyncTestSuitesClient:
|
|
460
428
|
params=jsonable_encoder(
|
461
429
|
request_options.get("additional_query_parameters") if request_options is not None else None
|
462
430
|
),
|
463
|
-
json=jsonable_encoder(
|
431
|
+
json=jsonable_encoder(request)
|
464
432
|
if request_options is None or request_options.get("additional_body_parameters") is None
|
465
433
|
else {
|
466
|
-
**jsonable_encoder(
|
434
|
+
**jsonable_encoder(request),
|
467
435
|
**(jsonable_encoder(remove_none_from_dict(request_options.get("additional_body_parameters", {})))),
|
468
436
|
},
|
469
437
|
headers=jsonable_encoder(
|
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 (
|
@@ -126,6 +135,7 @@ from .environment_enum import EnvironmentEnum
|
|
126
135
|
from .error_enum import ErrorEnum
|
127
136
|
from .error_variable_value import ErrorVariableValue
|
128
137
|
from .error_vellum_value import ErrorVellumValue
|
138
|
+
from .error_vellum_value_request import ErrorVellumValueRequest
|
129
139
|
from .execute_prompt_api_error_response import ExecutePromptApiErrorResponse
|
130
140
|
from .execute_prompt_event import (
|
131
141
|
ExecutePromptEvent,
|
@@ -184,6 +194,7 @@ from .function_call_enum import FunctionCallEnum
|
|
184
194
|
from .function_call_request import FunctionCallRequest
|
185
195
|
from .function_call_variable_value import FunctionCallVariableValue
|
186
196
|
from .function_call_vellum_value import FunctionCallVellumValue
|
197
|
+
from .function_call_vellum_value_request import FunctionCallVellumValueRequest
|
187
198
|
from .generate_error_response import GenerateErrorResponse
|
188
199
|
from .generate_options_request import GenerateOptionsRequest
|
189
200
|
from .generate_request import GenerateRequest
|
@@ -202,6 +213,7 @@ from .image_chat_message_content_request import ImageChatMessageContentRequest
|
|
202
213
|
from .image_enum import ImageEnum
|
203
214
|
from .image_variable_value import ImageVariableValue
|
204
215
|
from .image_vellum_value import ImageVellumValue
|
216
|
+
from .image_vellum_value_request import ImageVellumValueRequest
|
205
217
|
from .indexing_config_vectorizer import (
|
206
218
|
IndexingConfigVectorizer,
|
207
219
|
IndexingConfigVectorizer_HkunlpInstructorXl,
|
@@ -235,6 +247,7 @@ from .json_enum import JsonEnum
|
|
235
247
|
from .json_input_request import JsonInputRequest
|
236
248
|
from .json_variable_value import JsonVariableValue
|
237
249
|
from .json_vellum_value import JsonVellumValue
|
250
|
+
from .json_vellum_value_request import JsonVellumValueRequest
|
238
251
|
from .logical_operator import LogicalOperator
|
239
252
|
from .logprobs_enum import LogprobsEnum
|
240
253
|
from .map_enum import MapEnum
|
@@ -242,6 +255,7 @@ from .map_node_result import MapNodeResult
|
|
242
255
|
from .map_node_result_data import MapNodeResultData
|
243
256
|
from .merge_enum import MergeEnum
|
244
257
|
from .merge_node_result import MergeNodeResult
|
258
|
+
from .merge_node_result_data import MergeNodeResultData
|
245
259
|
from .metadata_filter_config_request import MetadataFilterConfigRequest
|
246
260
|
from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
|
247
261
|
from .metadata_filter_rule_request import MetadataFilterRuleRequest
|
@@ -255,6 +269,8 @@ from .named_scenario_input_request import (
|
|
255
269
|
NamedScenarioInputRequest_String,
|
256
270
|
)
|
257
271
|
from .named_scenario_input_string_variable_value_request import NamedScenarioInputStringVariableValueRequest
|
272
|
+
from .named_test_case_array_variable_value import NamedTestCaseArrayVariableValue
|
273
|
+
from .named_test_case_array_variable_value_request import NamedTestCaseArrayVariableValueRequest
|
258
274
|
from .named_test_case_chat_history_variable_value import NamedTestCaseChatHistoryVariableValue
|
259
275
|
from .named_test_case_chat_history_variable_value_request import NamedTestCaseChatHistoryVariableValueRequest
|
260
276
|
from .named_test_case_error_variable_value import NamedTestCaseErrorVariableValue
|
@@ -271,6 +287,7 @@ from .named_test_case_string_variable_value import NamedTestCaseStringVariableVa
|
|
271
287
|
from .named_test_case_string_variable_value_request import NamedTestCaseStringVariableValueRequest
|
272
288
|
from .named_test_case_variable_value import (
|
273
289
|
NamedTestCaseVariableValue,
|
290
|
+
NamedTestCaseVariableValue_Array,
|
274
291
|
NamedTestCaseVariableValue_ChatHistory,
|
275
292
|
NamedTestCaseVariableValue_Error,
|
276
293
|
NamedTestCaseVariableValue_FunctionCall,
|
@@ -281,6 +298,7 @@ from .named_test_case_variable_value import (
|
|
281
298
|
)
|
282
299
|
from .named_test_case_variable_value_request import (
|
283
300
|
NamedTestCaseVariableValueRequest,
|
301
|
+
NamedTestCaseVariableValueRequest_Array,
|
284
302
|
NamedTestCaseVariableValueRequest_ChatHistory,
|
285
303
|
NamedTestCaseVariableValueRequest_Error,
|
286
304
|
NamedTestCaseVariableValueRequest_FunctionCall,
|
@@ -332,6 +350,7 @@ from .normalized_token_log_probs import NormalizedTokenLogProbs
|
|
332
350
|
from .number_enum import NumberEnum
|
333
351
|
from .number_variable_value import NumberVariableValue
|
334
352
|
from .number_vellum_value import NumberVellumValue
|
353
|
+
from .number_vellum_value_request import NumberVellumValueRequest
|
335
354
|
from .open_ai_vectorizer_config import OpenAiVectorizerConfig
|
336
355
|
from .open_ai_vectorizer_config_request import OpenAiVectorizerConfigRequest
|
337
356
|
from .open_ai_vectorizer_text_embedding_3_large import OpenAiVectorizerTextEmbedding3Large
|
@@ -359,6 +378,7 @@ from .prompt_deployment_input_request import (
|
|
359
378
|
PromptDeploymentInputRequest_String,
|
360
379
|
)
|
361
380
|
from .prompt_execution_meta import PromptExecutionMeta
|
381
|
+
from .prompt_node_execution_meta import PromptNodeExecutionMeta
|
362
382
|
from .prompt_node_result import PromptNodeResult
|
363
383
|
from .prompt_node_result_data import PromptNodeResultData
|
364
384
|
from .prompt_output import (
|
@@ -425,6 +445,7 @@ from .string_enum import StringEnum
|
|
425
445
|
from .string_input_request import StringInputRequest
|
426
446
|
from .string_variable_value import StringVariableValue
|
427
447
|
from .string_vellum_value import StringVellumValue
|
448
|
+
from .string_vellum_value_request import StringVellumValueRequest
|
428
449
|
from .submit_completion_actual_request import SubmitCompletionActualRequest
|
429
450
|
from .submit_completion_actuals_error_response import SubmitCompletionActualsErrorResponse
|
430
451
|
from .submit_workflow_execution_actual_request import (
|
@@ -478,6 +499,7 @@ from .terminal_node_result_output import (
|
|
478
499
|
)
|
479
500
|
from .terminal_node_search_results_result import TerminalNodeSearchResultsResult
|
480
501
|
from .terminal_node_string_result import TerminalNodeStringResult
|
502
|
+
from .test_case_array_variable_value import TestCaseArrayVariableValue
|
481
503
|
from .test_case_chat_history_variable_value import TestCaseChatHistoryVariableValue
|
482
504
|
from .test_case_error_variable_value import TestCaseErrorVariableValue
|
483
505
|
from .test_case_function_call_variable_value import TestCaseFunctionCallVariableValue
|
@@ -487,6 +509,7 @@ from .test_case_search_results_variable_value import TestCaseSearchResultsVariab
|
|
487
509
|
from .test_case_string_variable_value import TestCaseStringVariableValue
|
488
510
|
from .test_case_variable_value import (
|
489
511
|
TestCaseVariableValue,
|
512
|
+
TestCaseVariableValue_Array,
|
490
513
|
TestCaseVariableValue_ChatHistory,
|
491
514
|
TestCaseVariableValue_Error,
|
492
515
|
TestCaseVariableValue_FunctionCall,
|
@@ -517,6 +540,7 @@ from .test_suite_run_exec_config_request import (
|
|
517
540
|
TestSuiteRunExecConfigRequest_WorkflowReleaseTag,
|
518
541
|
)
|
519
542
|
from .test_suite_run_execution import TestSuiteRunExecution
|
543
|
+
from .test_suite_run_execution_array_output import TestSuiteRunExecutionArrayOutput
|
520
544
|
from .test_suite_run_execution_chat_history_output import TestSuiteRunExecutionChatHistoryOutput
|
521
545
|
from .test_suite_run_execution_error_output import TestSuiteRunExecutionErrorOutput
|
522
546
|
from .test_suite_run_execution_function_call_output import TestSuiteRunExecutionFunctionCallOutput
|
@@ -526,6 +550,7 @@ from .test_suite_run_execution_metric_result import TestSuiteRunExecutionMetricR
|
|
526
550
|
from .test_suite_run_execution_number_output import TestSuiteRunExecutionNumberOutput
|
527
551
|
from .test_suite_run_execution_output import (
|
528
552
|
TestSuiteRunExecutionOutput,
|
553
|
+
TestSuiteRunExecutionOutput_Array,
|
529
554
|
TestSuiteRunExecutionOutput_ChatHistory,
|
530
555
|
TestSuiteRunExecutionOutput_Error,
|
531
556
|
TestSuiteRunExecutionOutput_FunctionCall,
|
@@ -569,6 +594,7 @@ from .test_suite_test_case_bulk_operation_request import (
|
|
569
594
|
TestSuiteTestCaseBulkOperationRequest_Create,
|
570
595
|
TestSuiteTestCaseBulkOperationRequest_Delete,
|
571
596
|
TestSuiteTestCaseBulkOperationRequest_Replace,
|
597
|
+
TestSuiteTestCaseBulkOperationRequest_Upsert,
|
572
598
|
)
|
573
599
|
from .test_suite_test_case_bulk_result import (
|
574
600
|
TestSuiteTestCaseBulkResult,
|
@@ -588,6 +614,7 @@ from .test_suite_test_case_rejected_bulk_result import TestSuiteTestCaseRejected
|
|
588
614
|
from .test_suite_test_case_replace_bulk_operation_request import TestSuiteTestCaseReplaceBulkOperationRequest
|
589
615
|
from .test_suite_test_case_replaced_bulk_result import TestSuiteTestCaseReplacedBulkResult
|
590
616
|
from .test_suite_test_case_replaced_bulk_result_data import TestSuiteTestCaseReplacedBulkResultData
|
617
|
+
from .test_suite_test_case_upsert_bulk_operation_request import TestSuiteTestCaseUpsertBulkOperationRequest
|
591
618
|
from .text_embedding_3_large_enum import TextEmbedding3LargeEnum
|
592
619
|
from .text_embedding_3_small_enum import TextEmbedding3SmallEnum
|
593
620
|
from .text_embedding_ada_002_enum import TextEmbeddingAda002Enum
|
@@ -598,6 +625,8 @@ from .token_overlapping_window_chunking import TokenOverlappingWindowChunking
|
|
598
625
|
from .token_overlapping_window_chunking_request import TokenOverlappingWindowChunkingRequest
|
599
626
|
from .upload_document_error_response import UploadDocumentErrorResponse
|
600
627
|
from .upload_document_response import UploadDocumentResponse
|
628
|
+
from .upsert_enum import UpsertEnum
|
629
|
+
from .upsert_test_suite_test_case_request import UpsertTestSuiteTestCaseRequest
|
601
630
|
from .vellum_error import VellumError
|
602
631
|
from .vellum_error_code_enum import VellumErrorCodeEnum
|
603
632
|
from .vellum_error_request import VellumErrorRequest
|
@@ -614,6 +643,7 @@ from .workflow_execution_event_error_code import WorkflowExecutionEventErrorCode
|
|
614
643
|
from .workflow_execution_event_type import WorkflowExecutionEventType
|
615
644
|
from .workflow_execution_node_result_event import WorkflowExecutionNodeResultEvent
|
616
645
|
from .workflow_execution_workflow_result_event import WorkflowExecutionWorkflowResultEvent
|
646
|
+
from .workflow_expand_meta_request import WorkflowExpandMetaRequest
|
617
647
|
from .workflow_node_result_data import (
|
618
648
|
WorkflowNodeResultData,
|
619
649
|
WorkflowNodeResultData_Api,
|
@@ -715,6 +745,13 @@ __all__ = [
|
|
715
745
|
"ArrayVariableValueItem_Number",
|
716
746
|
"ArrayVariableValueItem_String",
|
717
747
|
"ArrayVellumValueItem",
|
748
|
+
"ArrayVellumValueItemRequest",
|
749
|
+
"ArrayVellumValueItemRequest_Error",
|
750
|
+
"ArrayVellumValueItemRequest_FunctionCall",
|
751
|
+
"ArrayVellumValueItemRequest_Image",
|
752
|
+
"ArrayVellumValueItemRequest_Json",
|
753
|
+
"ArrayVellumValueItemRequest_Number",
|
754
|
+
"ArrayVellumValueItemRequest_String",
|
718
755
|
"ArrayVellumValueItem_Error",
|
719
756
|
"ArrayVellumValueItem_FunctionCall",
|
720
757
|
"ArrayVellumValueItem_Image",
|
@@ -793,6 +830,7 @@ __all__ = [
|
|
793
830
|
"ErrorEnum",
|
794
831
|
"ErrorVariableValue",
|
795
832
|
"ErrorVellumValue",
|
833
|
+
"ErrorVellumValueRequest",
|
796
834
|
"ExecutePromptApiErrorResponse",
|
797
835
|
"ExecutePromptEvent",
|
798
836
|
"ExecutePromptEvent_Fulfilled",
|
@@ -843,6 +881,7 @@ __all__ = [
|
|
843
881
|
"FunctionCallRequest",
|
844
882
|
"FunctionCallVariableValue",
|
845
883
|
"FunctionCallVellumValue",
|
884
|
+
"FunctionCallVellumValueRequest",
|
846
885
|
"GenerateErrorResponse",
|
847
886
|
"GenerateOptionsRequest",
|
848
887
|
"GenerateRequest",
|
@@ -861,6 +900,7 @@ __all__ = [
|
|
861
900
|
"ImageEnum",
|
862
901
|
"ImageVariableValue",
|
863
902
|
"ImageVellumValue",
|
903
|
+
"ImageVellumValueRequest",
|
864
904
|
"IndexingConfigVectorizer",
|
865
905
|
"IndexingConfigVectorizerRequest",
|
866
906
|
"IndexingConfigVectorizerRequest_HkunlpInstructorXl",
|
@@ -890,6 +930,7 @@ __all__ = [
|
|
890
930
|
"JsonInputRequest",
|
891
931
|
"JsonVariableValue",
|
892
932
|
"JsonVellumValue",
|
933
|
+
"JsonVellumValueRequest",
|
893
934
|
"LogicalOperator",
|
894
935
|
"LogprobsEnum",
|
895
936
|
"MapEnum",
|
@@ -897,6 +938,7 @@ __all__ = [
|
|
897
938
|
"MapNodeResultData",
|
898
939
|
"MergeEnum",
|
899
940
|
"MergeNodeResult",
|
941
|
+
"MergeNodeResultData",
|
900
942
|
"MetadataFilterConfigRequest",
|
901
943
|
"MetadataFilterRuleCombinator",
|
902
944
|
"MetadataFilterRuleRequest",
|
@@ -908,6 +950,8 @@ __all__ = [
|
|
908
950
|
"NamedScenarioInputRequest_ChatHistory",
|
909
951
|
"NamedScenarioInputRequest_String",
|
910
952
|
"NamedScenarioInputStringVariableValueRequest",
|
953
|
+
"NamedTestCaseArrayVariableValue",
|
954
|
+
"NamedTestCaseArrayVariableValueRequest",
|
911
955
|
"NamedTestCaseChatHistoryVariableValue",
|
912
956
|
"NamedTestCaseChatHistoryVariableValueRequest",
|
913
957
|
"NamedTestCaseErrorVariableValue",
|
@@ -924,6 +968,7 @@ __all__ = [
|
|
924
968
|
"NamedTestCaseStringVariableValueRequest",
|
925
969
|
"NamedTestCaseVariableValue",
|
926
970
|
"NamedTestCaseVariableValueRequest",
|
971
|
+
"NamedTestCaseVariableValueRequest_Array",
|
927
972
|
"NamedTestCaseVariableValueRequest_ChatHistory",
|
928
973
|
"NamedTestCaseVariableValueRequest_Error",
|
929
974
|
"NamedTestCaseVariableValueRequest_FunctionCall",
|
@@ -931,6 +976,7 @@ __all__ = [
|
|
931
976
|
"NamedTestCaseVariableValueRequest_Number",
|
932
977
|
"NamedTestCaseVariableValueRequest_SearchResults",
|
933
978
|
"NamedTestCaseVariableValueRequest_String",
|
979
|
+
"NamedTestCaseVariableValue_Array",
|
934
980
|
"NamedTestCaseVariableValue_ChatHistory",
|
935
981
|
"NamedTestCaseVariableValue_Error",
|
936
982
|
"NamedTestCaseVariableValue_FunctionCall",
|
@@ -977,6 +1023,7 @@ __all__ = [
|
|
977
1023
|
"NumberEnum",
|
978
1024
|
"NumberVariableValue",
|
979
1025
|
"NumberVellumValue",
|
1026
|
+
"NumberVellumValueRequest",
|
980
1027
|
"OpenAiVectorizerConfig",
|
981
1028
|
"OpenAiVectorizerConfigRequest",
|
982
1029
|
"OpenAiVectorizerTextEmbedding3Large",
|
@@ -1002,6 +1049,7 @@ __all__ = [
|
|
1002
1049
|
"PromptDeploymentInputRequest_Json",
|
1003
1050
|
"PromptDeploymentInputRequest_String",
|
1004
1051
|
"PromptExecutionMeta",
|
1052
|
+
"PromptNodeExecutionMeta",
|
1005
1053
|
"PromptNodeResult",
|
1006
1054
|
"PromptNodeResultData",
|
1007
1055
|
"PromptOutput",
|
@@ -1070,6 +1118,7 @@ __all__ = [
|
|
1070
1118
|
"StringInputRequest",
|
1071
1119
|
"StringVariableValue",
|
1072
1120
|
"StringVellumValue",
|
1121
|
+
"StringVellumValueRequest",
|
1073
1122
|
"SubmitCompletionActualRequest",
|
1074
1123
|
"SubmitCompletionActualsErrorResponse",
|
1075
1124
|
"SubmitWorkflowExecutionActualRequest",
|
@@ -1117,6 +1166,7 @@ __all__ = [
|
|
1117
1166
|
"TerminalNodeResultOutput_String",
|
1118
1167
|
"TerminalNodeSearchResultsResult",
|
1119
1168
|
"TerminalNodeStringResult",
|
1169
|
+
"TestCaseArrayVariableValue",
|
1120
1170
|
"TestCaseChatHistoryVariableValue",
|
1121
1171
|
"TestCaseErrorVariableValue",
|
1122
1172
|
"TestCaseFunctionCallVariableValue",
|
@@ -1125,6 +1175,7 @@ __all__ = [
|
|
1125
1175
|
"TestCaseSearchResultsVariableValue",
|
1126
1176
|
"TestCaseStringVariableValue",
|
1127
1177
|
"TestCaseVariableValue",
|
1178
|
+
"TestCaseVariableValue_Array",
|
1128
1179
|
"TestCaseVariableValue_ChatHistory",
|
1129
1180
|
"TestCaseVariableValue_Error",
|
1130
1181
|
"TestCaseVariableValue_FunctionCall",
|
@@ -1146,6 +1197,7 @@ __all__ = [
|
|
1146
1197
|
"TestSuiteRunExecConfig_External",
|
1147
1198
|
"TestSuiteRunExecConfig_WorkflowReleaseTag",
|
1148
1199
|
"TestSuiteRunExecution",
|
1200
|
+
"TestSuiteRunExecutionArrayOutput",
|
1149
1201
|
"TestSuiteRunExecutionChatHistoryOutput",
|
1150
1202
|
"TestSuiteRunExecutionErrorOutput",
|
1151
1203
|
"TestSuiteRunExecutionFunctionCallOutput",
|
@@ -1154,6 +1206,7 @@ __all__ = [
|
|
1154
1206
|
"TestSuiteRunExecutionMetricResult",
|
1155
1207
|
"TestSuiteRunExecutionNumberOutput",
|
1156
1208
|
"TestSuiteRunExecutionOutput",
|
1209
|
+
"TestSuiteRunExecutionOutput_Array",
|
1157
1210
|
"TestSuiteRunExecutionOutput_ChatHistory",
|
1158
1211
|
"TestSuiteRunExecutionOutput_Error",
|
1159
1212
|
"TestSuiteRunExecutionOutput_FunctionCall",
|
@@ -1191,6 +1244,7 @@ __all__ = [
|
|
1191
1244
|
"TestSuiteTestCaseBulkOperationRequest_Create",
|
1192
1245
|
"TestSuiteTestCaseBulkOperationRequest_Delete",
|
1193
1246
|
"TestSuiteTestCaseBulkOperationRequest_Replace",
|
1247
|
+
"TestSuiteTestCaseBulkOperationRequest_Upsert",
|
1194
1248
|
"TestSuiteTestCaseBulkResult",
|
1195
1249
|
"TestSuiteTestCaseBulkResult_Created",
|
1196
1250
|
"TestSuiteTestCaseBulkResult_Deleted",
|
@@ -1207,6 +1261,7 @@ __all__ = [
|
|
1207
1261
|
"TestSuiteTestCaseReplaceBulkOperationRequest",
|
1208
1262
|
"TestSuiteTestCaseReplacedBulkResult",
|
1209
1263
|
"TestSuiteTestCaseReplacedBulkResultData",
|
1264
|
+
"TestSuiteTestCaseUpsertBulkOperationRequest",
|
1210
1265
|
"TextEmbedding3LargeEnum",
|
1211
1266
|
"TextEmbedding3SmallEnum",
|
1212
1267
|
"TextEmbeddingAda002Enum",
|
@@ -1217,6 +1272,8 @@ __all__ = [
|
|
1217
1272
|
"TokenOverlappingWindowChunkingRequest",
|
1218
1273
|
"UploadDocumentErrorResponse",
|
1219
1274
|
"UploadDocumentResponse",
|
1275
|
+
"UpsertEnum",
|
1276
|
+
"UpsertTestSuiteTestCaseRequest",
|
1220
1277
|
"VellumError",
|
1221
1278
|
"VellumErrorCodeEnum",
|
1222
1279
|
"VellumErrorRequest",
|
@@ -1233,6 +1290,7 @@ __all__ = [
|
|
1233
1290
|
"WorkflowExecutionEventType",
|
1234
1291
|
"WorkflowExecutionNodeResultEvent",
|
1235
1292
|
"WorkflowExecutionWorkflowResultEvent",
|
1293
|
+
"WorkflowExpandMetaRequest",
|
1236
1294
|
"WorkflowNodeResultData",
|
1237
1295
|
"WorkflowNodeResultData_Api",
|
1238
1296
|
"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
|
+
]
|
@@ -9,7 +9,7 @@ from ..core.pydantic_utilities import pydantic_v1
|
|
9
9
|
|
10
10
|
class CodeExecutionNodeJsonResult(pydantic_v1.BaseModel):
|
11
11
|
id: str
|
12
|
-
value: typing.
|
12
|
+
value: typing.Any
|
13
13
|
|
14
14
|
def json(self, **kwargs: typing.Any) -> str:
|
15
15
|
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}
|
@@ -18,7 +18,7 @@ class ExecutionJsonVellumValue(pydantic_v1.BaseModel):
|
|
18
18
|
"""
|
19
19
|
|
20
20
|
name: str
|
21
|
-
value: typing.
|
21
|
+
value: typing.Any
|
22
22
|
|
23
23
|
def json(self, **kwargs: typing.Any) -> str:
|
24
24
|
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 .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}
|
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import pydantic_v1
|
|
8
8
|
|
9
9
|
|
10
10
|
class JsonVariableValue(pydantic_v1.BaseModel):
|
11
|
-
value: typing.
|
11
|
+
value: typing.Any
|
12
12
|
|
13
13
|
def json(self, **kwargs: typing.Any) -> str:
|
14
14
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|