vellum-ai 0.3.8 → 0.3.9
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/Client.d.ts +2 -2
- package/Client.js +10 -10
- package/api/resources/deployments/client/Client.d.ts +2 -2
- package/api/resources/deployments/client/Client.js +4 -4
- package/api/resources/documentIndexes/client/Client.d.ts +2 -2
- package/api/resources/documentIndexes/client/Client.js +3 -3
- package/api/resources/documents/client/Client.d.ts +2 -2
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.d.ts +2 -2
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/modelVersions/client/Client.d.ts +2 -2
- package/api/resources/modelVersions/client/Client.js +2 -2
- package/api/resources/registeredPrompts/client/Client.d.ts +2 -2
- package/api/resources/registeredPrompts/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.d.ts +2 -2
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.d.ts +2 -2
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.d.ts +2 -2
- package/api/resources/workflowDeployments/client/Client.js +3 -3
- package/api/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/api/types/SubworkflowEnum.d.ts +4 -0
- package/api/types/SubworkflowEnum.js +5 -0
- package/api/types/SubworkflowNodeResult.d.ts +8 -0
- package/api/types/SubworkflowNodeResult.js +5 -0
- package/api/types/TerminalNodeArrayResult.d.ts +10 -0
- package/api/types/TerminalNodeArrayResult.js +5 -0
- package/api/types/TerminalNodeFunctionCallResult.d.ts +10 -0
- package/api/types/TerminalNodeFunctionCallResult.js +5 -0
- package/api/types/TerminalNodeResultOutput.d.ts +7 -1
- package/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/api/types/VellumErrorCodeEnum.js +1 -0
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/api/types/WorkflowOutput.d.ts +4 -1
- package/api/types/WorkflowOutputArray.d.ts +13 -0
- package/api/types/WorkflowOutputArray.js +5 -0
- package/api/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/api/types/WorkflowResultEventOutputDataArray.d.ts +16 -0
- package/api/types/WorkflowResultEventOutputDataArray.js +5 -0
- package/api/types/WorkflowResultEventOutputDataFunctionCall.d.ts +16 -0
- package/api/types/WorkflowResultEventOutputDataFunctionCall.js +5 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +10 -10
- package/dist/api/resources/deployments/client/Client.d.ts +2 -2
- package/dist/api/resources/deployments/client/Client.js +4 -4
- package/dist/api/resources/documentIndexes/client/Client.d.ts +2 -2
- package/dist/api/resources/documentIndexes/client/Client.js +3 -3
- package/dist/api/resources/documents/client/Client.d.ts +2 -2
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.d.ts +2 -2
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/modelVersions/client/Client.d.ts +2 -2
- package/dist/api/resources/modelVersions/client/Client.js +2 -2
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -2
- package/dist/api/resources/registeredPrompts/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +2 -2
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +2 -2
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +2 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +3 -3
- package/dist/api/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/dist/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/dist/api/types/SubworkflowEnum.d.ts +4 -0
- package/dist/api/types/SubworkflowEnum.js +5 -0
- package/dist/api/types/SubworkflowNodeResult.d.ts +8 -0
- package/dist/api/types/SubworkflowNodeResult.js +5 -0
- package/dist/api/types/TerminalNodeArrayResult.d.ts +10 -0
- package/dist/api/types/TerminalNodeArrayResult.js +5 -0
- package/dist/api/types/TerminalNodeFunctionCallResult.d.ts +10 -0
- package/dist/api/types/TerminalNodeFunctionCallResult.js +5 -0
- package/dist/api/types/TerminalNodeResultOutput.d.ts +7 -1
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/dist/api/types/VellumErrorCodeEnum.js +1 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/api/types/WorkflowOutput.d.ts +4 -1
- package/dist/api/types/WorkflowOutputArray.d.ts +13 -0
- package/dist/api/types/WorkflowOutputArray.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/dist/api/types/WorkflowResultEventOutputDataArray.d.ts +16 -0
- package/dist/api/types/WorkflowResultEventOutputDataArray.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputDataFunctionCall.d.ts +16 -0
- package/dist/api/types/WorkflowResultEventOutputDataFunctionCall.js +5 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/dist/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/dist/serialization/types/CodeExecutionNodeResultData.js +1 -0
- package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/dist/serialization/types/NodeInputCompiledArrayValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.js +3 -1
- package/dist/serialization/types/SubworkflowEnum.d.ts +10 -0
- package/dist/serialization/types/SubworkflowEnum.js +31 -0
- package/dist/serialization/types/SubworkflowNodeResult.d.ts +11 -0
- package/dist/serialization/types/SubworkflowNodeResult.js +31 -0
- package/dist/serialization/types/TerminalNodeArrayResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeArrayResult.js +46 -0
- package/dist/serialization/types/TerminalNodeFunctionCallResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeFunctionCallResult.js +44 -0
- package/dist/serialization/types/TerminalNodeResultOutput.d.ts +7 -1
- package/dist/serialization/types/TerminalNodeResultOutput.js +2 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
- package/dist/serialization/types/WorkflowOutput.d.ts +4 -1
- package/dist/serialization/types/WorkflowOutput.js +1 -0
- package/dist/serialization/types/WorkflowOutputArray.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputArray.js +44 -0
- package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.js +2 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataArray.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataArray.js +49 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataFunctionCall.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataFunctionCall.js +47 -0
- package/dist/serialization/types/index.d.ts +7 -0
- package/dist/serialization/types/index.js +7 -0
- package/package.json +1 -1
- package/serialization/types/CodeExecutionNodeResultData.d.ts +1 -0
- package/serialization/types/CodeExecutionNodeResultData.js +1 -0
- package/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
- package/serialization/types/NodeInputCompiledArrayValue.js +3 -1
- package/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
- package/serialization/types/NodeOutputCompiledArrayValue.js +3 -1
- package/serialization/types/SubworkflowEnum.d.ts +10 -0
- package/serialization/types/SubworkflowEnum.js +31 -0
- package/serialization/types/SubworkflowNodeResult.d.ts +11 -0
- package/serialization/types/SubworkflowNodeResult.js +31 -0
- package/serialization/types/TerminalNodeArrayResult.d.ts +14 -0
- package/serialization/types/TerminalNodeArrayResult.js +46 -0
- package/serialization/types/TerminalNodeFunctionCallResult.d.ts +14 -0
- package/serialization/types/TerminalNodeFunctionCallResult.js +44 -0
- package/serialization/types/TerminalNodeResultOutput.d.ts +7 -1
- package/serialization/types/TerminalNodeResultOutput.js +2 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/serialization/types/WorkflowNodeResultData.js +1 -0
- package/serialization/types/WorkflowOutput.d.ts +4 -1
- package/serialization/types/WorkflowOutput.js +1 -0
- package/serialization/types/WorkflowOutputArray.d.ts +14 -0
- package/serialization/types/WorkflowOutputArray.js +44 -0
- package/serialization/types/WorkflowResultEventOutputData.d.ts +7 -1
- package/serialization/types/WorkflowResultEventOutputData.js +2 -0
- package/serialization/types/WorkflowResultEventOutputDataArray.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataArray.js +49 -0
- package/serialization/types/WorkflowResultEventOutputDataFunctionCall.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataFunctionCall.js +47 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace Sandboxes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace Sandboxes {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class Sandboxes {
|
|
18
18
|
protected readonly _options: Sandboxes.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: Sandboxes.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
|
|
22
22
|
*
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class Sandboxes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -84,7 +84,7 @@ class Sandboxes {
|
|
|
84
84
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
85
85
|
"X-Fern-Language": "JavaScript",
|
|
86
86
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
87
|
-
"X-Fern-SDK-Version": "0.3.
|
|
87
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
88
88
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
89
89
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
90
90
|
},
|
|
@@ -141,7 +141,7 @@ class Sandboxes {
|
|
|
141
141
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
144
|
-
"X-Fern-SDK-Version": "0.3.
|
|
144
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
145
145
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
146
146
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
147
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace TestSuites {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace TestSuites {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class TestSuites {
|
|
18
18
|
protected readonly _options: TestSuites.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: TestSuites.Options);
|
|
20
20
|
/**
|
|
21
21
|
* Upserts a new test case for a test suite, keying off of the optionally provided test case id.
|
|
22
22
|
*
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class TestSuites {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -74,7 +74,7 @@ class TestSuites {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "0.3.
|
|
77
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|
|
@@ -131,7 +131,7 @@ class TestSuites {
|
|
|
131
131
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
132
132
|
"X-Fern-Language": "JavaScript",
|
|
133
133
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
134
|
-
"X-Fern-SDK-Version": "0.3.
|
|
134
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
135
135
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
136
136
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
137
137
|
},
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../..";
|
|
|
7
7
|
export declare namespace WorkflowDeployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
timeoutInSeconds?: number;
|
|
@@ -16,7 +16,7 @@ export declare namespace WorkflowDeployments {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class WorkflowDeployments {
|
|
18
18
|
protected readonly _options: WorkflowDeployments.Options;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: WorkflowDeployments.Options);
|
|
20
20
|
list(request?: Vellum.WorkflowDeploymentsListRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.PaginatedSlimWorkflowDeploymentList>;
|
|
21
21
|
/**
|
|
22
22
|
* Used to retrieve a workflow deployment given its ID or name.
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors"));
|
|
47
47
|
class WorkflowDeployments {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
list(request = {}, requestOptions) {
|
|
@@ -73,7 +73,7 @@ class WorkflowDeployments {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "0.3.
|
|
76
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
79
|
},
|
|
@@ -128,7 +128,7 @@ class WorkflowDeployments {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "0.3.
|
|
131
|
+
"X-Fern-SDK-Version": "0.3.9",
|
|
132
132
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
133
133
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
134
134
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface TerminalNodeArrayResult {
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The unique name given to the terminal node that produced this output. */
|
|
8
|
+
name: string;
|
|
9
|
+
value?: Vellum.ArrayVariableValueItem[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface TerminalNodeFunctionCallResult {
|
|
6
|
+
id?: string;
|
|
7
|
+
/** The unique name given to the terminal node that produced this output. */
|
|
8
|
+
name: string;
|
|
9
|
+
value?: Vellum.FunctionCall;
|
|
10
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type TerminalNodeResultOutput = Vellum.TerminalNodeResultOutput.String | Vellum.TerminalNodeResultOutput.Number | Vellum.TerminalNodeResultOutput.Json | Vellum.TerminalNodeResultOutput.ChatHistory | Vellum.TerminalNodeResultOutput.SearchResults | Vellum.TerminalNodeResultOutput.Error_;
|
|
5
|
+
export declare type TerminalNodeResultOutput = Vellum.TerminalNodeResultOutput.String | Vellum.TerminalNodeResultOutput.Number | Vellum.TerminalNodeResultOutput.Json | Vellum.TerminalNodeResultOutput.ChatHistory | Vellum.TerminalNodeResultOutput.SearchResults | Vellum.TerminalNodeResultOutput.Array | Vellum.TerminalNodeResultOutput.FunctionCall | Vellum.TerminalNodeResultOutput.Error_;
|
|
6
6
|
export declare namespace TerminalNodeResultOutput {
|
|
7
7
|
interface String extends Vellum.TerminalNodeStringResult {
|
|
8
8
|
type: "STRING";
|
|
@@ -19,6 +19,12 @@ export declare namespace TerminalNodeResultOutput {
|
|
|
19
19
|
interface SearchResults extends Vellum.TerminalNodeSearchResultsResult {
|
|
20
20
|
type: "SEARCH_RESULTS";
|
|
21
21
|
}
|
|
22
|
+
interface Array extends Vellum.TerminalNodeArrayResult {
|
|
23
|
+
type: "ARRAY";
|
|
24
|
+
}
|
|
25
|
+
interface FunctionCall extends Vellum.TerminalNodeFunctionCallResult {
|
|
26
|
+
type: "FUNCTION_CALL";
|
|
27
|
+
}
|
|
22
28
|
interface Error_ extends Vellum.TerminalNodeErrorResult {
|
|
23
29
|
type: "ERROR";
|
|
24
30
|
}
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* - `INVALID_REQUEST` - INVALID_REQUEST
|
|
6
6
|
* - `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
7
7
|
* - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
8
|
+
* - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
|
|
8
9
|
*/
|
|
9
|
-
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
|
|
10
|
+
export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
|
|
10
11
|
export declare const VellumErrorCodeEnum: {
|
|
11
12
|
readonly InvalidRequest: "INVALID_REQUEST";
|
|
12
13
|
readonly ProviderError: "PROVIDER_ERROR";
|
|
13
14
|
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
15
|
+
readonly UserDefinedError: "USER_DEFINED_ERROR";
|
|
14
16
|
};
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
* - `NODE_EXECUTION` - NODE_EXECUTION
|
|
9
9
|
* - `LLM_PROVIDER` - LLM_PROVIDER
|
|
10
10
|
* - `INVALID_TEMPLATE` - INVALID_TEMPLATE
|
|
11
|
+
* - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
|
|
11
12
|
*/
|
|
12
|
-
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
13
|
+
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "USER_DEFINED_ERROR";
|
|
13
14
|
export declare const WorkflowExecutionEventErrorCode: {
|
|
14
15
|
readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
|
|
15
16
|
readonly NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED";
|
|
@@ -17,4 +18,5 @@ export declare const WorkflowExecutionEventErrorCode: {
|
|
|
17
18
|
readonly NodeExecution: "NODE_EXECUTION";
|
|
18
19
|
readonly LlmProvider: "LLM_PROVIDER";
|
|
19
20
|
readonly InvalidTemplate: "INVALID_TEMPLATE";
|
|
21
|
+
readonly UserDefinedError: "USER_DEFINED_ERROR";
|
|
20
22
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.CodeExecution | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
|
|
5
|
+
export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.CodeExecution | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal | Vellum.WorkflowNodeResultData.Subworkflow;
|
|
6
6
|
export declare namespace WorkflowNodeResultData {
|
|
7
7
|
interface Prompt extends Vellum.PromptNodeResult {
|
|
8
8
|
type: "PROMPT";
|
|
@@ -25,4 +25,7 @@ export declare namespace WorkflowNodeResultData {
|
|
|
25
25
|
interface Terminal extends Vellum.TerminalNodeResult {
|
|
26
26
|
type: "TERMINAL";
|
|
27
27
|
}
|
|
28
|
+
interface Subworkflow extends Vellum.SubworkflowNodeResult {
|
|
29
|
+
type: "SUBWORKFLOW";
|
|
30
|
+
}
|
|
28
31
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type WorkflowOutput = Vellum.WorkflowOutput.String | Vellum.WorkflowOutput.Number | Vellum.WorkflowOutput.Json | Vellum.WorkflowOutput.ChatHistory | Vellum.WorkflowOutput.SearchResults | Vellum.WorkflowOutput.Error_ | Vellum.WorkflowOutput.FunctionCall | Vellum.WorkflowOutput.Image;
|
|
5
|
+
export declare type WorkflowOutput = Vellum.WorkflowOutput.String | Vellum.WorkflowOutput.Number | Vellum.WorkflowOutput.Json | Vellum.WorkflowOutput.ChatHistory | Vellum.WorkflowOutput.SearchResults | Vellum.WorkflowOutput.Array | Vellum.WorkflowOutput.Error_ | Vellum.WorkflowOutput.FunctionCall | Vellum.WorkflowOutput.Image;
|
|
6
6
|
export declare namespace WorkflowOutput {
|
|
7
7
|
interface String extends Vellum.WorkflowOutputString {
|
|
8
8
|
type: "STRING";
|
|
@@ -19,6 +19,9 @@ export declare namespace WorkflowOutput {
|
|
|
19
19
|
interface SearchResults extends Vellum.WorkflowOutputSearchResults {
|
|
20
20
|
type: "SEARCH_RESULTS";
|
|
21
21
|
}
|
|
22
|
+
interface Array extends Vellum.WorkflowOutputArray {
|
|
23
|
+
type: "ARRAY";
|
|
24
|
+
}
|
|
22
25
|
interface Error_ extends Vellum.WorkflowOutputError {
|
|
23
26
|
type: "ERROR";
|
|
24
27
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An array output from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputArray {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.ArrayVariableValueItem[];
|
|
13
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Number | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory | Vellum.WorkflowResultEventOutputData.SearchResults | Vellum.WorkflowResultEventOutputData.Error_;
|
|
5
|
+
export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Number | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory | Vellum.WorkflowResultEventOutputData.SearchResults | Vellum.WorkflowResultEventOutputData.Array | Vellum.WorkflowResultEventOutputData.FunctionCall | Vellum.WorkflowResultEventOutputData.Error_;
|
|
6
6
|
export declare namespace WorkflowResultEventOutputData {
|
|
7
7
|
interface String extends Vellum.WorkflowResultEventOutputDataString {
|
|
8
8
|
type: "STRING";
|
|
@@ -19,6 +19,12 @@ export declare namespace WorkflowResultEventOutputData {
|
|
|
19
19
|
interface SearchResults extends Vellum.WorkflowResultEventOutputDataSearchResults {
|
|
20
20
|
type: "SEARCH_RESULTS";
|
|
21
21
|
}
|
|
22
|
+
interface Array extends Vellum.WorkflowResultEventOutputDataArray {
|
|
23
|
+
type: "ARRAY";
|
|
24
|
+
}
|
|
25
|
+
interface FunctionCall extends Vellum.WorkflowResultEventOutputDataFunctionCall {
|
|
26
|
+
type: "FUNCTION_CALL";
|
|
27
|
+
}
|
|
22
28
|
interface Error_ extends Vellum.WorkflowResultEventOutputDataError {
|
|
23
29
|
type: "ERROR";
|
|
24
30
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An Array output returned from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowResultEventOutputDataArray {
|
|
9
|
+
id?: string;
|
|
10
|
+
name: string;
|
|
11
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
12
|
+
nodeId: string;
|
|
13
|
+
/** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
|
|
14
|
+
delta?: string;
|
|
15
|
+
value?: Vellum.ArrayVariableValueItem[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A Function Call output returned from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowResultEventOutputDataFunctionCall {
|
|
9
|
+
id?: string;
|
|
10
|
+
name: string;
|
|
11
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
12
|
+
nodeId: string;
|
|
13
|
+
/** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
|
|
14
|
+
delta?: string;
|
|
15
|
+
value?: Vellum.FunctionCall;
|
|
16
|
+
}
|
|
@@ -188,6 +188,8 @@ export * from "./StringVariableValue";
|
|
|
188
188
|
export * from "./SubmitCompletionActualRequest";
|
|
189
189
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
190
190
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
191
|
+
export * from "./SubworkflowEnum";
|
|
192
|
+
export * from "./SubworkflowNodeResult";
|
|
191
193
|
export * from "./TemplatingNodeChatHistoryResult";
|
|
192
194
|
export * from "./TemplatingNodeErrorResult";
|
|
193
195
|
export * from "./TemplatingNodeJsonResult";
|
|
@@ -197,8 +199,10 @@ export * from "./TemplatingNodeResultData";
|
|
|
197
199
|
export * from "./TemplatingNodeResultOutput";
|
|
198
200
|
export * from "./TemplatingNodeSearchResultsResult";
|
|
199
201
|
export * from "./TemplatingNodeStringResult";
|
|
202
|
+
export * from "./TerminalNodeArrayResult";
|
|
200
203
|
export * from "./TerminalNodeChatHistoryResult";
|
|
201
204
|
export * from "./TerminalNodeErrorResult";
|
|
205
|
+
export * from "./TerminalNodeFunctionCallResult";
|
|
202
206
|
export * from "./TerminalNodeJsonResult";
|
|
203
207
|
export * from "./TerminalNodeNumberResult";
|
|
204
208
|
export * from "./TerminalNodeResult";
|
|
@@ -236,6 +240,7 @@ export * from "./WorkflowNodeResultData";
|
|
|
236
240
|
export * from "./WorkflowNodeResultEvent";
|
|
237
241
|
export * from "./WorkflowNodeResultEventState";
|
|
238
242
|
export * from "./WorkflowOutput";
|
|
243
|
+
export * from "./WorkflowOutputArray";
|
|
239
244
|
export * from "./WorkflowOutputChatHistory";
|
|
240
245
|
export * from "./WorkflowOutputError";
|
|
241
246
|
export * from "./WorkflowOutputFunctionCall";
|
|
@@ -251,8 +256,10 @@ export * from "./WorkflowRequestNumberInputRequest";
|
|
|
251
256
|
export * from "./WorkflowRequestStringInputRequest";
|
|
252
257
|
export * from "./WorkflowResultEvent";
|
|
253
258
|
export * from "./WorkflowResultEventOutputData";
|
|
259
|
+
export * from "./WorkflowResultEventOutputDataArray";
|
|
254
260
|
export * from "./WorkflowResultEventOutputDataChatHistory";
|
|
255
261
|
export * from "./WorkflowResultEventOutputDataError";
|
|
262
|
+
export * from "./WorkflowResultEventOutputDataFunctionCall";
|
|
256
263
|
export * from "./WorkflowResultEventOutputDataJson";
|
|
257
264
|
export * from "./WorkflowResultEventOutputDataNumber";
|
|
258
265
|
export * from "./WorkflowResultEventOutputDataSearchResults";
|
package/dist/api/types/index.js
CHANGED
|
@@ -204,6 +204,8 @@ __exportStar(require("./StringVariableValue"), exports);
|
|
|
204
204
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
205
205
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
206
206
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
207
|
+
__exportStar(require("./SubworkflowEnum"), exports);
|
|
208
|
+
__exportStar(require("./SubworkflowNodeResult"), exports);
|
|
207
209
|
__exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
|
|
208
210
|
__exportStar(require("./TemplatingNodeErrorResult"), exports);
|
|
209
211
|
__exportStar(require("./TemplatingNodeJsonResult"), exports);
|
|
@@ -213,8 +215,10 @@ __exportStar(require("./TemplatingNodeResultData"), exports);
|
|
|
213
215
|
__exportStar(require("./TemplatingNodeResultOutput"), exports);
|
|
214
216
|
__exportStar(require("./TemplatingNodeSearchResultsResult"), exports);
|
|
215
217
|
__exportStar(require("./TemplatingNodeStringResult"), exports);
|
|
218
|
+
__exportStar(require("./TerminalNodeArrayResult"), exports);
|
|
216
219
|
__exportStar(require("./TerminalNodeChatHistoryResult"), exports);
|
|
217
220
|
__exportStar(require("./TerminalNodeErrorResult"), exports);
|
|
221
|
+
__exportStar(require("./TerminalNodeFunctionCallResult"), exports);
|
|
218
222
|
__exportStar(require("./TerminalNodeJsonResult"), exports);
|
|
219
223
|
__exportStar(require("./TerminalNodeNumberResult"), exports);
|
|
220
224
|
__exportStar(require("./TerminalNodeResult"), exports);
|
|
@@ -252,6 +256,7 @@ __exportStar(require("./WorkflowNodeResultData"), exports);
|
|
|
252
256
|
__exportStar(require("./WorkflowNodeResultEvent"), exports);
|
|
253
257
|
__exportStar(require("./WorkflowNodeResultEventState"), exports);
|
|
254
258
|
__exportStar(require("./WorkflowOutput"), exports);
|
|
259
|
+
__exportStar(require("./WorkflowOutputArray"), exports);
|
|
255
260
|
__exportStar(require("./WorkflowOutputChatHistory"), exports);
|
|
256
261
|
__exportStar(require("./WorkflowOutputError"), exports);
|
|
257
262
|
__exportStar(require("./WorkflowOutputFunctionCall"), exports);
|
|
@@ -267,8 +272,10 @@ __exportStar(require("./WorkflowRequestNumberInputRequest"), exports);
|
|
|
267
272
|
__exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
268
273
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
269
274
|
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
275
|
+
__exportStar(require("./WorkflowResultEventOutputDataArray"), exports);
|
|
270
276
|
__exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
|
|
271
277
|
__exportStar(require("./WorkflowResultEventOutputDataError"), exports);
|
|
278
|
+
__exportStar(require("./WorkflowResultEventOutputDataFunctionCall"), exports);
|
|
272
279
|
__exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
|
|
273
280
|
__exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
|
|
274
281
|
__exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
|
|
@@ -39,4 +39,5 @@ exports.CodeExecutionNodeResultData = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
40
|
exports.CodeExecutionNodeResultData = core.serialization.object({
|
|
41
41
|
output: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).CodeExecutionNodeResultOutput; })),
|
|
42
|
+
logOutputId: core.serialization.property("log_output_id", core.serialization.string().optional()),
|
|
42
43
|
});
|
|
@@ -40,5 +40,7 @@ const core = __importStar(require("../../core"));
|
|
|
40
40
|
exports.NodeInputCompiledArrayValue = core.serialization.object({
|
|
41
41
|
nodeInputId: core.serialization.property("node_input_id", core.serialization.string()),
|
|
42
42
|
key: core.serialization.string(),
|
|
43
|
-
value: core.serialization
|
|
43
|
+
value: core.serialization
|
|
44
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ArrayVariableValueItem; })))
|
|
45
|
+
.optional(),
|
|
44
46
|
});
|
|
@@ -8,6 +8,6 @@ export declare const NodeOutputCompiledArrayValue: core.serialization.ObjectSche
|
|
|
8
8
|
export declare namespace NodeOutputCompiledArrayValue {
|
|
9
9
|
interface Raw {
|
|
10
10
|
node_output_id: string;
|
|
11
|
-
value
|
|
11
|
+
value?: serializers.ArrayVariableValueItem.Raw[] | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -39,5 +39,7 @@ exports.NodeOutputCompiledArrayValue = void 0;
|
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
40
|
exports.NodeOutputCompiledArrayValue = core.serialization.object({
|
|
41
41
|
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
42
|
-
value: core.serialization
|
|
42
|
+
value: core.serialization
|
|
43
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ArrayVariableValueItem; })))
|
|
44
|
+
.optional(),
|
|
43
45
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SubworkflowEnum: core.serialization.Schema<serializers.SubworkflowEnum.Raw, Vellum.SubworkflowEnum>;
|
|
8
|
+
export declare namespace SubworkflowEnum {
|
|
9
|
+
type Raw = "SUBWORKFLOW";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SubworkflowEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.SubworkflowEnum = core.serialization.stringLiteral("SUBWORKFLOW");
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SubworkflowNodeResult: core.serialization.ObjectSchema<serializers.SubworkflowNodeResult.Raw, Vellum.SubworkflowNodeResult>;
|
|
8
|
+
export declare namespace SubworkflowNodeResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
}
|
|
11
|
+
}
|