vellum-ai 0.0.13 → 0.0.15
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 +9 -4
- package/api/errors/ConflictError.d.ts +8 -0
- package/api/errors/ConflictError.js +41 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/modelVersions/client/Client.d.ts +6 -0
- package/api/resources/modelVersions/client/Client.js +44 -0
- package/api/resources/modelVersions/client/index.d.ts +1 -1
- package/api/resources/modelVersions/client/index.js +15 -0
- package/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +7 -0
- package/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +5 -0
- package/api/resources/modelVersions/client/requests/index.d.ts +1 -0
- package/api/resources/modelVersions/client/requests/index.js +2 -0
- package/api/resources/registeredPrompts/client/Client.d.ts +26 -0
- package/api/resources/registeredPrompts/client/Client.js +102 -0
- package/api/resources/registeredPrompts/client/index.d.ts +1 -0
- package/api/resources/registeredPrompts/client/index.js +17 -0
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +20 -0
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +5 -0
- package/api/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/api/resources/registeredPrompts/client/requests/index.js +2 -0
- package/api/resources/registeredPrompts/index.d.ts +1 -0
- package/api/resources/registeredPrompts/index.js +17 -0
- package/api/types/ModelVersionCompilePromptResponse.d.ts +8 -0
- package/api/types/ModelVersionCompilePromptResponse.js +5 -0
- package/api/types/ModelVersionCompiledPrompt.d.ts +9 -0
- package/api/types/ModelVersionCompiledPrompt.js +5 -0
- package/api/types/ModelVersionExecConfigRead.d.ts +2 -2
- package/api/types/ModelVersionSandboxSnapshot.d.ts +1 -0
- package/api/types/PromptTemplateBlockDataRequest.d.ts +8 -0
- package/api/types/PromptTemplateBlockDataRequest.js +5 -0
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +10 -0
- package/api/types/PromptTemplateBlockPropertiesRequest.js +5 -0
- package/api/types/PromptTemplateBlockRequest.d.ts +9 -0
- package/api/types/PromptTemplateBlockRequest.js +5 -0
- package/api/types/PromptTemplateInputVariable.d.ts +7 -0
- package/api/types/PromptTemplateInputVariable.js +5 -0
- package/api/types/PromptTemplateInputVariableRequest.d.ts +7 -0
- package/api/types/PromptTemplateInputVariableRequest.js +5 -0
- package/api/types/RegisterPromptErrorResponse.d.ts +7 -0
- package/api/types/RegisterPromptErrorResponse.js +5 -0
- package/api/types/RegisterPromptModelParametersRequest.d.ts +13 -0
- package/api/types/RegisterPromptModelParametersRequest.js +5 -0
- package/api/types/RegisterPromptPrompt.d.ts +9 -0
- package/api/types/RegisterPromptPrompt.js +5 -0
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +10 -0
- package/api/types/RegisterPromptPromptInfoRequest.js +5 -0
- package/api/types/RegisterPromptResponse.d.ts +16 -0
- package/api/types/RegisterPromptResponse.js +5 -0
- package/api/types/RegisteredPromptDeployment.d.ts +11 -0
- package/api/types/RegisteredPromptDeployment.js +5 -0
- package/api/types/RegisteredPromptModelVersion.d.ts +9 -0
- package/api/types/RegisteredPromptModelVersion.js +5 -0
- package/api/types/RegisteredPromptSandbox.d.ts +9 -0
- package/api/types/RegisteredPromptSandbox.js +5 -0
- package/api/types/RegisteredPromptSandboxSnapshot.d.ts +7 -0
- package/api/types/RegisteredPromptSandboxSnapshot.js +5 -0
- package/api/types/index.d.ts +16 -0
- package/api/types/index.js +16 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +9 -4
- package/dist/api/errors/ConflictError.d.ts +8 -0
- package/dist/api/errors/ConflictError.js +41 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/modelVersions/client/Client.d.ts +6 -0
- package/dist/api/resources/modelVersions/client/Client.js +44 -0
- package/dist/api/resources/modelVersions/client/index.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/index.js +15 -0
- package/dist/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +7 -0
- package/dist/api/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +5 -0
- package/dist/api/resources/modelVersions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/modelVersions/client/requests/index.js +2 -0
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +26 -0
- package/dist/api/resources/registeredPrompts/client/Client.js +102 -0
- package/dist/api/resources/registeredPrompts/client/index.d.ts +1 -0
- package/dist/api/resources/registeredPrompts/client/index.js +17 -0
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +20 -0
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +5 -0
- package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/registeredPrompts/client/requests/index.js +2 -0
- package/dist/api/resources/registeredPrompts/index.d.ts +1 -0
- package/dist/api/resources/registeredPrompts/index.js +17 -0
- package/dist/api/types/ModelVersionCompilePromptResponse.d.ts +8 -0
- package/dist/api/types/ModelVersionCompilePromptResponse.js +5 -0
- package/dist/api/types/ModelVersionCompiledPrompt.d.ts +9 -0
- package/dist/api/types/ModelVersionCompiledPrompt.js +5 -0
- package/dist/api/types/ModelVersionExecConfigRead.d.ts +2 -2
- package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +1 -0
- package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +8 -0
- package/dist/api/types/PromptTemplateBlockDataRequest.js +5 -0
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +10 -0
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.js +5 -0
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +9 -0
- package/dist/api/types/PromptTemplateBlockRequest.js +5 -0
- package/dist/api/types/PromptTemplateInputVariable.d.ts +7 -0
- package/dist/api/types/PromptTemplateInputVariable.js +5 -0
- package/dist/api/types/PromptTemplateInputVariableRequest.d.ts +7 -0
- package/dist/api/types/PromptTemplateInputVariableRequest.js +5 -0
- package/dist/api/types/RegisterPromptErrorResponse.d.ts +7 -0
- package/dist/api/types/RegisterPromptErrorResponse.js +5 -0
- package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +13 -0
- package/dist/api/types/RegisterPromptModelParametersRequest.js +5 -0
- package/dist/api/types/RegisterPromptPrompt.d.ts +9 -0
- package/dist/api/types/RegisterPromptPrompt.js +5 -0
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +10 -0
- package/dist/api/types/RegisterPromptPromptInfoRequest.js +5 -0
- package/dist/api/types/RegisterPromptResponse.d.ts +16 -0
- package/dist/api/types/RegisterPromptResponse.js +5 -0
- package/dist/api/types/RegisteredPromptDeployment.d.ts +11 -0
- package/dist/api/types/RegisteredPromptDeployment.js +5 -0
- package/dist/api/types/RegisteredPromptModelVersion.d.ts +9 -0
- package/dist/api/types/RegisteredPromptModelVersion.js +5 -0
- package/dist/api/types/RegisteredPromptSandbox.d.ts +9 -0
- package/dist/api/types/RegisteredPromptSandbox.js +5 -0
- package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +7 -0
- package/dist/api/types/RegisteredPromptSandboxSnapshot.js +5 -0
- package/dist/api/types/index.d.ts +16 -0
- package/dist/api/types/index.js +16 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +5 -1
- package/dist/serialization/resources/modelVersions/client/index.d.ts +1 -0
- package/dist/serialization/resources/modelVersions/client/index.js +17 -0
- package/dist/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +12 -0
- package/dist/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +33 -0
- package/dist/serialization/resources/modelVersions/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/modelVersions/client/requests/index.js +5 -0
- package/dist/serialization/resources/modelVersions/index.d.ts +1 -0
- package/dist/serialization/resources/modelVersions/index.js +17 -0
- package/dist/serialization/resources/registeredPrompts/client/index.d.ts +1 -0
- package/dist/serialization/resources/registeredPrompts/client/index.js +17 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +18 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +39 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/registeredPrompts/client/requests/index.js +5 -0
- package/dist/serialization/resources/registeredPrompts/index.d.ts +1 -0
- package/dist/serialization/resources/registeredPrompts/index.js +17 -0
- package/dist/serialization/types/ModelVersionCompilePromptResponse.d.ts +12 -0
- package/dist/serialization/types/ModelVersionCompilePromptResponse.js +33 -0
- package/dist/serialization/types/ModelVersionCompiledPrompt.d.ts +13 -0
- package/dist/serialization/types/ModelVersionCompiledPrompt.js +34 -0
- package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
- package/dist/serialization/types/ModelVersionExecConfigRead.js +1 -1
- package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -0
- package/dist/serialization/types/ModelVersionSandboxSnapshot.js +1 -0
- package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +13 -0
- package/dist/serialization/types/PromptTemplateBlockDataRequest.js +34 -0
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +15 -0
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +38 -0
- package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +14 -0
- package/dist/serialization/types/PromptTemplateBlockRequest.js +35 -0
- package/dist/serialization/types/PromptTemplateInputVariable.d.ts +12 -0
- package/dist/serialization/types/PromptTemplateInputVariable.js +33 -0
- package/dist/serialization/types/PromptTemplateInputVariableRequest.d.ts +12 -0
- package/dist/serialization/types/PromptTemplateInputVariableRequest.js +33 -0
- package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +12 -0
- package/dist/serialization/types/RegisterPromptErrorResponse.js +33 -0
- package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +19 -0
- package/dist/serialization/types/RegisterPromptModelParametersRequest.js +40 -0
- package/dist/serialization/types/RegisterPromptPrompt.d.ts +13 -0
- package/dist/serialization/types/RegisterPromptPrompt.js +34 -0
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +14 -0
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +37 -0
- package/dist/serialization/types/RegisterPromptResponse.d.ts +16 -0
- package/dist/serialization/types/RegisterPromptResponse.js +37 -0
- package/dist/serialization/types/RegisteredPromptDeployment.d.ts +14 -0
- package/dist/serialization/types/RegisteredPromptDeployment.js +35 -0
- package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +13 -0
- package/dist/serialization/types/RegisteredPromptModelVersion.js +34 -0
- package/dist/serialization/types/RegisteredPromptSandbox.d.ts +13 -0
- package/dist/serialization/types/RegisteredPromptSandbox.js +34 -0
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +12 -0
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +33 -0
- package/dist/serialization/types/index.d.ts +16 -0
- package/dist/serialization/types/index.js +16 -0
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +5 -1
- package/serialization/resources/modelVersions/client/index.d.ts +1 -0
- package/serialization/resources/modelVersions/client/index.js +17 -0
- package/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.d.ts +12 -0
- package/serialization/resources/modelVersions/client/requests/ModelVersionCompilePromptRequestRequest.js +33 -0
- package/serialization/resources/modelVersions/client/requests/index.d.ts +1 -0
- package/serialization/resources/modelVersions/client/requests/index.js +5 -0
- package/serialization/resources/modelVersions/index.d.ts +1 -0
- package/serialization/resources/modelVersions/index.js +17 -0
- package/serialization/resources/registeredPrompts/client/index.d.ts +1 -0
- package/serialization/resources/registeredPrompts/client/index.js +17 -0
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +18 -0
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +39 -0
- package/serialization/resources/registeredPrompts/client/requests/index.d.ts +1 -0
- package/serialization/resources/registeredPrompts/client/requests/index.js +5 -0
- package/serialization/resources/registeredPrompts/index.d.ts +1 -0
- package/serialization/resources/registeredPrompts/index.js +17 -0
- package/serialization/types/ModelVersionCompilePromptResponse.d.ts +12 -0
- package/serialization/types/ModelVersionCompilePromptResponse.js +33 -0
- package/serialization/types/ModelVersionCompiledPrompt.d.ts +13 -0
- package/serialization/types/ModelVersionCompiledPrompt.js +34 -0
- package/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
- package/serialization/types/ModelVersionExecConfigRead.js +1 -1
- package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -0
- package/serialization/types/ModelVersionSandboxSnapshot.js +1 -0
- package/serialization/types/PromptTemplateBlockDataRequest.d.ts +13 -0
- package/serialization/types/PromptTemplateBlockDataRequest.js +34 -0
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +15 -0
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +38 -0
- package/serialization/types/PromptTemplateBlockRequest.d.ts +14 -0
- package/serialization/types/PromptTemplateBlockRequest.js +35 -0
- package/serialization/types/PromptTemplateInputVariable.d.ts +12 -0
- package/serialization/types/PromptTemplateInputVariable.js +33 -0
- package/serialization/types/PromptTemplateInputVariableRequest.d.ts +12 -0
- package/serialization/types/PromptTemplateInputVariableRequest.js +33 -0
- package/serialization/types/RegisterPromptErrorResponse.d.ts +12 -0
- package/serialization/types/RegisterPromptErrorResponse.js +33 -0
- package/serialization/types/RegisterPromptModelParametersRequest.d.ts +19 -0
- package/serialization/types/RegisterPromptModelParametersRequest.js +40 -0
- package/serialization/types/RegisterPromptPrompt.d.ts +13 -0
- package/serialization/types/RegisterPromptPrompt.js +34 -0
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +14 -0
- package/serialization/types/RegisterPromptPromptInfoRequest.js +37 -0
- package/serialization/types/RegisterPromptResponse.d.ts +16 -0
- package/serialization/types/RegisterPromptResponse.js +37 -0
- package/serialization/types/RegisteredPromptDeployment.d.ts +14 -0
- package/serialization/types/RegisteredPromptDeployment.js +35 -0
- package/serialization/types/RegisteredPromptModelVersion.d.ts +13 -0
- package/serialization/types/RegisteredPromptModelVersion.js +34 -0
- package/serialization/types/RegisteredPromptSandbox.d.ts +13 -0
- package/serialization/types/RegisteredPromptSandbox.js +34 -0
- package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +12 -0
- package/serialization/types/RegisteredPromptSandboxSnapshot.js +33 -0
- package/serialization/types/index.d.ts +16 -0
- package/serialization/types/index.js +16 -0
|
@@ -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.ModelVersionCompiledPrompt = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ModelVersionCompiledPrompt = core.serialization.object({
|
|
32
|
+
text: core.serialization.string(),
|
|
33
|
+
numTokens: core.serialization.property("num_tokens", core.serialization.number()),
|
|
34
|
+
});
|
|
@@ -8,7 +8,7 @@ export declare const ModelVersionExecConfigRead: core.serialization.ObjectSchema
|
|
|
8
8
|
export declare namespace ModelVersionExecConfigRead {
|
|
9
9
|
interface Raw {
|
|
10
10
|
parameters: serializers.ModelVersionExecConfigParameters.Raw;
|
|
11
|
-
input_variables:
|
|
11
|
+
input_variables: serializers.PromptTemplateInputVariable.Raw[];
|
|
12
12
|
prompt_template?: string | null;
|
|
13
13
|
prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
|
|
14
14
|
prompt_syntax_version: number;
|
|
@@ -30,7 +30,7 @@ exports.ModelVersionExecConfigRead = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ModelVersionExecConfigRead = core.serialization.object({
|
|
32
32
|
parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
|
|
33
|
-
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.
|
|
33
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateInputVariable))),
|
|
34
34
|
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
35
35
|
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
|
|
36
36
|
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number()),
|
|
@@ -32,4 +32,5 @@ exports.ModelVersionSandboxSnapshot = core.serialization.object({
|
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
promptIndex: core.serialization.property("prompt_index", core.serialization.number().optional()),
|
|
34
34
|
promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
|
|
35
|
+
sandboxId: core.serialization.property("sandbox_id", core.serialization.string()),
|
|
35
36
|
});
|
|
@@ -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 PromptTemplateBlockDataRequest: core.serialization.ObjectSchema<serializers.PromptTemplateBlockDataRequest.Raw, Vellum.PromptTemplateBlockDataRequest>;
|
|
8
|
+
export declare namespace PromptTemplateBlockDataRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
version: number;
|
|
11
|
+
blocks: serializers.PromptTemplateBlockRequest.Raw[];
|
|
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.PromptTemplateBlockDataRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateBlockDataRequest = core.serialization.object({
|
|
32
|
+
version: core.serialization.number(),
|
|
33
|
+
blocks: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockRequest)),
|
|
34
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 PromptTemplateBlockPropertiesRequest: core.serialization.ObjectSchema<serializers.PromptTemplateBlockPropertiesRequest.Raw, Vellum.PromptTemplateBlockPropertiesRequest>;
|
|
8
|
+
export declare namespace PromptTemplateBlockPropertiesRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
chat_role?: serializers.ChatMessageRole.Raw | null;
|
|
11
|
+
chat_message_unterminated?: boolean | null;
|
|
12
|
+
template?: string | null;
|
|
13
|
+
blocks?: Record<string, unknown>[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptTemplateBlockPropertiesRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateBlockPropertiesRequest = core.serialization.object({
|
|
32
|
+
chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
|
|
33
|
+
chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
|
|
34
|
+
template: core.serialization.string().optional(),
|
|
35
|
+
blocks: core.serialization
|
|
36
|
+
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
37
|
+
.optional(),
|
|
38
|
+
});
|
|
@@ -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 PromptTemplateBlockRequest: core.serialization.ObjectSchema<serializers.PromptTemplateBlockRequest.Raw, Vellum.PromptTemplateBlockRequest>;
|
|
8
|
+
export declare namespace PromptTemplateBlockRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
block_type: serializers.BlockTypeEnum.Raw;
|
|
12
|
+
properties: serializers.PromptTemplateBlockPropertiesRequest.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.PromptTemplateBlockRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateBlockRequest = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
blockType: core.serialization.property("block_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).BlockTypeEnum)),
|
|
34
|
+
properties: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockPropertiesRequest),
|
|
35
|
+
});
|
|
@@ -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 PromptTemplateInputVariable: core.serialization.ObjectSchema<serializers.PromptTemplateInputVariable.Raw, Vellum.PromptTemplateInputVariable>;
|
|
8
|
+
export declare namespace PromptTemplateInputVariable {
|
|
9
|
+
interface Raw {
|
|
10
|
+
key: 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.PromptTemplateInputVariable = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateInputVariable = core.serialization.object({
|
|
32
|
+
key: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -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 PromptTemplateInputVariableRequest: core.serialization.ObjectSchema<serializers.PromptTemplateInputVariableRequest.Raw, Vellum.PromptTemplateInputVariableRequest>;
|
|
8
|
+
export declare namespace PromptTemplateInputVariableRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
key: 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.PromptTemplateInputVariableRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PromptTemplateInputVariableRequest = core.serialization.object({
|
|
32
|
+
key: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -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 RegisterPromptErrorResponse: core.serialization.ObjectSchema<serializers.RegisterPromptErrorResponse.Raw, Vellum.RegisterPromptErrorResponse>;
|
|
8
|
+
export declare namespace RegisterPromptErrorResponse {
|
|
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.RegisterPromptErrorResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.RegisterPromptErrorResponse = core.serialization.object({
|
|
32
|
+
detail: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -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 RegisterPromptModelParametersRequest: core.serialization.ObjectSchema<serializers.RegisterPromptModelParametersRequest.Raw, Vellum.RegisterPromptModelParametersRequest>;
|
|
8
|
+
export declare namespace RegisterPromptModelParametersRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
temperature: number;
|
|
11
|
+
max_tokens: number;
|
|
12
|
+
stop?: string[] | null;
|
|
13
|
+
top_p: number;
|
|
14
|
+
top_k?: number | null;
|
|
15
|
+
frequency_penalty: number;
|
|
16
|
+
presence_penalty: number;
|
|
17
|
+
logit_bias?: Record<string, number | null | undefined> | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.RegisterPromptModelParametersRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.RegisterPromptModelParametersRequest = core.serialization.object({
|
|
32
|
+
temperature: core.serialization.number(),
|
|
33
|
+
maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
|
|
34
|
+
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
35
|
+
topP: core.serialization.property("top_p", core.serialization.number()),
|
|
36
|
+
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
37
|
+
frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
|
|
38
|
+
presencePenalty: core.serialization.property("presence_penalty", core.serialization.number()),
|
|
39
|
+
logitBias: core.serialization.property("logit_bias", core.serialization.record(core.serialization.string(), core.serialization.number().optional()).optional()),
|
|
40
|
+
});
|
|
@@ -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 RegisterPromptPrompt: core.serialization.ObjectSchema<serializers.RegisterPromptPrompt.Raw, Vellum.RegisterPromptPrompt>;
|
|
8
|
+
export declare namespace RegisterPromptPrompt {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
label: 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.RegisterPromptPrompt = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.RegisterPromptPrompt = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
label: core.serialization.string(),
|
|
34
|
+
});
|
|
@@ -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 RegisterPromptPromptInfoRequest: core.serialization.ObjectSchema<serializers.RegisterPromptPromptInfoRequest.Raw, Vellum.RegisterPromptPromptInfoRequest>;
|
|
8
|
+
export declare namespace RegisterPromptPromptInfoRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
prompt_syntax_version?: number | null;
|
|
11
|
+
prompt_block_data?: serializers.PromptTemplateBlockDataRequest.Raw | null;
|
|
12
|
+
input_variables?: serializers.PromptTemplateInputVariableRequest.Raw[] | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.RegisterPromptPromptInfoRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.RegisterPromptPromptInfoRequest = core.serialization.object({
|
|
32
|
+
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number().optional()),
|
|
33
|
+
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockDataRequest).optional()),
|
|
34
|
+
inputVariables: core.serialization.property("input_variables", core.serialization
|
|
35
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateInputVariableRequest))
|
|
36
|
+
.optional()),
|
|
37
|
+
});
|
|
@@ -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 RegisterPromptResponse: core.serialization.ObjectSchema<serializers.RegisterPromptResponse.Raw, Vellum.RegisterPromptResponse>;
|
|
8
|
+
export declare namespace RegisterPromptResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
prompt: serializers.RegisterPromptPrompt.Raw;
|
|
11
|
+
sandbox_snapshot: serializers.RegisteredPromptSandboxSnapshot.Raw;
|
|
12
|
+
sandbox: serializers.RegisteredPromptSandbox.Raw;
|
|
13
|
+
model_version: serializers.RegisteredPromptModelVersion.Raw;
|
|
14
|
+
deployment: serializers.RegisteredPromptDeployment.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.RegisterPromptResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.RegisterPromptResponse = core.serialization.object({
|
|
32
|
+
prompt: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).RegisterPromptPrompt),
|
|
33
|
+
sandboxSnapshot: core.serialization.property("sandbox_snapshot", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).RegisteredPromptSandboxSnapshot)),
|
|
34
|
+
sandbox: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).RegisteredPromptSandbox),
|
|
35
|
+
modelVersion: core.serialization.property("model_version", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).RegisteredPromptModelVersion)),
|
|
36
|
+
deployment: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).RegisteredPromptDeployment),
|
|
37
|
+
});
|
|
@@ -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 RegisteredPromptDeployment: core.serialization.ObjectSchema<serializers.RegisteredPromptDeployment.Raw, Vellum.RegisteredPromptDeployment>;
|
|
8
|
+
export declare namespace RegisteredPromptDeployment {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.RegisteredPromptDeployment = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.RegisteredPromptDeployment = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
label: core.serialization.string(),
|
|
35
|
+
});
|