vellum-ai 0.2.2 → 0.3.2
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 -13
- package/Client.js +11 -22
- package/api/client/requests/GenerateBodyRequest.d.ts +1 -8
- package/api/client/requests/SearchRequestBodyRequest.d.ts +0 -4
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +0 -3
- package/api/resources/documentIndexes/client/Client.d.ts +17 -3
- package/api/resources/documentIndexes/client/Client.js +19 -5
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +17 -3
- package/api/resources/documents/client/Client.d.ts +8 -0
- package/api/resources/documents/client/Client.js +12 -4
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.d.ts +2 -12
- package/api/resources/registeredPrompts/client/Client.js +3 -13
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -12
- package/api/resources/sandboxes/client/Client.d.ts +8 -8
- package/api/resources/sandboxes/client/Client.js +10 -10
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +8 -9
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/resources/workflowDeployments/client/Client.js +1 -1
- package/api/types/ApiNodeResult.d.ts +3 -0
- package/api/types/CodeExecutionNodeResult.d.ts +3 -0
- package/api/types/ConditionalNodeResult.d.ts +3 -0
- package/api/types/FulfilledWorkflowNodeResultEvent.d.ts +15 -0
- package/api/types/InitiatedWorkflowNodeResultEvent.d.ts +15 -0
- package/api/types/{ChatHistoryVariableValue.d.ts → NodeOutputCompiledChatHistoryValue.d.ts} +2 -1
- package/api/types/NodeOutputCompiledErrorValue.d.ts +8 -0
- package/api/types/NodeOutputCompiledJsonValue.d.ts +7 -0
- package/api/types/{NumberVariableValue.d.ts → NodeOutputCompiledNumberValue.d.ts} +2 -1
- package/api/types/{SearchResultsVariableValue.d.ts → NodeOutputCompiledSearchResultsValue.d.ts} +2 -1
- package/api/types/NodeOutputCompiledStringValue.d.ts +7 -0
- package/api/types/NodeOutputCompiledValue.d.ts +25 -0
- package/api/types/PromptNodeResult.d.ts +3 -0
- package/api/types/RejectedWorkflowNodeResultEvent.d.ts +15 -0
- package/api/types/SandboxScenario.d.ts +0 -1
- package/api/types/SearchNodeResult.d.ts +3 -0
- package/api/types/StreamingWorkflowNodeResultEvent.d.ts +16 -0
- package/api/types/TemplatingNodeResult.d.ts +3 -0
- package/api/types/TerminalNodeResult.d.ts +3 -0
- package/api/types/WorkflowExecutionNodeResultEvent.d.ts +3 -0
- package/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +3 -0
- package/api/types/WorkflowNodeResultEvent.d.ts +14 -9
- package/api/types/WorkflowOutput.d.ts +1 -4
- package/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataError.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataJson.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataNumber.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataSearchResults.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataString.d.ts +3 -0
- package/api/types/index.d.ts +11 -11
- package/api/types/index.js +11 -11
- package/dist/Client.d.ts +2 -13
- package/dist/Client.js +11 -22
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -8
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +0 -4
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +0 -3
- package/dist/api/resources/documentIndexes/client/Client.d.ts +17 -3
- package/dist/api/resources/documentIndexes/client/Client.js +19 -5
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +17 -3
- package/dist/api/resources/documents/client/Client.d.ts +8 -0
- package/dist/api/resources/documents/client/Client.js +12 -4
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -12
- package/dist/api/resources/registeredPrompts/client/Client.js +3 -13
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -12
- package/dist/api/resources/sandboxes/client/Client.d.ts +8 -8
- package/dist/api/resources/sandboxes/client/Client.js +10 -10
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +8 -9
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
- package/dist/api/types/ApiNodeResult.d.ts +3 -0
- package/dist/api/types/CodeExecutionNodeResult.d.ts +3 -0
- package/dist/api/types/ConditionalNodeResult.d.ts +3 -0
- package/dist/api/types/FulfilledWorkflowNodeResultEvent.d.ts +15 -0
- package/dist/api/types/InitiatedWorkflowNodeResultEvent.d.ts +15 -0
- package/dist/api/types/{ChatHistoryVariableValue.d.ts → NodeOutputCompiledChatHistoryValue.d.ts} +2 -1
- package/dist/api/types/NodeOutputCompiledErrorValue.d.ts +8 -0
- package/dist/api/types/NodeOutputCompiledJsonValue.d.ts +7 -0
- package/dist/api/types/{NumberVariableValue.d.ts → NodeOutputCompiledNumberValue.d.ts} +2 -1
- package/dist/api/types/{SearchResultsVariableValue.d.ts → NodeOutputCompiledSearchResultsValue.d.ts} +2 -1
- package/dist/api/types/NodeOutputCompiledStringValue.d.ts +7 -0
- package/dist/api/types/NodeOutputCompiledValue.d.ts +25 -0
- package/dist/api/types/PromptNodeResult.d.ts +3 -0
- package/dist/api/types/RejectedWorkflowNodeResultEvent.d.ts +15 -0
- package/dist/api/types/SandboxScenario.d.ts +0 -1
- package/dist/api/types/SearchNodeResult.d.ts +3 -0
- package/dist/api/types/StreamingWorkflowNodeResultEvent.d.ts +16 -0
- package/dist/api/types/TemplatingNodeResult.d.ts +3 -0
- package/dist/api/types/TerminalNodeResult.d.ts +3 -0
- package/dist/api/types/WorkflowExecutionNodeResultEvent.d.ts +3 -0
- package/dist/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +3 -0
- package/dist/api/types/WorkflowNodeResultEvent.d.ts +14 -9
- package/dist/api/types/WorkflowOutput.d.ts +1 -4
- package/dist/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataError.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataJson.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataNumber.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataSearchResults.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataString.d.ts +3 -0
- package/dist/api/types/index.d.ts +11 -11
- package/dist/api/types/index.js +11 -11
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +0 -1
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +0 -3
- package/dist/serialization/types/FulfilledWorkflowNodeResultEvent.d.ts +17 -0
- package/dist/serialization/types/FulfilledWorkflowNodeResultEvent.js +49 -0
- package/dist/serialization/types/InitiatedWorkflowNodeResultEvent.d.ts +17 -0
- package/dist/serialization/types/InitiatedWorkflowNodeResultEvent.js +49 -0
- package/dist/serialization/types/NodeOutputCompiledChatHistoryValue.d.ts +13 -0
- package/{serialization/types/ChatHistoryVariableValue.js → dist/serialization/types/NodeOutputCompiledChatHistoryValue.js} +3 -2
- package/dist/serialization/types/NodeOutputCompiledErrorValue.d.ts +13 -0
- package/dist/serialization/types/{SandboxMetricInputParams.js → NodeOutputCompiledErrorValue.js} +4 -3
- package/dist/serialization/types/NodeOutputCompiledJsonValue.d.ts +13 -0
- package/{serialization/types/EvaluationParams.js → dist/serialization/types/NodeOutputCompiledJsonValue.js} +4 -3
- package/dist/serialization/types/NodeOutputCompiledNumberValue.d.ts +13 -0
- package/{serialization/types/NumberVariableValue.js → dist/serialization/types/NodeOutputCompiledNumberValue.js} +3 -2
- package/dist/serialization/types/NodeOutputCompiledSearchResultsValue.d.ts +13 -0
- package/dist/serialization/types/{SearchResultsVariableValue.js → NodeOutputCompiledSearchResultsValue.js} +3 -2
- package/dist/serialization/types/NodeOutputCompiledStringValue.d.ts +13 -0
- package/dist/serialization/types/{EvaluationParamsRequest.js → NodeOutputCompiledStringValue.js} +4 -3
- package/dist/serialization/types/NodeOutputCompiledValue.d.ts +28 -0
- package/dist/serialization/types/{VariableValue.js → NodeOutputCompiledValue.js} +8 -10
- package/dist/serialization/types/RejectedWorkflowNodeResultEvent.d.ts +17 -0
- package/dist/serialization/types/{WorkflowOutputArray.js → RejectedWorkflowNodeResultEvent.js} +7 -4
- package/dist/serialization/types/SandboxScenario.d.ts +0 -1
- package/dist/serialization/types/SandboxScenario.js +0 -1
- package/dist/serialization/types/StreamingWorkflowNodeResultEvent.d.ts +18 -0
- package/dist/serialization/types/StreamingWorkflowNodeResultEvent.js +48 -0
- package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowNodeResultEvent.d.ts +13 -10
- package/dist/serialization/types/WorkflowNodeResultEvent.js +10 -11
- package/dist/serialization/types/WorkflowOutput.d.ts +1 -4
- package/dist/serialization/types/WorkflowOutput.js +0 -1
- package/dist/serialization/types/index.d.ts +11 -11
- package/dist/serialization/types/index.js +11 -11
- package/package.json +1 -1
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +0 -1
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +0 -3
- package/serialization/types/FulfilledWorkflowNodeResultEvent.d.ts +17 -0
- package/serialization/types/FulfilledWorkflowNodeResultEvent.js +49 -0
- package/serialization/types/InitiatedWorkflowNodeResultEvent.d.ts +17 -0
- package/serialization/types/InitiatedWorkflowNodeResultEvent.js +49 -0
- package/serialization/types/NodeOutputCompiledChatHistoryValue.d.ts +13 -0
- package/{dist/serialization/types/ChatHistoryVariableValue.js → serialization/types/NodeOutputCompiledChatHistoryValue.js} +3 -2
- package/serialization/types/NodeOutputCompiledErrorValue.d.ts +13 -0
- package/{dist/serialization/types/SandboxMetricInputParamsRequest.js → serialization/types/NodeOutputCompiledErrorValue.js} +4 -3
- package/serialization/types/NodeOutputCompiledJsonValue.d.ts +13 -0
- package/serialization/types/NodeOutputCompiledJsonValue.js +34 -0
- package/serialization/types/NodeOutputCompiledNumberValue.d.ts +13 -0
- package/{dist/serialization/types/NumberVariableValue.js → serialization/types/NodeOutputCompiledNumberValue.js} +3 -2
- package/serialization/types/NodeOutputCompiledSearchResultsValue.d.ts +13 -0
- package/serialization/types/{SearchResultsVariableValue.js → NodeOutputCompiledSearchResultsValue.js} +3 -2
- package/serialization/types/NodeOutputCompiledStringValue.d.ts +13 -0
- package/{dist/serialization/types/EvaluationParams.js → serialization/types/NodeOutputCompiledStringValue.js} +4 -3
- package/serialization/types/NodeOutputCompiledValue.d.ts +28 -0
- package/serialization/types/{VariableValue.js → NodeOutputCompiledValue.js} +8 -10
- package/serialization/types/RejectedWorkflowNodeResultEvent.d.ts +17 -0
- package/serialization/types/{WorkflowOutputArray.js → RejectedWorkflowNodeResultEvent.js} +7 -4
- package/serialization/types/SandboxScenario.d.ts +0 -1
- package/serialization/types/SandboxScenario.js +0 -1
- package/serialization/types/StreamingWorkflowNodeResultEvent.d.ts +18 -0
- package/serialization/types/StreamingWorkflowNodeResultEvent.js +48 -0
- package/serialization/types/WorkflowExecutionNodeResultEvent.js +1 -1
- package/serialization/types/WorkflowNodeResultEvent.d.ts +13 -10
- package/serialization/types/WorkflowNodeResultEvent.js +10 -11
- package/serialization/types/WorkflowOutput.d.ts +1 -4
- package/serialization/types/WorkflowOutput.js +0 -1
- package/serialization/types/index.d.ts +11 -11
- package/serialization/types/index.js +11 -11
- package/api/types/ArrayEnum.d.ts +0 -4
- package/api/types/ArrayVariableValue.d.ts +0 -7
- package/api/types/EvaluationParams.d.ts +0 -7
- package/api/types/EvaluationParamsRequest.d.ts +0 -7
- package/api/types/SandboxMetricInputParams.d.ts +0 -7
- package/api/types/SandboxMetricInputParamsRequest.d.ts +0 -7
- package/api/types/VariableValue.d.ts +0 -31
- package/api/types/WorkflowOutputArray.d.ts +0 -13
- package/dist/api/types/ArrayEnum.d.ts +0 -4
- package/dist/api/types/ArrayVariableValue.d.ts +0 -7
- package/dist/api/types/EvaluationParams.d.ts +0 -7
- package/dist/api/types/EvaluationParamsRequest.d.ts +0 -7
- package/dist/api/types/SandboxMetricInputParams.d.ts +0 -7
- package/dist/api/types/SandboxMetricInputParamsRequest.d.ts +0 -7
- package/dist/api/types/VariableValue.d.ts +0 -31
- package/dist/api/types/WorkflowOutputArray.d.ts +0 -13
- package/dist/serialization/types/ArrayEnum.d.ts +0 -10
- package/dist/serialization/types/ArrayEnum.js +0 -31
- package/dist/serialization/types/ArrayVariableValue.d.ts +0 -12
- package/dist/serialization/types/ArrayVariableValue.js +0 -42
- package/dist/serialization/types/ChatHistoryVariableValue.d.ts +0 -12
- package/dist/serialization/types/EvaluationParams.d.ts +0 -12
- package/dist/serialization/types/EvaluationParamsRequest.d.ts +0 -12
- package/dist/serialization/types/NumberVariableValue.d.ts +0 -12
- package/dist/serialization/types/SandboxMetricInputParams.d.ts +0 -12
- package/dist/serialization/types/SandboxMetricInputParamsRequest.d.ts +0 -12
- package/dist/serialization/types/SearchResultsVariableValue.d.ts +0 -12
- package/dist/serialization/types/VariableValue.d.ts +0 -34
- package/dist/serialization/types/WorkflowOutputArray.d.ts +0 -14
- package/serialization/types/ArrayEnum.d.ts +0 -10
- package/serialization/types/ArrayEnum.js +0 -31
- package/serialization/types/ArrayVariableValue.d.ts +0 -12
- package/serialization/types/ArrayVariableValue.js +0 -42
- package/serialization/types/ChatHistoryVariableValue.d.ts +0 -12
- package/serialization/types/EvaluationParams.d.ts +0 -12
- package/serialization/types/EvaluationParamsRequest.d.ts +0 -12
- package/serialization/types/EvaluationParamsRequest.js +0 -33
- package/serialization/types/NumberVariableValue.d.ts +0 -12
- package/serialization/types/SandboxMetricInputParams.d.ts +0 -12
- package/serialization/types/SandboxMetricInputParams.js +0 -42
- package/serialization/types/SandboxMetricInputParamsRequest.d.ts +0 -12
- package/serialization/types/SandboxMetricInputParamsRequest.js +0 -42
- package/serialization/types/SearchResultsVariableValue.d.ts +0 -12
- package/serialization/types/VariableValue.d.ts +0 -34
- package/serialization/types/WorkflowOutputArray.d.ts +0 -14
- /package/api/types/{ArrayEnum.js → FulfilledWorkflowNodeResultEvent.js} +0 -0
- /package/api/types/{ArrayVariableValue.js → InitiatedWorkflowNodeResultEvent.js} +0 -0
- /package/api/types/{ChatHistoryVariableValue.js → NodeOutputCompiledChatHistoryValue.js} +0 -0
- /package/api/types/{EvaluationParams.js → NodeOutputCompiledErrorValue.js} +0 -0
- /package/api/types/{EvaluationParamsRequest.js → NodeOutputCompiledJsonValue.js} +0 -0
- /package/api/types/{NumberVariableValue.js → NodeOutputCompiledNumberValue.js} +0 -0
- /package/api/types/{SandboxMetricInputParams.js → NodeOutputCompiledSearchResultsValue.js} +0 -0
- /package/api/types/{SandboxMetricInputParamsRequest.js → NodeOutputCompiledStringValue.js} +0 -0
- /package/api/types/{SearchResultsVariableValue.js → NodeOutputCompiledValue.js} +0 -0
- /package/api/types/{VariableValue.js → RejectedWorkflowNodeResultEvent.js} +0 -0
- /package/api/types/{WorkflowOutputArray.js → StreamingWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{ArrayEnum.js → FulfilledWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{ArrayVariableValue.js → InitiatedWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{ChatHistoryVariableValue.js → NodeOutputCompiledChatHistoryValue.js} +0 -0
- /package/dist/api/types/{EvaluationParams.js → NodeOutputCompiledErrorValue.js} +0 -0
- /package/dist/api/types/{EvaluationParamsRequest.js → NodeOutputCompiledJsonValue.js} +0 -0
- /package/dist/api/types/{NumberVariableValue.js → NodeOutputCompiledNumberValue.js} +0 -0
- /package/dist/api/types/{SandboxMetricInputParams.js → NodeOutputCompiledSearchResultsValue.js} +0 -0
- /package/dist/api/types/{SandboxMetricInputParamsRequest.js → NodeOutputCompiledStringValue.js} +0 -0
- /package/dist/api/types/{SearchResultsVariableValue.js → NodeOutputCompiledValue.js} +0 -0
- /package/dist/api/types/{VariableValue.js → RejectedWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{WorkflowOutputArray.js → StreamingWorkflowNodeResultEvent.js} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.InitiatedWorkflowNodeResultEvent = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.InitiatedWorkflowNodeResultEvent = core.serialization.object({
|
|
41
|
+
id: core.serialization.string(),
|
|
42
|
+
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
43
|
+
nodeResultId: core.serialization.property("node_result_id", core.serialization.string()),
|
|
44
|
+
ts: core.serialization.date().optional(),
|
|
45
|
+
data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultData; })).optional(),
|
|
46
|
+
inputValues: core.serialization.property("input_values", core.serialization
|
|
47
|
+
.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeInputVariableCompiledValue; })))
|
|
48
|
+
.optional()),
|
|
49
|
+
});
|
|
@@ -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 NodeOutputCompiledChatHistoryValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledChatHistoryValue.Raw, Vellum.NodeOutputCompiledChatHistoryValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledChatHistoryValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: serializers.ChatMessage.Raw[] | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -35,9 +35,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.NodeOutputCompiledChatHistoryValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
40
|
+
exports.NodeOutputCompiledChatHistoryValue = core.serialization.object({
|
|
41
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
41
42
|
value: core.serialization
|
|
42
43
|
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessage; })))
|
|
43
44
|
.optional(),
|
|
@@ -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 NodeOutputCompiledErrorValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledErrorValue.Raw, Vellum.NodeOutputCompiledErrorValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledErrorValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: serializers.VellumError.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/serialization/types/{SandboxMetricInputParams.js → NodeOutputCompiledErrorValue.js}
RENAMED
|
@@ -35,8 +35,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.NodeOutputCompiledErrorValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
41
|
-
|
|
40
|
+
exports.NodeOutputCompiledErrorValue = core.serialization.object({
|
|
41
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
42
|
+
value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })).optional(),
|
|
42
43
|
});
|
|
@@ -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 NodeOutputCompiledJsonValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledJsonValue.Raw, Vellum.NodeOutputCompiledJsonValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledJsonValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: Record<string, unknown> | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -26,8 +26,9 @@ 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.NodeOutputCompiledJsonValue = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
31
|
+
exports.NodeOutputCompiledJsonValue = core.serialization.object({
|
|
32
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
33
|
+
value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
33
34
|
});
|
|
@@ -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 NodeOutputCompiledNumberValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledNumberValue.Raw, Vellum.NodeOutputCompiledNumberValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledNumberValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: number | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -26,8 +26,9 @@ 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.NodeOutputCompiledNumberValue = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.NodeOutputCompiledNumberValue = core.serialization.object({
|
|
32
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
32
33
|
value: core.serialization.number().optional(),
|
|
33
34
|
});
|
|
@@ -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 NodeOutputCompiledSearchResultsValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledSearchResultsValue.Raw, Vellum.NodeOutputCompiledSearchResultsValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledSearchResultsValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: serializers.SearchResult.Raw[] | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -35,9 +35,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.NodeOutputCompiledSearchResultsValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
40
|
+
exports.NodeOutputCompiledSearchResultsValue = core.serialization.object({
|
|
41
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
41
42
|
value: core.serialization
|
|
42
43
|
.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
|
|
43
44
|
.optional(),
|
|
@@ -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 NodeOutputCompiledStringValue: core.serialization.ObjectSchema<serializers.NodeOutputCompiledStringValue.Raw, Vellum.NodeOutputCompiledStringValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledStringValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
node_output_id: string;
|
|
11
|
+
value?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/serialization/types/{EvaluationParamsRequest.js → NodeOutputCompiledStringValue.js}
RENAMED
|
@@ -26,8 +26,9 @@ 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.NodeOutputCompiledStringValue = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
|
|
31
|
+
exports.NodeOutputCompiledStringValue = core.serialization.object({
|
|
32
|
+
nodeOutputId: core.serialization.property("node_output_id", core.serialization.string()),
|
|
33
|
+
value: core.serialization.string().optional(),
|
|
33
34
|
});
|
|
@@ -0,0 +1,28 @@
|
|
|
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 NodeOutputCompiledValue: core.serialization.Schema<serializers.NodeOutputCompiledValue.Raw, Vellum.NodeOutputCompiledValue>;
|
|
8
|
+
export declare namespace NodeOutputCompiledValue {
|
|
9
|
+
type Raw = NodeOutputCompiledValue.String | NodeOutputCompiledValue.Number | NodeOutputCompiledValue.Json | NodeOutputCompiledValue.ChatHistory | NodeOutputCompiledValue.SearchResults | NodeOutputCompiledValue.Error;
|
|
10
|
+
interface String extends serializers.NodeOutputCompiledStringValue.Raw {
|
|
11
|
+
type: "STRING";
|
|
12
|
+
}
|
|
13
|
+
interface Number extends serializers.NodeOutputCompiledNumberValue.Raw {
|
|
14
|
+
type: "NUMBER";
|
|
15
|
+
}
|
|
16
|
+
interface Json extends serializers.NodeOutputCompiledJsonValue.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
19
|
+
interface ChatHistory extends serializers.NodeOutputCompiledChatHistoryValue.Raw {
|
|
20
|
+
type: "CHAT_HISTORY";
|
|
21
|
+
}
|
|
22
|
+
interface SearchResults extends serializers.NodeOutputCompiledSearchResultsValue.Raw {
|
|
23
|
+
type: "SEARCH_RESULTS";
|
|
24
|
+
}
|
|
25
|
+
interface Error extends serializers.NodeOutputCompiledErrorValue.Raw {
|
|
26
|
+
type: "ERROR";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -35,18 +35,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.NodeOutputCompiledValue = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
40
|
+
exports.NodeOutputCompiledValue = core.serialization
|
|
41
41
|
.union("type", {
|
|
42
|
-
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
43
|
-
NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
44
|
-
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
45
|
-
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
46
|
-
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
47
|
-
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).
|
|
48
|
-
ARRAY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ArrayVariableValue; })),
|
|
49
|
-
FUNCTION_CALL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FunctionCallVariableValue; })),
|
|
42
|
+
STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledStringValue; })),
|
|
43
|
+
NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledNumberValue; })),
|
|
44
|
+
JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledJsonValue; })),
|
|
45
|
+
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledChatHistoryValue; })),
|
|
46
|
+
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledSearchResultsValue; })),
|
|
47
|
+
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledErrorValue; })),
|
|
50
48
|
})
|
|
51
49
|
.transform({
|
|
52
50
|
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 RejectedWorkflowNodeResultEvent: core.serialization.ObjectSchema<serializers.RejectedWorkflowNodeResultEvent.Raw, Vellum.RejectedWorkflowNodeResultEvent>;
|
|
8
|
+
export declare namespace RejectedWorkflowNodeResultEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
node_id: string;
|
|
12
|
+
node_result_id: string;
|
|
13
|
+
ts?: string | null;
|
|
14
|
+
data?: serializers.WorkflowNodeResultData.Raw | null;
|
|
15
|
+
error: serializers.WorkflowEventError.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/dist/serialization/types/{WorkflowOutputArray.js → RejectedWorkflowNodeResultEvent.js}
RENAMED
|
@@ -35,10 +35,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
-
exports.
|
|
38
|
+
exports.RejectedWorkflowNodeResultEvent = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.
|
|
40
|
+
exports.RejectedWorkflowNodeResultEvent = core.serialization.object({
|
|
41
41
|
id: core.serialization.string(),
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
43
|
+
nodeResultId: core.serialization.property("node_result_id", core.serialization.string()),
|
|
44
|
+
ts: core.serialization.date().optional(),
|
|
45
|
+
data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultData; })).optional(),
|
|
46
|
+
error: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError; })),
|
|
44
47
|
});
|
|
@@ -41,5 +41,4 @@ exports.SandboxScenario = core.serialization.object({
|
|
|
41
41
|
label: core.serialization.string().optional(),
|
|
42
42
|
inputs: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ScenarioInput; }))),
|
|
43
43
|
id: core.serialization.string(),
|
|
44
|
-
metricInputParams: core.serialization.property("metric_input_params", core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SandboxMetricInputParams; }))),
|
|
45
44
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
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 StreamingWorkflowNodeResultEvent: core.serialization.ObjectSchema<serializers.StreamingWorkflowNodeResultEvent.Raw, Vellum.StreamingWorkflowNodeResultEvent>;
|
|
8
|
+
export declare namespace StreamingWorkflowNodeResultEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
node_id: string;
|
|
12
|
+
node_result_id: string;
|
|
13
|
+
ts?: string | null;
|
|
14
|
+
data?: serializers.WorkflowNodeResultData.Raw | null;
|
|
15
|
+
output?: serializers.NodeOutputCompiledValue.Raw | null;
|
|
16
|
+
output_index?: number | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.StreamingWorkflowNodeResultEvent = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.StreamingWorkflowNodeResultEvent = core.serialization.object({
|
|
41
|
+
id: core.serialization.string(),
|
|
42
|
+
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
43
|
+
nodeResultId: core.serialization.property("node_result_id", core.serialization.string()),
|
|
44
|
+
ts: core.serialization.date().optional(),
|
|
45
|
+
data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultData; })).optional(),
|
|
46
|
+
output: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NodeOutputCompiledValue; })).optional(),
|
|
47
|
+
outputIndex: core.serialization.property("output_index", core.serialization.number().optional()),
|
|
48
|
+
});
|
|
@@ -41,5 +41,5 @@ exports.WorkflowExecutionNodeResultEvent = core.serialization.object({
|
|
|
41
41
|
executionId: core.serialization.property("execution_id", core.serialization.string()),
|
|
42
42
|
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
43
43
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
44
|
-
data: core.serialization.
|
|
44
|
+
data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEvent; })),
|
|
45
45
|
});
|
|
@@ -4,16 +4,19 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const WorkflowNodeResultEvent: core.serialization.
|
|
7
|
+
export declare const WorkflowNodeResultEvent: core.serialization.Schema<serializers.WorkflowNodeResultEvent.Raw, Vellum.WorkflowNodeResultEvent>;
|
|
8
8
|
export declare namespace WorkflowNodeResultEvent {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
type Raw = WorkflowNodeResultEvent.Initiated | WorkflowNodeResultEvent.Streaming | WorkflowNodeResultEvent.Fulfilled | WorkflowNodeResultEvent.Rejected;
|
|
10
|
+
interface Initiated extends serializers.InitiatedWorkflowNodeResultEvent.Raw {
|
|
11
|
+
state: "INITIATED";
|
|
12
|
+
}
|
|
13
|
+
interface Streaming extends serializers.StreamingWorkflowNodeResultEvent.Raw {
|
|
14
|
+
state: "STREAMING";
|
|
15
|
+
}
|
|
16
|
+
interface Fulfilled extends serializers.FulfilledWorkflowNodeResultEvent.Raw {
|
|
17
|
+
state: "FULFILLED";
|
|
18
|
+
}
|
|
19
|
+
interface Rejected extends serializers.RejectedWorkflowNodeResultEvent.Raw {
|
|
20
|
+
state: "REJECTED";
|
|
18
21
|
}
|
|
19
22
|
}
|
|
@@ -37,15 +37,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.WorkflowNodeResultEvent = void 0;
|
|
39
39
|
const core = __importStar(require("../../core"));
|
|
40
|
-
exports.WorkflowNodeResultEvent = core.serialization
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.optional()),
|
|
40
|
+
exports.WorkflowNodeResultEvent = core.serialization
|
|
41
|
+
.union("state", {
|
|
42
|
+
INITIATED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).InitiatedWorkflowNodeResultEvent; })),
|
|
43
|
+
STREAMING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StreamingWorkflowNodeResultEvent; })),
|
|
44
|
+
FULFILLED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledWorkflowNodeResultEvent; })),
|
|
45
|
+
REJECTED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedWorkflowNodeResultEvent; })),
|
|
46
|
+
})
|
|
47
|
+
.transform({
|
|
48
|
+
transform: (value) => value,
|
|
49
|
+
untransform: (value) => value,
|
|
51
50
|
});
|
|
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowOutput: core.serialization.Schema<serializers.WorkflowOutput.Raw, Vellum.WorkflowOutput>;
|
|
8
8
|
export declare namespace WorkflowOutput {
|
|
9
|
-
type Raw = WorkflowOutput.String | WorkflowOutput.Number | WorkflowOutput.Json | WorkflowOutput.ChatHistory | WorkflowOutput.SearchResults | WorkflowOutput.Error | WorkflowOutput.
|
|
9
|
+
type Raw = WorkflowOutput.String | WorkflowOutput.Number | WorkflowOutput.Json | WorkflowOutput.ChatHistory | WorkflowOutput.SearchResults | WorkflowOutput.Error | WorkflowOutput.FunctionCall | WorkflowOutput.Image;
|
|
10
10
|
interface String extends serializers.WorkflowOutputString.Raw {
|
|
11
11
|
type: "STRING";
|
|
12
12
|
}
|
|
@@ -25,9 +25,6 @@ export declare namespace WorkflowOutput {
|
|
|
25
25
|
interface Error extends serializers.WorkflowOutputError.Raw {
|
|
26
26
|
type: "ERROR";
|
|
27
27
|
}
|
|
28
|
-
interface Array extends serializers.WorkflowOutputArray.Raw {
|
|
29
|
-
type: "ARRAY";
|
|
30
|
-
}
|
|
31
28
|
interface FunctionCall extends serializers.WorkflowOutputFunctionCall.Raw {
|
|
32
29
|
type: "FUNCTION_CALL";
|
|
33
30
|
}
|
|
@@ -45,7 +45,6 @@ exports.WorkflowOutput = core.serialization
|
|
|
45
45
|
CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutputChatHistory; })),
|
|
46
46
|
SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutputSearchResults; })),
|
|
47
47
|
ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutputError; })),
|
|
48
|
-
ARRAY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutputArray; })),
|
|
49
48
|
FUNCTION_CALL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutputFunctionCall; })),
|
|
50
49
|
IMAGE: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutputImage; })),
|
|
51
50
|
})
|
|
@@ -4,12 +4,9 @@ export * from "./ArrayChatMessageContent";
|
|
|
4
4
|
export * from "./ArrayChatMessageContentItem";
|
|
5
5
|
export * from "./ArrayChatMessageContentItemRequest";
|
|
6
6
|
export * from "./ArrayChatMessageContentRequest";
|
|
7
|
-
export * from "./ArrayEnum";
|
|
8
|
-
export * from "./ArrayVariableValue";
|
|
9
7
|
export * from "./BlockTypeEnum";
|
|
10
8
|
export * from "./ChatHistoryEnum";
|
|
11
9
|
export * from "./ChatHistoryInputRequest";
|
|
12
|
-
export * from "./ChatHistoryVariableValue";
|
|
13
10
|
export * from "./ChatMessage";
|
|
14
11
|
export * from "./ChatMessageContent";
|
|
15
12
|
export * from "./ChatMessageContentRequest";
|
|
@@ -37,8 +34,6 @@ export * from "./EntityStatus";
|
|
|
37
34
|
export * from "./EnvironmentEnum";
|
|
38
35
|
export * from "./ErrorEnum";
|
|
39
36
|
export * from "./ErrorVariableValue";
|
|
40
|
-
export * from "./EvaluationParams";
|
|
41
|
-
export * from "./EvaluationParamsRequest";
|
|
42
37
|
export * from "./ExecutePromptApiErrorResponse";
|
|
43
38
|
export * from "./ExecutePromptEvent";
|
|
44
39
|
export * from "./ExecutePromptResponse";
|
|
@@ -53,6 +48,7 @@ export * from "./FulfilledExecutePromptResponse";
|
|
|
53
48
|
export * from "./FulfilledExecuteWorkflowWorkflowResultEvent";
|
|
54
49
|
export * from "./FulfilledFunctionCall";
|
|
55
50
|
export * from "./FulfilledPromptExecutionMeta";
|
|
51
|
+
export * from "./FulfilledWorkflowNodeResultEvent";
|
|
56
52
|
export * from "./FunctionCall";
|
|
57
53
|
export * from "./FunctionCallChatMessageContent";
|
|
58
54
|
export * from "./FunctionCallChatMessageContentRequest";
|
|
@@ -77,6 +73,7 @@ export * from "./IndexingStateEnum";
|
|
|
77
73
|
export * from "./InitiatedEnum";
|
|
78
74
|
export * from "./InitiatedExecutePromptEvent";
|
|
79
75
|
export * from "./InitiatedPromptExecutionMeta";
|
|
76
|
+
export * from "./InitiatedWorkflowNodeResultEvent";
|
|
80
77
|
export * from "./JsonInputRequest";
|
|
81
78
|
export * from "./JsonEnum";
|
|
82
79
|
export * from "./JsonVariableValue";
|
|
@@ -105,10 +102,16 @@ export * from "./NodeInputCompiledNumberValue";
|
|
|
105
102
|
export * from "./NodeInputCompiledSearchResultsValue";
|
|
106
103
|
export * from "./NodeInputCompiledStringValue";
|
|
107
104
|
export * from "./NodeInputVariableCompiledValue";
|
|
105
|
+
export * from "./NodeOutputCompiledChatHistoryValue";
|
|
106
|
+
export * from "./NodeOutputCompiledErrorValue";
|
|
107
|
+
export * from "./NodeOutputCompiledJsonValue";
|
|
108
|
+
export * from "./NodeOutputCompiledNumberValue";
|
|
109
|
+
export * from "./NodeOutputCompiledSearchResultsValue";
|
|
110
|
+
export * from "./NodeOutputCompiledStringValue";
|
|
111
|
+
export * from "./NodeOutputCompiledValue";
|
|
108
112
|
export * from "./NormalizedLogProbs";
|
|
109
113
|
export * from "./NormalizedTokenLogProbs";
|
|
110
114
|
export * from "./NumberEnum";
|
|
111
|
-
export * from "./NumberVariableValue";
|
|
112
115
|
export * from "./PaginatedSlimDeploymentReadList";
|
|
113
116
|
export * from "./PaginatedSlimDocumentList";
|
|
114
117
|
export * from "./PaginatedSlimWorkflowDeploymentList";
|
|
@@ -144,8 +147,7 @@ export * from "./RejectedExecutePromptResponse";
|
|
|
144
147
|
export * from "./RejectedExecuteWorkflowWorkflowResultEvent";
|
|
145
148
|
export * from "./RejectedFunctionCall";
|
|
146
149
|
export * from "./RejectedPromptExecutionMeta";
|
|
147
|
-
export * from "./
|
|
148
|
-
export * from "./SandboxMetricInputParamsRequest";
|
|
150
|
+
export * from "./RejectedWorkflowNodeResultEvent";
|
|
149
151
|
export * from "./SandboxScenario";
|
|
150
152
|
export * from "./ScenarioInput";
|
|
151
153
|
export * from "./ScenarioInputRequest";
|
|
@@ -162,7 +164,6 @@ export * from "./SearchResultDocumentRequest";
|
|
|
162
164
|
export * from "./SearchResultMergingRequest";
|
|
163
165
|
export * from "./SearchResultRequest";
|
|
164
166
|
export * from "./SearchResultsEnum";
|
|
165
|
-
export * from "./SearchResultsVariableValue";
|
|
166
167
|
export * from "./SearchWeightsRequest";
|
|
167
168
|
export * from "./SlimDeploymentRead";
|
|
168
169
|
export * from "./SlimDocument";
|
|
@@ -170,6 +171,7 @@ export * from "./SlimWorkflowDeployment";
|
|
|
170
171
|
export * from "./StreamingEnum";
|
|
171
172
|
export * from "./StreamingExecutePromptEvent";
|
|
172
173
|
export * from "./StreamingPromptExecutionMeta";
|
|
174
|
+
export * from "./StreamingWorkflowNodeResultEvent";
|
|
173
175
|
export * from "./StringChatMessageContent";
|
|
174
176
|
export * from "./StringChatMessageContentRequest";
|
|
175
177
|
export * from "./StringEnum";
|
|
@@ -206,7 +208,6 @@ export * from "./TestCaseVariableValue";
|
|
|
206
208
|
export * from "./TestSuiteTestCase";
|
|
207
209
|
export * from "./UploadDocumentErrorResponse";
|
|
208
210
|
export * from "./UploadDocumentResponse";
|
|
209
|
-
export * from "./VariableValue";
|
|
210
211
|
export * from "./VellumError";
|
|
211
212
|
export * from "./VellumErrorCodeEnum";
|
|
212
213
|
export * from "./VellumErrorRequest";
|
|
@@ -226,7 +227,6 @@ export * from "./WorkflowNodeResultData";
|
|
|
226
227
|
export * from "./WorkflowNodeResultEvent";
|
|
227
228
|
export * from "./WorkflowNodeResultEventState";
|
|
228
229
|
export * from "./WorkflowOutput";
|
|
229
|
-
export * from "./WorkflowOutputArray";
|
|
230
230
|
export * from "./WorkflowOutputChatHistory";
|
|
231
231
|
export * from "./WorkflowOutputError";
|
|
232
232
|
export * from "./WorkflowOutputFunctionCall";
|