vellum-ai 0.1.5 → 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 +8 -0
- package/Client.js +72 -7
- package/api/client/requests/index.d.ts +0 -1
- 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/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/DeploymentProviderPayloadResponse.d.ts +6 -0
- package/api/types/DeploymentRead.d.ts +1 -0
- package/api/types/ErrorExecutePromptResponse.d.ts +1 -1
- package/api/{client/requests → types}/ExecutePromptRequest.d.ts +1 -1
- package/api/types/ExecutePromptRequest.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 +1 -1
- 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 +1 -1
- package/api/types/index.d.ts +9 -0
- package/api/types/index.js +9 -0
- package/dist/Client.d.ts +8 -0
- package/dist/Client.js +72 -7
- package/dist/api/client/requests/index.d.ts +0 -1
- 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/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 +1 -1
- package/dist/api/{client/requests → types}/ExecutePromptRequest.d.ts +1 -1
- package/dist/api/types/ExecutePromptRequest.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 +1 -1
- 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 +1 -1
- package/dist/api/types/index.d.ts +9 -0
- package/dist/api/types/index.js +9 -0
- package/dist/serialization/client/requests/index.d.ts +0 -1
- package/dist/serialization/client/requests/index.js +1 -3
- 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/DeploymentProviderPayloadResponse.d.ts +12 -0
- package/dist/serialization/types/DeploymentProviderPayloadResponse.js +33 -0
- package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +1 -1
- package/dist/serialization/types/ErrorExecutePromptResponse.js +1 -1
- package/dist/serialization/{client/requests → types}/ExecutePromptRequest.d.ts +4 -4
- package/dist/serialization/{client/requests → types}/ExecutePromptRequest.js +2 -2
- 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 +1 -1
- package/dist/serialization/types/JsonExecutePromptResponse.js +1 -1
- 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 +1 -1
- package/dist/serialization/types/StringExecutePromptResponse.js +1 -1
- package/dist/serialization/types/index.d.ts +9 -0
- package/dist/serialization/types/index.js +9 -0
- package/package.json +1 -1
- package/serialization/client/requests/index.d.ts +0 -1
- package/serialization/client/requests/index.js +1 -3
- 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/DeploymentProviderPayloadResponse.d.ts +12 -0
- package/serialization/types/DeploymentProviderPayloadResponse.js +33 -0
- package/serialization/types/ErrorExecutePromptResponse.d.ts +1 -1
- package/serialization/types/ErrorExecutePromptResponse.js +1 -1
- package/serialization/{client/requests → types}/ExecutePromptRequest.d.ts +4 -4
- package/serialization/{client/requests → types}/ExecutePromptRequest.js +2 -2
- 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 +1 -1
- package/serialization/types/JsonExecutePromptResponse.js +1 -1
- 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 +1 -1
- package/serialization/types/StringExecutePromptResponse.js +1 -1
- package/serialization/types/index.d.ts +9 -0
- package/serialization/types/index.js +9 -0
- /package/api/{client/requests/ExecutePromptRequest.js → resources/deployments/client/requests/DeploymentProviderPayloadRequest.js} +0 -0
- /package/{dist/api/client/requests/ExecutePromptRequest.js → api/types/DeploymentProviderPayloadResponse.js} +0 -0
package/api/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./ExecutePromptRequest";
|
|
1
2
|
export * from "./ApiNodeResult";
|
|
2
3
|
export * from "./ApiNodeResultData";
|
|
3
4
|
export * from "./BlockTypeEnum";
|
|
@@ -7,6 +8,7 @@ export * from "./ChatMessageRequest";
|
|
|
7
8
|
export * from "./ChatMessageRole";
|
|
8
9
|
export * from "./ConditionalNodeResult";
|
|
9
10
|
export * from "./ConditionalNodeResultData";
|
|
11
|
+
export * from "./DeploymentProviderPayloadResponse";
|
|
10
12
|
export * from "./DeploymentRead";
|
|
11
13
|
export * from "./DeploymentStatus";
|
|
12
14
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
@@ -21,8 +23,10 @@ export * from "./EvaluationParams";
|
|
|
21
23
|
export * from "./EvaluationParamsRequest";
|
|
22
24
|
export * from "./ExecutePromptApiErrorResponse";
|
|
23
25
|
export * from "./ExecutePromptResponse";
|
|
26
|
+
export * from "./ExecutePromptStreamingResponse";
|
|
24
27
|
export * from "./ExecuteWorkflowStreamErrorResponse";
|
|
25
28
|
export * from "./FinishReasonEnum";
|
|
29
|
+
export * from "./FulfilledExecutePromptStreamingResponse";
|
|
26
30
|
export * from "./GenerateErrorResponse";
|
|
27
31
|
export * from "./GenerateOptionsRequest";
|
|
28
32
|
export * from "./GenerateRequest";
|
|
@@ -34,6 +38,8 @@ export * from "./GenerateStreamResponse";
|
|
|
34
38
|
export * from "./GenerateStreamResult";
|
|
35
39
|
export * from "./GenerateStreamResultData";
|
|
36
40
|
export * from "./IndexingStateEnum";
|
|
41
|
+
export * from "./InitiatedExecutePromptResponse";
|
|
42
|
+
export * from "./InitiatedExecutePromptStreamingResponse";
|
|
37
43
|
export * from "./JsonExecutePromptResponse";
|
|
38
44
|
export * from "./JsonInputRequest";
|
|
39
45
|
export * from "./LogicalOperator";
|
|
@@ -79,6 +85,8 @@ export * from "./RegisteredPromptInputVariableRequest";
|
|
|
79
85
|
export * from "./RegisteredPromptModelVersion";
|
|
80
86
|
export * from "./RegisteredPromptSandbox";
|
|
81
87
|
export * from "./RegisteredPromptSandboxSnapshot";
|
|
88
|
+
export * from "./RejectedExecutePromptResponse";
|
|
89
|
+
export * from "./RejectedExecutePromptStreamingResponse";
|
|
82
90
|
export * from "./SandboxMetricInputParams";
|
|
83
91
|
export * from "./SandboxMetricInputParamsRequest";
|
|
84
92
|
export * from "./SandboxScenario";
|
|
@@ -98,6 +106,7 @@ export * from "./SearchResultMergingRequest";
|
|
|
98
106
|
export * from "./SearchResultRequest";
|
|
99
107
|
export * from "./SearchWeightsRequest";
|
|
100
108
|
export * from "./SlimDocument";
|
|
109
|
+
export * from "./StreamingExecutePromptStreamingResponse";
|
|
101
110
|
export * from "./StringExecutePromptResponse";
|
|
102
111
|
export * from "./StringInputRequest";
|
|
103
112
|
export * from "./SubmitCompletionActualRequest";
|
package/api/types/index.js
CHANGED
|
@@ -14,6 +14,7 @@ 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);
|
|
@@ -23,6 +24,7 @@ __exportStar(require("./ChatMessageRequest"), exports);
|
|
|
23
24
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
24
25
|
__exportStar(require("./ConditionalNodeResult"), exports);
|
|
25
26
|
__exportStar(require("./ConditionalNodeResultData"), exports);
|
|
27
|
+
__exportStar(require("./DeploymentProviderPayloadResponse"), exports);
|
|
26
28
|
__exportStar(require("./DeploymentRead"), exports);
|
|
27
29
|
__exportStar(require("./DeploymentStatus"), exports);
|
|
28
30
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
@@ -37,8 +39,10 @@ __exportStar(require("./EvaluationParams"), exports);
|
|
|
37
39
|
__exportStar(require("./EvaluationParamsRequest"), exports);
|
|
38
40
|
__exportStar(require("./ExecutePromptApiErrorResponse"), exports);
|
|
39
41
|
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
42
|
+
__exportStar(require("./ExecutePromptStreamingResponse"), exports);
|
|
40
43
|
__exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
|
|
41
44
|
__exportStar(require("./FinishReasonEnum"), exports);
|
|
45
|
+
__exportStar(require("./FulfilledExecutePromptStreamingResponse"), exports);
|
|
42
46
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
43
47
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
44
48
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -50,6 +54,8 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
50
54
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
51
55
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
52
56
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
57
|
+
__exportStar(require("./InitiatedExecutePromptResponse"), exports);
|
|
58
|
+
__exportStar(require("./InitiatedExecutePromptStreamingResponse"), exports);
|
|
53
59
|
__exportStar(require("./JsonExecutePromptResponse"), exports);
|
|
54
60
|
__exportStar(require("./JsonInputRequest"), exports);
|
|
55
61
|
__exportStar(require("./LogicalOperator"), exports);
|
|
@@ -95,6 +101,8 @@ __exportStar(require("./RegisteredPromptInputVariableRequest"), exports);
|
|
|
95
101
|
__exportStar(require("./RegisteredPromptModelVersion"), exports);
|
|
96
102
|
__exportStar(require("./RegisteredPromptSandbox"), exports);
|
|
97
103
|
__exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
104
|
+
__exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
105
|
+
__exportStar(require("./RejectedExecutePromptStreamingResponse"), exports);
|
|
98
106
|
__exportStar(require("./SandboxMetricInputParams"), exports);
|
|
99
107
|
__exportStar(require("./SandboxMetricInputParamsRequest"), exports);
|
|
100
108
|
__exportStar(require("./SandboxScenario"), exports);
|
|
@@ -114,6 +122,7 @@ __exportStar(require("./SearchResultMergingRequest"), exports);
|
|
|
114
122
|
__exportStar(require("./SearchResultRequest"), exports);
|
|
115
123
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
116
124
|
__exportStar(require("./SlimDocument"), exports);
|
|
125
|
+
__exportStar(require("./StreamingExecutePromptStreamingResponse"), exports);
|
|
117
126
|
__exportStar(require("./StringExecutePromptResponse"), exports);
|
|
118
127
|
__exportStar(require("./StringInputRequest"), exports);
|
|
119
128
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -32,6 +32,14 @@ export declare class VellumClient {
|
|
|
32
32
|
* @throws {@link Vellum.InternalServerError}
|
|
33
33
|
*/
|
|
34
34
|
executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Executes a deployed Prompt and streams back the results.
|
|
37
|
+
* @throws {@link Vellum.BadRequestError}
|
|
38
|
+
* @throws {@link Vellum.ForbiddenError}
|
|
39
|
+
* @throws {@link Vellum.NotFoundError}
|
|
40
|
+
* @throws {@link Vellum.InternalServerError}
|
|
41
|
+
*/
|
|
42
|
+
executePromptStream(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptStreamingResponse>;
|
|
35
43
|
/**
|
|
36
44
|
* Executes a deployed Workflow and streams back its results.
|
|
37
45
|
*/
|
package/dist/Client.js
CHANGED
|
@@ -74,7 +74,7 @@ class VellumClient {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "
|
|
77
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -121,6 +121,71 @@ class VellumClient {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Executes a deployed Prompt and streams back the results.
|
|
126
|
+
* @throws {@link Vellum.BadRequestError}
|
|
127
|
+
* @throws {@link Vellum.ForbiddenError}
|
|
128
|
+
* @throws {@link Vellum.NotFoundError}
|
|
129
|
+
* @throws {@link Vellum.InternalServerError}
|
|
130
|
+
*/
|
|
131
|
+
executePromptStream(request, requestOptions) {
|
|
132
|
+
var _a;
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const _response = yield core.fetcher({
|
|
135
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
136
|
+
.default, "v1/execute-prompt-stream"),
|
|
137
|
+
method: "POST",
|
|
138
|
+
headers: {
|
|
139
|
+
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
140
|
+
"X-Fern-Language": "JavaScript",
|
|
141
|
+
"X-Fern-SDK-Name": "vellum-ai",
|
|
142
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
143
|
+
},
|
|
144
|
+
contentType: "application/json",
|
|
145
|
+
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
146
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
147
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
148
|
+
});
|
|
149
|
+
if (_response.ok) {
|
|
150
|
+
return yield serializers.ExecutePromptStreamingResponse.parseOrThrow(_response.body, {
|
|
151
|
+
unrecognizedObjectKeys: "passthrough",
|
|
152
|
+
allowUnrecognizedUnionMembers: true,
|
|
153
|
+
allowUnrecognizedEnumValues: true,
|
|
154
|
+
breadcrumbsPrefix: ["response"],
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
if (_response.error.reason === "status-code") {
|
|
158
|
+
switch (_response.error.statusCode) {
|
|
159
|
+
case 400:
|
|
160
|
+
throw new Vellum.BadRequestError(_response.error.body);
|
|
161
|
+
case 403:
|
|
162
|
+
throw new Vellum.ForbiddenError(_response.error.body);
|
|
163
|
+
case 404:
|
|
164
|
+
throw new Vellum.NotFoundError(_response.error.body);
|
|
165
|
+
case 500:
|
|
166
|
+
throw new Vellum.InternalServerError(_response.error.body);
|
|
167
|
+
default:
|
|
168
|
+
throw new errors.VellumError({
|
|
169
|
+
statusCode: _response.error.statusCode,
|
|
170
|
+
body: _response.error.body,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
switch (_response.error.reason) {
|
|
175
|
+
case "non-json":
|
|
176
|
+
throw new errors.VellumError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.rawBody,
|
|
179
|
+
});
|
|
180
|
+
case "timeout":
|
|
181
|
+
throw new errors.VellumTimeoutError();
|
|
182
|
+
case "unknown":
|
|
183
|
+
throw new errors.VellumError({
|
|
184
|
+
message: _response.error.errorMessage,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
124
189
|
/**
|
|
125
190
|
* Executes a deployed Workflow and streams back its results.
|
|
126
191
|
*/
|
|
@@ -135,7 +200,7 @@ class VellumClient {
|
|
|
135
200
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
136
201
|
"X-Fern-Language": "JavaScript",
|
|
137
202
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
138
|
-
"X-Fern-SDK-Version": "
|
|
203
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
139
204
|
},
|
|
140
205
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
141
206
|
unrecognizedObjectKeys: "strip",
|
|
@@ -176,7 +241,7 @@ class VellumClient {
|
|
|
176
241
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
177
242
|
"X-Fern-Language": "JavaScript",
|
|
178
243
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
179
|
-
"X-Fern-SDK-Version": "
|
|
244
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
180
245
|
},
|
|
181
246
|
contentType: "application/json",
|
|
182
247
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -239,7 +304,7 @@ class VellumClient {
|
|
|
239
304
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
240
305
|
"X-Fern-Language": "JavaScript",
|
|
241
306
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
242
|
-
"X-Fern-SDK-Version": "
|
|
307
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
243
308
|
},
|
|
244
309
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
245
310
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -277,7 +342,7 @@ class VellumClient {
|
|
|
277
342
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
278
343
|
"X-Fern-Language": "JavaScript",
|
|
279
344
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
280
|
-
"X-Fern-SDK-Version": "
|
|
345
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
281
346
|
},
|
|
282
347
|
contentType: "application/json",
|
|
283
348
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -341,7 +406,7 @@ class VellumClient {
|
|
|
341
406
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
342
407
|
"X-Fern-Language": "JavaScript",
|
|
343
408
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
344
|
-
"X-Fern-SDK-Version": "
|
|
409
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
345
410
|
},
|
|
346
411
|
contentType: "application/json",
|
|
347
412
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -399,7 +464,7 @@ class VellumClient {
|
|
|
399
464
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
400
465
|
"X-Fern-Language": "JavaScript",
|
|
401
466
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
402
|
-
"X-Fern-SDK-Version": "
|
|
467
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
403
468
|
},
|
|
404
469
|
contentType: "application/json",
|
|
405
470
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { ExecutePromptRequest } from "./ExecutePromptRequest";
|
|
2
1
|
export { ExecuteWorkflowStreamRequest } from "./ExecuteWorkflowStreamRequest";
|
|
3
2
|
export { GenerateBodyRequest } from "./GenerateBodyRequest";
|
|
4
3
|
export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
|
|
@@ -21,4 +21,5 @@ export declare class Deployments {
|
|
|
21
21
|
* Used to retrieve a deployment given its ID or name.
|
|
22
22
|
*/
|
|
23
23
|
retrieve(id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentRead>;
|
|
24
|
+
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
24
25
|
}
|
|
@@ -62,7 +62,7 @@ class Deployments {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "
|
|
65
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -97,5 +97,54 @@ class Deployments {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
+
retrieveProviderPayload(request, requestOptions) {
|
|
101
|
+
var _a;
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const _response = yield core.fetcher({
|
|
104
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
105
|
+
.default, "v1/deployments/provider-payload"),
|
|
106
|
+
method: "POST",
|
|
107
|
+
headers: {
|
|
108
|
+
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
109
|
+
"X-Fern-Language": "JavaScript",
|
|
110
|
+
"X-Fern-SDK-Name": "vellum-ai",
|
|
111
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
112
|
+
},
|
|
113
|
+
contentType: "application/json",
|
|
114
|
+
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
115
|
+
unrecognizedObjectKeys: "strip",
|
|
116
|
+
}),
|
|
117
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
118
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
119
|
+
});
|
|
120
|
+
if (_response.ok) {
|
|
121
|
+
return yield serializers.DeploymentProviderPayloadResponse.parseOrThrow(_response.body, {
|
|
122
|
+
unrecognizedObjectKeys: "passthrough",
|
|
123
|
+
allowUnrecognizedUnionMembers: true,
|
|
124
|
+
allowUnrecognizedEnumValues: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
if (_response.error.reason === "status-code") {
|
|
129
|
+
throw new errors.VellumError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
switch (_response.error.reason) {
|
|
135
|
+
case "non-json":
|
|
136
|
+
throw new errors.VellumError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.rawBody,
|
|
139
|
+
});
|
|
140
|
+
case "timeout":
|
|
141
|
+
throw new errors.VellumTimeoutError();
|
|
142
|
+
case "unknown":
|
|
143
|
+
throw new errors.VellumError({
|
|
144
|
+
message: _response.error.errorMessage,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
100
149
|
}
|
|
101
150
|
exports.Deployments = Deployments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../..";
|
|
5
|
+
export interface DeploymentProviderPayloadRequest {
|
|
6
|
+
/** The ID of the deployment. Must provide either this or deployment_name. */
|
|
7
|
+
deploymentId?: string;
|
|
8
|
+
/** The name of the deployment. Must provide either this or deployment_id. */
|
|
9
|
+
deploymentName?: string;
|
|
10
|
+
inputs: Vellum.PromptDeploymentInputRequest[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DeploymentProviderPayloadRequest } from "./DeploymentProviderPayloadRequest";
|
|
@@ -62,7 +62,7 @@ class DocumentIndexes {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "
|
|
65
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -114,7 +114,7 @@ class DocumentIndexes {
|
|
|
114
114
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
115
115
|
"X-Fern-Language": "JavaScript",
|
|
116
116
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
117
|
-
"X-Fern-SDK-Version": "
|
|
117
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
118
118
|
},
|
|
119
119
|
contentType: "application/json",
|
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -78,7 +78,7 @@ class Documents {
|
|
|
78
78
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
81
|
-
"X-Fern-SDK-Version": "
|
|
81
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
82
82
|
},
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
@@ -125,7 +125,7 @@ class Documents {
|
|
|
125
125
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
126
126
|
"X-Fern-Language": "JavaScript",
|
|
127
127
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
128
|
-
"X-Fern-SDK-Version": "
|
|
128
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
129
129
|
},
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -169,7 +169,7 @@ class Documents {
|
|
|
169
169
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
172
|
-
"X-Fern-SDK-Version": "
|
|
172
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
173
173
|
},
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -245,7 +245,7 @@ class Documents {
|
|
|
245
245
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
246
246
|
"X-Fern-Language": "JavaScript",
|
|
247
247
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
248
|
-
"X-Fern-SDK-Version": "
|
|
248
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
249
249
|
"Content-Length": (yield core.getFormDataContentLength(_request)).toString(),
|
|
250
250
|
},
|
|
251
251
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
@@ -5,6 +5,7 @@ export * as modelVersions from "./modelVersions";
|
|
|
5
5
|
export * as registeredPrompts from "./registeredPrompts";
|
|
6
6
|
export * as sandboxes from "./sandboxes";
|
|
7
7
|
export * as testSuites from "./testSuites";
|
|
8
|
+
export * from "./deployments/client/requests";
|
|
8
9
|
export * from "./documentIndexes/client/requests";
|
|
9
10
|
export * from "./documents/client/requests";
|
|
10
11
|
export * from "./registeredPrompts/client/requests";
|
|
@@ -34,6 +34,7 @@ exports.modelVersions = __importStar(require("./modelVersions"));
|
|
|
34
34
|
exports.registeredPrompts = __importStar(require("./registeredPrompts"));
|
|
35
35
|
exports.sandboxes = __importStar(require("./sandboxes"));
|
|
36
36
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
37
|
+
__exportStar(require("./deployments/client/requests"), exports);
|
|
37
38
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
38
39
|
__exportStar(require("./documents/client/requests"), exports);
|
|
39
40
|
__exportStar(require("./registeredPrompts/client/requests"), exports);
|
|
@@ -18,7 +18,7 @@ export declare class ModelVersions {
|
|
|
18
18
|
protected readonly _options: ModelVersions.Options;
|
|
19
19
|
constructor(_options: ModelVersions.Options);
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
|
|
22
22
|
*/
|
|
23
23
|
retrieve(id: string, requestOptions?: ModelVersions.RequestOptions): Promise<Vellum.ModelVersionRead>;
|
|
24
24
|
}
|
|
@@ -49,7 +49,7 @@ class ModelVersions {
|
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
|
|
53
53
|
*/
|
|
54
54
|
retrieve(id, requestOptions) {
|
|
55
55
|
var _a;
|
|
@@ -62,7 +62,7 @@ class ModelVersions {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "
|
|
65
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class RegisteredPrompts {
|
|
|
69
69
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "
|
|
72
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class Sandboxes {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "
|
|
71
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -120,7 +120,7 @@ class Sandboxes {
|
|
|
120
120
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
121
121
|
"X-Fern-Language": "JavaScript",
|
|
122
122
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
123
|
-
"X-Fern-SDK-Version": "
|
|
123
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
124
124
|
},
|
|
125
125
|
contentType: "application/json",
|
|
126
126
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -68,7 +68,7 @@ class TestSuites {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "
|
|
71
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.TestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -119,7 +119,7 @@ class TestSuites {
|
|
|
119
119
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
120
120
|
"X-Fern-Language": "JavaScript",
|
|
121
121
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
122
|
-
"X-Fern-SDK-Version": "
|
|
122
|
+
"X-Fern-SDK-Version": "0.1.6",
|
|
123
123
|
},
|
|
124
124
|
contentType: "application/json",
|
|
125
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -25,6 +25,7 @@ export interface DeploymentRead {
|
|
|
25
25
|
* * `PRODUCTION` - Production
|
|
26
26
|
*/
|
|
27
27
|
environment?: Vellum.EnvironmentEnum;
|
|
28
|
+
/** Deprecated. The Prompt execution endpoints return a `prompt_version_id` that could be used instead. */
|
|
28
29
|
activeModelVersionIds: string[];
|
|
29
30
|
lastDeployedOn: Date;
|
|
30
31
|
inputVariables: Vellum.VellumVariable[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Vellum from "
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface ExecutePromptRequest {
|
|
6
6
|
inputs: Vellum.PromptDeploymentInputRequest[];
|
|
7
7
|
/** The ID of the Prompt Deployment. Must provide either this or prompt_deployment_name. */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type ExecutePromptStreamingResponse = Vellum.ExecutePromptStreamingResponse.Initiated | Vellum.ExecutePromptStreamingResponse.Streaming | Vellum.ExecutePromptStreamingResponse.Fulfilled | Vellum.ExecutePromptStreamingResponse.Rejected;
|
|
6
|
+
export declare namespace ExecutePromptStreamingResponse {
|
|
7
|
+
interface Initiated extends Vellum.InitiatedExecutePromptStreamingResponse {
|
|
8
|
+
state: "INITIATED";
|
|
9
|
+
}
|
|
10
|
+
interface Streaming extends Vellum.StreamingExecutePromptStreamingResponse {
|
|
11
|
+
state: "STREAMING";
|
|
12
|
+
}
|
|
13
|
+
interface Fulfilled extends Vellum.FulfilledExecutePromptStreamingResponse {
|
|
14
|
+
state: "FULFILLED";
|
|
15
|
+
}
|
|
16
|
+
interface Rejected extends Vellum.RejectedExecutePromptStreamingResponse {
|
|
17
|
+
state: "REJECTED";
|
|
18
|
+
}
|
|
19
|
+
}
|