vellum-ai 0.0.43 → 0.0.45
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/api/resources/registeredPrompts/client/Client.d.ts +2 -0
- package/api/resources/registeredPrompts/client/Client.js +6 -0
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -1
- package/api/types/DeploymentRead.d.ts +0 -1
- package/api/types/EnrichedNormalizedCompletion.d.ts +1 -0
- package/api/types/ModelVersionBuildConfig.d.ts +1 -0
- package/api/types/ModelVersionRead.d.ts +2 -2
- package/api/types/NodeInputCompiledErrorValue.d.ts +9 -0
- package/api/types/{ModelTypeDeprecated.js → NodeInputCompiledErrorValue.js} +0 -5
- package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/api/types/ProviderEnum.d.ts +5 -3
- package/api/types/ProviderEnum.js +2 -1
- package/api/types/TemplatingNodeErrorResult.d.ts +8 -0
- package/{dist/api/types/ModelTypeDeprecated.js → api/types/TemplatingNodeErrorResult.js} +0 -5
- package/api/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/api/types/TerminalNodeErrorResult.d.ts +10 -0
- package/api/types/TerminalNodeErrorResult.js +5 -0
- package/api/types/TerminalNodeResultOutput.d.ts +4 -1
- package/api/types/VellumError.d.ts +8 -0
- package/api/types/VellumError.js +5 -0
- package/api/types/VellumErrorCodeEnum.d.ts +14 -0
- package/api/types/VellumErrorCodeEnum.js +11 -0
- package/api/types/VellumVariableType.d.ts +3 -1
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/api/types/WorkflowResultEventOutputDataError.d.ts +13 -0
- package/api/types/WorkflowResultEventOutputDataError.js +5 -0
- package/api/types/index.d.ts +6 -1
- package/api/types/index.js +6 -1
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -0
- package/dist/api/resources/registeredPrompts/client/Client.js +6 -0
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -1
- package/dist/api/types/DeploymentRead.d.ts +0 -1
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -0
- package/dist/api/types/ModelVersionBuildConfig.d.ts +1 -0
- package/dist/api/types/ModelVersionRead.d.ts +2 -2
- package/dist/api/types/NodeInputCompiledErrorValue.d.ts +9 -0
- package/dist/api/types/NodeInputCompiledErrorValue.js +5 -0
- package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/api/types/ProviderEnum.d.ts +5 -3
- package/dist/api/types/ProviderEnum.js +2 -1
- package/dist/api/types/TemplatingNodeErrorResult.d.ts +8 -0
- package/dist/api/types/TemplatingNodeErrorResult.js +5 -0
- package/dist/api/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/dist/api/types/TerminalNodeErrorResult.d.ts +10 -0
- package/dist/api/types/TerminalNodeErrorResult.js +5 -0
- package/dist/api/types/TerminalNodeResultOutput.d.ts +4 -1
- package/dist/api/types/VellumError.d.ts +8 -0
- package/dist/api/types/VellumError.js +5 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +14 -0
- package/dist/api/types/VellumErrorCodeEnum.js +11 -0
- package/dist/api/types/VellumVariableType.d.ts +3 -1
- package/dist/api/types/VellumVariableType.js +1 -0
- package/dist/api/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/dist/api/types/WorkflowResultEventOutputDataError.d.ts +13 -0
- package/dist/api/types/WorkflowResultEventOutputDataError.js +5 -0
- package/dist/api/types/index.d.ts +6 -1
- package/dist/api/types/index.js +6 -1
- package/dist/serialization/types/DeploymentRead.d.ts +0 -1
- package/dist/serialization/types/DeploymentRead.js +0 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -0
- package/dist/serialization/types/ModelVersionBuildConfig.d.ts +1 -0
- package/dist/serialization/types/ModelVersionBuildConfig.js +1 -0
- package/dist/serialization/types/ModelVersionRead.d.ts +0 -1
- package/dist/serialization/types/ModelVersionRead.js +0 -1
- package/dist/serialization/types/NodeInputCompiledErrorValue.d.ts +14 -0
- package/dist/serialization/types/NodeInputCompiledErrorValue.js +35 -0
- package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/dist/serialization/types/ProviderEnum.d.ts +1 -1
- package/dist/serialization/types/ProviderEnum.js +11 -1
- package/dist/serialization/types/TemplatingNodeErrorResult.d.ts +13 -0
- package/dist/serialization/types/TemplatingNodeErrorResult.js +34 -0
- package/dist/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/dist/serialization/types/TemplatingNodeResultOutput.js +1 -0
- package/dist/serialization/types/TerminalNodeErrorResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeErrorResult.js +35 -0
- package/dist/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
- package/dist/serialization/types/TerminalNodeResultOutput.js +1 -0
- package/dist/serialization/types/VellumError.d.ts +13 -0
- package/dist/serialization/types/VellumError.js +34 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +10 -0
- package/dist/serialization/types/{ModelTypeDeprecated.js → VellumErrorCodeEnum.js} +2 -2
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.js +1 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataError.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataError.js +38 -0
- package/dist/serialization/types/index.d.ts +6 -1
- package/dist/serialization/types/index.js +6 -1
- package/package.json +1 -1
- package/serialization/types/DeploymentRead.d.ts +0 -1
- package/serialization/types/DeploymentRead.js +0 -1
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -0
- package/serialization/types/ModelVersionBuildConfig.d.ts +1 -0
- package/serialization/types/ModelVersionBuildConfig.js +1 -0
- package/serialization/types/ModelVersionRead.d.ts +0 -1
- package/serialization/types/ModelVersionRead.js +0 -1
- package/serialization/types/NodeInputCompiledErrorValue.d.ts +14 -0
- package/serialization/types/NodeInputCompiledErrorValue.js +35 -0
- package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/serialization/types/ProviderEnum.d.ts +1 -1
- package/serialization/types/ProviderEnum.js +11 -1
- package/serialization/types/TemplatingNodeErrorResult.d.ts +13 -0
- package/serialization/types/TemplatingNodeErrorResult.js +34 -0
- package/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/serialization/types/TemplatingNodeResultOutput.js +1 -0
- package/serialization/types/TerminalNodeErrorResult.d.ts +14 -0
- package/serialization/types/TerminalNodeErrorResult.js +35 -0
- package/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
- package/serialization/types/TerminalNodeResultOutput.js +1 -0
- package/serialization/types/VellumError.d.ts +13 -0
- package/serialization/types/VellumError.js +34 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +10 -0
- package/serialization/types/{ModelTypeDeprecated.js → VellumErrorCodeEnum.js} +2 -2
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +1 -1
- package/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/serialization/types/WorkflowResultEventOutputData.js +1 -0
- package/serialization/types/WorkflowResultEventOutputDataError.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataError.js +38 -0
- package/serialization/types/index.d.ts +6 -1
- package/serialization/types/index.js +6 -1
- package/api/types/ModelTypeDeprecated.d.ts +0 -12
- package/dist/api/types/ModelTypeDeprecated.d.ts +0 -12
- package/dist/serialization/types/ModelTypeDeprecated.d.ts +0 -10
- package/serialization/types/ModelTypeDeprecated.d.ts +0 -10
|
@@ -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 VellumErrorCodeEnum: core.serialization.Schema<serializers.VellumErrorCodeEnum.Raw, Vellum.VellumErrorCodeEnum>;
|
|
8
|
+
export declare namespace VellumErrorCodeEnum {
|
|
9
|
+
type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
|
|
10
|
+
}
|
|
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.VellumErrorCodeEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.VellumErrorCodeEnum = core.serialization.enum_(["INVALID_REQUEST", "PROVIDER_ERROR", "INTERNAL_SERVER_ERROR"]);
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const VellumVariableType: core.serialization.Schema<serializers.VellumVariableType.Raw, Vellum.VellumVariableType>;
|
|
8
8
|
export declare namespace VellumVariableType {
|
|
9
|
-
type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS";
|
|
9
|
+
type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.VellumVariableType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.VellumVariableType = core.serialization.enum_(["STRING", "NUMBER", "JSON", "CHAT_HISTORY", "SEARCH_RESULTS"]);
|
|
31
|
+
exports.VellumVariableType = core.serialization.enum_(["STRING", "NUMBER", "JSON", "CHAT_HISTORY", "SEARCH_RESULTS", "ERROR"]);
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowResultEventOutputData: core.serialization.Schema<serializers.WorkflowResultEventOutputData.Raw, Vellum.WorkflowResultEventOutputData>;
|
|
8
8
|
export declare namespace WorkflowResultEventOutputData {
|
|
9
|
-
type Raw = WorkflowResultEventOutputData.String | WorkflowResultEventOutputData.Number | WorkflowResultEventOutputData.Json | WorkflowResultEventOutputData.ChatHistory | WorkflowResultEventOutputData.SearchResults;
|
|
9
|
+
type Raw = WorkflowResultEventOutputData.String | WorkflowResultEventOutputData.Number | WorkflowResultEventOutputData.Json | WorkflowResultEventOutputData.ChatHistory | WorkflowResultEventOutputData.SearchResults | WorkflowResultEventOutputData.Error;
|
|
10
10
|
interface String extends serializers.WorkflowResultEventOutputDataString.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -22,4 +22,7 @@ export declare namespace WorkflowResultEventOutputData {
|
|
|
22
22
|
interface SearchResults extends serializers.WorkflowResultEventOutputDataSearchResults.Raw {
|
|
23
23
|
type: "SEARCH_RESULTS";
|
|
24
24
|
}
|
|
25
|
+
interface Error extends serializers.WorkflowResultEventOutputDataError.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
25
28
|
}
|
|
@@ -35,6 +35,7 @@ exports.WorkflowResultEventOutputData = core.serialization
|
|
|
35
35
|
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataJson),
|
|
36
36
|
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataChatHistory),
|
|
37
37
|
SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataSearchResults),
|
|
38
|
+
ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataError),
|
|
38
39
|
})
|
|
39
40
|
.transform({
|
|
40
41
|
transform: (value) => value,
|
|
@@ -0,0 +1,17 @@
|
|
|
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 WorkflowResultEventOutputDataError: core.serialization.ObjectSchema<serializers.WorkflowResultEventOutputDataError.Raw, Vellum.WorkflowResultEventOutputDataError>;
|
|
8
|
+
export declare namespace WorkflowResultEventOutputDataError {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
state: serializers.WorkflowNodeResultEventState.Raw;
|
|
13
|
+
node_id: string;
|
|
14
|
+
delta?: string | null;
|
|
15
|
+
value?: serializers.VellumError.Raw | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.WorkflowResultEventOutputDataError = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowResultEventOutputDataError = core.serialization.object({
|
|
32
|
+
id: core.serialization.string().optional(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
|
|
35
|
+
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
36
|
+
delta: core.serialization.string().optional(),
|
|
37
|
+
value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
|
|
38
|
+
});
|
|
@@ -35,7 +35,6 @@ export * from "./LogprobsEnum";
|
|
|
35
35
|
export * from "./MetadataFilterConfigRequest";
|
|
36
36
|
export * from "./MetadataFilterRuleCombinator";
|
|
37
37
|
export * from "./MetadataFilterRuleRequest";
|
|
38
|
-
export * from "./ModelTypeDeprecated";
|
|
39
38
|
export * from "./ModelVersionBuildConfig";
|
|
40
39
|
export * from "./ModelVersionCompilePromptResponse";
|
|
41
40
|
export * from "./ModelVersionCompiledPrompt";
|
|
@@ -45,6 +44,7 @@ export * from "./ModelVersionRead";
|
|
|
45
44
|
export * from "./ModelVersionReadStatusEnum";
|
|
46
45
|
export * from "./ModelVersionSandboxSnapshot";
|
|
47
46
|
export * from "./NodeInputCompiledChatHistoryValue";
|
|
47
|
+
export * from "./NodeInputCompiledErrorValue";
|
|
48
48
|
export * from "./NodeInputCompiledJsonValue";
|
|
49
49
|
export * from "./NodeInputCompiledNumberValue";
|
|
50
50
|
export * from "./NodeInputCompiledSearchResultsValue";
|
|
@@ -95,6 +95,7 @@ export * from "./SubmitCompletionActualRequest";
|
|
|
95
95
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
96
96
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
97
97
|
export * from "./TemplatingNodeChatHistoryResult";
|
|
98
|
+
export * from "./TemplatingNodeErrorResult";
|
|
98
99
|
export * from "./TemplatingNodeJsonResult";
|
|
99
100
|
export * from "./TemplatingNodeNumberResult";
|
|
100
101
|
export * from "./TemplatingNodeResult";
|
|
@@ -103,6 +104,7 @@ export * from "./TemplatingNodeResultOutput";
|
|
|
103
104
|
export * from "./TemplatingNodeSearchResultsResult";
|
|
104
105
|
export * from "./TemplatingNodeStringResult";
|
|
105
106
|
export * from "./TerminalNodeChatHistoryResult";
|
|
107
|
+
export * from "./TerminalNodeErrorResult";
|
|
106
108
|
export * from "./TerminalNodeJsonResult";
|
|
107
109
|
export * from "./TerminalNodeNumberResult";
|
|
108
110
|
export * from "./TerminalNodeResult";
|
|
@@ -113,6 +115,8 @@ export * from "./TerminalNodeStringResult";
|
|
|
113
115
|
export * from "./TestSuiteTestCase";
|
|
114
116
|
export * from "./UploadDocumentErrorResponse";
|
|
115
117
|
export * from "./UploadDocumentResponse";
|
|
118
|
+
export * from "./VellumError";
|
|
119
|
+
export * from "./VellumErrorCodeEnum";
|
|
116
120
|
export * from "./VellumVariable";
|
|
117
121
|
export * from "./VellumVariableType";
|
|
118
122
|
export * from "./WorkflowEventError";
|
|
@@ -133,6 +137,7 @@ export * from "./WorkflowRequestStringInputRequest";
|
|
|
133
137
|
export * from "./WorkflowResultEvent";
|
|
134
138
|
export * from "./WorkflowResultEventOutputData";
|
|
135
139
|
export * from "./WorkflowResultEventOutputDataChatHistory";
|
|
140
|
+
export * from "./WorkflowResultEventOutputDataError";
|
|
136
141
|
export * from "./WorkflowResultEventOutputDataJson";
|
|
137
142
|
export * from "./WorkflowResultEventOutputDataNumber";
|
|
138
143
|
export * from "./WorkflowResultEventOutputDataSearchResults";
|
|
@@ -51,7 +51,6 @@ __exportStar(require("./LogprobsEnum"), exports);
|
|
|
51
51
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
52
52
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
53
53
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
54
|
-
__exportStar(require("./ModelTypeDeprecated"), exports);
|
|
55
54
|
__exportStar(require("./ModelVersionBuildConfig"), exports);
|
|
56
55
|
__exportStar(require("./ModelVersionCompilePromptResponse"), exports);
|
|
57
56
|
__exportStar(require("./ModelVersionCompiledPrompt"), exports);
|
|
@@ -61,6 +60,7 @@ __exportStar(require("./ModelVersionRead"), exports);
|
|
|
61
60
|
__exportStar(require("./ModelVersionReadStatusEnum"), exports);
|
|
62
61
|
__exportStar(require("./ModelVersionSandboxSnapshot"), exports);
|
|
63
62
|
__exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
|
|
63
|
+
__exportStar(require("./NodeInputCompiledErrorValue"), exports);
|
|
64
64
|
__exportStar(require("./NodeInputCompiledJsonValue"), exports);
|
|
65
65
|
__exportStar(require("./NodeInputCompiledNumberValue"), exports);
|
|
66
66
|
__exportStar(require("./NodeInputCompiledSearchResultsValue"), exports);
|
|
@@ -111,6 +111,7 @@ __exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
|
111
111
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
112
112
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
113
113
|
__exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
|
|
114
|
+
__exportStar(require("./TemplatingNodeErrorResult"), exports);
|
|
114
115
|
__exportStar(require("./TemplatingNodeJsonResult"), exports);
|
|
115
116
|
__exportStar(require("./TemplatingNodeNumberResult"), exports);
|
|
116
117
|
__exportStar(require("./TemplatingNodeResult"), exports);
|
|
@@ -119,6 +120,7 @@ __exportStar(require("./TemplatingNodeResultOutput"), exports);
|
|
|
119
120
|
__exportStar(require("./TemplatingNodeSearchResultsResult"), exports);
|
|
120
121
|
__exportStar(require("./TemplatingNodeStringResult"), exports);
|
|
121
122
|
__exportStar(require("./TerminalNodeChatHistoryResult"), exports);
|
|
123
|
+
__exportStar(require("./TerminalNodeErrorResult"), exports);
|
|
122
124
|
__exportStar(require("./TerminalNodeJsonResult"), exports);
|
|
123
125
|
__exportStar(require("./TerminalNodeNumberResult"), exports);
|
|
124
126
|
__exportStar(require("./TerminalNodeResult"), exports);
|
|
@@ -129,6 +131,8 @@ __exportStar(require("./TerminalNodeStringResult"), exports);
|
|
|
129
131
|
__exportStar(require("./TestSuiteTestCase"), exports);
|
|
130
132
|
__exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
131
133
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
134
|
+
__exportStar(require("./VellumError"), exports);
|
|
135
|
+
__exportStar(require("./VellumErrorCodeEnum"), exports);
|
|
132
136
|
__exportStar(require("./VellumVariable"), exports);
|
|
133
137
|
__exportStar(require("./VellumVariableType"), exports);
|
|
134
138
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
@@ -149,6 +153,7 @@ __exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
|
149
153
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
150
154
|
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
151
155
|
__exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
|
|
156
|
+
__exportStar(require("./WorkflowResultEventOutputDataError"), exports);
|
|
152
157
|
__exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
|
|
153
158
|
__exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
|
|
154
159
|
__exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
|
package/package.json
CHANGED
|
@@ -13,7 +13,6 @@ export declare namespace DeploymentRead {
|
|
|
13
13
|
name: string;
|
|
14
14
|
status?: serializers.DeploymentStatus.Raw | null;
|
|
15
15
|
environment?: serializers.EnvironmentEnum.Raw | null;
|
|
16
|
-
model_type: serializers.ModelTypeDeprecated.Raw;
|
|
17
16
|
active_model_version_ids: string[];
|
|
18
17
|
last_deployed_on: string;
|
|
19
18
|
input_variables: serializers.VellumVariable.Raw[];
|
|
@@ -35,7 +35,6 @@ exports.DeploymentRead = core.serialization.object({
|
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DeploymentStatus).optional(),
|
|
37
37
|
environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum).optional(),
|
|
38
|
-
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
|
|
39
38
|
activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
|
|
40
39
|
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
|
|
41
40
|
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariable))),
|
|
@@ -13,6 +13,7 @@ export declare namespace EnrichedNormalizedCompletion {
|
|
|
13
13
|
finish_reason?: serializers.FinishReasonEnum.Raw | null;
|
|
14
14
|
logprobs?: serializers.NormalizedLogProbs.Raw | null;
|
|
15
15
|
model_version_id: string;
|
|
16
|
+
prompt_version_id?: string | null;
|
|
16
17
|
type?: serializers.VellumVariableType.Raw | null;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -35,5 +35,6 @@ exports.EnrichedNormalizedCompletion = core.serialization.object({
|
|
|
35
35
|
finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum).optional()),
|
|
36
36
|
logprobs: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedLogProbs).optional(),
|
|
37
37
|
modelVersionId: core.serialization.property("model_version_id", core.serialization.string()),
|
|
38
|
+
promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
|
|
38
39
|
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType).optional(),
|
|
39
40
|
});
|
|
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.ModelVersionBuildConfig = core.serialization.object({
|
|
32
32
|
baseModel: core.serialization.property("base_model", core.serialization.string()),
|
|
33
33
|
sandboxSnapshot: core.serialization.property("sandbox_snapshot", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionSandboxSnapshot).optional()),
|
|
34
|
+
promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
|
|
34
35
|
});
|
|
@@ -10,7 +10,6 @@ export declare namespace ModelVersionRead {
|
|
|
10
10
|
id: string;
|
|
11
11
|
created: string;
|
|
12
12
|
label: string;
|
|
13
|
-
model_type: serializers.ModelTypeDeprecated.Raw;
|
|
14
13
|
provider: serializers.ProviderEnum.Raw;
|
|
15
14
|
external_id: string;
|
|
16
15
|
build_config: serializers.ModelVersionBuildConfig.Raw;
|
|
@@ -32,7 +32,6 @@ exports.ModelVersionRead = core.serialization.object({
|
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
created: core.serialization.date(),
|
|
34
34
|
label: core.serialization.string(),
|
|
35
|
-
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
|
|
36
35
|
provider: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProviderEnum),
|
|
37
36
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
38
37
|
buildConfig: core.serialization.property("build_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionBuildConfig)),
|
|
@@ -0,0 +1,14 @@
|
|
|
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 NodeInputCompiledErrorValue: core.serialization.ObjectSchema<serializers.NodeInputCompiledErrorValue.Raw, Vellum.NodeInputCompiledErrorValue>;
|
|
8
|
+
export declare namespace NodeInputCompiledErrorValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_input_id: string;
|
|
11
|
+
key: string;
|
|
12
|
+
value?: serializers.VellumError.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.NodeInputCompiledErrorValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.NodeInputCompiledErrorValue = core.serialization.object({
|
|
32
|
+
nodeInputId: core.serialization.property("node_input_id", core.serialization.string()),
|
|
33
|
+
key: core.serialization.string(),
|
|
34
|
+
value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
|
|
35
|
+
});
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const NodeInputVariableCompiledValue: core.serialization.Schema<serializers.NodeInputVariableCompiledValue.Raw, Vellum.NodeInputVariableCompiledValue>;
|
|
8
8
|
export declare namespace NodeInputVariableCompiledValue {
|
|
9
|
-
type Raw = NodeInputVariableCompiledValue.String | NodeInputVariableCompiledValue.Number | NodeInputVariableCompiledValue.Json | NodeInputVariableCompiledValue.ChatHistory | NodeInputVariableCompiledValue.SearchResults;
|
|
9
|
+
type Raw = NodeInputVariableCompiledValue.String | NodeInputVariableCompiledValue.Number | NodeInputVariableCompiledValue.Json | NodeInputVariableCompiledValue.ChatHistory | NodeInputVariableCompiledValue.SearchResults | NodeInputVariableCompiledValue.Error;
|
|
10
10
|
interface String extends serializers.NodeInputCompiledStringValue.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -22,4 +22,7 @@ export declare namespace NodeInputVariableCompiledValue {
|
|
|
22
22
|
interface SearchResults extends serializers.NodeInputCompiledSearchResultsValue.Raw {
|
|
23
23
|
type: "SEARCH_RESULTS";
|
|
24
24
|
}
|
|
25
|
+
interface Error extends serializers.NodeInputCompiledErrorValue.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
25
28
|
}
|
|
@@ -35,6 +35,7 @@ exports.NodeInputVariableCompiledValue = core.serialization
|
|
|
35
35
|
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledJsonValue),
|
|
36
36
|
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledChatHistoryValue),
|
|
37
37
|
SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledSearchResultsValue),
|
|
38
|
+
ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledErrorValue),
|
|
38
39
|
})
|
|
39
40
|
.transform({
|
|
40
41
|
transform: (value) => value,
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
|
|
8
8
|
export declare namespace ProviderEnum {
|
|
9
|
-
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "
|
|
9
|
+
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "HUGGINGFACE" | "MYSTIC" | "PYQ";
|
|
10
10
|
}
|
|
@@ -28,4 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ProviderEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ProviderEnum = core.serialization.enum_([
|
|
31
|
+
exports.ProviderEnum = core.serialization.enum_([
|
|
32
|
+
"ANTHROPIC",
|
|
33
|
+
"COHERE",
|
|
34
|
+
"GOOGLE",
|
|
35
|
+
"HOSTED",
|
|
36
|
+
"MOSAICML",
|
|
37
|
+
"OPENAI",
|
|
38
|
+
"HUGGINGFACE",
|
|
39
|
+
"MYSTIC",
|
|
40
|
+
"PYQ",
|
|
41
|
+
]);
|
|
@@ -0,0 +1,13 @@
|
|
|
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 TemplatingNodeErrorResult: core.serialization.ObjectSchema<serializers.TemplatingNodeErrorResult.Raw, Vellum.TemplatingNodeErrorResult>;
|
|
8
|
+
export declare namespace TemplatingNodeErrorResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
value?: serializers.VellumError.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.TemplatingNodeErrorResult = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TemplatingNodeErrorResult = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
|
|
34
|
+
});
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TemplatingNodeResultOutput: core.serialization.Schema<serializers.TemplatingNodeResultOutput.Raw, Vellum.TemplatingNodeResultOutput>;
|
|
8
8
|
export declare namespace TemplatingNodeResultOutput {
|
|
9
|
-
type Raw = TemplatingNodeResultOutput.String | TemplatingNodeResultOutput.Number | TemplatingNodeResultOutput.Json | TemplatingNodeResultOutput.ChatHistory | TemplatingNodeResultOutput.SearchResults;
|
|
9
|
+
type Raw = TemplatingNodeResultOutput.String | TemplatingNodeResultOutput.Number | TemplatingNodeResultOutput.Json | TemplatingNodeResultOutput.ChatHistory | TemplatingNodeResultOutput.SearchResults | TemplatingNodeResultOutput.Error;
|
|
10
10
|
interface String extends serializers.TemplatingNodeStringResult.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -22,4 +22,7 @@ export declare namespace TemplatingNodeResultOutput {
|
|
|
22
22
|
interface SearchResults extends serializers.TemplatingNodeSearchResultsResult.Raw {
|
|
23
23
|
type: "SEARCH_RESULTS";
|
|
24
24
|
}
|
|
25
|
+
interface Error extends serializers.TemplatingNodeErrorResult.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
25
28
|
}
|
|
@@ -35,6 +35,7 @@ exports.TemplatingNodeResultOutput = core.serialization
|
|
|
35
35
|
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeJsonResult),
|
|
36
36
|
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeChatHistoryResult),
|
|
37
37
|
SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeSearchResultsResult),
|
|
38
|
+
ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeErrorResult),
|
|
38
39
|
})
|
|
39
40
|
.transform({
|
|
40
41
|
transform: (value) => value,
|
|
@@ -0,0 +1,14 @@
|
|
|
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 TerminalNodeErrorResult: core.serialization.ObjectSchema<serializers.TerminalNodeErrorResult.Raw, Vellum.TerminalNodeErrorResult>;
|
|
8
|
+
export declare namespace TerminalNodeErrorResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
value?: serializers.VellumError.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.TerminalNodeErrorResult = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TerminalNodeErrorResult = core.serialization.object({
|
|
32
|
+
id: core.serialization.string().optional(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
|
|
35
|
+
});
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const TerminalNodeResultOutput: core.serialization.Schema<serializers.TerminalNodeResultOutput.Raw, Vellum.TerminalNodeResultOutput>;
|
|
8
8
|
export declare namespace TerminalNodeResultOutput {
|
|
9
|
-
type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults;
|
|
9
|
+
type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults | TerminalNodeResultOutput.Error;
|
|
10
10
|
interface String extends serializers.TerminalNodeStringResult.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -22,4 +22,7 @@ export declare namespace TerminalNodeResultOutput {
|
|
|
22
22
|
interface SearchResults extends serializers.TerminalNodeSearchResultsResult.Raw {
|
|
23
23
|
type: "SEARCH_RESULTS";
|
|
24
24
|
}
|
|
25
|
+
interface Error extends serializers.TerminalNodeErrorResult.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
25
28
|
}
|
|
@@ -35,6 +35,7 @@ exports.TerminalNodeResultOutput = core.serialization
|
|
|
35
35
|
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeJsonResult),
|
|
36
36
|
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeChatHistoryResult),
|
|
37
37
|
SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeSearchResultsResult),
|
|
38
|
+
ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeErrorResult),
|
|
38
39
|
})
|
|
39
40
|
.transform({
|
|
40
41
|
transform: (value) => value,
|
|
@@ -0,0 +1,13 @@
|
|
|
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 VellumError: core.serialization.ObjectSchema<serializers.VellumError.Raw, Vellum.VellumError>;
|
|
8
|
+
export declare namespace VellumError {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
code: serializers.VellumErrorCodeEnum.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.VellumError = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.VellumError = core.serialization.object({
|
|
32
|
+
message: core.serialization.string(),
|
|
33
|
+
code: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumErrorCodeEnum),
|
|
34
|
+
});
|
|
@@ -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 VellumErrorCodeEnum: core.serialization.Schema<serializers.VellumErrorCodeEnum.Raw, Vellum.VellumErrorCodeEnum>;
|
|
8
|
+
export declare namespace VellumErrorCodeEnum {
|
|
9
|
+
type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
|
|
10
|
+
}
|