vellum-ai 0.0.40 → 0.0.42
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 -14
- package/Client.js +2 -14
- package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +1 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.d.ts +0 -4
- package/api/resources/deployments/client/Client.js +0 -4
- package/api/resources/documentIndexes/client/Client.d.ts +4 -2
- package/api/resources/documentIndexes/client/Client.js +39 -2
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +2 -2
- package/api/resources/documents/client/Client.d.ts +0 -10
- package/api/resources/documents/client/Client.js +0 -10
- package/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/api/resources/modelVersions/client/Client.d.ts +0 -6
- package/api/resources/modelVersions/client/Client.js +0 -6
- package/api/resources/registeredPrompts/client/Client.d.ts +0 -2
- package/api/resources/registeredPrompts/client/Client.js +0 -2
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +0 -4
- package/api/resources/sandboxes/client/Client.js +0 -4
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/api/resources/testSuites/client/Client.d.ts +1 -4
- package/api/resources/testSuites/client/Client.js +1 -4
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/api/types/ApiNodeResult.d.ts +7 -0
- package/api/types/{ContentType.js → ApiNodeResult.js} +0 -5
- package/api/types/ApiNodeResultData.d.ts +11 -0
- package/{dist/api/types/ContentType.js → api/types/ApiNodeResultData.js} +0 -5
- package/api/types/DeploymentRead.d.ts +4 -4
- package/api/types/DocumentIndexRead.d.ts +3 -3
- package/api/types/DocumentRead.d.ts +2 -2
- package/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/api/types/LogicalOperator.d.ts +98 -0
- package/api/types/LogicalOperator.js +26 -0
- package/api/types/MetadataFilterConfigRequest.d.ts +1 -4
- package/api/types/MetadataFilterRuleRequest.d.ts +1 -4
- package/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/api/types/ModelVersionRead.d.ts +3 -3
- package/api/types/NodeInputCompiledNumberValue.d.ts +8 -0
- package/api/types/NodeInputCompiledNumberValue.js +5 -0
- package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/api/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -3
- package/api/types/PromptTemplateBlockRequest.d.ts +0 -1
- package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -2
- package/api/types/ScenarioInputRequest.d.ts +0 -1
- package/api/types/SearchResultDocument.d.ts +1 -1
- package/api/types/SearchResultMergingRequest.d.ts +1 -1
- package/api/types/SearchWeightsRequest.d.ts +3 -3
- package/api/types/SlimDocument.d.ts +2 -2
- package/api/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/api/types/TemplatingNodeNumberResult.d.ts +7 -0
- package/api/types/TemplatingNodeNumberResult.js +5 -0
- package/api/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/api/types/TerminalNodeNumberResult.d.ts +9 -0
- package/api/types/TerminalNodeNumberResult.js +5 -0
- package/api/types/TerminalNodeResultOutput.d.ts +4 -1
- package/api/types/VellumVariableType.d.ts +6 -4
- package/api/types/VellumVariableType.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/WorkflowNodeResultEvent.d.ts +1 -1
- package/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +1 -1
- package/api/types/WorkflowRequestJsonInputRequest.d.ts +1 -1
- package/api/types/WorkflowRequestStringInputRequest.d.ts +1 -1
- package/api/types/WorkflowResultEvent.d.ts +1 -1
- package/api/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/api/types/WorkflowResultEventOutputDataNumber.d.ts +13 -0
- package/api/types/WorkflowResultEventOutputDataNumber.js +5 -0
- package/api/types/index.d.ts +7 -1
- package/api/types/index.js +7 -1
- package/dist/Client.d.ts +2 -14
- package/dist/Client.js +2 -14
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.d.ts +0 -4
- package/dist/api/resources/deployments/client/Client.js +0 -4
- package/dist/api/resources/documentIndexes/client/Client.d.ts +4 -2
- package/dist/api/resources/documentIndexes/client/Client.js +39 -2
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +2 -2
- package/dist/api/resources/documents/client/Client.d.ts +0 -10
- package/dist/api/resources/documents/client/Client.js +0 -10
- package/dist/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/Client.d.ts +0 -6
- package/dist/api/resources/modelVersions/client/Client.js +0 -6
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -2
- package/dist/api/resources/registeredPrompts/client/Client.js +0 -2
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +0 -4
- package/dist/api/resources/sandboxes/client/Client.js +0 -4
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/dist/api/resources/testSuites/client/Client.d.ts +1 -4
- package/dist/api/resources/testSuites/client/Client.js +1 -4
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/dist/api/types/ApiNodeResult.d.ts +7 -0
- package/dist/api/types/ApiNodeResult.js +5 -0
- package/dist/api/types/ApiNodeResultData.d.ts +11 -0
- package/dist/api/types/ApiNodeResultData.js +5 -0
- package/dist/api/types/DeploymentRead.d.ts +4 -4
- package/dist/api/types/DocumentIndexRead.d.ts +3 -3
- package/dist/api/types/DocumentRead.d.ts +2 -2
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/api/types/LogicalOperator.d.ts +98 -0
- package/dist/api/types/LogicalOperator.js +26 -0
- package/dist/api/types/MetadataFilterConfigRequest.d.ts +1 -4
- package/dist/api/types/MetadataFilterRuleRequest.d.ts +1 -4
- package/dist/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/api/types/ModelVersionRead.d.ts +3 -3
- package/dist/api/types/NodeInputCompiledNumberValue.d.ts +8 -0
- package/dist/api/types/NodeInputCompiledNumberValue.js +5 -0
- package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -3
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -1
- package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -2
- package/dist/api/types/ScenarioInputRequest.d.ts +0 -1
- package/dist/api/types/SearchResultDocument.d.ts +1 -1
- package/dist/api/types/SearchResultMergingRequest.d.ts +1 -1
- package/dist/api/types/SearchWeightsRequest.d.ts +3 -3
- package/dist/api/types/SlimDocument.d.ts +2 -2
- package/dist/api/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/dist/api/types/TemplatingNodeNumberResult.d.ts +7 -0
- package/dist/api/types/TemplatingNodeNumberResult.js +5 -0
- package/dist/api/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/dist/api/types/TerminalNodeNumberResult.d.ts +9 -0
- package/dist/api/types/TerminalNodeNumberResult.js +5 -0
- package/dist/api/types/TerminalNodeResultOutput.d.ts +4 -1
- package/dist/api/types/VellumVariableType.d.ts +6 -4
- package/dist/api/types/VellumVariableType.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/WorkflowNodeResultEvent.d.ts +1 -1
- package/dist/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowRequestJsonInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowRequestStringInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowResultEvent.d.ts +1 -1
- package/dist/api/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/dist/api/types/WorkflowResultEventOutputDataNumber.d.ts +13 -0
- package/dist/api/types/WorkflowResultEventOutputDataNumber.js +5 -0
- package/dist/api/types/index.d.ts +7 -1
- package/dist/api/types/index.js +7 -1
- package/dist/serialization/types/ApiNodeResult.d.ts +12 -0
- package/dist/serialization/types/ApiNodeResult.js +33 -0
- package/dist/serialization/types/ApiNodeResultData.d.ts +17 -0
- package/dist/serialization/types/ApiNodeResultData.js +38 -0
- package/dist/serialization/types/DeploymentRead.js +2 -2
- package/dist/serialization/types/DocumentIndexRead.js +1 -1
- package/dist/serialization/types/DocumentRead.js +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/dist/serialization/types/LogicalOperator.d.ts +10 -0
- package/dist/serialization/types/LogicalOperator.js +50 -0
- package/dist/serialization/types/MetadataFilterConfigRequest.d.ts +1 -1
- package/dist/serialization/types/MetadataFilterConfigRequest.js +1 -1
- package/dist/serialization/types/MetadataFilterRuleRequest.d.ts +1 -1
- package/dist/serialization/types/MetadataFilterRuleRequest.js +1 -1
- package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/serialization/types/ModelVersionExecConfigParameters.js +2 -2
- package/dist/serialization/types/ModelVersionRead.js +1 -1
- package/dist/serialization/types/NodeInputCompiledNumberValue.d.ts +14 -0
- package/dist/serialization/types/NodeInputCompiledNumberValue.js +35 -0
- package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -1
- package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
- package/dist/serialization/types/SearchResultMergingRequest.js +1 -1
- package/dist/serialization/types/SearchWeightsRequest.d.ts +2 -2
- package/dist/serialization/types/SearchWeightsRequest.js +2 -2
- package/dist/serialization/types/SlimDocument.js +1 -1
- package/dist/serialization/types/SubmitCompletionActualRequest.js +1 -1
- package/dist/serialization/types/TemplatingNodeNumberResult.d.ts +13 -0
- package/dist/serialization/types/{ContentType.js → TemplatingNodeNumberResult.js} +5 -2
- package/dist/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/dist/serialization/types/TemplatingNodeResultOutput.js +1 -0
- package/dist/serialization/types/TerminalNodeNumberResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeNumberResult.js +35 -0
- package/dist/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
- package/dist/serialization/types/TerminalNodeResultOutput.js +1 -0
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.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/WorkflowNodeResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.js +1 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataNumber.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataNumber.js +38 -0
- package/dist/serialization/types/index.d.ts +7 -1
- package/dist/serialization/types/index.js +7 -1
- package/package.json +1 -1
- package/serialization/types/ApiNodeResult.d.ts +12 -0
- package/serialization/types/ApiNodeResult.js +33 -0
- package/serialization/types/ApiNodeResultData.d.ts +17 -0
- package/serialization/types/ApiNodeResultData.js +38 -0
- package/serialization/types/DeploymentRead.js +2 -2
- package/serialization/types/DocumentIndexRead.js +1 -1
- package/serialization/types/DocumentRead.js +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/serialization/types/LogicalOperator.d.ts +10 -0
- package/serialization/types/LogicalOperator.js +50 -0
- package/serialization/types/MetadataFilterConfigRequest.d.ts +1 -1
- package/serialization/types/MetadataFilterConfigRequest.js +1 -1
- package/serialization/types/MetadataFilterRuleRequest.d.ts +1 -1
- package/serialization/types/MetadataFilterRuleRequest.js +1 -1
- package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/serialization/types/ModelVersionExecConfigParameters.js +2 -2
- package/serialization/types/ModelVersionRead.js +1 -1
- package/serialization/types/NodeInputCompiledNumberValue.d.ts +14 -0
- package/serialization/types/NodeInputCompiledNumberValue.js +35 -0
- package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockProperties.js +1 -1
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -1
- package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
- package/serialization/types/SearchResultMergingRequest.js +1 -1
- package/serialization/types/SearchWeightsRequest.d.ts +2 -2
- package/serialization/types/SearchWeightsRequest.js +2 -2
- package/serialization/types/SlimDocument.js +1 -1
- package/serialization/types/SubmitCompletionActualRequest.js +1 -1
- package/serialization/types/TemplatingNodeNumberResult.d.ts +13 -0
- package/serialization/types/{ContentType.js → TemplatingNodeNumberResult.js} +5 -2
- package/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/serialization/types/TemplatingNodeResultOutput.js +1 -0
- package/serialization/types/TerminalNodeNumberResult.d.ts +14 -0
- package/serialization/types/TerminalNodeNumberResult.js +35 -0
- package/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
- package/serialization/types/TerminalNodeResultOutput.js +1 -0
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.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/WorkflowNodeResultEvent.js +1 -1
- package/serialization/types/WorkflowResultEvent.js +1 -1
- package/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/serialization/types/WorkflowResultEventOutputData.js +1 -0
- package/serialization/types/WorkflowResultEventOutputDataNumber.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataNumber.js +38 -0
- package/serialization/types/index.d.ts +7 -1
- package/serialization/types/index.js +7 -1
- package/api/types/ContentType.d.ts +0 -12
- package/dist/api/types/ContentType.d.ts +0 -12
- package/dist/serialization/types/ContentType.d.ts +0 -10
- package/serialization/types/ContentType.d.ts +0 -10
|
@@ -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.TerminalNodeNumberResult = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TerminalNodeNumberResult = core.serialization.object({
|
|
32
|
+
id: core.serialization.string().optional(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
value: core.serialization.number().optional(),
|
|
35
|
+
});
|
|
@@ -6,10 +6,13 @@ 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.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults;
|
|
9
|
+
type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults;
|
|
10
10
|
interface String extends serializers.TerminalNodeStringResult.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
13
|
+
interface Number extends serializers.TerminalNodeNumberResult.Raw {
|
|
14
|
+
type: "NUMBER";
|
|
15
|
+
}
|
|
13
16
|
interface Json extends serializers.TerminalNodeJsonResult.Raw {
|
|
14
17
|
type: "JSON";
|
|
15
18
|
}
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.TerminalNodeResultOutput = core.serialization
|
|
32
32
|
.union("type", {
|
|
33
33
|
STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeStringResult),
|
|
34
|
+
NUMBER: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeNumberResult),
|
|
34
35
|
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeJsonResult),
|
|
35
36
|
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeChatHistoryResult),
|
|
36
37
|
SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeSearchResultsResult),
|
|
@@ -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" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS";
|
|
9
|
+
type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS";
|
|
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", "JSON", "CHAT_HISTORY", "SEARCH_RESULTS"]);
|
|
31
|
+
exports.VellumVariableType = core.serialization.enum_(["STRING", "NUMBER", "JSON", "CHAT_HISTORY", "SEARCH_RESULTS"]);
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowExecutionEventErrorCode: core.serialization.Schema<serializers.WorkflowExecutionEventErrorCode.Raw, Vellum.WorkflowExecutionEventErrorCode>;
|
|
8
8
|
export declare namespace WorkflowExecutionEventErrorCode {
|
|
9
|
-
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
9
|
+
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
10
10
|
}
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.WorkflowExecutionEventErrorCode = core.serialization.enum_([
|
|
32
32
|
"WORKFLOW_INITIALIZATION",
|
|
33
33
|
"NODE_EXECUTION_COUNT_LIMIT_REACHED",
|
|
34
|
+
"INTERNAL_SERVER_ERROR",
|
|
34
35
|
"NODE_EXECUTION",
|
|
35
36
|
"LLM_PROVIDER",
|
|
36
37
|
"INVALID_TEMPLATE",
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowNodeResultData: core.serialization.Schema<serializers.WorkflowNodeResultData.Raw, Vellum.WorkflowNodeResultData>;
|
|
8
8
|
export declare namespace WorkflowNodeResultData {
|
|
9
|
-
type Raw = WorkflowNodeResultData.Prompt | WorkflowNodeResultData.Search | WorkflowNodeResultData.Templating | WorkflowNodeResultData.Conditional | WorkflowNodeResultData.Terminal;
|
|
9
|
+
type Raw = WorkflowNodeResultData.Prompt | WorkflowNodeResultData.Search | WorkflowNodeResultData.Templating | WorkflowNodeResultData.Conditional | WorkflowNodeResultData.Api | WorkflowNodeResultData.Terminal;
|
|
10
10
|
interface Prompt extends serializers.PromptNodeResult.Raw {
|
|
11
11
|
type: "PROMPT";
|
|
12
12
|
}
|
|
@@ -19,6 +19,9 @@ export declare namespace WorkflowNodeResultData {
|
|
|
19
19
|
interface Conditional extends serializers.ConditionalNodeResult.Raw {
|
|
20
20
|
type: "CONDITIONAL";
|
|
21
21
|
}
|
|
22
|
+
interface Api extends serializers.ApiNodeResult.Raw {
|
|
23
|
+
type: "API";
|
|
24
|
+
}
|
|
22
25
|
interface Terminal extends serializers.TerminalNodeResult.Raw {
|
|
23
26
|
type: "TERMINAL";
|
|
24
27
|
}
|
|
@@ -34,6 +34,7 @@ exports.WorkflowNodeResultData = core.serialization
|
|
|
34
34
|
SEARCH: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SearchNodeResult),
|
|
35
35
|
TEMPLATING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeResult),
|
|
36
36
|
CONDITIONAL: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ConditionalNodeResult),
|
|
37
|
+
API: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ApiNodeResult),
|
|
37
38
|
TERMINAL: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeResult),
|
|
38
39
|
})
|
|
39
40
|
.transform({
|
|
@@ -33,7 +33,7 @@ exports.WorkflowNodeResultEvent = core.serialization.object({
|
|
|
33
33
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
34
34
|
nodeResultId: core.serialization.property("node_result_id", core.serialization.string()),
|
|
35
35
|
state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
|
|
36
|
-
ts: core.serialization.
|
|
36
|
+
ts: core.serialization.date().optional(),
|
|
37
37
|
data: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultData).optional(),
|
|
38
38
|
error: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError).optional(),
|
|
39
39
|
inputValues: core.serialization.property("input_values", core.serialization
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.WorkflowResultEvent = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
|
|
34
|
-
ts: core.serialization.
|
|
34
|
+
ts: core.serialization.date(),
|
|
35
35
|
output: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputData).optional(),
|
|
36
36
|
error: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError).optional(),
|
|
37
37
|
});
|
|
@@ -6,10 +6,13 @@ 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.Json | WorkflowResultEventOutputData.ChatHistory | WorkflowResultEventOutputData.SearchResults;
|
|
9
|
+
type Raw = WorkflowResultEventOutputData.String | WorkflowResultEventOutputData.Number | WorkflowResultEventOutputData.Json | WorkflowResultEventOutputData.ChatHistory | WorkflowResultEventOutputData.SearchResults;
|
|
10
10
|
interface String extends serializers.WorkflowResultEventOutputDataString.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
13
|
+
interface Number extends serializers.WorkflowResultEventOutputDataNumber.Raw {
|
|
14
|
+
type: "NUMBER";
|
|
15
|
+
}
|
|
13
16
|
interface Json extends serializers.WorkflowResultEventOutputDataJson.Raw {
|
|
14
17
|
type: "JSON";
|
|
15
18
|
}
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.WorkflowResultEventOutputData = core.serialization
|
|
32
32
|
.union("type", {
|
|
33
33
|
STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataString),
|
|
34
|
+
NUMBER: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataNumber),
|
|
34
35
|
JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataJson),
|
|
35
36
|
CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataChatHistory),
|
|
36
37
|
SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputDataSearchResults),
|
|
@@ -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 WorkflowResultEventOutputDataNumber: core.serialization.ObjectSchema<serializers.WorkflowResultEventOutputDataNumber.Raw, Vellum.WorkflowResultEventOutputDataNumber>;
|
|
8
|
+
export declare namespace WorkflowResultEventOutputDataNumber {
|
|
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?: number | 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.WorkflowResultEventOutputDataNumber = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowResultEventOutputDataNumber = 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.number().optional(),
|
|
38
|
+
});
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export * from "./ApiNodeResult";
|
|
2
|
+
export * from "./ApiNodeResultData";
|
|
1
3
|
export * from "./BlockTypeEnum";
|
|
2
4
|
export * from "./ChatMessage";
|
|
3
5
|
export * from "./ChatMessageRequest";
|
|
4
6
|
export * from "./ChatMessageRole";
|
|
5
7
|
export * from "./ConditionalNodeResult";
|
|
6
8
|
export * from "./ConditionalNodeResultData";
|
|
7
|
-
export * from "./ContentType";
|
|
8
9
|
export * from "./DeploymentRead";
|
|
9
10
|
export * from "./DeploymentStatus";
|
|
10
11
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
@@ -29,6 +30,7 @@ export * from "./GenerateStreamResponse";
|
|
|
29
30
|
export * from "./GenerateStreamResult";
|
|
30
31
|
export * from "./GenerateStreamResultData";
|
|
31
32
|
export * from "./IndexingStateEnum";
|
|
33
|
+
export * from "./LogicalOperator";
|
|
32
34
|
export * from "./LogprobsEnum";
|
|
33
35
|
export * from "./MetadataFilterConfigRequest";
|
|
34
36
|
export * from "./MetadataFilterRuleCombinator";
|
|
@@ -44,6 +46,7 @@ export * from "./ModelVersionReadStatusEnum";
|
|
|
44
46
|
export * from "./ModelVersionSandboxSnapshot";
|
|
45
47
|
export * from "./NodeInputCompiledChatHistoryValue";
|
|
46
48
|
export * from "./NodeInputCompiledJsonValue";
|
|
49
|
+
export * from "./NodeInputCompiledNumberValue";
|
|
47
50
|
export * from "./NodeInputCompiledSearchResultsValue";
|
|
48
51
|
export * from "./NodeInputCompiledStringValue";
|
|
49
52
|
export * from "./NodeInputVariableCompiledValue";
|
|
@@ -93,6 +96,7 @@ export * from "./SubmitCompletionActualsErrorResponse";
|
|
|
93
96
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
94
97
|
export * from "./TemplatingNodeChatHistoryResult";
|
|
95
98
|
export * from "./TemplatingNodeJsonResult";
|
|
99
|
+
export * from "./TemplatingNodeNumberResult";
|
|
96
100
|
export * from "./TemplatingNodeResult";
|
|
97
101
|
export * from "./TemplatingNodeResultData";
|
|
98
102
|
export * from "./TemplatingNodeResultOutput";
|
|
@@ -100,6 +104,7 @@ export * from "./TemplatingNodeSearchResultsResult";
|
|
|
100
104
|
export * from "./TemplatingNodeStringResult";
|
|
101
105
|
export * from "./TerminalNodeChatHistoryResult";
|
|
102
106
|
export * from "./TerminalNodeJsonResult";
|
|
107
|
+
export * from "./TerminalNodeNumberResult";
|
|
103
108
|
export * from "./TerminalNodeResult";
|
|
104
109
|
export * from "./TerminalNodeResultData";
|
|
105
110
|
export * from "./TerminalNodeResultOutput";
|
|
@@ -129,6 +134,7 @@ export * from "./WorkflowResultEvent";
|
|
|
129
134
|
export * from "./WorkflowResultEventOutputData";
|
|
130
135
|
export * from "./WorkflowResultEventOutputDataChatHistory";
|
|
131
136
|
export * from "./WorkflowResultEventOutputDataJson";
|
|
137
|
+
export * from "./WorkflowResultEventOutputDataNumber";
|
|
132
138
|
export * from "./WorkflowResultEventOutputDataSearchResults";
|
|
133
139
|
export * from "./WorkflowResultEventOutputDataString";
|
|
134
140
|
export * from "./WorkflowStreamEvent";
|
|
@@ -14,13 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApiNodeResult"), exports);
|
|
18
|
+
__exportStar(require("./ApiNodeResultData"), exports);
|
|
17
19
|
__exportStar(require("./BlockTypeEnum"), exports);
|
|
18
20
|
__exportStar(require("./ChatMessage"), exports);
|
|
19
21
|
__exportStar(require("./ChatMessageRequest"), exports);
|
|
20
22
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
21
23
|
__exportStar(require("./ConditionalNodeResult"), exports);
|
|
22
24
|
__exportStar(require("./ConditionalNodeResultData"), exports);
|
|
23
|
-
__exportStar(require("./ContentType"), exports);
|
|
24
25
|
__exportStar(require("./DeploymentRead"), exports);
|
|
25
26
|
__exportStar(require("./DeploymentStatus"), exports);
|
|
26
27
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
@@ -45,6 +46,7 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
45
46
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
46
47
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
47
48
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
49
|
+
__exportStar(require("./LogicalOperator"), exports);
|
|
48
50
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
49
51
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
50
52
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
@@ -60,6 +62,7 @@ __exportStar(require("./ModelVersionReadStatusEnum"), exports);
|
|
|
60
62
|
__exportStar(require("./ModelVersionSandboxSnapshot"), exports);
|
|
61
63
|
__exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
|
|
62
64
|
__exportStar(require("./NodeInputCompiledJsonValue"), exports);
|
|
65
|
+
__exportStar(require("./NodeInputCompiledNumberValue"), exports);
|
|
63
66
|
__exportStar(require("./NodeInputCompiledSearchResultsValue"), exports);
|
|
64
67
|
__exportStar(require("./NodeInputCompiledStringValue"), exports);
|
|
65
68
|
__exportStar(require("./NodeInputVariableCompiledValue"), exports);
|
|
@@ -109,6 +112,7 @@ __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
|
109
112
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
110
113
|
__exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
|
|
111
114
|
__exportStar(require("./TemplatingNodeJsonResult"), exports);
|
|
115
|
+
__exportStar(require("./TemplatingNodeNumberResult"), exports);
|
|
112
116
|
__exportStar(require("./TemplatingNodeResult"), exports);
|
|
113
117
|
__exportStar(require("./TemplatingNodeResultData"), exports);
|
|
114
118
|
__exportStar(require("./TemplatingNodeResultOutput"), exports);
|
|
@@ -116,6 +120,7 @@ __exportStar(require("./TemplatingNodeSearchResultsResult"), exports);
|
|
|
116
120
|
__exportStar(require("./TemplatingNodeStringResult"), exports);
|
|
117
121
|
__exportStar(require("./TerminalNodeChatHistoryResult"), exports);
|
|
118
122
|
__exportStar(require("./TerminalNodeJsonResult"), exports);
|
|
123
|
+
__exportStar(require("./TerminalNodeNumberResult"), exports);
|
|
119
124
|
__exportStar(require("./TerminalNodeResult"), exports);
|
|
120
125
|
__exportStar(require("./TerminalNodeResultData"), exports);
|
|
121
126
|
__exportStar(require("./TerminalNodeResultOutput"), exports);
|
|
@@ -145,6 +150,7 @@ __exportStar(require("./WorkflowResultEvent"), exports);
|
|
|
145
150
|
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
146
151
|
__exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
|
|
147
152
|
__exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
|
|
153
|
+
__exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
|
|
148
154
|
__exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
|
|
149
155
|
__exportStar(require("./WorkflowResultEventOutputDataString"), exports);
|
|
150
156
|
__exportStar(require("./WorkflowStreamEvent"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
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 ApiNodeResult: core.serialization.ObjectSchema<serializers.ApiNodeResult.Raw, Vellum.ApiNodeResult>;
|
|
8
|
+
export declare namespace ApiNodeResult {
|
|
9
|
+
interface Raw {
|
|
10
|
+
data: serializers.ApiNodeResultData.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.ApiNodeResult = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ApiNodeResult = core.serialization.object({
|
|
32
|
+
data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ApiNodeResultData),
|
|
33
|
+
});
|
|
@@ -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 ApiNodeResultData: core.serialization.ObjectSchema<serializers.ApiNodeResultData.Raw, Vellum.ApiNodeResultData>;
|
|
8
|
+
export declare namespace ApiNodeResultData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text_output_id: string;
|
|
11
|
+
text?: string | null;
|
|
12
|
+
json_output_id: string;
|
|
13
|
+
json?: Record<string, unknown> | null;
|
|
14
|
+
status_code_output_id: string;
|
|
15
|
+
status_code: number;
|
|
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.ApiNodeResultData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ApiNodeResultData = core.serialization.object({
|
|
32
|
+
textOutputId: core.serialization.property("text_output_id", core.serialization.string()),
|
|
33
|
+
text: core.serialization.string().optional(),
|
|
34
|
+
jsonOutputId: core.serialization.property("json_output_id", core.serialization.string()),
|
|
35
|
+
json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
36
|
+
statusCodeOutputId: core.serialization.property("status_code_output_id", core.serialization.string()),
|
|
37
|
+
statusCode: core.serialization.property("status_code", core.serialization.number()),
|
|
38
|
+
});
|
|
@@ -30,13 +30,13 @@ exports.DeploymentRead = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.DeploymentRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
|
-
created: core.serialization.
|
|
33
|
+
created: core.serialization.date(),
|
|
34
34
|
label: core.serialization.string(),
|
|
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
38
|
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
|
|
39
39
|
activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
|
|
40
|
-
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.
|
|
40
|
+
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
|
|
41
41
|
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariable))),
|
|
42
42
|
});
|
|
@@ -30,7 +30,7 @@ exports.DocumentIndexRead = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.DocumentIndexRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
|
-
created: core.serialization.
|
|
33
|
+
created: core.serialization.date(),
|
|
34
34
|
label: core.serialization.string(),
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexStatus).optional(),
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.DocumentRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
|
-
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.
|
|
34
|
+
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.date()),
|
|
35
35
|
label: core.serialization.string(),
|
|
36
36
|
processingState: core.serialization.property("processing_state", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProcessingStateEnum).optional()),
|
|
37
37
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentStatus).optional(),
|
|
@@ -13,6 +13,6 @@ 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
|
-
type?: serializers.
|
|
16
|
+
type?: serializers.VellumVariableType.Raw | null;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -35,5 +35,5 @@ 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
|
-
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).
|
|
38
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType).optional(),
|
|
39
39
|
});
|
|
@@ -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 LogicalOperator: core.serialization.Schema<serializers.LogicalOperator.Raw, Vellum.LogicalOperator>;
|
|
8
|
+
export declare namespace LogicalOperator {
|
|
9
|
+
type Raw = "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "endsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "in" | "notIn" | "between" | "notBetween";
|
|
10
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.LogicalOperator = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.LogicalOperator = core.serialization.enum_([
|
|
32
|
+
"=",
|
|
33
|
+
"!=",
|
|
34
|
+
"<",
|
|
35
|
+
">",
|
|
36
|
+
"<=",
|
|
37
|
+
">=",
|
|
38
|
+
"contains",
|
|
39
|
+
"beginsWith",
|
|
40
|
+
"endsWith",
|
|
41
|
+
"doesNotContain",
|
|
42
|
+
"doesNotBeginWith",
|
|
43
|
+
"doesNotEndWith",
|
|
44
|
+
"null",
|
|
45
|
+
"notNull",
|
|
46
|
+
"in",
|
|
47
|
+
"notIn",
|
|
48
|
+
"between",
|
|
49
|
+
"notBetween",
|
|
50
|
+
]);
|
|
@@ -11,7 +11,7 @@ export declare namespace MetadataFilterConfigRequest {
|
|
|
11
11
|
negated?: boolean | null;
|
|
12
12
|
rules?: serializers.MetadataFilterRuleRequest.Raw[] | null;
|
|
13
13
|
field?: string | null;
|
|
14
|
-
operator?:
|
|
14
|
+
operator?: serializers.LogicalOperator.Raw | null;
|
|
15
15
|
value?: string | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -35,6 +35,6 @@ exports.MetadataFilterConfigRequest = core.serialization.object({
|
|
|
35
35
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest))
|
|
36
36
|
.optional(),
|
|
37
37
|
field: core.serialization.string().optional(),
|
|
38
|
-
operator: core.serialization.
|
|
38
|
+
operator: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).LogicalOperator).optional(),
|
|
39
39
|
value: core.serialization.string().optional(),
|
|
40
40
|
});
|
|
@@ -11,7 +11,7 @@ export declare namespace MetadataFilterRuleRequest {
|
|
|
11
11
|
negated?: boolean | null;
|
|
12
12
|
rules?: serializers.MetadataFilterRuleRequest.Raw[] | null;
|
|
13
13
|
field?: string | null;
|
|
14
|
-
operator?:
|
|
14
|
+
operator?: serializers.LogicalOperator.Raw | null;
|
|
15
15
|
value?: string | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -35,6 +35,6 @@ exports.MetadataFilterRuleRequest = core.serialization.object({
|
|
|
35
35
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest))
|
|
36
36
|
.optional(),
|
|
37
37
|
field: core.serialization.string().optional(),
|
|
38
|
-
operator: core.serialization.
|
|
38
|
+
operator: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).LogicalOperator).optional(),
|
|
39
39
|
value: core.serialization.string().optional(),
|
|
40
40
|
});
|
|
@@ -7,8 +7,8 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const ModelVersionExecConfigParameters: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigParameters.Raw, Vellum.ModelVersionExecConfigParameters>;
|
|
8
8
|
export declare namespace ModelVersionExecConfigParameters {
|
|
9
9
|
interface Raw {
|
|
10
|
-
temperature
|
|
11
|
-
max_tokens
|
|
10
|
+
temperature?: number | null;
|
|
11
|
+
max_tokens?: number | null;
|
|
12
12
|
top_p: number;
|
|
13
13
|
frequency_penalty: number;
|
|
14
14
|
presence_penalty: number;
|