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
|
@@ -5,9 +5,9 @@ import * as Vellum from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A user input representing a Vellum Error value
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ErrorInput {
|
|
9
9
|
/** The variable's name */
|
|
10
10
|
name: string;
|
|
11
11
|
type: "ERROR";
|
|
12
|
-
value: Vellum.
|
|
12
|
+
value: Vellum.VellumError;
|
|
13
13
|
}
|
|
@@ -5,9 +5,9 @@ import * as Vellum from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A user input representing a Vellum Function Call value
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface FunctionCallInput {
|
|
9
9
|
/** The variable's name */
|
|
10
10
|
name: string;
|
|
11
11
|
type: "FUNCTION_CALL";
|
|
12
|
-
value: Vellum.
|
|
12
|
+
value: Vellum.FunctionCall;
|
|
13
13
|
}
|
|
@@ -5,9 +5,9 @@ import * as Vellum from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A user input representing a search results value
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface SearchResultsInput {
|
|
9
9
|
/** The variable's name */
|
|
10
10
|
name: string;
|
|
11
11
|
type: "SEARCH_RESULTS";
|
|
12
|
-
value: Vellum.
|
|
12
|
+
value: Vellum.SearchResult[];
|
|
13
13
|
}
|
|
@@ -11,15 +11,7 @@ export interface SlimDocument {
|
|
|
11
11
|
lastUploadedAt: Date;
|
|
12
12
|
/** Human-friendly name for this document. */
|
|
13
13
|
label: string;
|
|
14
|
-
|
|
15
|
-
* An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle.
|
|
16
|
-
*
|
|
17
|
-
* - `QUEUED` - Queued
|
|
18
|
-
* - `PROCESSING` - Processing
|
|
19
|
-
* - `PROCESSED` - Processed
|
|
20
|
-
* - `FAILED` - Failed
|
|
21
|
-
*/
|
|
22
|
-
processingState?: Vellum.ProcessingStateEnum;
|
|
14
|
+
processingState: Vellum.DocumentProcessingState;
|
|
23
15
|
/**
|
|
24
16
|
* An enum value representing why the document could not be processed. Is null unless processing_state is FAILED.
|
|
25
17
|
*
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* - `INVALID_REQUEST` - INVALID_REQUEST
|
|
6
|
+
* - `INVALID_INPUTS` - INVALID_INPUTS
|
|
6
7
|
* - `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
7
8
|
* - `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
|
|
8
9
|
* - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
9
10
|
* - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
|
|
10
11
|
*/
|
|
11
|
-
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
12
|
+
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "INVALID_INPUTS" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
12
13
|
export declare const VellumErrorCodeEnum: {
|
|
13
14
|
readonly InvalidRequest: "INVALID_REQUEST";
|
|
15
|
+
readonly InvalidInputs: "INVALID_INPUTS";
|
|
14
16
|
readonly ProviderError: "PROVIDER_ERROR";
|
|
15
17
|
readonly RequestTimeout: "REQUEST_TIMEOUT";
|
|
16
18
|
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.VellumErrorCodeEnum = void 0;
|
|
7
7
|
exports.VellumErrorCodeEnum = {
|
|
8
8
|
InvalidRequest: "INVALID_REQUEST",
|
|
9
|
+
InvalidInputs: "INVALID_INPUTS",
|
|
9
10
|
ProviderError: "PROVIDER_ERROR",
|
|
10
11
|
RequestTimeout: "REQUEST_TIMEOUT",
|
|
11
12
|
InternalServerError: "INTERNAL_SERVER_ERROR",
|
package/api/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from "./ArrayChatMessageContent";
|
|
|
11
11
|
export * from "./ArrayChatMessageContentItem";
|
|
12
12
|
export * from "./ArrayChatMessageContentItemRequest";
|
|
13
13
|
export * from "./ArrayChatMessageContentRequest";
|
|
14
|
-
export * from "./
|
|
14
|
+
export * from "./ArrayInput";
|
|
15
15
|
export * from "./ArrayVariableValue";
|
|
16
16
|
export * from "./ArrayVariableValueItem";
|
|
17
17
|
export * from "./ArrayVellumValue";
|
|
@@ -27,6 +27,7 @@ export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1";
|
|
|
27
27
|
export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request";
|
|
28
28
|
export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1";
|
|
29
29
|
export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request";
|
|
30
|
+
export * from "./ChatHistoryInput";
|
|
30
31
|
export * from "./ChatHistoryInputRequest";
|
|
31
32
|
export * from "./ChatHistoryVariableValue";
|
|
32
33
|
export * from "./ChatHistoryVellumValue";
|
|
@@ -48,11 +49,11 @@ export * from "./CodeExecutionNodeResultData";
|
|
|
48
49
|
export * from "./CodeExecutionNodeResultOutput";
|
|
49
50
|
export * from "./CodeExecutionNodeSearchResultsResult";
|
|
50
51
|
export * from "./CodeExecutionNodeStringResult";
|
|
51
|
-
export * from "./
|
|
52
|
+
export * from "./CodeExecutionPackage";
|
|
52
53
|
export * from "./CodeExecutionRuntime";
|
|
53
|
-
export * from "./
|
|
54
|
+
export * from "./CodeExecutorInput";
|
|
54
55
|
export * from "./CodeExecutorResponse";
|
|
55
|
-
export * from "./
|
|
56
|
+
export * from "./CodeExecutorSecretInput";
|
|
56
57
|
export * from "./CompilePromptDeploymentExpandMetaRequest";
|
|
57
58
|
export * from "./CompilePromptMeta";
|
|
58
59
|
export * from "./ConditionCombinator";
|
|
@@ -72,6 +73,7 @@ export * from "./DocumentIndexChunkingRequest";
|
|
|
72
73
|
export * from "./DocumentIndexIndexingConfig";
|
|
73
74
|
export * from "./DocumentIndexIndexingConfigRequest";
|
|
74
75
|
export * from "./DocumentIndexRead";
|
|
76
|
+
export * from "./DocumentProcessingState";
|
|
75
77
|
export * from "./DocumentRead";
|
|
76
78
|
export * from "./DocumentStatus";
|
|
77
79
|
export * from "./EnrichedNormalizedCompletion";
|
|
@@ -80,7 +82,7 @@ export * from "./EntityVisibility";
|
|
|
80
82
|
export * from "./EnvironmentEnum";
|
|
81
83
|
export * from "./EphemeralPromptCacheConfig";
|
|
82
84
|
export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
83
|
-
export * from "./
|
|
85
|
+
export * from "./ErrorInput";
|
|
84
86
|
export * from "./ErrorVariableValue";
|
|
85
87
|
export * from "./ErrorVellumValue";
|
|
86
88
|
export * from "./ErrorVellumValueRequest";
|
|
@@ -123,7 +125,7 @@ export * from "./FunctionCallChatMessageContent";
|
|
|
123
125
|
export * from "./FunctionCallChatMessageContentRequest";
|
|
124
126
|
export * from "./FunctionCallChatMessageContentValue";
|
|
125
127
|
export * from "./FunctionCallChatMessageContentValueRequest";
|
|
126
|
-
export * from "./
|
|
128
|
+
export * from "./FunctionCallInput";
|
|
127
129
|
export * from "./FunctionCallRequest";
|
|
128
130
|
export * from "./FunctionCallVariableValue";
|
|
129
131
|
export * from "./FunctionCallVellumValue";
|
|
@@ -161,6 +163,7 @@ export * from "./InitiatedWorkflowNodeResultEvent";
|
|
|
161
163
|
export * from "./InstructorVectorizerConfig";
|
|
162
164
|
export * from "./InstructorVectorizerConfigRequest";
|
|
163
165
|
export * from "./IterationStateEnum";
|
|
166
|
+
export * from "./JsonInput";
|
|
164
167
|
export * from "./JsonInputRequest";
|
|
165
168
|
export * from "./JinjaPromptBlock";
|
|
166
169
|
export * from "./JsonVariableValue";
|
|
@@ -178,7 +181,7 @@ export * from "./MetadataFilterRuleCombinator";
|
|
|
178
181
|
export * from "./MetadataFilterRuleRequest";
|
|
179
182
|
export * from "./MetadataFiltersRequest";
|
|
180
183
|
export * from "./MetricDefinitionExecution";
|
|
181
|
-
export * from "./
|
|
184
|
+
export * from "./MetricDefinitionInput";
|
|
182
185
|
export * from "./MetricNodeResult";
|
|
183
186
|
export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
184
187
|
export * from "./NamedScenarioInputJsonVariableValueRequest";
|
|
@@ -222,7 +225,7 @@ export * from "./NodeOutputCompiledStringValue";
|
|
|
222
225
|
export * from "./NodeOutputCompiledValue";
|
|
223
226
|
export * from "./NormalizedLogProbs";
|
|
224
227
|
export * from "./NormalizedTokenLogProbs";
|
|
225
|
-
export * from "./
|
|
228
|
+
export * from "./NumberInput";
|
|
226
229
|
export * from "./NumberVariableValue";
|
|
227
230
|
export * from "./NumberVellumValue";
|
|
228
231
|
export * from "./NumberVellumValueRequest";
|
|
@@ -249,7 +252,6 @@ export * from "./PdfSearchResultMetaSourceRequest";
|
|
|
249
252
|
export * from "./PlainTextPromptBlock";
|
|
250
253
|
export * from "./Price";
|
|
251
254
|
export * from "./ProcessingFailureReasonEnum";
|
|
252
|
-
export * from "./ProcessingStateEnum";
|
|
253
255
|
export * from "./PromptBlock";
|
|
254
256
|
export * from "./PromptBlockState";
|
|
255
257
|
export * from "./PromptDeploymentExpandMetaRequest";
|
|
@@ -299,7 +301,7 @@ export * from "./SearchResultMetaRequest";
|
|
|
299
301
|
export * from "./ComponentsSchemasPdfSearchResultMetaSource";
|
|
300
302
|
export * from "./ComponentsSchemasPdfSearchResultMetaSourceRequest";
|
|
301
303
|
export * from "./SearchResultRequest";
|
|
302
|
-
export * from "./
|
|
304
|
+
export * from "./SearchResultsInput";
|
|
303
305
|
export * from "./SearchResultsVariableValue";
|
|
304
306
|
export * from "./SearchResultsVellumValue";
|
|
305
307
|
export * from "./SearchResultsVellumValueRequest";
|
|
@@ -318,6 +320,7 @@ export * from "./StreamingPromptExecutionMeta";
|
|
|
318
320
|
export * from "./StreamingWorkflowNodeResultEvent";
|
|
319
321
|
export * from "./StringChatMessageContent";
|
|
320
322
|
export * from "./StringChatMessageContentRequest";
|
|
323
|
+
export * from "./StringInput";
|
|
321
324
|
export * from "./StringInputRequest";
|
|
322
325
|
export * from "./StringVariableValue";
|
|
323
326
|
export * from "./StringVellumValue";
|
package/api/types/index.js
CHANGED
|
@@ -27,7 +27,7 @@ __exportStar(require("./ArrayChatMessageContent"), exports);
|
|
|
27
27
|
__exportStar(require("./ArrayChatMessageContentItem"), exports);
|
|
28
28
|
__exportStar(require("./ArrayChatMessageContentItemRequest"), exports);
|
|
29
29
|
__exportStar(require("./ArrayChatMessageContentRequest"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
30
|
+
__exportStar(require("./ArrayInput"), exports);
|
|
31
31
|
__exportStar(require("./ArrayVariableValue"), exports);
|
|
32
32
|
__exportStar(require("./ArrayVariableValueItem"), exports);
|
|
33
33
|
__exportStar(require("./ArrayVellumValue"), exports);
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1
|
|
|
43
43
|
__exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1Request"), exports);
|
|
44
44
|
__exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1"), exports);
|
|
45
45
|
__exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseDotV1Request"), exports);
|
|
46
|
+
__exportStar(require("./ChatHistoryInput"), exports);
|
|
46
47
|
__exportStar(require("./ChatHistoryInputRequest"), exports);
|
|
47
48
|
__exportStar(require("./ChatHistoryVariableValue"), exports);
|
|
48
49
|
__exportStar(require("./ChatHistoryVellumValue"), exports);
|
|
@@ -64,11 +65,11 @@ __exportStar(require("./CodeExecutionNodeResultData"), exports);
|
|
|
64
65
|
__exportStar(require("./CodeExecutionNodeResultOutput"), exports);
|
|
65
66
|
__exportStar(require("./CodeExecutionNodeSearchResultsResult"), exports);
|
|
66
67
|
__exportStar(require("./CodeExecutionNodeStringResult"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
68
|
+
__exportStar(require("./CodeExecutionPackage"), exports);
|
|
68
69
|
__exportStar(require("./CodeExecutionRuntime"), exports);
|
|
69
|
-
__exportStar(require("./
|
|
70
|
+
__exportStar(require("./CodeExecutorInput"), exports);
|
|
70
71
|
__exportStar(require("./CodeExecutorResponse"), exports);
|
|
71
|
-
__exportStar(require("./
|
|
72
|
+
__exportStar(require("./CodeExecutorSecretInput"), exports);
|
|
72
73
|
__exportStar(require("./CompilePromptDeploymentExpandMetaRequest"), exports);
|
|
73
74
|
__exportStar(require("./CompilePromptMeta"), exports);
|
|
74
75
|
__exportStar(require("./ConditionCombinator"), exports);
|
|
@@ -88,6 +89,7 @@ __exportStar(require("./DocumentIndexChunkingRequest"), exports);
|
|
|
88
89
|
__exportStar(require("./DocumentIndexIndexingConfig"), exports);
|
|
89
90
|
__exportStar(require("./DocumentIndexIndexingConfigRequest"), exports);
|
|
90
91
|
__exportStar(require("./DocumentIndexRead"), exports);
|
|
92
|
+
__exportStar(require("./DocumentProcessingState"), exports);
|
|
91
93
|
__exportStar(require("./DocumentRead"), exports);
|
|
92
94
|
__exportStar(require("./DocumentStatus"), exports);
|
|
93
95
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
@@ -96,7 +98,7 @@ __exportStar(require("./EntityVisibility"), exports);
|
|
|
96
98
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
97
99
|
__exportStar(require("./EphemeralPromptCacheConfig"), exports);
|
|
98
100
|
__exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
|
|
99
|
-
__exportStar(require("./
|
|
101
|
+
__exportStar(require("./ErrorInput"), exports);
|
|
100
102
|
__exportStar(require("./ErrorVariableValue"), exports);
|
|
101
103
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
102
104
|
__exportStar(require("./ErrorVellumValueRequest"), exports);
|
|
@@ -139,7 +141,7 @@ __exportStar(require("./FunctionCallChatMessageContent"), exports);
|
|
|
139
141
|
__exportStar(require("./FunctionCallChatMessageContentRequest"), exports);
|
|
140
142
|
__exportStar(require("./FunctionCallChatMessageContentValue"), exports);
|
|
141
143
|
__exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
|
|
142
|
-
__exportStar(require("./
|
|
144
|
+
__exportStar(require("./FunctionCallInput"), exports);
|
|
143
145
|
__exportStar(require("./FunctionCallRequest"), exports);
|
|
144
146
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
145
147
|
__exportStar(require("./FunctionCallVellumValue"), exports);
|
|
@@ -177,6 +179,7 @@ __exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
|
|
|
177
179
|
__exportStar(require("./InstructorVectorizerConfig"), exports);
|
|
178
180
|
__exportStar(require("./InstructorVectorizerConfigRequest"), exports);
|
|
179
181
|
__exportStar(require("./IterationStateEnum"), exports);
|
|
182
|
+
__exportStar(require("./JsonInput"), exports);
|
|
180
183
|
__exportStar(require("./JsonInputRequest"), exports);
|
|
181
184
|
__exportStar(require("./JinjaPromptBlock"), exports);
|
|
182
185
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
@@ -194,7 +197,7 @@ __exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
|
194
197
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
195
198
|
__exportStar(require("./MetadataFiltersRequest"), exports);
|
|
196
199
|
__exportStar(require("./MetricDefinitionExecution"), exports);
|
|
197
|
-
__exportStar(require("./
|
|
200
|
+
__exportStar(require("./MetricDefinitionInput"), exports);
|
|
198
201
|
__exportStar(require("./MetricNodeResult"), exports);
|
|
199
202
|
__exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
|
|
200
203
|
__exportStar(require("./NamedScenarioInputJsonVariableValueRequest"), exports);
|
|
@@ -238,7 +241,7 @@ __exportStar(require("./NodeOutputCompiledStringValue"), exports);
|
|
|
238
241
|
__exportStar(require("./NodeOutputCompiledValue"), exports);
|
|
239
242
|
__exportStar(require("./NormalizedLogProbs"), exports);
|
|
240
243
|
__exportStar(require("./NormalizedTokenLogProbs"), exports);
|
|
241
|
-
__exportStar(require("./
|
|
244
|
+
__exportStar(require("./NumberInput"), exports);
|
|
242
245
|
__exportStar(require("./NumberVariableValue"), exports);
|
|
243
246
|
__exportStar(require("./NumberVellumValue"), exports);
|
|
244
247
|
__exportStar(require("./NumberVellumValueRequest"), exports);
|
|
@@ -265,7 +268,6 @@ __exportStar(require("./PdfSearchResultMetaSourceRequest"), exports);
|
|
|
265
268
|
__exportStar(require("./PlainTextPromptBlock"), exports);
|
|
266
269
|
__exportStar(require("./Price"), exports);
|
|
267
270
|
__exportStar(require("./ProcessingFailureReasonEnum"), exports);
|
|
268
|
-
__exportStar(require("./ProcessingStateEnum"), exports);
|
|
269
271
|
__exportStar(require("./PromptBlock"), exports);
|
|
270
272
|
__exportStar(require("./PromptBlockState"), exports);
|
|
271
273
|
__exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
|
|
@@ -315,7 +317,7 @@ __exportStar(require("./SearchResultMetaRequest"), exports);
|
|
|
315
317
|
__exportStar(require("./ComponentsSchemasPdfSearchResultMetaSource"), exports);
|
|
316
318
|
__exportStar(require("./ComponentsSchemasPdfSearchResultMetaSourceRequest"), exports);
|
|
317
319
|
__exportStar(require("./SearchResultRequest"), exports);
|
|
318
|
-
__exportStar(require("./
|
|
320
|
+
__exportStar(require("./SearchResultsInput"), exports);
|
|
319
321
|
__exportStar(require("./SearchResultsVariableValue"), exports);
|
|
320
322
|
__exportStar(require("./SearchResultsVellumValue"), exports);
|
|
321
323
|
__exportStar(require("./SearchResultsVellumValueRequest"), exports);
|
|
@@ -334,6 +336,7 @@ __exportStar(require("./StreamingPromptExecutionMeta"), exports);
|
|
|
334
336
|
__exportStar(require("./StreamingWorkflowNodeResultEvent"), exports);
|
|
335
337
|
__exportStar(require("./StringChatMessageContent"), exports);
|
|
336
338
|
__exportStar(require("./StringChatMessageContentRequest"), exports);
|
|
339
|
+
__exportStar(require("./StringInput"), exports);
|
|
337
340
|
__exportStar(require("./StringInputRequest"), exports);
|
|
338
341
|
__exportStar(require("./StringVariableValue"), exports);
|
|
339
342
|
__exportStar(require("./StringVellumValue"), exports);
|
package/dist/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/dist/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" }),
|
|
@@ -79,7 +79,7 @@ class Deployments {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/deployments"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
82
|
+
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())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Deployments {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
135
|
+
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())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -199,7 +199,7 @@ class Deployments {
|
|
|
199
199
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
200
200
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
|
|
201
201
|
method: "GET",
|
|
202
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
202
|
+
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())),
|
|
203
203
|
contentType: "application/json",
|
|
204
204
|
queryParameters: _queryParams,
|
|
205
205
|
requestType: "json",
|
|
@@ -253,7 +253,7 @@ class Deployments {
|
|
|
253
253
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
254
254
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
255
255
|
method: "GET",
|
|
256
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
256
|
+
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())),
|
|
257
257
|
contentType: "application/json",
|
|
258
258
|
requestType: "json",
|
|
259
259
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -307,7 +307,7 @@ class Deployments {
|
|
|
307
307
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
308
308
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
309
309
|
method: "PATCH",
|
|
310
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
310
|
+
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())),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
requestType: "json",
|
|
313
313
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -382,7 +382,7 @@ class Deployments {
|
|
|
382
382
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
383
383
|
.default, "v1/deployments/provider-payload"),
|
|
384
384
|
method: "POST",
|
|
385
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
385
|
+
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())),
|
|
386
386
|
contentType: "application/json",
|
|
387
387
|
requestType: "json",
|
|
388
388
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|