vellum-ai 0.9.11 → 0.9.12
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 +84 -65
- package/.mock/definition/metricDefinitions.yml +2 -2
- package/.mock/openapi/openapi.yml +129 -90
- 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 +1 -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/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/{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 +13 -10
- package/api/types/index.js +13 -10
- 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 +1 -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/dist/api/types/FunctionCallInput.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/{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 +13 -10
- package/dist/api/types/index.js +13 -10
- package/{serialization/client/requests/CodeExecutorRequest.d.ts → dist/serialization/client/requests/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/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/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/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 +13 -10
- package/dist/serialization/types/index.js +13 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +2 -4
- package/{dist/serialization/client/requests/CodeExecutorRequest.d.ts → serialization/client/requests/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/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/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/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 +13 -10
- package/serialization/types/index.js +13 -10
- 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/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/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/{MetricDefinitionInputRequest.js → FunctionCallInput.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/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +0 -0
- /package/dist/api/types/{NumberInputRequest.js → CodeExecutorSecretInput.js} +0 -0
- /package/dist/api/types/{SearchResultsInputRequest.js → ErrorInput.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: []
|
|
@@ -2479,7 +2479,7 @@ components:
|
|
|
2479
2479
|
type: string
|
|
2480
2480
|
enum:
|
|
2481
2481
|
- ARRAY
|
|
2482
|
-
|
|
2482
|
+
ArrayInput:
|
|
2483
2483
|
type: object
|
|
2484
2484
|
description: A user input representing a Vellum Array value
|
|
2485
2485
|
properties:
|
|
@@ -2492,7 +2492,7 @@ components:
|
|
|
2492
2492
|
value:
|
|
2493
2493
|
type: array
|
|
2494
2494
|
items:
|
|
2495
|
-
$ref: '#/components/schemas/
|
|
2495
|
+
$ref: '#/components/schemas/VellumValue'
|
|
2496
2496
|
required:
|
|
2497
2497
|
- name
|
|
2498
2498
|
- type
|
|
@@ -2704,6 +2704,24 @@ components:
|
|
|
2704
2704
|
type: string
|
|
2705
2705
|
enum:
|
|
2706
2706
|
- CHAT_HISTORY
|
|
2707
|
+
ChatHistoryInput:
|
|
2708
|
+
type: object
|
|
2709
|
+
description: A user input representing a list of chat messages
|
|
2710
|
+
properties:
|
|
2711
|
+
name:
|
|
2712
|
+
type: string
|
|
2713
|
+
minLength: 1
|
|
2714
|
+
description: The variable's name, as defined in the deployment.
|
|
2715
|
+
type:
|
|
2716
|
+
type: string
|
|
2717
|
+
value:
|
|
2718
|
+
type: array
|
|
2719
|
+
items:
|
|
2720
|
+
$ref: '#/components/schemas/ChatMessage'
|
|
2721
|
+
required:
|
|
2722
|
+
- name
|
|
2723
|
+
- type
|
|
2724
|
+
- value
|
|
2707
2725
|
ChatHistoryInputRequest:
|
|
2708
2726
|
type: object
|
|
2709
2727
|
description: A user input representing a list of chat messages
|
|
@@ -3036,7 +3054,7 @@ components:
|
|
|
3036
3054
|
- id
|
|
3037
3055
|
- type
|
|
3038
3056
|
- value
|
|
3039
|
-
|
|
3057
|
+
CodeExecutionPackage:
|
|
3040
3058
|
type: object
|
|
3041
3059
|
properties:
|
|
3042
3060
|
version:
|
|
@@ -3056,40 +3074,7 @@ components:
|
|
|
3056
3074
|
description: |-
|
|
3057
3075
|
* `PYTHON_3_11_6` - PYTHON_3_11_6
|
|
3058
3076
|
* `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:
|
|
3077
|
+
CodeExecutor:
|
|
3093
3078
|
type: object
|
|
3094
3079
|
properties:
|
|
3095
3080
|
code:
|
|
@@ -3100,11 +3085,11 @@ components:
|
|
|
3100
3085
|
input_values:
|
|
3101
3086
|
type: array
|
|
3102
3087
|
items:
|
|
3103
|
-
$ref: '#/components/schemas/
|
|
3088
|
+
$ref: '#/components/schemas/CodeExecutorInput'
|
|
3104
3089
|
packages:
|
|
3105
3090
|
type: array
|
|
3106
3091
|
items:
|
|
3107
|
-
$ref: '#/components/schemas/
|
|
3092
|
+
$ref: '#/components/schemas/CodeExecutionPackage'
|
|
3108
3093
|
output_type:
|
|
3109
3094
|
$ref: '#/components/schemas/VellumVariableType'
|
|
3110
3095
|
required:
|
|
@@ -3113,6 +3098,39 @@ components:
|
|
|
3113
3098
|
- output_type
|
|
3114
3099
|
- packages
|
|
3115
3100
|
- runtime
|
|
3101
|
+
CodeExecutorErrorResponse:
|
|
3102
|
+
type: object
|
|
3103
|
+
properties:
|
|
3104
|
+
message:
|
|
3105
|
+
type: string
|
|
3106
|
+
log:
|
|
3107
|
+
type: string
|
|
3108
|
+
required:
|
|
3109
|
+
- log
|
|
3110
|
+
- message
|
|
3111
|
+
CodeExecutorInput:
|
|
3112
|
+
oneOf:
|
|
3113
|
+
- $ref: '#/components/schemas/StringInput'
|
|
3114
|
+
- $ref: '#/components/schemas/JSONInput'
|
|
3115
|
+
- $ref: '#/components/schemas/ChatHistoryInput'
|
|
3116
|
+
- $ref: '#/components/schemas/NumberInput'
|
|
3117
|
+
- $ref: '#/components/schemas/SearchResultsInput'
|
|
3118
|
+
- $ref: '#/components/schemas/ErrorInput'
|
|
3119
|
+
- $ref: '#/components/schemas/ArrayInput'
|
|
3120
|
+
- $ref: '#/components/schemas/FunctionCallInput'
|
|
3121
|
+
- $ref: '#/components/schemas/CodeExecutorSecretInput'
|
|
3122
|
+
discriminator:
|
|
3123
|
+
propertyName: type
|
|
3124
|
+
mapping:
|
|
3125
|
+
STRING: '#/components/schemas/StringInput'
|
|
3126
|
+
JSON: '#/components/schemas/JSONInput'
|
|
3127
|
+
CHAT_HISTORY: '#/components/schemas/ChatHistoryInput'
|
|
3128
|
+
NUMBER: '#/components/schemas/NumberInput'
|
|
3129
|
+
SEARCH_RESULTS: '#/components/schemas/SearchResultsInput'
|
|
3130
|
+
ERROR: '#/components/schemas/ErrorInput'
|
|
3131
|
+
ARRAY: '#/components/schemas/ArrayInput'
|
|
3132
|
+
FUNCTION_CALL: '#/components/schemas/FunctionCallInput'
|
|
3133
|
+
SECRET: '#/components/schemas/CodeExecutorSecretInput'
|
|
3116
3134
|
CodeExecutorResponse:
|
|
3117
3135
|
type: object
|
|
3118
3136
|
properties:
|
|
@@ -3123,7 +3141,7 @@ components:
|
|
|
3123
3141
|
required:
|
|
3124
3142
|
- log
|
|
3125
3143
|
- output
|
|
3126
|
-
|
|
3144
|
+
CodeExecutorSecretInput:
|
|
3127
3145
|
type: object
|
|
3128
3146
|
description: A user input representing a Vellum Workspace Secret value
|
|
3129
3147
|
properties:
|
|
@@ -3706,6 +3724,20 @@ components:
|
|
|
3706
3724
|
* `PRODUCTION` - Production
|
|
3707
3725
|
required:
|
|
3708
3726
|
- label
|
|
3727
|
+
DocumentProcessingState:
|
|
3728
|
+
enum:
|
|
3729
|
+
- QUEUED
|
|
3730
|
+
- PROCESSING
|
|
3731
|
+
- PROCESSED
|
|
3732
|
+
- FAILED
|
|
3733
|
+
- UNKNOWN
|
|
3734
|
+
type: string
|
|
3735
|
+
description: |-
|
|
3736
|
+
* `QUEUED` - Queued
|
|
3737
|
+
* `PROCESSING` - Processing
|
|
3738
|
+
* `PROCESSED` - Processed
|
|
3739
|
+
* `FAILED` - Failed
|
|
3740
|
+
* `UNKNOWN` - Unknown
|
|
3709
3741
|
DocumentRead:
|
|
3710
3742
|
type: object
|
|
3711
3743
|
properties:
|
|
@@ -3727,15 +3759,7 @@ components:
|
|
|
3727
3759
|
uploaded file's file name.
|
|
3728
3760
|
maxLength: 1000
|
|
3729
3761
|
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
|
|
3762
|
+
$ref: '#/components/schemas/DocumentProcessingState'
|
|
3739
3763
|
status:
|
|
3740
3764
|
allOf:
|
|
3741
3765
|
- $ref: '#/components/schemas/DocumentStatus'
|
|
@@ -3768,6 +3792,7 @@ components:
|
|
|
3768
3792
|
- last_uploaded_at
|
|
3769
3793
|
- original_file_url
|
|
3770
3794
|
- processed_file_url
|
|
3795
|
+
- processing_state
|
|
3771
3796
|
DocumentStatus:
|
|
3772
3797
|
enum:
|
|
3773
3798
|
- ACTIVE
|
|
@@ -3869,7 +3894,7 @@ components:
|
|
|
3869
3894
|
type: string
|
|
3870
3895
|
enum:
|
|
3871
3896
|
- ERROR
|
|
3872
|
-
|
|
3897
|
+
ErrorInput:
|
|
3873
3898
|
type: object
|
|
3874
3899
|
description: A user input representing a Vellum Error value
|
|
3875
3900
|
properties:
|
|
@@ -3880,7 +3905,7 @@ components:
|
|
|
3880
3905
|
type:
|
|
3881
3906
|
type: string
|
|
3882
3907
|
value:
|
|
3883
|
-
$ref: '#/components/schemas/
|
|
3908
|
+
$ref: '#/components/schemas/VellumError'
|
|
3884
3909
|
required:
|
|
3885
3910
|
- name
|
|
3886
3911
|
- type
|
|
@@ -3923,13 +3948,13 @@ components:
|
|
|
3923
3948
|
required:
|
|
3924
3949
|
- type
|
|
3925
3950
|
- value
|
|
3926
|
-
|
|
3951
|
+
ExecuteMetricDefinition:
|
|
3927
3952
|
type: object
|
|
3928
3953
|
properties:
|
|
3929
3954
|
inputs:
|
|
3930
3955
|
type: array
|
|
3931
3956
|
items:
|
|
3932
|
-
$ref: '#/components/schemas/
|
|
3957
|
+
$ref: '#/components/schemas/MetricDefinitionInput'
|
|
3933
3958
|
release_tag:
|
|
3934
3959
|
type: string
|
|
3935
3960
|
minLength: 1
|
|
@@ -4895,7 +4920,7 @@ components:
|
|
|
4895
4920
|
type: string
|
|
4896
4921
|
enum:
|
|
4897
4922
|
- FUNCTION_CALL
|
|
4898
|
-
|
|
4923
|
+
FunctionCallInput:
|
|
4899
4924
|
type: object
|
|
4900
4925
|
description: A user input representing a Vellum Function Call value
|
|
4901
4926
|
properties:
|
|
@@ -4906,7 +4931,7 @@ components:
|
|
|
4906
4931
|
type:
|
|
4907
4932
|
type: string
|
|
4908
4933
|
value:
|
|
4909
|
-
$ref: '#/components/schemas/
|
|
4934
|
+
$ref: '#/components/schemas/FunctionCall'
|
|
4910
4935
|
required:
|
|
4911
4936
|
- name
|
|
4912
4937
|
- type
|
|
@@ -5503,6 +5528,21 @@ components:
|
|
|
5503
5528
|
* `INITIATED` - INITIATED
|
|
5504
5529
|
* `FULFILLED` - FULFILLED
|
|
5505
5530
|
* `REJECTED` - REJECTED
|
|
5531
|
+
JSONInput:
|
|
5532
|
+
type: object
|
|
5533
|
+
description: A user input representing a JSON object
|
|
5534
|
+
properties:
|
|
5535
|
+
name:
|
|
5536
|
+
type: string
|
|
5537
|
+
minLength: 1
|
|
5538
|
+
description: The variable's name
|
|
5539
|
+
type:
|
|
5540
|
+
type: string
|
|
5541
|
+
value: {}
|
|
5542
|
+
required:
|
|
5543
|
+
- name
|
|
5544
|
+
- type
|
|
5545
|
+
- value
|
|
5506
5546
|
JSONInputRequest:
|
|
5507
5547
|
type: object
|
|
5508
5548
|
description: A user input representing a JSON object
|
|
@@ -5842,19 +5882,19 @@ components:
|
|
|
5842
5882
|
$ref: '#/components/schemas/TestSuiteRunMetricOutput'
|
|
5843
5883
|
required:
|
|
5844
5884
|
- outputs
|
|
5845
|
-
|
|
5885
|
+
MetricDefinitionInput:
|
|
5846
5886
|
oneOf:
|
|
5847
|
-
- $ref: '#/components/schemas/
|
|
5848
|
-
- $ref: '#/components/schemas/
|
|
5849
|
-
- $ref: '#/components/schemas/
|
|
5850
|
-
- $ref: '#/components/schemas/
|
|
5887
|
+
- $ref: '#/components/schemas/StringInput'
|
|
5888
|
+
- $ref: '#/components/schemas/JSONInput'
|
|
5889
|
+
- $ref: '#/components/schemas/ChatHistoryInput'
|
|
5890
|
+
- $ref: '#/components/schemas/NumberInput'
|
|
5851
5891
|
discriminator:
|
|
5852
5892
|
propertyName: type
|
|
5853
5893
|
mapping:
|
|
5854
|
-
STRING: '#/components/schemas/
|
|
5855
|
-
JSON: '#/components/schemas/
|
|
5856
|
-
CHAT_HISTORY: '#/components/schemas/
|
|
5857
|
-
NUMBER: '#/components/schemas/
|
|
5894
|
+
STRING: '#/components/schemas/StringInput'
|
|
5895
|
+
JSON: '#/components/schemas/JSONInput'
|
|
5896
|
+
CHAT_HISTORY: '#/components/schemas/ChatHistoryInput'
|
|
5897
|
+
NUMBER: '#/components/schemas/NumberInput'
|
|
5858
5898
|
MetricEnum:
|
|
5859
5899
|
type: string
|
|
5860
5900
|
enum:
|
|
@@ -6603,7 +6643,7 @@ components:
|
|
|
6603
6643
|
type: string
|
|
6604
6644
|
enum:
|
|
6605
6645
|
- NUMBER
|
|
6606
|
-
|
|
6646
|
+
NumberInput:
|
|
6607
6647
|
type: object
|
|
6608
6648
|
description: A user input representing a number value
|
|
6609
6649
|
properties:
|
|
@@ -7105,18 +7145,6 @@ components:
|
|
|
7105
7145
|
description: |-
|
|
7106
7146
|
* `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
7107
7147
|
* `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
7148
|
PromptBlock:
|
|
7121
7149
|
oneOf:
|
|
7122
7150
|
- $ref: '#/components/schemas/JinjaPromptBlock'
|
|
@@ -8015,7 +8043,7 @@ components:
|
|
|
8015
8043
|
type: string
|
|
8016
8044
|
enum:
|
|
8017
8045
|
- SEARCH_RESULTS
|
|
8018
|
-
|
|
8046
|
+
SearchResultsInput:
|
|
8019
8047
|
type: object
|
|
8020
8048
|
description: A user input representing a search results value
|
|
8021
8049
|
properties:
|
|
@@ -8028,7 +8056,7 @@ components:
|
|
|
8028
8056
|
value:
|
|
8029
8057
|
type: array
|
|
8030
8058
|
items:
|
|
8031
|
-
$ref: '#/components/schemas/
|
|
8059
|
+
$ref: '#/components/schemas/SearchResult'
|
|
8032
8060
|
required:
|
|
8033
8061
|
- name
|
|
8034
8062
|
- type
|
|
@@ -8240,15 +8268,7 @@ components:
|
|
|
8240
8268
|
description: Human-friendly name for this document.
|
|
8241
8269
|
maxLength: 1000
|
|
8242
8270
|
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
|
|
8271
|
+
$ref: '#/components/schemas/DocumentProcessingState'
|
|
8252
8272
|
processing_failure_reason:
|
|
8253
8273
|
allOf:
|
|
8254
8274
|
- $ref: '#/components/schemas/ProcessingFailureReasonEnum'
|
|
@@ -8286,6 +8306,7 @@ components:
|
|
|
8286
8306
|
- id
|
|
8287
8307
|
- label
|
|
8288
8308
|
- last_uploaded_at
|
|
8309
|
+
- processing_state
|
|
8289
8310
|
SlimWorkflowDeployment:
|
|
8290
8311
|
type: object
|
|
8291
8312
|
properties:
|
|
@@ -8472,6 +8493,22 @@ components:
|
|
|
8472
8493
|
type: string
|
|
8473
8494
|
enum:
|
|
8474
8495
|
- STRING
|
|
8496
|
+
StringInput:
|
|
8497
|
+
type: object
|
|
8498
|
+
description: A user input representing a string value
|
|
8499
|
+
properties:
|
|
8500
|
+
name:
|
|
8501
|
+
type: string
|
|
8502
|
+
minLength: 1
|
|
8503
|
+
description: The variable's name
|
|
8504
|
+
type:
|
|
8505
|
+
type: string
|
|
8506
|
+
value:
|
|
8507
|
+
type: string
|
|
8508
|
+
required:
|
|
8509
|
+
- name
|
|
8510
|
+
- type
|
|
8511
|
+
- value
|
|
8475
8512
|
StringInputRequest:
|
|
8476
8513
|
type: object
|
|
8477
8514
|
description: A user input representing a string value
|
|
@@ -10290,6 +10327,7 @@ components:
|
|
|
10290
10327
|
VellumErrorCodeEnum:
|
|
10291
10328
|
enum:
|
|
10292
10329
|
- INVALID_REQUEST
|
|
10330
|
+
- INVALID_INPUTS
|
|
10293
10331
|
- PROVIDER_ERROR
|
|
10294
10332
|
- REQUEST_TIMEOUT
|
|
10295
10333
|
- INTERNAL_SERVER_ERROR
|
|
@@ -10297,6 +10335,7 @@ components:
|
|
|
10297
10335
|
type: string
|
|
10298
10336
|
description: |-
|
|
10299
10337
|
* `INVALID_REQUEST` - INVALID_REQUEST
|
|
10338
|
+
* `INVALID_INPUTS` - INVALID_INPUTS
|
|
10300
10339
|
* `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
10301
10340
|
* `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
|
|
10302
10341
|
* `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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.12", "User-Agent": "vellum-ai/0.9.12", "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" }),
|
|
@@ -75,7 +75,7 @@ class ContainerImages {
|
|
|
75
75
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
76
76
|
.default, "v1/container-images"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
requestType: "json",
|
|
@@ -128,7 +128,7 @@ class ContainerImages {
|
|
|
128
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
129
|
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
130
130
|
method: "GET",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
requestType: "json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -179,7 +179,7 @@ class ContainerImages {
|
|
|
179
179
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
180
180
|
.default, "v1/container-images/docker-service-token"),
|
|
181
181
|
method: "GET",
|
|
182
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
182
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -235,7 +235,7 @@ class ContainerImages {
|
|
|
235
235
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
236
236
|
.default, "v1/container-images/push"),
|
|
237
237
|
method: "POST",
|
|
238
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|