vellum-ai 0.1.4 → 0.1.6
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 +16 -0
- package/Client.js +137 -12
- package/api/errors/ForbiddenError.d.ts +1 -2
- package/api/resources/deployments/client/Client.d.ts +1 -0
- package/api/resources/deployments/client/Client.js +50 -1
- package/api/resources/deployments/client/index.d.ts +1 -1
- package/api/resources/deployments/client/index.js +15 -0
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +11 -0
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +5 -0
- package/api/resources/deployments/client/requests/index.d.ts +1 -0
- package/api/resources/deployments/client/requests/index.js +2 -0
- package/api/resources/documentIndexes/client/Client.js +2 -2
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/modelVersions/client/Client.d.ts +1 -1
- package/api/resources/modelVersions/client/Client.js +2 -2
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/types/ChatHistoryInputRequest.d.ts +9 -0
- package/api/types/ChatHistoryInputRequest.js +5 -0
- package/api/types/DeploymentProviderPayloadResponse.d.ts +6 -0
- package/api/types/DeploymentProviderPayloadResponse.js +5 -0
- package/api/types/DeploymentRead.d.ts +1 -0
- package/api/types/ErrorExecutePromptResponse.d.ts +8 -0
- package/api/types/ErrorExecutePromptResponse.js +5 -0
- package/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
- package/api/types/ExecutePromptApiErrorResponse.js +5 -0
- package/api/types/ExecutePromptRequest.d.ts +14 -0
- package/api/types/ExecutePromptRequest.js +5 -0
- package/api/types/ExecutePromptResponse.d.ts +16 -0
- package/api/types/ExecutePromptResponse.js +5 -0
- package/api/types/ExecutePromptStreamingResponse.d.ts +19 -0
- package/api/types/ExecutePromptStreamingResponse.js +5 -0
- package/api/types/FulfilledExecutePromptStreamingResponse.d.ts +7 -0
- package/api/types/FulfilledExecutePromptStreamingResponse.js +5 -0
- package/api/types/InitiatedExecutePromptResponse.d.ts +8 -0
- package/api/types/InitiatedExecutePromptResponse.js +5 -0
- package/api/types/InitiatedExecutePromptStreamingResponse.d.ts +7 -0
- package/api/types/InitiatedExecutePromptStreamingResponse.js +5 -0
- package/api/types/JsonExecutePromptResponse.d.ts +7 -0
- package/api/types/JsonExecutePromptResponse.js +5 -0
- package/api/types/JsonInputRequest.d.ts +8 -0
- package/api/types/JsonInputRequest.js +5 -0
- package/api/types/PromptDeploymentInputRequest.d.ts +16 -0
- package/api/types/PromptDeploymentInputRequest.js +5 -0
- package/api/types/RejectedExecutePromptResponse.d.ts +9 -0
- package/api/types/RejectedExecutePromptResponse.js +5 -0
- package/api/types/RejectedExecutePromptStreamingResponse.d.ts +7 -0
- package/api/types/RejectedExecutePromptStreamingResponse.js +5 -0
- package/api/types/StreamingExecutePromptStreamingResponse.d.ts +7 -0
- package/api/types/StreamingExecutePromptStreamingResponse.js +5 -0
- package/api/types/StringExecutePromptResponse.d.ts +7 -0
- package/api/types/StringExecutePromptResponse.js +5 -0
- package/api/types/StringInputRequest.d.ts +8 -0
- package/api/types/StringInputRequest.js +5 -0
- package/api/types/index.d.ts +18 -0
- package/api/types/index.js +18 -0
- package/dist/Client.d.ts +16 -0
- package/dist/Client.js +137 -12
- package/dist/api/errors/ForbiddenError.d.ts +1 -2
- package/dist/api/resources/deployments/client/Client.d.ts +1 -0
- package/dist/api/resources/deployments/client/Client.js +50 -1
- package/dist/api/resources/deployments/client/index.d.ts +1 -1
- package/dist/api/resources/deployments/client/index.js +15 -0
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +11 -0
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +5 -0
- package/dist/api/resources/deployments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/deployments/client/requests/index.js +2 -0
- package/dist/api/resources/documentIndexes/client/Client.js +2 -2
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/Client.js +2 -2
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/types/ChatHistoryInputRequest.d.ts +9 -0
- package/dist/api/types/ChatHistoryInputRequest.js +5 -0
- package/dist/api/types/DeploymentProviderPayloadResponse.d.ts +6 -0
- package/dist/api/types/DeploymentProviderPayloadResponse.js +5 -0
- package/dist/api/types/DeploymentRead.d.ts +1 -0
- package/dist/api/types/ErrorExecutePromptResponse.d.ts +8 -0
- package/dist/api/types/ErrorExecutePromptResponse.js +5 -0
- package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
- package/dist/api/types/ExecutePromptApiErrorResponse.js +5 -0
- package/dist/api/types/ExecutePromptRequest.d.ts +14 -0
- package/dist/api/types/ExecutePromptRequest.js +5 -0
- package/dist/api/types/ExecutePromptResponse.d.ts +16 -0
- package/dist/api/types/ExecutePromptResponse.js +5 -0
- package/dist/api/types/ExecutePromptStreamingResponse.d.ts +19 -0
- package/dist/api/types/ExecutePromptStreamingResponse.js +5 -0
- package/dist/api/types/FulfilledExecutePromptStreamingResponse.d.ts +7 -0
- package/dist/api/types/FulfilledExecutePromptStreamingResponse.js +5 -0
- package/dist/api/types/InitiatedExecutePromptResponse.d.ts +8 -0
- package/dist/api/types/InitiatedExecutePromptResponse.js +5 -0
- package/dist/api/types/InitiatedExecutePromptStreamingResponse.d.ts +7 -0
- package/dist/api/types/InitiatedExecutePromptStreamingResponse.js +5 -0
- package/dist/api/types/JsonExecutePromptResponse.d.ts +7 -0
- package/dist/api/types/JsonExecutePromptResponse.js +5 -0
- package/dist/api/types/JsonInputRequest.d.ts +8 -0
- package/dist/api/types/JsonInputRequest.js +5 -0
- package/dist/api/types/PromptDeploymentInputRequest.d.ts +16 -0
- package/dist/api/types/PromptDeploymentInputRequest.js +5 -0
- package/dist/api/types/RejectedExecutePromptResponse.d.ts +9 -0
- package/dist/api/types/RejectedExecutePromptResponse.js +5 -0
- package/dist/api/types/RejectedExecutePromptStreamingResponse.d.ts +7 -0
- package/dist/api/types/RejectedExecutePromptStreamingResponse.js +5 -0
- package/dist/api/types/StreamingExecutePromptStreamingResponse.d.ts +7 -0
- package/dist/api/types/StreamingExecutePromptStreamingResponse.js +5 -0
- package/dist/api/types/StringExecutePromptResponse.d.ts +7 -0
- package/dist/api/types/StringExecutePromptResponse.js +5 -0
- package/dist/api/types/StringInputRequest.d.ts +8 -0
- package/dist/api/types/StringInputRequest.js +5 -0
- package/dist/api/types/index.d.ts +18 -0
- package/dist/api/types/index.js +18 -0
- package/dist/serialization/resources/deployments/client/index.d.ts +1 -0
- package/dist/serialization/resources/deployments/client/index.js +17 -0
- package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +14 -0
- package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +44 -0
- package/dist/serialization/resources/deployments/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/deployments/client/requests/index.js +5 -0
- package/dist/serialization/resources/deployments/index.d.ts +1 -0
- package/dist/serialization/resources/deployments/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
- package/dist/serialization/types/ChatHistoryInputRequest.js +43 -0
- package/dist/serialization/types/DeploymentProviderPayloadResponse.d.ts +12 -0
- package/dist/serialization/types/DeploymentProviderPayloadResponse.js +33 -0
- package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
- package/dist/serialization/types/ErrorExecutePromptResponse.js +43 -0
- package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
- package/dist/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
- package/dist/serialization/types/ExecutePromptRequest.d.ts +16 -0
- package/dist/serialization/types/ExecutePromptRequest.js +46 -0
- package/dist/serialization/types/ExecutePromptResponse.d.ts +19 -0
- package/dist/serialization/types/ExecutePromptResponse.js +49 -0
- package/dist/serialization/types/ExecutePromptStreamingResponse.d.ts +22 -0
- package/dist/serialization/types/ExecutePromptStreamingResponse.js +50 -0
- package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +12 -0
- package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.js +42 -0
- package/dist/serialization/types/InitiatedExecutePromptResponse.d.ts +13 -0
- package/dist/serialization/types/InitiatedExecutePromptResponse.js +43 -0
- package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +12 -0
- package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.js +42 -0
- package/dist/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
- package/dist/serialization/types/JsonExecutePromptResponse.js +34 -0
- package/dist/serialization/types/JsonInputRequest.d.ts +13 -0
- package/dist/serialization/types/JsonInputRequest.js +34 -0
- package/dist/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
- package/dist/serialization/types/PromptDeploymentInputRequest.js +49 -0
- package/dist/serialization/types/RejectedExecutePromptResponse.d.ts +14 -0
- package/dist/serialization/types/RejectedExecutePromptResponse.js +44 -0
- package/dist/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +12 -0
- package/dist/serialization/types/RejectedExecutePromptStreamingResponse.js +42 -0
- package/dist/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +12 -0
- package/dist/serialization/types/StreamingExecutePromptStreamingResponse.js +42 -0
- package/dist/serialization/types/StringExecutePromptResponse.d.ts +13 -0
- package/dist/serialization/types/StringExecutePromptResponse.js +34 -0
- package/dist/serialization/types/StringInputRequest.d.ts +13 -0
- package/dist/serialization/types/StringInputRequest.js +34 -0
- package/dist/serialization/types/index.d.ts +18 -0
- package/dist/serialization/types/index.js +18 -0
- package/package.json +1 -1
- package/serialization/resources/deployments/client/index.d.ts +1 -0
- package/serialization/resources/deployments/client/index.js +17 -0
- package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +14 -0
- package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +44 -0
- package/serialization/resources/deployments/client/requests/index.d.ts +1 -0
- package/serialization/resources/deployments/client/requests/index.js +5 -0
- package/serialization/resources/deployments/index.d.ts +1 -0
- package/serialization/resources/deployments/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
- package/serialization/types/ChatHistoryInputRequest.js +43 -0
- package/serialization/types/DeploymentProviderPayloadResponse.d.ts +12 -0
- package/serialization/types/DeploymentProviderPayloadResponse.js +33 -0
- package/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
- package/serialization/types/ErrorExecutePromptResponse.js +43 -0
- package/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
- package/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
- package/serialization/types/ExecutePromptRequest.d.ts +16 -0
- package/serialization/types/ExecutePromptRequest.js +46 -0
- package/serialization/types/ExecutePromptResponse.d.ts +19 -0
- package/serialization/types/ExecutePromptResponse.js +49 -0
- package/serialization/types/ExecutePromptStreamingResponse.d.ts +22 -0
- package/serialization/types/ExecutePromptStreamingResponse.js +50 -0
- package/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +12 -0
- package/serialization/types/FulfilledExecutePromptStreamingResponse.js +42 -0
- package/serialization/types/InitiatedExecutePromptResponse.d.ts +13 -0
- package/serialization/types/InitiatedExecutePromptResponse.js +43 -0
- package/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +12 -0
- package/serialization/types/InitiatedExecutePromptStreamingResponse.js +42 -0
- package/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
- package/serialization/types/JsonExecutePromptResponse.js +34 -0
- package/serialization/types/JsonInputRequest.d.ts +13 -0
- package/serialization/types/JsonInputRequest.js +34 -0
- package/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
- package/serialization/types/PromptDeploymentInputRequest.js +49 -0
- package/serialization/types/RejectedExecutePromptResponse.d.ts +14 -0
- package/serialization/types/RejectedExecutePromptResponse.js +44 -0
- package/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +12 -0
- package/serialization/types/RejectedExecutePromptStreamingResponse.js +42 -0
- package/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +12 -0
- package/serialization/types/StreamingExecutePromptStreamingResponse.js +42 -0
- package/serialization/types/StringExecutePromptResponse.d.ts +13 -0
- package/serialization/types/StringExecutePromptResponse.js +34 -0
- package/serialization/types/StringInputRequest.d.ts +13 -0
- package/serialization/types/StringInputRequest.js +34 -0
- package/serialization/types/index.d.ts +18 -0
- package/serialization/types/index.js +18 -0
|
@@ -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 StringInputRequest: core.serialization.ObjectSchema<serializers.StringInputRequest.Raw, Vellum.StringInputRequest>;
|
|
8
|
+
export declare namespace StringInputRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.StringInputRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.StringInputRequest = core.serialization.object({
|
|
32
|
+
name: core.serialization.string(),
|
|
33
|
+
value: core.serialization.string(),
|
|
34
|
+
});
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export * from "./ExecutePromptRequest";
|
|
1
2
|
export * from "./ApiNodeResult";
|
|
2
3
|
export * from "./ApiNodeResultData";
|
|
3
4
|
export * from "./BlockTypeEnum";
|
|
5
|
+
export * from "./ChatHistoryInputRequest";
|
|
4
6
|
export * from "./ChatMessage";
|
|
5
7
|
export * from "./ChatMessageRequest";
|
|
6
8
|
export * from "./ChatMessageRole";
|
|
7
9
|
export * from "./ConditionalNodeResult";
|
|
8
10
|
export * from "./ConditionalNodeResultData";
|
|
11
|
+
export * from "./DeploymentProviderPayloadResponse";
|
|
9
12
|
export * from "./DeploymentRead";
|
|
10
13
|
export * from "./DeploymentStatus";
|
|
11
14
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
@@ -15,10 +18,15 @@ export * from "./DocumentRead";
|
|
|
15
18
|
export * from "./DocumentStatus";
|
|
16
19
|
export * from "./EnrichedNormalizedCompletion";
|
|
17
20
|
export * from "./EnvironmentEnum";
|
|
21
|
+
export * from "./ErrorExecutePromptResponse";
|
|
18
22
|
export * from "./EvaluationParams";
|
|
19
23
|
export * from "./EvaluationParamsRequest";
|
|
24
|
+
export * from "./ExecutePromptApiErrorResponse";
|
|
25
|
+
export * from "./ExecutePromptResponse";
|
|
26
|
+
export * from "./ExecutePromptStreamingResponse";
|
|
20
27
|
export * from "./ExecuteWorkflowStreamErrorResponse";
|
|
21
28
|
export * from "./FinishReasonEnum";
|
|
29
|
+
export * from "./FulfilledExecutePromptStreamingResponse";
|
|
22
30
|
export * from "./GenerateErrorResponse";
|
|
23
31
|
export * from "./GenerateOptionsRequest";
|
|
24
32
|
export * from "./GenerateRequest";
|
|
@@ -30,6 +38,10 @@ export * from "./GenerateStreamResponse";
|
|
|
30
38
|
export * from "./GenerateStreamResult";
|
|
31
39
|
export * from "./GenerateStreamResultData";
|
|
32
40
|
export * from "./IndexingStateEnum";
|
|
41
|
+
export * from "./InitiatedExecutePromptResponse";
|
|
42
|
+
export * from "./InitiatedExecutePromptStreamingResponse";
|
|
43
|
+
export * from "./JsonExecutePromptResponse";
|
|
44
|
+
export * from "./JsonInputRequest";
|
|
33
45
|
export * from "./LogicalOperator";
|
|
34
46
|
export * from "./LogprobsEnum";
|
|
35
47
|
export * from "./MetadataFilterConfigRequest";
|
|
@@ -53,6 +65,7 @@ export * from "./NormalizedTokenLogProbs";
|
|
|
53
65
|
export * from "./PaginatedSlimDocumentList";
|
|
54
66
|
export * from "./ProcessingFailureReasonEnum";
|
|
55
67
|
export * from "./ProcessingStateEnum";
|
|
68
|
+
export * from "./PromptDeploymentInputRequest";
|
|
56
69
|
export * from "./PromptNodeResult";
|
|
57
70
|
export * from "./PromptNodeResultData";
|
|
58
71
|
export * from "./PromptTemplateBlock";
|
|
@@ -72,6 +85,8 @@ export * from "./RegisteredPromptInputVariableRequest";
|
|
|
72
85
|
export * from "./RegisteredPromptModelVersion";
|
|
73
86
|
export * from "./RegisteredPromptSandbox";
|
|
74
87
|
export * from "./RegisteredPromptSandboxSnapshot";
|
|
88
|
+
export * from "./RejectedExecutePromptResponse";
|
|
89
|
+
export * from "./RejectedExecutePromptStreamingResponse";
|
|
75
90
|
export * from "./SandboxMetricInputParams";
|
|
76
91
|
export * from "./SandboxMetricInputParamsRequest";
|
|
77
92
|
export * from "./SandboxScenario";
|
|
@@ -91,6 +106,9 @@ export * from "./SearchResultMergingRequest";
|
|
|
91
106
|
export * from "./SearchResultRequest";
|
|
92
107
|
export * from "./SearchWeightsRequest";
|
|
93
108
|
export * from "./SlimDocument";
|
|
109
|
+
export * from "./StreamingExecutePromptStreamingResponse";
|
|
110
|
+
export * from "./StringExecutePromptResponse";
|
|
111
|
+
export * from "./StringInputRequest";
|
|
94
112
|
export * from "./SubmitCompletionActualRequest";
|
|
95
113
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
96
114
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
@@ -14,14 +14,17 @@ 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("./ExecutePromptRequest"), exports);
|
|
17
18
|
__exportStar(require("./ApiNodeResult"), exports);
|
|
18
19
|
__exportStar(require("./ApiNodeResultData"), exports);
|
|
19
20
|
__exportStar(require("./BlockTypeEnum"), exports);
|
|
21
|
+
__exportStar(require("./ChatHistoryInputRequest"), exports);
|
|
20
22
|
__exportStar(require("./ChatMessage"), exports);
|
|
21
23
|
__exportStar(require("./ChatMessageRequest"), exports);
|
|
22
24
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
23
25
|
__exportStar(require("./ConditionalNodeResult"), exports);
|
|
24
26
|
__exportStar(require("./ConditionalNodeResultData"), exports);
|
|
27
|
+
__exportStar(require("./DeploymentProviderPayloadResponse"), exports);
|
|
25
28
|
__exportStar(require("./DeploymentRead"), exports);
|
|
26
29
|
__exportStar(require("./DeploymentStatus"), exports);
|
|
27
30
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
@@ -31,10 +34,15 @@ __exportStar(require("./DocumentRead"), exports);
|
|
|
31
34
|
__exportStar(require("./DocumentStatus"), exports);
|
|
32
35
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
33
36
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
37
|
+
__exportStar(require("./ErrorExecutePromptResponse"), exports);
|
|
34
38
|
__exportStar(require("./EvaluationParams"), exports);
|
|
35
39
|
__exportStar(require("./EvaluationParamsRequest"), exports);
|
|
40
|
+
__exportStar(require("./ExecutePromptApiErrorResponse"), exports);
|
|
41
|
+
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
42
|
+
__exportStar(require("./ExecutePromptStreamingResponse"), exports);
|
|
36
43
|
__exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
|
|
37
44
|
__exportStar(require("./FinishReasonEnum"), exports);
|
|
45
|
+
__exportStar(require("./FulfilledExecutePromptStreamingResponse"), exports);
|
|
38
46
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
39
47
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
40
48
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -46,6 +54,10 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
46
54
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
47
55
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
48
56
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
57
|
+
__exportStar(require("./InitiatedExecutePromptResponse"), exports);
|
|
58
|
+
__exportStar(require("./InitiatedExecutePromptStreamingResponse"), exports);
|
|
59
|
+
__exportStar(require("./JsonExecutePromptResponse"), exports);
|
|
60
|
+
__exportStar(require("./JsonInputRequest"), exports);
|
|
49
61
|
__exportStar(require("./LogicalOperator"), exports);
|
|
50
62
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
51
63
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
@@ -69,6 +81,7 @@ __exportStar(require("./NormalizedTokenLogProbs"), exports);
|
|
|
69
81
|
__exportStar(require("./PaginatedSlimDocumentList"), exports);
|
|
70
82
|
__exportStar(require("./ProcessingFailureReasonEnum"), exports);
|
|
71
83
|
__exportStar(require("./ProcessingStateEnum"), exports);
|
|
84
|
+
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
72
85
|
__exportStar(require("./PromptNodeResult"), exports);
|
|
73
86
|
__exportStar(require("./PromptNodeResultData"), exports);
|
|
74
87
|
__exportStar(require("./PromptTemplateBlock"), exports);
|
|
@@ -88,6 +101,8 @@ __exportStar(require("./RegisteredPromptInputVariableRequest"), exports);
|
|
|
88
101
|
__exportStar(require("./RegisteredPromptModelVersion"), exports);
|
|
89
102
|
__exportStar(require("./RegisteredPromptSandbox"), exports);
|
|
90
103
|
__exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
104
|
+
__exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
105
|
+
__exportStar(require("./RejectedExecutePromptStreamingResponse"), exports);
|
|
91
106
|
__exportStar(require("./SandboxMetricInputParams"), exports);
|
|
92
107
|
__exportStar(require("./SandboxMetricInputParamsRequest"), exports);
|
|
93
108
|
__exportStar(require("./SandboxScenario"), exports);
|
|
@@ -107,6 +122,9 @@ __exportStar(require("./SearchResultMergingRequest"), exports);
|
|
|
107
122
|
__exportStar(require("./SearchResultRequest"), exports);
|
|
108
123
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
109
124
|
__exportStar(require("./SlimDocument"), exports);
|
|
125
|
+
__exportStar(require("./StreamingExecutePromptStreamingResponse"), exports);
|
|
126
|
+
__exportStar(require("./StringExecutePromptResponse"), exports);
|
|
127
|
+
__exportStar(require("./StringInputRequest"), exports);
|
|
110
128
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
111
129
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
112
130
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../..";
|
|
5
|
+
import * as Vellum from "../../../../../api";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const DeploymentProviderPayloadRequest: core.serialization.Schema<serializers.DeploymentProviderPayloadRequest.Raw, Vellum.DeploymentProviderPayloadRequest>;
|
|
8
|
+
export declare namespace DeploymentProviderPayloadRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
deployment_id?: string | null;
|
|
11
|
+
deployment_name?: string | null;
|
|
12
|
+
inputs: serializers.PromptDeploymentInputRequest.Raw[];
|
|
13
|
+
}
|
|
14
|
+
}
|
package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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.DeploymentProviderPayloadRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../../../../core"));
|
|
40
|
+
exports.DeploymentProviderPayloadRequest = core.serialization.object({
|
|
41
|
+
deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
|
|
42
|
+
deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
|
|
43
|
+
inputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("../../../..")))).PromptDeploymentInputRequest; }))),
|
|
44
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeploymentProviderPayloadRequest } from "./DeploymentProviderPayloadRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeploymentProviderPayloadRequest = void 0;
|
|
4
|
+
var DeploymentProviderPayloadRequest_1 = require("./DeploymentProviderPayloadRequest");
|
|
5
|
+
Object.defineProperty(exports, "DeploymentProviderPayloadRequest", { enumerable: true, get: function () { return DeploymentProviderPayloadRequest_1.DeploymentProviderPayloadRequest; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -26,7 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.documents = exports.documentIndexes = void 0;
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.documents = exports.documentIndexes = exports.deployments = void 0;
|
|
30
|
+
exports.deployments = __importStar(require("./deployments"));
|
|
31
|
+
__exportStar(require("./deployments/client/requests"), exports);
|
|
30
32
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
31
33
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
32
34
|
exports.documents = __importStar(require("./documents"));
|
|
@@ -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 ChatHistoryInputRequest: core.serialization.ObjectSchema<serializers.ChatHistoryInputRequest.Raw, Vellum.ChatHistoryInputRequest>;
|
|
8
|
+
export declare namespace ChatHistoryInputRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
value: serializers.ChatMessageRequest.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ChatHistoryInputRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.ChatHistoryInputRequest = core.serialization.object({
|
|
41
|
+
name: core.serialization.string(),
|
|
42
|
+
value: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest; }))),
|
|
43
|
+
});
|
|
@@ -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 DeploymentProviderPayloadResponse: core.serialization.ObjectSchema<serializers.DeploymentProviderPayloadResponse.Raw, Vellum.DeploymentProviderPayloadResponse>;
|
|
8
|
+
export declare namespace DeploymentProviderPayloadResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
payload: Record<string, unknown>;
|
|
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.DeploymentProviderPayloadResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.DeploymentProviderPayloadResponse = core.serialization.object({
|
|
32
|
+
payload: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
33
|
+
});
|
|
@@ -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 ErrorExecutePromptResponse: core.serialization.ObjectSchema<serializers.ErrorExecutePromptResponse.Raw, Vellum.ErrorExecutePromptResponse>;
|
|
8
|
+
export declare namespace ErrorExecutePromptResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
execution_id: string;
|
|
11
|
+
value: serializers.VellumError.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ErrorExecutePromptResponse = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.ErrorExecutePromptResponse = core.serialization.object({
|
|
41
|
+
executionId: core.serialization.property("execution_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; })),
|
|
43
|
+
});
|
|
@@ -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 ExecutePromptApiErrorResponse: core.serialization.ObjectSchema<serializers.ExecutePromptApiErrorResponse.Raw, Vellum.ExecutePromptApiErrorResponse>;
|
|
8
|
+
export declare namespace ExecutePromptApiErrorResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
detail: string;
|
|
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.ExecutePromptApiErrorResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ExecutePromptApiErrorResponse = core.serialization.object({
|
|
32
|
+
detail: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 ExecutePromptRequest: core.serialization.ObjectSchema<serializers.ExecutePromptRequest.Raw, Vellum.ExecutePromptRequest>;
|
|
8
|
+
export declare namespace ExecutePromptRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
inputs: serializers.PromptDeploymentInputRequest.Raw[];
|
|
11
|
+
prompt_deployment_id?: string | null;
|
|
12
|
+
prompt_deployment_name?: string | null;
|
|
13
|
+
release_tag?: string | null;
|
|
14
|
+
external_id?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ExecutePromptRequest = void 0;
|
|
39
|
+
const core = __importStar(require("../../core"));
|
|
40
|
+
exports.ExecutePromptRequest = core.serialization.object({
|
|
41
|
+
inputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptDeploymentInputRequest; }))),
|
|
42
|
+
promptDeploymentId: core.serialization.property("prompt_deployment_id", core.serialization.string().optional()),
|
|
43
|
+
promptDeploymentName: core.serialization.property("prompt_deployment_name", core.serialization.string().optional()),
|
|
44
|
+
releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
|
|
45
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
46
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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 ExecutePromptResponse: core.serialization.Schema<serializers.ExecutePromptResponse.Raw, Vellum.ExecutePromptResponse>;
|
|
8
|
+
export declare namespace ExecutePromptResponse {
|
|
9
|
+
type Raw = ExecutePromptResponse.Error | ExecutePromptResponse.Json | ExecutePromptResponse.String;
|
|
10
|
+
interface Error extends serializers.ErrorExecutePromptResponse.Raw {
|
|
11
|
+
type: "ERROR";
|
|
12
|
+
}
|
|
13
|
+
interface Json extends serializers.JsonExecutePromptResponse.Raw {
|
|
14
|
+
type: "JSON";
|
|
15
|
+
}
|
|
16
|
+
interface String extends serializers.StringExecutePromptResponse.Raw {
|
|
17
|
+
type: "STRING";
|
|
18
|
+
}
|
|
19
|
+
}
|