vellum-ai 0.9.11 → 0.9.13
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.
- package/.mock/definition/__package__.yml +90 -74
- package/.mock/definition/adHoc.yml +1 -0
- package/.mock/definition/metricDefinitions.yml +2 -2
- package/.mock/openapi/openapi.yml +140 -106
- package/Client.d.ts +2 -2
- package/Client.js +12 -12
- package/api/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +3 -3
- package/api/client/requests/index.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +17 -3
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +2 -2
- package/api/resources/metricDefinitions/client/Client.js +3 -3
- package/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.d.ts → ExecuteMetricDefinition.d.ts} +2 -2
- package/api/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +2 -2
- package/api/types/ChatHistoryInput.d.ts +13 -0
- package/{dist/api/types/CodeExecutionPackageRequest.d.ts → api/types/CodeExecutionPackage.d.ts} +1 -1
- package/api/types/CodeExecutorInput.d.ts +5 -0
- package/{dist/api/types/CodeExecutorSecretInputRequest.d.ts → api/types/CodeExecutorSecretInput.d.ts} +1 -1
- package/api/types/{ProcessingStateEnum.d.ts → DocumentProcessingState.d.ts} +4 -2
- package/api/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +3 -2
- package/api/types/DocumentRead.d.ts +1 -9
- package/api/types/{ErrorInputRequest.d.ts → ErrorInput.d.ts} +2 -2
- package/{dist/api/types/FunctionCallInputRequest.d.ts → api/types/FunctionCallInput.d.ts} +2 -2
- package/{dist/api/types/FunctionDefinitionPromptBlock.d.ts → api/types/FunctionDefinition.d.ts} +6 -7
- package/api/types/JsonInput.d.ts +12 -0
- package/api/types/MetricDefinitionInput.d.ts +5 -0
- package/api/types/{NumberInputRequest.d.ts → NumberInput.d.ts} +1 -1
- package/api/types/PromptBlock.d.ts +1 -1
- package/{dist/api/types/SearchResultsInputRequest.d.ts → api/types/SearchResultsInput.d.ts} +2 -2
- package/api/types/SlimDocument.d.ts +1 -9
- package/api/types/StringInput.d.ts +12 -0
- package/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/api/types/VellumErrorCodeEnum.js +1 -0
- package/api/types/index.d.ts +14 -11
- package/api/types/index.js +14 -11
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +12 -12
- package/dist/api/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +3 -3
- package/dist/api/client/requests/index.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +17 -3
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
- package/dist/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.d.ts → ExecuteMetricDefinition.d.ts} +2 -2
- package/dist/api/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +2 -2
- package/dist/api/types/ChatHistoryInput.d.ts +13 -0
- package/{api/types/CodeExecutionPackageRequest.d.ts → dist/api/types/CodeExecutionPackage.d.ts} +1 -1
- package/dist/api/types/CodeExecutorInput.d.ts +5 -0
- package/{api/types/CodeExecutorSecretInputRequest.d.ts → dist/api/types/CodeExecutorSecretInput.d.ts} +1 -1
- package/dist/api/types/{ProcessingStateEnum.d.ts → DocumentProcessingState.d.ts} +4 -2
- package/dist/api/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +3 -2
- package/dist/api/types/DocumentRead.d.ts +1 -9
- package/dist/api/types/{ErrorInputRequest.d.ts → ErrorInput.d.ts} +2 -2
- package/{api/types/FunctionCallInputRequest.d.ts → dist/api/types/FunctionCallInput.d.ts} +2 -2
- package/{api/types/FunctionDefinitionPromptBlock.d.ts → dist/api/types/FunctionDefinition.d.ts} +6 -7
- package/dist/api/types/FunctionDefinition.js +5 -0
- package/dist/api/types/JsonInput.d.ts +12 -0
- package/dist/api/types/JsonInput.js +5 -0
- package/dist/api/types/MetricDefinitionInput.d.ts +5 -0
- package/dist/api/types/MetricDefinitionInput.js +5 -0
- package/dist/api/types/{NumberInputRequest.d.ts → NumberInput.d.ts} +1 -1
- package/dist/api/types/NumberInput.js +5 -0
- package/dist/api/types/PromptBlock.d.ts +1 -1
- package/{api/types/SearchResultsInputRequest.d.ts → dist/api/types/SearchResultsInput.d.ts} +2 -2
- package/dist/api/types/SearchResultsInput.js +5 -0
- package/dist/api/types/SlimDocument.d.ts +1 -9
- package/dist/api/types/StringInput.d.ts +12 -0
- package/dist/api/types/StringInput.js +5 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/dist/api/types/VellumErrorCodeEnum.js +1 -0
- package/dist/api/types/index.d.ts +14 -11
- package/dist/api/types/index.js +14 -11
- package/dist/serialization/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +6 -6
- package/dist/serialization/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +6 -6
- package/dist/serialization/client/requests/index.d.ts +1 -1
- package/dist/serialization/client/requests/index.js +3 -3
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
- package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +14 -0
- package/{serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +4 -4
- package/dist/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/metricDefinitions/client/requests/index.js +3 -3
- package/dist/serialization/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +3 -3
- package/{serialization/types/ArrayInputRequest.js → dist/serialization/types/ArrayInput.js} +3 -3
- package/dist/serialization/types/ChatHistoryInput.d.ts +15 -0
- package/dist/serialization/types/ChatHistoryInput.js +36 -0
- package/{serialization/types/CodeExecutionPackageRequest.d.ts → dist/serialization/types/CodeExecutionPackage.d.ts} +2 -2
- package/dist/serialization/types/{CodeExecutionPackageRequest.js → CodeExecutionPackage.js} +2 -2
- package/dist/serialization/types/CodeExecutorInput.d.ts +19 -0
- package/dist/serialization/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +20 -10
- package/{serialization/types/CodeExecutorSecretInputRequest.d.ts → dist/serialization/types/CodeExecutorSecretInput.d.ts} +2 -2
- package/{serialization/types/CodeExecutorSecretInputRequest.js → dist/serialization/types/CodeExecutorSecretInput.js} +2 -2
- package/dist/serialization/types/DocumentProcessingState.d.ts +10 -0
- package/dist/serialization/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +2 -2
- package/dist/serialization/types/DocumentRead.d.ts +2 -2
- package/dist/serialization/types/DocumentRead.js +2 -2
- package/dist/serialization/types/ErrorInput.d.ts +15 -0
- package/dist/serialization/types/{ErrorInputRequest.js → ErrorInput.js} +4 -4
- package/dist/serialization/types/FunctionCallInput.d.ts +15 -0
- package/{serialization/types/FunctionCallInputRequest.js → dist/serialization/types/FunctionCallInput.js} +4 -4
- package/dist/serialization/types/FunctionDefinition.d.ts +20 -0
- package/dist/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
- package/dist/serialization/types/JsonInput.d.ts +14 -0
- package/dist/serialization/types/JsonInput.js +35 -0
- package/dist/serialization/types/MetricDefinitionInput.d.ts +14 -0
- package/dist/serialization/types/MetricDefinitionInput.js +35 -0
- package/{serialization/types/NumberInputRequest.d.ts → dist/serialization/types/NumberInput.d.ts} +2 -2
- package/dist/serialization/types/{NumberInputRequest.js → NumberInput.js} +2 -2
- package/dist/serialization/types/PromptBlock.d.ts +1 -2
- package/dist/serialization/types/PromptBlock.js +0 -2
- package/dist/serialization/types/SearchResultsInput.d.ts +15 -0
- package/dist/serialization/types/{SearchResultsInputRequest.js → SearchResultsInput.js} +4 -4
- package/dist/serialization/types/SlimDocument.d.ts +2 -2
- package/dist/serialization/types/SlimDocument.js +2 -2
- package/dist/serialization/types/StringInput.d.ts +14 -0
- package/dist/serialization/types/StringInput.js +35 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +1 -0
- package/dist/serialization/types/index.d.ts +14 -11
- package/dist/serialization/types/index.js +14 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +19 -4
- package/serialization/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +6 -6
- package/serialization/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +6 -6
- package/serialization/client/requests/index.d.ts +1 -1
- package/serialization/client/requests/index.js +3 -3
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
- package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +14 -0
- package/{dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +4 -4
- package/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -1
- package/serialization/resources/metricDefinitions/client/requests/index.js +3 -3
- package/serialization/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +3 -3
- package/{dist/serialization/types/ArrayInputRequest.js → serialization/types/ArrayInput.js} +3 -3
- package/serialization/types/ChatHistoryInput.d.ts +15 -0
- package/serialization/types/ChatHistoryInput.js +36 -0
- package/{dist/serialization/types/CodeExecutionPackageRequest.d.ts → serialization/types/CodeExecutionPackage.d.ts} +2 -2
- package/serialization/types/{CodeExecutionPackageRequest.js → CodeExecutionPackage.js} +2 -2
- package/serialization/types/CodeExecutorInput.d.ts +19 -0
- package/serialization/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +20 -10
- package/{dist/serialization/types/CodeExecutorSecretInputRequest.d.ts → serialization/types/CodeExecutorSecretInput.d.ts} +2 -2
- package/{dist/serialization/types/CodeExecutorSecretInputRequest.js → serialization/types/CodeExecutorSecretInput.js} +2 -2
- package/serialization/types/DocumentProcessingState.d.ts +10 -0
- package/serialization/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +2 -2
- package/serialization/types/DocumentRead.d.ts +2 -2
- package/serialization/types/DocumentRead.js +2 -2
- package/serialization/types/ErrorInput.d.ts +15 -0
- package/serialization/types/{ErrorInputRequest.js → ErrorInput.js} +4 -4
- package/serialization/types/FunctionCallInput.d.ts +15 -0
- package/{dist/serialization/types/FunctionCallInputRequest.js → serialization/types/FunctionCallInput.js} +4 -4
- package/serialization/types/FunctionDefinition.d.ts +20 -0
- package/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
- package/serialization/types/JsonInput.d.ts +14 -0
- package/serialization/types/JsonInput.js +35 -0
- package/serialization/types/MetricDefinitionInput.d.ts +14 -0
- package/serialization/types/MetricDefinitionInput.js +35 -0
- package/{dist/serialization/types/NumberInputRequest.d.ts → serialization/types/NumberInput.d.ts} +2 -2
- package/serialization/types/{NumberInputRequest.js → NumberInput.js} +2 -2
- package/serialization/types/PromptBlock.d.ts +1 -2
- package/serialization/types/PromptBlock.js +0 -2
- package/serialization/types/SearchResultsInput.d.ts +15 -0
- package/serialization/types/{SearchResultsInputRequest.js → SearchResultsInput.js} +4 -4
- package/serialization/types/SlimDocument.d.ts +2 -2
- package/serialization/types/SlimDocument.js +2 -2
- package/serialization/types/StringInput.d.ts +14 -0
- package/serialization/types/StringInput.js +35 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +1 -0
- package/serialization/types/index.d.ts +14 -11
- package/serialization/types/index.js +14 -11
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/CodeExecutorInputRequest.d.ts +0 -5
- package/api/types/MetricDefinitionInputRequest.d.ts +0 -5
- package/dist/api/types/CodeExecutorInputRequest.d.ts +0 -5
- package/dist/api/types/MetricDefinitionInputRequest.d.ts +0 -5
- package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +0 -14
- package/dist/serialization/types/CodeExecutorInputRequest.d.ts +0 -19
- package/dist/serialization/types/CodeExecutorInputRequest.js +0 -50
- package/dist/serialization/types/ErrorInputRequest.d.ts +0 -15
- package/dist/serialization/types/FunctionCallInputRequest.d.ts +0 -15
- package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
- package/dist/serialization/types/MetricDefinitionInputRequest.d.ts +0 -14
- package/dist/serialization/types/ProcessingStateEnum.d.ts +0 -10
- package/dist/serialization/types/SearchResultsInputRequest.d.ts +0 -15
- package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +0 -14
- package/serialization/types/CodeExecutorInputRequest.d.ts +0 -19
- package/serialization/types/CodeExecutorInputRequest.js +0 -50
- package/serialization/types/ErrorInputRequest.d.ts +0 -15
- package/serialization/types/FunctionCallInputRequest.d.ts +0 -15
- package/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
- package/serialization/types/MetricDefinitionInputRequest.d.ts +0 -14
- package/serialization/types/ProcessingStateEnum.d.ts +0 -10
- package/serialization/types/SearchResultsInputRequest.d.ts +0 -15
- /package/api/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +0 -0
- /package/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.js → ExecuteMetricDefinition.js} +0 -0
- /package/api/types/{ArrayInputRequest.js → ArrayInput.js} +0 -0
- /package/api/types/{CodeExecutionPackageRequest.js → ChatHistoryInput.js} +0 -0
- /package/api/types/{CodeExecutorInputRequest.js → CodeExecutionPackage.js} +0 -0
- /package/api/types/{CodeExecutorSecretInputRequest.js → CodeExecutorInput.js} +0 -0
- /package/api/types/{ErrorInputRequest.js → CodeExecutorSecretInput.js} +0 -0
- /package/api/types/{FunctionCallInputRequest.js → ErrorInput.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlock.js → FunctionCallInput.js} +0 -0
- /package/api/types/{MetricDefinitionInputRequest.js → FunctionDefinition.js} +0 -0
- /package/api/types/{NumberInputRequest.js → JsonInput.js} +0 -0
- /package/api/types/{SearchResultsInputRequest.js → MetricDefinitionInput.js} +0 -0
- /package/{dist/api/client/requests/CodeExecutorRequest.js → api/types/NumberInput.js} +0 -0
- /package/{dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → api/types/SearchResultsInput.js} +0 -0
- /package/{dist/api/types/ArrayInputRequest.js → api/types/StringInput.js} +0 -0
- /package/dist/api/{types/CodeExecutionPackageRequest.js → client/requests/CodeExecutor.js} +0 -0
- /package/dist/api/{types/CodeExecutorInputRequest.js → resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +0 -0
- /package/dist/api/types/{CodeExecutorSecretInputRequest.js → ArrayInput.js} +0 -0
- /package/dist/api/types/{ErrorInputRequest.js → ChatHistoryInput.js} +0 -0
- /package/dist/api/types/{FunctionCallInputRequest.js → CodeExecutionPackage.js} +0 -0
- /package/dist/api/types/{FunctionDefinitionPromptBlock.js → CodeExecutorInput.js} +0 -0
- /package/dist/api/types/{MetricDefinitionInputRequest.js → CodeExecutorSecretInput.js} +0 -0
- /package/dist/api/types/{NumberInputRequest.js → ErrorInput.js} +0 -0
- /package/dist/api/types/{SearchResultsInputRequest.js → FunctionCallInput.js} +0 -0
|
@@ -891,7 +891,7 @@ paths:
|
|
|
891
891
|
content:
|
|
892
892
|
application/json:
|
|
893
893
|
schema:
|
|
894
|
-
$ref: '#/components/schemas/
|
|
894
|
+
$ref: '#/components/schemas/CodeExecutor'
|
|
895
895
|
required: true
|
|
896
896
|
security:
|
|
897
897
|
- apiKeyAuth: []
|
|
@@ -1335,7 +1335,7 @@ paths:
|
|
|
1335
1335
|
content:
|
|
1336
1336
|
application/json:
|
|
1337
1337
|
schema:
|
|
1338
|
-
$ref: '#/components/schemas/
|
|
1338
|
+
$ref: '#/components/schemas/ExecuteMetricDefinition'
|
|
1339
1339
|
required: true
|
|
1340
1340
|
security:
|
|
1341
1341
|
- apiKeyAuth: []
|
|
@@ -2295,6 +2295,11 @@ components:
|
|
|
2295
2295
|
type: array
|
|
2296
2296
|
items:
|
|
2297
2297
|
$ref: '#/components/schemas/PromptBlock'
|
|
2298
|
+
functions:
|
|
2299
|
+
type: array
|
|
2300
|
+
items:
|
|
2301
|
+
$ref: '#/components/schemas/FunctionDefinition'
|
|
2302
|
+
nullable: true
|
|
2298
2303
|
expand_meta:
|
|
2299
2304
|
allOf:
|
|
2300
2305
|
- $ref: '#/components/schemas/AdHocExpandMeta'
|
|
@@ -2479,7 +2484,7 @@ components:
|
|
|
2479
2484
|
type: string
|
|
2480
2485
|
enum:
|
|
2481
2486
|
- ARRAY
|
|
2482
|
-
|
|
2487
|
+
ArrayInput:
|
|
2483
2488
|
type: object
|
|
2484
2489
|
description: A user input representing a Vellum Array value
|
|
2485
2490
|
properties:
|
|
@@ -2492,7 +2497,7 @@ components:
|
|
|
2492
2497
|
value:
|
|
2493
2498
|
type: array
|
|
2494
2499
|
items:
|
|
2495
|
-
$ref: '#/components/schemas/
|
|
2500
|
+
$ref: '#/components/schemas/VellumValue'
|
|
2496
2501
|
required:
|
|
2497
2502
|
- name
|
|
2498
2503
|
- type
|
|
@@ -2704,6 +2709,24 @@ components:
|
|
|
2704
2709
|
type: string
|
|
2705
2710
|
enum:
|
|
2706
2711
|
- CHAT_HISTORY
|
|
2712
|
+
ChatHistoryInput:
|
|
2713
|
+
type: object
|
|
2714
|
+
description: A user input representing a list of chat messages
|
|
2715
|
+
properties:
|
|
2716
|
+
name:
|
|
2717
|
+
type: string
|
|
2718
|
+
minLength: 1
|
|
2719
|
+
description: The variable's name, as defined in the deployment.
|
|
2720
|
+
type:
|
|
2721
|
+
type: string
|
|
2722
|
+
value:
|
|
2723
|
+
type: array
|
|
2724
|
+
items:
|
|
2725
|
+
$ref: '#/components/schemas/ChatMessage'
|
|
2726
|
+
required:
|
|
2727
|
+
- name
|
|
2728
|
+
- type
|
|
2729
|
+
- value
|
|
2707
2730
|
ChatHistoryInputRequest:
|
|
2708
2731
|
type: object
|
|
2709
2732
|
description: A user input representing a list of chat messages
|
|
@@ -3036,7 +3059,7 @@ components:
|
|
|
3036
3059
|
- id
|
|
3037
3060
|
- type
|
|
3038
3061
|
- value
|
|
3039
|
-
|
|
3062
|
+
CodeExecutionPackage:
|
|
3040
3063
|
type: object
|
|
3041
3064
|
properties:
|
|
3042
3065
|
version:
|
|
@@ -3056,40 +3079,7 @@ components:
|
|
|
3056
3079
|
description: |-
|
|
3057
3080
|
* `PYTHON_3_11_6` - PYTHON_3_11_6
|
|
3058
3081
|
* `TYPESCRIPT_5_3_3` - TYPESCRIPT_5_3_3
|
|
3059
|
-
|
|
3060
|
-
type: object
|
|
3061
|
-
properties:
|
|
3062
|
-
message:
|
|
3063
|
-
type: string
|
|
3064
|
-
log:
|
|
3065
|
-
type: string
|
|
3066
|
-
required:
|
|
3067
|
-
- log
|
|
3068
|
-
- message
|
|
3069
|
-
CodeExecutorInputRequest:
|
|
3070
|
-
oneOf:
|
|
3071
|
-
- $ref: '#/components/schemas/StringInputRequest'
|
|
3072
|
-
- $ref: '#/components/schemas/JSONInputRequest'
|
|
3073
|
-
- $ref: '#/components/schemas/ChatHistoryInputRequest'
|
|
3074
|
-
- $ref: '#/components/schemas/NumberInputRequest'
|
|
3075
|
-
- $ref: '#/components/schemas/SearchResultsInputRequest'
|
|
3076
|
-
- $ref: '#/components/schemas/ErrorInputRequest'
|
|
3077
|
-
- $ref: '#/components/schemas/ArrayInputRequest'
|
|
3078
|
-
- $ref: '#/components/schemas/FunctionCallInputRequest'
|
|
3079
|
-
- $ref: '#/components/schemas/CodeExecutorSecretInputRequest'
|
|
3080
|
-
discriminator:
|
|
3081
|
-
propertyName: type
|
|
3082
|
-
mapping:
|
|
3083
|
-
STRING: '#/components/schemas/StringInputRequest'
|
|
3084
|
-
JSON: '#/components/schemas/JSONInputRequest'
|
|
3085
|
-
CHAT_HISTORY: '#/components/schemas/ChatHistoryInputRequest'
|
|
3086
|
-
NUMBER: '#/components/schemas/NumberInputRequest'
|
|
3087
|
-
SEARCH_RESULTS: '#/components/schemas/SearchResultsInputRequest'
|
|
3088
|
-
ERROR: '#/components/schemas/ErrorInputRequest'
|
|
3089
|
-
ARRAY: '#/components/schemas/ArrayInputRequest'
|
|
3090
|
-
FUNCTION_CALL: '#/components/schemas/FunctionCallInputRequest'
|
|
3091
|
-
SECRET: '#/components/schemas/CodeExecutorSecretInputRequest'
|
|
3092
|
-
CodeExecutorRequest:
|
|
3082
|
+
CodeExecutor:
|
|
3093
3083
|
type: object
|
|
3094
3084
|
properties:
|
|
3095
3085
|
code:
|
|
@@ -3100,11 +3090,11 @@ components:
|
|
|
3100
3090
|
input_values:
|
|
3101
3091
|
type: array
|
|
3102
3092
|
items:
|
|
3103
|
-
$ref: '#/components/schemas/
|
|
3093
|
+
$ref: '#/components/schemas/CodeExecutorInput'
|
|
3104
3094
|
packages:
|
|
3105
3095
|
type: array
|
|
3106
3096
|
items:
|
|
3107
|
-
$ref: '#/components/schemas/
|
|
3097
|
+
$ref: '#/components/schemas/CodeExecutionPackage'
|
|
3108
3098
|
output_type:
|
|
3109
3099
|
$ref: '#/components/schemas/VellumVariableType'
|
|
3110
3100
|
required:
|
|
@@ -3113,6 +3103,39 @@ components:
|
|
|
3113
3103
|
- output_type
|
|
3114
3104
|
- packages
|
|
3115
3105
|
- runtime
|
|
3106
|
+
CodeExecutorErrorResponse:
|
|
3107
|
+
type: object
|
|
3108
|
+
properties:
|
|
3109
|
+
message:
|
|
3110
|
+
type: string
|
|
3111
|
+
log:
|
|
3112
|
+
type: string
|
|
3113
|
+
required:
|
|
3114
|
+
- log
|
|
3115
|
+
- message
|
|
3116
|
+
CodeExecutorInput:
|
|
3117
|
+
oneOf:
|
|
3118
|
+
- $ref: '#/components/schemas/StringInput'
|
|
3119
|
+
- $ref: '#/components/schemas/JSONInput'
|
|
3120
|
+
- $ref: '#/components/schemas/ChatHistoryInput'
|
|
3121
|
+
- $ref: '#/components/schemas/NumberInput'
|
|
3122
|
+
- $ref: '#/components/schemas/SearchResultsInput'
|
|
3123
|
+
- $ref: '#/components/schemas/ErrorInput'
|
|
3124
|
+
- $ref: '#/components/schemas/ArrayInput'
|
|
3125
|
+
- $ref: '#/components/schemas/FunctionCallInput'
|
|
3126
|
+
- $ref: '#/components/schemas/CodeExecutorSecretInput'
|
|
3127
|
+
discriminator:
|
|
3128
|
+
propertyName: type
|
|
3129
|
+
mapping:
|
|
3130
|
+
STRING: '#/components/schemas/StringInput'
|
|
3131
|
+
JSON: '#/components/schemas/JSONInput'
|
|
3132
|
+
CHAT_HISTORY: '#/components/schemas/ChatHistoryInput'
|
|
3133
|
+
NUMBER: '#/components/schemas/NumberInput'
|
|
3134
|
+
SEARCH_RESULTS: '#/components/schemas/SearchResultsInput'
|
|
3135
|
+
ERROR: '#/components/schemas/ErrorInput'
|
|
3136
|
+
ARRAY: '#/components/schemas/ArrayInput'
|
|
3137
|
+
FUNCTION_CALL: '#/components/schemas/FunctionCallInput'
|
|
3138
|
+
SECRET: '#/components/schemas/CodeExecutorSecretInput'
|
|
3116
3139
|
CodeExecutorResponse:
|
|
3117
3140
|
type: object
|
|
3118
3141
|
properties:
|
|
@@ -3123,7 +3146,7 @@ components:
|
|
|
3123
3146
|
required:
|
|
3124
3147
|
- log
|
|
3125
3148
|
- output
|
|
3126
|
-
|
|
3149
|
+
CodeExecutorSecretInput:
|
|
3127
3150
|
type: object
|
|
3128
3151
|
description: A user input representing a Vellum Workspace Secret value
|
|
3129
3152
|
properties:
|
|
@@ -3706,6 +3729,20 @@ components:
|
|
|
3706
3729
|
* `PRODUCTION` - Production
|
|
3707
3730
|
required:
|
|
3708
3731
|
- label
|
|
3732
|
+
DocumentProcessingState:
|
|
3733
|
+
enum:
|
|
3734
|
+
- QUEUED
|
|
3735
|
+
- PROCESSING
|
|
3736
|
+
- PROCESSED
|
|
3737
|
+
- FAILED
|
|
3738
|
+
- UNKNOWN
|
|
3739
|
+
type: string
|
|
3740
|
+
description: |-
|
|
3741
|
+
* `QUEUED` - Queued
|
|
3742
|
+
* `PROCESSING` - Processing
|
|
3743
|
+
* `PROCESSED` - Processed
|
|
3744
|
+
* `FAILED` - Failed
|
|
3745
|
+
* `UNKNOWN` - Unknown
|
|
3709
3746
|
DocumentRead:
|
|
3710
3747
|
type: object
|
|
3711
3748
|
properties:
|
|
@@ -3727,15 +3764,7 @@ components:
|
|
|
3727
3764
|
uploaded file's file name.
|
|
3728
3765
|
maxLength: 1000
|
|
3729
3766
|
processing_state:
|
|
3730
|
-
|
|
3731
|
-
- $ref: '#/components/schemas/ProcessingStateEnum'
|
|
3732
|
-
description: |-
|
|
3733
|
-
The current processing state of the document
|
|
3734
|
-
|
|
3735
|
-
* `QUEUED` - Queued
|
|
3736
|
-
* `PROCESSING` - Processing
|
|
3737
|
-
* `PROCESSED` - Processed
|
|
3738
|
-
* `FAILED` - Failed
|
|
3767
|
+
$ref: '#/components/schemas/DocumentProcessingState'
|
|
3739
3768
|
status:
|
|
3740
3769
|
allOf:
|
|
3741
3770
|
- $ref: '#/components/schemas/DocumentStatus'
|
|
@@ -3768,6 +3797,7 @@ components:
|
|
|
3768
3797
|
- last_uploaded_at
|
|
3769
3798
|
- original_file_url
|
|
3770
3799
|
- processed_file_url
|
|
3800
|
+
- processing_state
|
|
3771
3801
|
DocumentStatus:
|
|
3772
3802
|
enum:
|
|
3773
3803
|
- ACTIVE
|
|
@@ -3869,7 +3899,7 @@ components:
|
|
|
3869
3899
|
type: string
|
|
3870
3900
|
enum:
|
|
3871
3901
|
- ERROR
|
|
3872
|
-
|
|
3902
|
+
ErrorInput:
|
|
3873
3903
|
type: object
|
|
3874
3904
|
description: A user input representing a Vellum Error value
|
|
3875
3905
|
properties:
|
|
@@ -3880,7 +3910,7 @@ components:
|
|
|
3880
3910
|
type:
|
|
3881
3911
|
type: string
|
|
3882
3912
|
value:
|
|
3883
|
-
$ref: '#/components/schemas/
|
|
3913
|
+
$ref: '#/components/schemas/VellumError'
|
|
3884
3914
|
required:
|
|
3885
3915
|
- name
|
|
3886
3916
|
- type
|
|
@@ -3923,13 +3953,13 @@ components:
|
|
|
3923
3953
|
required:
|
|
3924
3954
|
- type
|
|
3925
3955
|
- value
|
|
3926
|
-
|
|
3956
|
+
ExecuteMetricDefinition:
|
|
3927
3957
|
type: object
|
|
3928
3958
|
properties:
|
|
3929
3959
|
inputs:
|
|
3930
3960
|
type: array
|
|
3931
3961
|
items:
|
|
3932
|
-
$ref: '#/components/schemas/
|
|
3962
|
+
$ref: '#/components/schemas/MetricDefinitionInput'
|
|
3933
3963
|
release_tag:
|
|
3934
3964
|
type: string
|
|
3935
3965
|
minLength: 1
|
|
@@ -4895,7 +4925,7 @@ components:
|
|
|
4895
4925
|
type: string
|
|
4896
4926
|
enum:
|
|
4897
4927
|
- FUNCTION_CALL
|
|
4898
|
-
|
|
4928
|
+
FunctionCallInput:
|
|
4899
4929
|
type: object
|
|
4900
4930
|
description: A user input representing a Vellum Function Call value
|
|
4901
4931
|
properties:
|
|
@@ -4906,7 +4936,7 @@ components:
|
|
|
4906
4936
|
type:
|
|
4907
4937
|
type: string
|
|
4908
4938
|
value:
|
|
4909
|
-
$ref: '#/components/schemas/
|
|
4939
|
+
$ref: '#/components/schemas/FunctionCall'
|
|
4910
4940
|
required:
|
|
4911
4941
|
- name
|
|
4912
4942
|
- type
|
|
@@ -4968,11 +4998,7 @@ components:
|
|
|
4968
4998
|
required:
|
|
4969
4999
|
- type
|
|
4970
5000
|
- value
|
|
4971
|
-
|
|
4972
|
-
type: string
|
|
4973
|
-
enum:
|
|
4974
|
-
- FUNCTION_DEFINITION
|
|
4975
|
-
FunctionDefinitionPromptBlock:
|
|
5001
|
+
FunctionDefinition:
|
|
4976
5002
|
type: object
|
|
4977
5003
|
description: A block that represents a function definition in a prompt template.
|
|
4978
5004
|
properties:
|
|
@@ -4982,27 +5008,23 @@ components:
|
|
|
4982
5008
|
allOf:
|
|
4983
5009
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
4984
5010
|
nullable: true
|
|
4985
|
-
|
|
4986
|
-
$ref: '#/components/schemas/FunctionDefinitionEnum'
|
|
4987
|
-
function_name:
|
|
5011
|
+
name:
|
|
4988
5012
|
type: string
|
|
4989
5013
|
nullable: true
|
|
4990
5014
|
minLength: 1
|
|
4991
|
-
|
|
5015
|
+
description:
|
|
4992
5016
|
type: string
|
|
4993
5017
|
nullable: true
|
|
4994
|
-
|
|
5018
|
+
parameters:
|
|
4995
5019
|
type: object
|
|
4996
5020
|
additionalProperties: {}
|
|
4997
5021
|
nullable: true
|
|
4998
|
-
|
|
5022
|
+
forced:
|
|
4999
5023
|
type: boolean
|
|
5000
5024
|
nullable: true
|
|
5001
|
-
|
|
5025
|
+
strict:
|
|
5002
5026
|
type: boolean
|
|
5003
5027
|
nullable: true
|
|
5004
|
-
required:
|
|
5005
|
-
- block_type
|
|
5006
5028
|
GenerateBodyRequest:
|
|
5007
5029
|
type: object
|
|
5008
5030
|
properties:
|
|
@@ -5503,6 +5525,21 @@ components:
|
|
|
5503
5525
|
* `INITIATED` - INITIATED
|
|
5504
5526
|
* `FULFILLED` - FULFILLED
|
|
5505
5527
|
* `REJECTED` - REJECTED
|
|
5528
|
+
JSONInput:
|
|
5529
|
+
type: object
|
|
5530
|
+
description: A user input representing a JSON object
|
|
5531
|
+
properties:
|
|
5532
|
+
name:
|
|
5533
|
+
type: string
|
|
5534
|
+
minLength: 1
|
|
5535
|
+
description: The variable's name
|
|
5536
|
+
type:
|
|
5537
|
+
type: string
|
|
5538
|
+
value: {}
|
|
5539
|
+
required:
|
|
5540
|
+
- name
|
|
5541
|
+
- type
|
|
5542
|
+
- value
|
|
5506
5543
|
JSONInputRequest:
|
|
5507
5544
|
type: object
|
|
5508
5545
|
description: A user input representing a JSON object
|
|
@@ -5842,19 +5879,19 @@ components:
|
|
|
5842
5879
|
$ref: '#/components/schemas/TestSuiteRunMetricOutput'
|
|
5843
5880
|
required:
|
|
5844
5881
|
- outputs
|
|
5845
|
-
|
|
5882
|
+
MetricDefinitionInput:
|
|
5846
5883
|
oneOf:
|
|
5847
|
-
- $ref: '#/components/schemas/
|
|
5848
|
-
- $ref: '#/components/schemas/
|
|
5849
|
-
- $ref: '#/components/schemas/
|
|
5850
|
-
- $ref: '#/components/schemas/
|
|
5884
|
+
- $ref: '#/components/schemas/StringInput'
|
|
5885
|
+
- $ref: '#/components/schemas/JSONInput'
|
|
5886
|
+
- $ref: '#/components/schemas/ChatHistoryInput'
|
|
5887
|
+
- $ref: '#/components/schemas/NumberInput'
|
|
5851
5888
|
discriminator:
|
|
5852
5889
|
propertyName: type
|
|
5853
5890
|
mapping:
|
|
5854
|
-
STRING: '#/components/schemas/
|
|
5855
|
-
JSON: '#/components/schemas/
|
|
5856
|
-
CHAT_HISTORY: '#/components/schemas/
|
|
5857
|
-
NUMBER: '#/components/schemas/
|
|
5891
|
+
STRING: '#/components/schemas/StringInput'
|
|
5892
|
+
JSON: '#/components/schemas/JSONInput'
|
|
5893
|
+
CHAT_HISTORY: '#/components/schemas/ChatHistoryInput'
|
|
5894
|
+
NUMBER: '#/components/schemas/NumberInput'
|
|
5858
5895
|
MetricEnum:
|
|
5859
5896
|
type: string
|
|
5860
5897
|
enum:
|
|
@@ -6603,7 +6640,7 @@ components:
|
|
|
6603
6640
|
type: string
|
|
6604
6641
|
enum:
|
|
6605
6642
|
- NUMBER
|
|
6606
|
-
|
|
6643
|
+
NumberInput:
|
|
6607
6644
|
type: object
|
|
6608
6645
|
description: A user input representing a number value
|
|
6609
6646
|
properties:
|
|
@@ -7105,23 +7142,10 @@ components:
|
|
|
7105
7142
|
description: |-
|
|
7106
7143
|
* `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
7107
7144
|
* `INVALID_FILE` - Invalid File
|
|
7108
|
-
ProcessingStateEnum:
|
|
7109
|
-
enum:
|
|
7110
|
-
- QUEUED
|
|
7111
|
-
- PROCESSING
|
|
7112
|
-
- PROCESSED
|
|
7113
|
-
- FAILED
|
|
7114
|
-
type: string
|
|
7115
|
-
description: |-
|
|
7116
|
-
* `QUEUED` - Queued
|
|
7117
|
-
* `PROCESSING` - Processing
|
|
7118
|
-
* `PROCESSED` - Processed
|
|
7119
|
-
* `FAILED` - Failed
|
|
7120
7145
|
PromptBlock:
|
|
7121
7146
|
oneOf:
|
|
7122
7147
|
- $ref: '#/components/schemas/JinjaPromptBlock'
|
|
7123
7148
|
- $ref: '#/components/schemas/ChatMessagePromptBlock'
|
|
7124
|
-
- $ref: '#/components/schemas/FunctionDefinitionPromptBlock'
|
|
7125
7149
|
- $ref: '#/components/schemas/VariablePromptBlock'
|
|
7126
7150
|
- $ref: '#/components/schemas/RichTextPromptBlock'
|
|
7127
7151
|
discriminator:
|
|
@@ -7129,7 +7153,6 @@ components:
|
|
|
7129
7153
|
mapping:
|
|
7130
7154
|
JINJA: '#/components/schemas/JinjaPromptBlock'
|
|
7131
7155
|
CHAT_MESSAGE: '#/components/schemas/ChatMessagePromptBlock'
|
|
7132
|
-
FUNCTION_DEFINITION: '#/components/schemas/FunctionDefinitionPromptBlock'
|
|
7133
7156
|
VARIABLE: '#/components/schemas/VariablePromptBlock'
|
|
7134
7157
|
RICH_TEXT: '#/components/schemas/RichTextPromptBlock'
|
|
7135
7158
|
PromptBlockState:
|
|
@@ -8015,7 +8038,7 @@ components:
|
|
|
8015
8038
|
type: string
|
|
8016
8039
|
enum:
|
|
8017
8040
|
- SEARCH_RESULTS
|
|
8018
|
-
|
|
8041
|
+
SearchResultsInput:
|
|
8019
8042
|
type: object
|
|
8020
8043
|
description: A user input representing a search results value
|
|
8021
8044
|
properties:
|
|
@@ -8028,7 +8051,7 @@ components:
|
|
|
8028
8051
|
value:
|
|
8029
8052
|
type: array
|
|
8030
8053
|
items:
|
|
8031
|
-
$ref: '#/components/schemas/
|
|
8054
|
+
$ref: '#/components/schemas/SearchResult'
|
|
8032
8055
|
required:
|
|
8033
8056
|
- name
|
|
8034
8057
|
- type
|
|
@@ -8240,15 +8263,7 @@ components:
|
|
|
8240
8263
|
description: Human-friendly name for this document.
|
|
8241
8264
|
maxLength: 1000
|
|
8242
8265
|
processing_state:
|
|
8243
|
-
|
|
8244
|
-
- $ref: '#/components/schemas/ProcessingStateEnum'
|
|
8245
|
-
description: |-
|
|
8246
|
-
An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle.
|
|
8247
|
-
|
|
8248
|
-
* `QUEUED` - Queued
|
|
8249
|
-
* `PROCESSING` - Processing
|
|
8250
|
-
* `PROCESSED` - Processed
|
|
8251
|
-
* `FAILED` - Failed
|
|
8266
|
+
$ref: '#/components/schemas/DocumentProcessingState'
|
|
8252
8267
|
processing_failure_reason:
|
|
8253
8268
|
allOf:
|
|
8254
8269
|
- $ref: '#/components/schemas/ProcessingFailureReasonEnum'
|
|
@@ -8286,6 +8301,7 @@ components:
|
|
|
8286
8301
|
- id
|
|
8287
8302
|
- label
|
|
8288
8303
|
- last_uploaded_at
|
|
8304
|
+
- processing_state
|
|
8289
8305
|
SlimWorkflowDeployment:
|
|
8290
8306
|
type: object
|
|
8291
8307
|
properties:
|
|
@@ -8472,6 +8488,22 @@ components:
|
|
|
8472
8488
|
type: string
|
|
8473
8489
|
enum:
|
|
8474
8490
|
- STRING
|
|
8491
|
+
StringInput:
|
|
8492
|
+
type: object
|
|
8493
|
+
description: A user input representing a string value
|
|
8494
|
+
properties:
|
|
8495
|
+
name:
|
|
8496
|
+
type: string
|
|
8497
|
+
minLength: 1
|
|
8498
|
+
description: The variable's name
|
|
8499
|
+
type:
|
|
8500
|
+
type: string
|
|
8501
|
+
value:
|
|
8502
|
+
type: string
|
|
8503
|
+
required:
|
|
8504
|
+
- name
|
|
8505
|
+
- type
|
|
8506
|
+
- value
|
|
8475
8507
|
StringInputRequest:
|
|
8476
8508
|
type: object
|
|
8477
8509
|
description: A user input representing a string value
|
|
@@ -10290,6 +10322,7 @@ components:
|
|
|
10290
10322
|
VellumErrorCodeEnum:
|
|
10291
10323
|
enum:
|
|
10292
10324
|
- INVALID_REQUEST
|
|
10325
|
+
- INVALID_INPUTS
|
|
10293
10326
|
- PROVIDER_ERROR
|
|
10294
10327
|
- REQUEST_TIMEOUT
|
|
10295
10328
|
- INTERNAL_SERVER_ERROR
|
|
@@ -10297,6 +10330,7 @@ components:
|
|
|
10297
10330
|
type: string
|
|
10298
10331
|
description: |-
|
|
10299
10332
|
* `INVALID_REQUEST` - INVALID_REQUEST
|
|
10333
|
+
* `INVALID_INPUTS` - INVALID_INPUTS
|
|
10300
10334
|
* `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
10301
10335
|
* `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
|
|
10302
10336
|
* `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
package/Client.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare class VellumClient {
|
|
|
38
38
|
/**
|
|
39
39
|
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
40
40
|
*
|
|
41
|
-
* @param {Vellum.
|
|
41
|
+
* @param {Vellum.CodeExecutor} request
|
|
42
42
|
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @throws {@link Vellum.BadRequestError}
|
|
@@ -59,7 +59,7 @@ export declare class VellumClient {
|
|
|
59
59
|
* outputType: "STRING"
|
|
60
60
|
* })
|
|
61
61
|
*/
|
|
62
|
-
executeCode(request: Vellum.
|
|
62
|
+
executeCode(request: Vellum.CodeExecutor, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.CodeExecutorResponse>;
|
|
63
63
|
/**
|
|
64
64
|
* Executes a deployed Prompt and returns the result.
|
|
65
65
|
*
|
package/Client.js
CHANGED
|
@@ -66,7 +66,7 @@ class VellumClient {
|
|
|
66
66
|
/**
|
|
67
67
|
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
68
68
|
*
|
|
69
|
-
* @param {Vellum.
|
|
69
|
+
* @param {Vellum.CodeExecutor} request
|
|
70
70
|
* @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link Vellum.BadRequestError}
|
|
@@ -94,10 +94,10 @@ class VellumClient {
|
|
|
94
94
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
95
95
|
.default, "v1/execute-code"),
|
|
96
96
|
method: "POST",
|
|
97
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
97
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
98
98
|
contentType: "application/json",
|
|
99
99
|
requestType: "json",
|
|
100
|
-
body: serializers.
|
|
100
|
+
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
101
101
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
102
102
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
103
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -163,7 +163,7 @@ class VellumClient {
|
|
|
163
163
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
164
164
|
.predict, "v1/execute-prompt"),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -221,7 +221,7 @@ class VellumClient {
|
|
|
221
221
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
222
222
|
.predict, "v1/execute-prompt-stream"),
|
|
223
223
|
method: "POST",
|
|
224
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
224
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
requestType: "json",
|
|
227
227
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -306,7 +306,7 @@ class VellumClient {
|
|
|
306
306
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
307
307
|
.predict, "v1/execute-workflow"),
|
|
308
308
|
method: "POST",
|
|
309
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
309
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -362,7 +362,7 @@ class VellumClient {
|
|
|
362
362
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
363
363
|
.predict, "v1/execute-workflow-stream"),
|
|
364
364
|
method: "POST",
|
|
365
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
365
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
366
366
|
contentType: "application/json",
|
|
367
367
|
requestType: "json",
|
|
368
368
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -449,7 +449,7 @@ class VellumClient {
|
|
|
449
449
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
450
450
|
.predict, "v1/generate"),
|
|
451
451
|
method: "POST",
|
|
452
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
452
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
453
453
|
contentType: "application/json",
|
|
454
454
|
requestType: "json",
|
|
455
455
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -510,7 +510,7 @@ class VellumClient {
|
|
|
510
510
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
511
511
|
.predict, "v1/generate-stream"),
|
|
512
512
|
method: "POST",
|
|
513
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
513
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
514
514
|
contentType: "application/json",
|
|
515
515
|
requestType: "json",
|
|
516
516
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -591,7 +591,7 @@ class VellumClient {
|
|
|
591
591
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
592
592
|
.predict, "v1/search"),
|
|
593
593
|
method: "POST",
|
|
594
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
594
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
595
595
|
contentType: "application/json",
|
|
596
596
|
requestType: "json",
|
|
597
597
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -659,7 +659,7 @@ class VellumClient {
|
|
|
659
659
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
660
660
|
.predict, "v1/submit-completion-actuals"),
|
|
661
661
|
method: "POST",
|
|
662
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
662
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
663
663
|
contentType: "application/json",
|
|
664
664
|
requestType: "json",
|
|
665
665
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -722,7 +722,7 @@ class VellumClient {
|
|
|
722
722
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
723
723
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
724
724
|
method: "POST",
|
|
725
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
725
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
726
726
|
contentType: "application/json",
|
|
727
727
|
requestType: "json",
|
|
728
728
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -19,10 +19,10 @@ import * as Vellum from "../../index";
|
|
|
19
19
|
* outputType: "STRING"
|
|
20
20
|
* }
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface CodeExecutor {
|
|
23
23
|
code: string;
|
|
24
24
|
runtime: Vellum.CodeExecutionRuntime;
|
|
25
|
-
inputValues: Vellum.
|
|
26
|
-
packages: Vellum.
|
|
25
|
+
inputValues: Vellum.CodeExecutorInput[];
|
|
26
|
+
packages: Vellum.CodeExecutionPackage[];
|
|
27
27
|
outputType: Vellum.VellumVariableType;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type CodeExecutor } from "./CodeExecutor";
|
|
2
2
|
export { type ExecutePromptRequest } from "./ExecutePromptRequest";
|
|
3
3
|
export { type ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
|
|
4
4
|
export { type ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest";
|
|
@@ -59,7 +59,7 @@ class AdHoc {
|
|
|
59
59
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
60
60
|
.default, "v1/ad-hoc/execute-prompt-stream"),
|
|
61
61
|
method: "POST",
|
|
62
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|