vellum-ai 0.14.25 → 0.14.27
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 +3 -0
- package/Client.js +32 -27
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +3 -2
- package/api/resources/index.js +4 -3
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/prompts/client/Client.d.ts +45 -0
- package/api/resources/prompts/client/Client.js +138 -0
- package/api/resources/prompts/client/index.d.ts +1 -0
- package/{dist/serialization/resources/workflows/types → api/resources/prompts/client}/index.js +1 -1
- package/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
- package/api/resources/prompts/client/requests/index.d.ts +1 -0
- package/api/resources/prompts/client/requests/index.js +2 -0
- package/api/resources/prompts/index.d.ts +1 -0
- package/{serialization/resources/workflows → api/resources/prompts}/index.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +8 -8
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.js +4 -9
- package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -2
- package/api/resources/workflows/index.d.ts +0 -1
- package/api/resources/workflows/index.js +0 -1
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/DeploymentReleaseTagRead.d.ts +3 -1
- package/api/types/PromptExecConfig.d.ts +12 -0
- package/{dist/api/types/Release.d.ts → api/types/ReleaseTagRelease.d.ts} +1 -1
- package/{dist/api/resources/workflows/types/WorkflowsPullRequestFormat.js → api/types/ReleaseTagRelease.js} +0 -5
- package/api/types/WorkflowReleaseTagRead.d.ts +1 -1
- package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +0 -2
- package/api/types/index.d.ts +2 -1
- package/api/types/index.js +2 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +32 -27
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +3 -2
- package/dist/api/resources/index.js +4 -3
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/prompts/client/Client.d.ts +45 -0
- package/dist/api/resources/prompts/client/Client.js +138 -0
- package/dist/api/resources/prompts/client/index.d.ts +1 -0
- package/{api/resources/workflows/types → dist/api/resources/prompts/client}/index.js +1 -1
- package/dist/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
- package/{api/resources/workflows/types/WorkflowsPullRequestFormat.js → dist/api/resources/prompts/client/requests/PromptsPullRequest.js} +0 -5
- package/dist/api/resources/prompts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/prompts/client/requests/index.js +2 -0
- package/dist/api/resources/prompts/index.d.ts +1 -0
- package/dist/{serialization/resources/workflows → api/resources/prompts}/index.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.js +4 -9
- package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -2
- package/dist/api/resources/workflows/index.d.ts +0 -1
- package/dist/api/resources/workflows/index.js +0 -1
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/DeploymentReleaseTagRead.d.ts +3 -1
- package/dist/api/types/PromptExecConfig.d.ts +12 -0
- package/dist/api/types/PromptExecConfig.js +5 -0
- package/{api/types/Release.d.ts → dist/api/types/ReleaseTagRelease.d.ts} +1 -1
- package/dist/api/types/ReleaseTagRelease.js +5 -0
- package/dist/api/types/WorkflowReleaseTagRead.d.ts +1 -1
- package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +0 -2
- package/dist/api/types/index.d.ts +2 -1
- package/dist/api/types/index.js +2 -1
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/types/DeploymentReleaseTagRead.d.ts +2 -0
- package/dist/serialization/types/DeploymentReleaseTagRead.js +2 -0
- package/dist/serialization/types/PromptExecConfig.d.ts +21 -0
- package/dist/serialization/{resources/workflows/types/WorkflowsPullRequestFormat.js → types/PromptExecConfig.js} +15 -3
- package/dist/serialization/types/{Release.d.ts → ReleaseTagRelease.d.ts} +2 -2
- package/dist/serialization/types/{Release.js → ReleaseTagRelease.js} +2 -2
- package/dist/serialization/types/WorkflowReleaseTagRead.d.ts +2 -2
- package/dist/serialization/types/WorkflowReleaseTagRead.js +2 -2
- package/dist/serialization/types/index.d.ts +2 -1
- package/dist/serialization/types/index.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +73 -0
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/types/DeploymentReleaseTagRead.d.ts +2 -0
- package/serialization/types/DeploymentReleaseTagRead.js +2 -0
- package/serialization/types/PromptExecConfig.d.ts +21 -0
- package/serialization/{resources/workflows/types/WorkflowsPullRequestFormat.js → types/PromptExecConfig.js} +15 -3
- package/serialization/types/{Release.d.ts → ReleaseTagRelease.d.ts} +2 -2
- package/serialization/types/{Release.js → ReleaseTagRelease.js} +2 -2
- package/serialization/types/WorkflowReleaseTagRead.d.ts +2 -2
- package/serialization/types/WorkflowReleaseTagRead.js +2 -2
- package/serialization/types/index.d.ts +2 -1
- package/serialization/types/index.js +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -8
- package/api/resources/workflows/types/index.d.ts +0 -1
- package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -8
- package/dist/api/resources/workflows/types/index.d.ts +0 -1
- package/dist/api/resources/workflows/types/index.js +0 -17
- package/dist/serialization/resources/workflows/index.d.ts +0 -1
- package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -10
- package/dist/serialization/resources/workflows/types/index.d.ts +0 -1
- package/serialization/resources/workflows/index.d.ts +0 -1
- package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -10
- package/serialization/resources/workflows/types/index.d.ts +0 -1
- package/serialization/resources/workflows/types/index.js +0 -17
- /package/api/{types/Release.js → resources/prompts/client/requests/PromptsPullRequest.js} +0 -0
- /package/{dist/api/types/Release.js → api/types/PromptExecConfig.js} +0 -0
|
@@ -52,9 +52,9 @@ exports.Workflows = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const Vellum = __importStar(require("../../../index"));
|
|
55
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
56
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
58
58
|
const json_1 = require("../../../../core/json");
|
|
59
59
|
class Workflows {
|
|
60
60
|
constructor(_options) {
|
|
@@ -66,16 +66,11 @@ class Workflows {
|
|
|
66
66
|
pull(id_1) {
|
|
67
67
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
68
68
|
var _a, _b;
|
|
69
|
-
const { excludeCode,
|
|
69
|
+
const { excludeCode, includeJson, includeSandbox, strict } = request;
|
|
70
70
|
const _queryParams = {};
|
|
71
71
|
if (excludeCode != null) {
|
|
72
72
|
_queryParams["exclude_code"] = excludeCode.toString();
|
|
73
73
|
}
|
|
74
|
-
if (format != null) {
|
|
75
|
-
_queryParams["format"] = serializers.WorkflowsPullRequestFormat.jsonOrThrow(format, {
|
|
76
|
-
unrecognizedObjectKeys: "strip",
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
74
|
if (includeJson != null) {
|
|
80
75
|
_queryParams["include_json"] = includeJson.toString();
|
|
81
76
|
}
|
|
@@ -89,7 +84,7 @@ class Workflows {
|
|
|
89
84
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
90
85
|
.default, `v1/workflows/${encodeURIComponent(id)}/pull`),
|
|
91
86
|
method: "GET",
|
|
92
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
88
|
contentType: "application/json",
|
|
94
89
|
queryParameters: _queryParams,
|
|
95
90
|
requestType: "json",
|
|
@@ -164,7 +159,7 @@ class Workflows {
|
|
|
164
159
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
165
160
|
.default, "v1/workflows/push"),
|
|
166
161
|
method: "POST",
|
|
167
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
162
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
163
|
requestType: "file",
|
|
169
164
|
duplex: _maybeEncodedRequest.duplex,
|
|
170
165
|
body: _maybeEncodedRequest.body,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Vellum from "../../../../index";
|
|
5
4
|
export interface WorkflowsPullRequest {
|
|
6
5
|
excludeCode?: boolean;
|
|
7
|
-
format?: Vellum.WorkflowsPullRequestFormat;
|
|
8
6
|
includeJson?: boolean;
|
|
9
7
|
includeSandbox?: boolean;
|
|
10
8
|
strict?: boolean;
|
|
@@ -14,5 +14,4 @@ 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("./types"), exports);
|
|
18
17
|
__exportStar(require("./client"), exports);
|
|
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
|
|
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
75
75
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
77
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
|
|
|
127
127
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
128
128
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
129
129
|
method: "PATCH",
|
|
130
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
130
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
requestType: "json",
|
|
133
133
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -73,7 +73,7 @@ class Workspaces {
|
|
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, "v1/workspaces/identity"),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.
|
|
76
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
requestType: "json",
|
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -12,6 +12,8 @@ export interface DeploymentReleaseTagRead {
|
|
|
12
12
|
* * `USER` - User
|
|
13
13
|
*/
|
|
14
14
|
source: Vellum.ReleaseTagSource;
|
|
15
|
-
/**
|
|
15
|
+
/** Deprecated. Reference the `release` field instead. */
|
|
16
16
|
historyItem: Vellum.DeploymentReleaseTagDeploymentHistoryItem;
|
|
17
|
+
/** The Release that this Release Tag points to. */
|
|
18
|
+
release: Vellum.ReleaseTagRelease;
|
|
17
19
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
export interface PromptExecConfig {
|
|
6
|
+
mlModel: string;
|
|
7
|
+
inputVariables: Vellum.VellumVariable[];
|
|
8
|
+
parameters: Vellum.PromptParameters;
|
|
9
|
+
settings?: Vellum.PromptSettings;
|
|
10
|
+
blocks: Vellum.PromptBlock[];
|
|
11
|
+
functions?: Vellum.FunctionDefinition[];
|
|
12
|
+
}
|
|
@@ -15,5 +15,5 @@ export interface WorkflowReleaseTagRead {
|
|
|
15
15
|
/** Deprecated. Reference the `release` field instead. */
|
|
16
16
|
historyItem: Vellum.WorkflowReleaseTagWorkflowDeploymentHistoryItem;
|
|
17
17
|
/** The Release that this Release Tag points to. */
|
|
18
|
-
release: Vellum.
|
|
18
|
+
release: Vellum.ReleaseTagRelease;
|
|
19
19
|
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface WorkflowReleaseTagWorkflowDeploymentHistoryItem {
|
|
5
|
-
/** The ID of the Workflow Deployment History Item */
|
|
6
5
|
id: string;
|
|
7
|
-
/** The timestamp representing when this History Item was created */
|
|
8
6
|
timestamp: Date;
|
|
9
7
|
}
|
|
@@ -292,6 +292,7 @@ export * from "./PromptBlockState";
|
|
|
292
292
|
export * from "./PromptDeploymentExpandMetaRequest";
|
|
293
293
|
export * from "./PromptDeploymentInputRequest";
|
|
294
294
|
export * from "./PromptDeploymentParentContext";
|
|
295
|
+
export * from "./PromptExecConfig";
|
|
295
296
|
export * from "./PromptExecutionMeta";
|
|
296
297
|
export * from "./PromptNodeExecutionMeta";
|
|
297
298
|
export * from "./PromptNodeResult";
|
|
@@ -314,7 +315,7 @@ export * from "./RejectedExecutePromptResponse";
|
|
|
314
315
|
export * from "./RejectedExecuteWorkflowWorkflowResultEvent";
|
|
315
316
|
export * from "./RejectedPromptExecutionMeta";
|
|
316
317
|
export * from "./RejectedWorkflowNodeResultEvent";
|
|
317
|
-
export * from "./
|
|
318
|
+
export * from "./ReleaseTagRelease";
|
|
318
319
|
export * from "./ReleaseTagSource";
|
|
319
320
|
export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
320
321
|
export * from "./RichTextChildBlock";
|
package/dist/api/types/index.js
CHANGED
|
@@ -308,6 +308,7 @@ __exportStar(require("./PromptBlockState"), exports);
|
|
|
308
308
|
__exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
|
|
309
309
|
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
310
310
|
__exportStar(require("./PromptDeploymentParentContext"), exports);
|
|
311
|
+
__exportStar(require("./PromptExecConfig"), exports);
|
|
311
312
|
__exportStar(require("./PromptExecutionMeta"), exports);
|
|
312
313
|
__exportStar(require("./PromptNodeExecutionMeta"), exports);
|
|
313
314
|
__exportStar(require("./PromptNodeResult"), exports);
|
|
@@ -330,7 +331,7 @@ __exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
|
330
331
|
__exportStar(require("./RejectedExecuteWorkflowWorkflowResultEvent"), exports);
|
|
331
332
|
__exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
332
333
|
__exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
|
|
333
|
-
__exportStar(require("./
|
|
334
|
+
__exportStar(require("./ReleaseTagRelease"), exports);
|
|
334
335
|
__exportStar(require("./ReleaseTagSource"), exports);
|
|
335
336
|
__exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
|
|
336
337
|
__exportStar(require("./RichTextChildBlock"), exports);
|
|
@@ -8,8 +8,6 @@ export * as workflowDeployments from "./workflowDeployments";
|
|
|
8
8
|
export * from "./workflowDeployments/types";
|
|
9
9
|
export * as workflowSandboxes from "./workflowSandboxes";
|
|
10
10
|
export * from "./workflowSandboxes/types";
|
|
11
|
-
export * as workflows from "./workflows";
|
|
12
|
-
export * from "./workflows/types";
|
|
13
11
|
export * as testSuites from "./testSuites";
|
|
14
12
|
export * as adHoc from "./adHoc";
|
|
15
13
|
export * from "./adHoc/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.
|
|
39
|
+
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
40
40
|
exports.deployments = __importStar(require("./deployments"));
|
|
41
41
|
__exportStar(require("./deployments/types"), exports);
|
|
42
42
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -47,8 +47,6 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
|
|
|
47
47
|
__exportStar(require("./workflowDeployments/types"), exports);
|
|
48
48
|
exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
49
49
|
__exportStar(require("./workflowSandboxes/types"), exports);
|
|
50
|
-
exports.workflows = __importStar(require("./workflows"));
|
|
51
|
-
__exportStar(require("./workflows/types"), exports);
|
|
52
50
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
53
51
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
54
52
|
__exportStar(require("./adHoc/client/requests"), exports);
|
|
@@ -6,11 +6,13 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ReleaseTagSource } from "./ReleaseTagSource";
|
|
8
8
|
import { DeploymentReleaseTagDeploymentHistoryItem } from "./DeploymentReleaseTagDeploymentHistoryItem";
|
|
9
|
+
import { ReleaseTagRelease } from "./ReleaseTagRelease";
|
|
9
10
|
export declare const DeploymentReleaseTagRead: core.serialization.ObjectSchema<serializers.DeploymentReleaseTagRead.Raw, Vellum.DeploymentReleaseTagRead>;
|
|
10
11
|
export declare namespace DeploymentReleaseTagRead {
|
|
11
12
|
interface Raw {
|
|
12
13
|
name: string;
|
|
13
14
|
source: ReleaseTagSource.Raw;
|
|
14
15
|
history_item: DeploymentReleaseTagDeploymentHistoryItem.Raw;
|
|
16
|
+
release: ReleaseTagRelease.Raw;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -40,8 +40,10 @@ exports.DeploymentReleaseTagRead = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ReleaseTagSource_1 = require("./ReleaseTagSource");
|
|
42
42
|
const DeploymentReleaseTagDeploymentHistoryItem_1 = require("./DeploymentReleaseTagDeploymentHistoryItem");
|
|
43
|
+
const ReleaseTagRelease_1 = require("./ReleaseTagRelease");
|
|
43
44
|
exports.DeploymentReleaseTagRead = core.serialization.object({
|
|
44
45
|
name: core.serialization.string(),
|
|
45
46
|
source: ReleaseTagSource_1.ReleaseTagSource,
|
|
46
47
|
historyItem: core.serialization.property("history_item", DeploymentReleaseTagDeploymentHistoryItem_1.DeploymentReleaseTagDeploymentHistoryItem),
|
|
48
|
+
release: ReleaseTagRelease_1.ReleaseTagRelease,
|
|
47
49
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VellumVariable } from "./VellumVariable";
|
|
8
|
+
import { PromptParameters } from "./PromptParameters";
|
|
9
|
+
import { PromptSettings } from "./PromptSettings";
|
|
10
|
+
import { FunctionDefinition } from "./FunctionDefinition";
|
|
11
|
+
export declare const PromptExecConfig: core.serialization.ObjectSchema<serializers.PromptExecConfig.Raw, Vellum.PromptExecConfig>;
|
|
12
|
+
export declare namespace PromptExecConfig {
|
|
13
|
+
interface Raw {
|
|
14
|
+
ml_model: string;
|
|
15
|
+
input_variables: VellumVariable.Raw[];
|
|
16
|
+
parameters: PromptParameters.Raw;
|
|
17
|
+
settings?: PromptSettings.Raw | null;
|
|
18
|
+
blocks: serializers.PromptBlock.Raw[];
|
|
19
|
+
functions?: FunctionDefinition.Raw[] | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -36,6 +36,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
|
|
39
|
+
exports.PromptExecConfig = void 0;
|
|
40
|
+
const serializers = __importStar(require("../index"));
|
|
41
|
+
const core = __importStar(require("../../core"));
|
|
42
|
+
const VellumVariable_1 = require("./VellumVariable");
|
|
43
|
+
const PromptParameters_1 = require("./PromptParameters");
|
|
44
|
+
const PromptSettings_1 = require("./PromptSettings");
|
|
45
|
+
const FunctionDefinition_1 = require("./FunctionDefinition");
|
|
46
|
+
exports.PromptExecConfig = core.serialization.object({
|
|
47
|
+
mlModel: core.serialization.property("ml_model", core.serialization.string()),
|
|
48
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
|
|
49
|
+
parameters: PromptParameters_1.PromptParameters,
|
|
50
|
+
settings: PromptSettings_1.PromptSettings.optional(),
|
|
51
|
+
blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
|
|
52
|
+
functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
|
|
53
|
+
});
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ReleaseTagRelease: core.serialization.ObjectSchema<serializers.ReleaseTagRelease.Raw, Vellum.ReleaseTagRelease>;
|
|
8
|
+
export declare namespace ReleaseTagRelease {
|
|
9
9
|
interface Raw {
|
|
10
10
|
id: string;
|
|
11
11
|
timestamp: string;
|
|
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ReleaseTagRelease = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.ReleaseTagRelease = core.serialization.object({
|
|
42
42
|
id: core.serialization.string(),
|
|
43
43
|
timestamp: core.serialization.date(),
|
|
44
44
|
});
|
|
@@ -6,13 +6,13 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ReleaseTagSource } from "./ReleaseTagSource";
|
|
8
8
|
import { WorkflowReleaseTagWorkflowDeploymentHistoryItem } from "./WorkflowReleaseTagWorkflowDeploymentHistoryItem";
|
|
9
|
-
import {
|
|
9
|
+
import { ReleaseTagRelease } from "./ReleaseTagRelease";
|
|
10
10
|
export declare const WorkflowReleaseTagRead: core.serialization.ObjectSchema<serializers.WorkflowReleaseTagRead.Raw, Vellum.WorkflowReleaseTagRead>;
|
|
11
11
|
export declare namespace WorkflowReleaseTagRead {
|
|
12
12
|
interface Raw {
|
|
13
13
|
name: string;
|
|
14
14
|
source: ReleaseTagSource.Raw;
|
|
15
15
|
history_item: WorkflowReleaseTagWorkflowDeploymentHistoryItem.Raw;
|
|
16
|
-
release:
|
|
16
|
+
release: ReleaseTagRelease.Raw;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -40,10 +40,10 @@ exports.WorkflowReleaseTagRead = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ReleaseTagSource_1 = require("./ReleaseTagSource");
|
|
42
42
|
const WorkflowReleaseTagWorkflowDeploymentHistoryItem_1 = require("./WorkflowReleaseTagWorkflowDeploymentHistoryItem");
|
|
43
|
-
const
|
|
43
|
+
const ReleaseTagRelease_1 = require("./ReleaseTagRelease");
|
|
44
44
|
exports.WorkflowReleaseTagRead = core.serialization.object({
|
|
45
45
|
name: core.serialization.string(),
|
|
46
46
|
source: ReleaseTagSource_1.ReleaseTagSource,
|
|
47
47
|
historyItem: core.serialization.property("history_item", WorkflowReleaseTagWorkflowDeploymentHistoryItem_1.WorkflowReleaseTagWorkflowDeploymentHistoryItem),
|
|
48
|
-
release:
|
|
48
|
+
release: ReleaseTagRelease_1.ReleaseTagRelease,
|
|
49
49
|
});
|
|
@@ -292,6 +292,7 @@ export * from "./PromptBlockState";
|
|
|
292
292
|
export * from "./PromptDeploymentExpandMetaRequest";
|
|
293
293
|
export * from "./PromptDeploymentInputRequest";
|
|
294
294
|
export * from "./PromptDeploymentParentContext";
|
|
295
|
+
export * from "./PromptExecConfig";
|
|
295
296
|
export * from "./PromptExecutionMeta";
|
|
296
297
|
export * from "./PromptNodeExecutionMeta";
|
|
297
298
|
export * from "./PromptNodeResult";
|
|
@@ -314,7 +315,7 @@ export * from "./RejectedExecutePromptResponse";
|
|
|
314
315
|
export * from "./RejectedExecuteWorkflowWorkflowResultEvent";
|
|
315
316
|
export * from "./RejectedPromptExecutionMeta";
|
|
316
317
|
export * from "./RejectedWorkflowNodeResultEvent";
|
|
317
|
-
export * from "./
|
|
318
|
+
export * from "./ReleaseTagRelease";
|
|
318
319
|
export * from "./ReleaseTagSource";
|
|
319
320
|
export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
320
321
|
export * from "./RichTextChildBlock";
|
|
@@ -308,6 +308,7 @@ __exportStar(require("./PromptBlockState"), exports);
|
|
|
308
308
|
__exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
|
|
309
309
|
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
310
310
|
__exportStar(require("./PromptDeploymentParentContext"), exports);
|
|
311
|
+
__exportStar(require("./PromptExecConfig"), exports);
|
|
311
312
|
__exportStar(require("./PromptExecutionMeta"), exports);
|
|
312
313
|
__exportStar(require("./PromptNodeExecutionMeta"), exports);
|
|
313
314
|
__exportStar(require("./PromptNodeResult"), exports);
|
|
@@ -330,7 +331,7 @@ __exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
|
330
331
|
__exportStar(require("./RejectedExecuteWorkflowWorkflowResultEvent"), exports);
|
|
331
332
|
__exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
332
333
|
__exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
|
|
333
|
-
__exportStar(require("./
|
|
334
|
+
__exportStar(require("./ReleaseTagRelease"), exports);
|
|
334
335
|
__exportStar(require("./ReleaseTagSource"), exports);
|
|
335
336
|
__exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
|
|
336
337
|
__exportStar(require("./RichTextChildBlock"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.14.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.27";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2167,6 +2167,79 @@ await client.organizations.organizationIdentity();
|
|
|
2167
2167
|
</dl>
|
|
2168
2168
|
</details>
|
|
2169
2169
|
|
|
2170
|
+
## Prompts
|
|
2171
|
+
|
|
2172
|
+
<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">pull</a>(id, { ...params }) -> Vellum.PromptExecConfig</code></summary>
|
|
2173
|
+
<dl>
|
|
2174
|
+
<dd>
|
|
2175
|
+
|
|
2176
|
+
#### 📝 Description
|
|
2177
|
+
|
|
2178
|
+
<dl>
|
|
2179
|
+
<dd>
|
|
2180
|
+
|
|
2181
|
+
<dl>
|
|
2182
|
+
<dd>
|
|
2183
|
+
|
|
2184
|
+
Used to pull the definition of a Prompt from Vellum.
|
|
2185
|
+
|
|
2186
|
+
</dd>
|
|
2187
|
+
</dl>
|
|
2188
|
+
</dd>
|
|
2189
|
+
</dl>
|
|
2190
|
+
|
|
2191
|
+
#### 🔌 Usage
|
|
2192
|
+
|
|
2193
|
+
<dl>
|
|
2194
|
+
<dd>
|
|
2195
|
+
|
|
2196
|
+
<dl>
|
|
2197
|
+
<dd>
|
|
2198
|
+
|
|
2199
|
+
```typescript
|
|
2200
|
+
await client.prompts.pull("id");
|
|
2201
|
+
```
|
|
2202
|
+
|
|
2203
|
+
</dd>
|
|
2204
|
+
</dl>
|
|
2205
|
+
</dd>
|
|
2206
|
+
</dl>
|
|
2207
|
+
|
|
2208
|
+
#### ⚙️ Parameters
|
|
2209
|
+
|
|
2210
|
+
<dl>
|
|
2211
|
+
<dd>
|
|
2212
|
+
|
|
2213
|
+
<dl>
|
|
2214
|
+
<dd>
|
|
2215
|
+
|
|
2216
|
+
**id:** `string` — The ID of the Prompt to pull from. Prompt Sandbox IDs are currently supported.
|
|
2217
|
+
|
|
2218
|
+
</dd>
|
|
2219
|
+
</dl>
|
|
2220
|
+
|
|
2221
|
+
<dl>
|
|
2222
|
+
<dd>
|
|
2223
|
+
|
|
2224
|
+
**request:** `Vellum.PromptsPullRequest`
|
|
2225
|
+
|
|
2226
|
+
</dd>
|
|
2227
|
+
</dl>
|
|
2228
|
+
|
|
2229
|
+
<dl>
|
|
2230
|
+
<dd>
|
|
2231
|
+
|
|
2232
|
+
**requestOptions:** `Prompts.RequestOptions`
|
|
2233
|
+
|
|
2234
|
+
</dd>
|
|
2235
|
+
</dl>
|
|
2236
|
+
</dd>
|
|
2237
|
+
</dl>
|
|
2238
|
+
|
|
2239
|
+
</dd>
|
|
2240
|
+
</dl>
|
|
2241
|
+
</details>
|
|
2242
|
+
|
|
2170
2243
|
## Sandboxes
|
|
2171
2244
|
|
|
2172
2245
|
<details><summary><code>client.sandboxes.<a href="/src/api/resources/sandboxes/client/Client.ts">deployPrompt</a>(id, promptVariantId, { ...params }) -> Vellum.DeploymentRead</code></summary>
|
|
@@ -8,8 +8,6 @@ export * as workflowDeployments from "./workflowDeployments";
|
|
|
8
8
|
export * from "./workflowDeployments/types";
|
|
9
9
|
export * as workflowSandboxes from "./workflowSandboxes";
|
|
10
10
|
export * from "./workflowSandboxes/types";
|
|
11
|
-
export * as workflows from "./workflows";
|
|
12
|
-
export * from "./workflows/types";
|
|
13
11
|
export * as testSuites from "./testSuites";
|
|
14
12
|
export * as adHoc from "./adHoc";
|
|
15
13
|
export * from "./adHoc/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.
|
|
39
|
+
exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
40
40
|
exports.deployments = __importStar(require("./deployments"));
|
|
41
41
|
__exportStar(require("./deployments/types"), exports);
|
|
42
42
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -47,8 +47,6 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
|
|
|
47
47
|
__exportStar(require("./workflowDeployments/types"), exports);
|
|
48
48
|
exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
49
49
|
__exportStar(require("./workflowSandboxes/types"), exports);
|
|
50
|
-
exports.workflows = __importStar(require("./workflows"));
|
|
51
|
-
__exportStar(require("./workflows/types"), exports);
|
|
52
50
|
exports.testSuites = __importStar(require("./testSuites"));
|
|
53
51
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
54
52
|
__exportStar(require("./adHoc/client/requests"), exports);
|
|
@@ -6,11 +6,13 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ReleaseTagSource } from "./ReleaseTagSource";
|
|
8
8
|
import { DeploymentReleaseTagDeploymentHistoryItem } from "./DeploymentReleaseTagDeploymentHistoryItem";
|
|
9
|
+
import { ReleaseTagRelease } from "./ReleaseTagRelease";
|
|
9
10
|
export declare const DeploymentReleaseTagRead: core.serialization.ObjectSchema<serializers.DeploymentReleaseTagRead.Raw, Vellum.DeploymentReleaseTagRead>;
|
|
10
11
|
export declare namespace DeploymentReleaseTagRead {
|
|
11
12
|
interface Raw {
|
|
12
13
|
name: string;
|
|
13
14
|
source: ReleaseTagSource.Raw;
|
|
14
15
|
history_item: DeploymentReleaseTagDeploymentHistoryItem.Raw;
|
|
16
|
+
release: ReleaseTagRelease.Raw;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -40,8 +40,10 @@ exports.DeploymentReleaseTagRead = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ReleaseTagSource_1 = require("./ReleaseTagSource");
|
|
42
42
|
const DeploymentReleaseTagDeploymentHistoryItem_1 = require("./DeploymentReleaseTagDeploymentHistoryItem");
|
|
43
|
+
const ReleaseTagRelease_1 = require("./ReleaseTagRelease");
|
|
43
44
|
exports.DeploymentReleaseTagRead = core.serialization.object({
|
|
44
45
|
name: core.serialization.string(),
|
|
45
46
|
source: ReleaseTagSource_1.ReleaseTagSource,
|
|
46
47
|
historyItem: core.serialization.property("history_item", DeploymentReleaseTagDeploymentHistoryItem_1.DeploymentReleaseTagDeploymentHistoryItem),
|
|
48
|
+
release: ReleaseTagRelease_1.ReleaseTagRelease,
|
|
47
49
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { VellumVariable } from "./VellumVariable";
|
|
8
|
+
import { PromptParameters } from "./PromptParameters";
|
|
9
|
+
import { PromptSettings } from "./PromptSettings";
|
|
10
|
+
import { FunctionDefinition } from "./FunctionDefinition";
|
|
11
|
+
export declare const PromptExecConfig: core.serialization.ObjectSchema<serializers.PromptExecConfig.Raw, Vellum.PromptExecConfig>;
|
|
12
|
+
export declare namespace PromptExecConfig {
|
|
13
|
+
interface Raw {
|
|
14
|
+
ml_model: string;
|
|
15
|
+
input_variables: VellumVariable.Raw[];
|
|
16
|
+
parameters: PromptParameters.Raw;
|
|
17
|
+
settings?: PromptSettings.Raw | null;
|
|
18
|
+
blocks: serializers.PromptBlock.Raw[];
|
|
19
|
+
functions?: FunctionDefinition.Raw[] | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -36,6 +36,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
|
|
39
|
+
exports.PromptExecConfig = void 0;
|
|
40
|
+
const serializers = __importStar(require("../index"));
|
|
41
|
+
const core = __importStar(require("../../core"));
|
|
42
|
+
const VellumVariable_1 = require("./VellumVariable");
|
|
43
|
+
const PromptParameters_1 = require("./PromptParameters");
|
|
44
|
+
const PromptSettings_1 = require("./PromptSettings");
|
|
45
|
+
const FunctionDefinition_1 = require("./FunctionDefinition");
|
|
46
|
+
exports.PromptExecConfig = core.serialization.object({
|
|
47
|
+
mlModel: core.serialization.property("ml_model", core.serialization.string()),
|
|
48
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
|
|
49
|
+
parameters: PromptParameters_1.PromptParameters,
|
|
50
|
+
settings: PromptSettings_1.PromptSettings.optional(),
|
|
51
|
+
blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
|
|
52
|
+
functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
|
|
53
|
+
});
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ReleaseTagRelease: core.serialization.ObjectSchema<serializers.ReleaseTagRelease.Raw, Vellum.ReleaseTagRelease>;
|
|
8
|
+
export declare namespace ReleaseTagRelease {
|
|
9
9
|
interface Raw {
|
|
10
10
|
id: string;
|
|
11
11
|
timestamp: string;
|