vellum-ai 0.9.5 → 0.9.7
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/.mock/definition/__package__.yml +92 -110
- package/.mock/definition/adHoc.yml +7 -7
- package/.mock/openapi/openapi.yml +120 -165
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.d.ts +1 -1
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -21
- package/api/resources/adHoc/client/requests/index.d.ts +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- 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/metricDefinitions/client/Client.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 +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/{dist/api/types/AdHocExpandMetaRequest.d.ts → api/types/AdHocExpandMeta.d.ts} +1 -1
- package/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
- package/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
- package/api/types/PromptRequestInput.d.ts +5 -0
- package/{dist/api/types/PromptRequestJsonInputRequest.d.ts → api/types/PromptRequestJsonInput.d.ts} +1 -1
- package/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
- package/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
- package/api/types/index.d.ts +7 -23
- package/api/types/index.js +7 -23
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.d.ts +1 -1
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -21
- package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- 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/metricDefinitions/client/Client.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 +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/{api/types/AdHocExpandMetaRequest.d.ts → dist/api/types/AdHocExpandMeta.d.ts} +1 -1
- package/dist/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
- package/dist/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
- package/dist/api/types/PromptRequestInput.d.ts +5 -0
- package/{api/types/PromptRequestJsonInputRequest.d.ts → dist/api/types/PromptRequestJsonInput.d.ts} +1 -1
- package/dist/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
- package/dist/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
- package/dist/api/types/index.d.ts +7 -23
- package/dist/api/types/index.js +7 -23
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
- package/{serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -14
- package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/adHoc/client/requests/index.js +3 -3
- package/dist/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
- package/dist/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
- package/dist/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
- package/dist/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
- package/dist/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
- package/dist/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
- package/dist/serialization/types/PromptRequestInput.d.ts +13 -0
- package/dist/serialization/types/{JinjaPromptBlockPropertiesRequest.js → PromptRequestInput.js} +9 -6
- package/{serialization/types/PromptRequestJsonInputRequest.d.ts → dist/serialization/types/PromptRequestJsonInput.d.ts} +2 -2
- package/{serialization/types/PromptRequestJsonInputRequest.js → dist/serialization/types/PromptRequestJsonInput.js} +2 -2
- package/dist/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +2 -2
- package/{serialization/types/PromptRequestStringInputRequest.js → dist/serialization/types/PromptRequestStringInput.js} +2 -2
- package/dist/serialization/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +2 -2
- package/dist/serialization/types/{PromptSettingsRequest.js → PromptSettings.js} +2 -2
- package/dist/serialization/types/index.d.ts +7 -23
- package/dist/serialization/types/index.js +7 -23
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +8 -15
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
- package/{dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -14
- package/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
- package/serialization/resources/adHoc/client/requests/index.js +3 -3
- package/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
- package/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
- package/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
- package/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
- package/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
- package/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
- package/serialization/types/PromptRequestInput.d.ts +13 -0
- package/{dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js → serialization/types/PromptRequestInput.js} +9 -2
- package/{dist/serialization/types/PromptRequestJsonInputRequest.d.ts → serialization/types/PromptRequestJsonInput.d.ts} +2 -2
- package/{dist/serialization/types/PromptRequestJsonInputRequest.js → serialization/types/PromptRequestJsonInput.js} +2 -2
- package/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +2 -2
- package/{dist/serialization/types/PromptRequestStringInputRequest.js → serialization/types/PromptRequestStringInput.js} +2 -2
- package/serialization/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +2 -2
- package/serialization/types/{PromptSettingsRequest.js → PromptSettings.js} +2 -2
- package/serialization/types/index.d.ts +7 -23
- package/serialization/types/index.js +7 -23
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -13
- package/api/types/ChatMessagePromptBlockRequest.d.ts +0 -14
- package/api/types/EphemeralPromptCacheConfigRequest.d.ts +0 -7
- package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -7
- package/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -15
- package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -14
- package/api/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -8
- package/api/types/JinjaPromptBlockRequest.d.ts +0 -14
- package/api/types/PlainTextPromptBlockRequest.d.ts +0 -14
- package/api/types/PromptBlockRequest.d.ts +0 -5
- package/api/types/PromptBlockState.d.ts +0 -12
- package/api/types/PromptBlockState.js +0 -10
- package/api/types/PromptRequestInputRequest.d.ts +0 -5
- package/api/types/PromptRequestStringInputRequest.js +0 -5
- package/api/types/PromptSettingsRequest.js +0 -5
- package/api/types/RichTextChildBlockRequest.d.ts +0 -5
- package/api/types/RichTextChildBlockRequest.js +0 -5
- package/api/types/RichTextPromptBlockRequest.d.ts +0 -14
- package/api/types/RichTextPromptBlockRequest.js +0 -5
- package/api/types/VariablePromptBlockRequest.d.ts +0 -14
- package/api/types/VariablePromptBlockRequest.js +0 -5
- package/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
- package/api/types/VellumVariableExtensionsRequest.js +0 -5
- package/api/types/VellumVariableRequest.d.ts +0 -12
- package/api/types/VellumVariableRequest.js +0 -5
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +0 -5
- package/dist/api/types/AdHocExpandMetaRequest.js +0 -5
- package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -13
- package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.js +0 -5
- package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +0 -14
- package/dist/api/types/ChatMessagePromptBlockRequest.js +0 -5
- package/dist/api/types/EphemeralPromptCacheConfigRequest.d.ts +0 -7
- package/dist/api/types/EphemeralPromptCacheConfigRequest.js +0 -5
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -7
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.js +0 -5
- package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -15
- package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -5
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -14
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.js +0 -5
- package/dist/api/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -8
- package/dist/api/types/JinjaPromptBlockPropertiesRequest.js +0 -5
- package/dist/api/types/JinjaPromptBlockRequest.d.ts +0 -14
- package/dist/api/types/JinjaPromptBlockRequest.js +0 -5
- package/dist/api/types/PlainTextPromptBlockRequest.d.ts +0 -14
- package/dist/api/types/PlainTextPromptBlockRequest.js +0 -5
- package/dist/api/types/PromptBlockRequest.d.ts +0 -5
- package/dist/api/types/PromptBlockRequest.js +0 -5
- package/dist/api/types/PromptBlockState.d.ts +0 -12
- package/dist/api/types/PromptBlockState.js +0 -10
- package/dist/api/types/PromptParametersRequest.js +0 -5
- package/dist/api/types/PromptRequestChatHistoryInputRequest.js +0 -5
- package/dist/api/types/PromptRequestInputRequest.d.ts +0 -5
- package/dist/api/types/PromptRequestInputRequest.js +0 -5
- package/dist/api/types/PromptRequestJsonInputRequest.js +0 -5
- package/dist/api/types/PromptRequestStringInputRequest.js +0 -5
- package/dist/api/types/PromptSettingsRequest.js +0 -5
- package/dist/api/types/RichTextChildBlockRequest.d.ts +0 -5
- package/dist/api/types/RichTextChildBlockRequest.js +0 -5
- package/dist/api/types/RichTextPromptBlockRequest.d.ts +0 -14
- package/dist/api/types/RichTextPromptBlockRequest.js +0 -5
- package/dist/api/types/VariablePromptBlockRequest.d.ts +0 -14
- package/dist/api/types/VariablePromptBlockRequest.js +0 -5
- package/dist/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
- package/dist/api/types/VellumVariableExtensionsRequest.js +0 -5
- package/dist/api/types/VellumVariableRequest.d.ts +0 -12
- package/dist/api/types/VellumVariableRequest.js +0 -5
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
- package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -16
- package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.js +0 -38
- package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/ChatMessagePromptBlockRequest.js +0 -40
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +0 -13
- package/dist/serialization/types/EphemeralPromptCacheConfigRequest.js +0 -34
- package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -10
- package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -16
- package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -37
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -19
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -40
- package/dist/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -14
- package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +0 -19
- package/dist/serialization/types/JinjaPromptBlockRequest.js +0 -40
- package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/PlainTextPromptBlockRequest.js +0 -39
- package/dist/serialization/types/PromptBlockRequest.d.ts +0 -14
- package/dist/serialization/types/PromptBlockRequest.js +0 -42
- package/dist/serialization/types/PromptBlockState.d.ts +0 -10
- package/dist/serialization/types/PromptBlockState.js +0 -31
- package/dist/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
- package/dist/serialization/types/PromptRequestInputRequest.d.ts +0 -13
- package/dist/serialization/types/PromptRequestInputRequest.js +0 -38
- package/dist/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
- package/dist/serialization/types/RichTextChildBlockRequest.js +0 -33
- package/dist/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
- package/dist/serialization/types/RichTextPromptBlockRequest.js +0 -40
- package/dist/serialization/types/VariablePromptBlockRequest.d.ts +0 -18
- package/dist/serialization/types/VariablePromptBlockRequest.js +0 -39
- package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
- package/dist/serialization/types/VellumVariableExtensionsRequest.js +0 -33
- package/dist/serialization/types/VellumVariableRequest.d.ts +0 -19
- package/dist/serialization/types/VellumVariableRequest.js +0 -41
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
- package/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -16
- package/serialization/types/ChatMessagePromptBlockPropertiesRequest.js +0 -38
- package/serialization/types/ChatMessagePromptBlockRequest.d.ts +0 -18
- package/serialization/types/ChatMessagePromptBlockRequest.js +0 -40
- package/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +0 -13
- package/serialization/types/EphemeralPromptCacheConfigRequest.js +0 -34
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -10
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +0 -31
- package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -16
- package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -37
- package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -19
- package/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -40
- package/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -14
- package/serialization/types/JinjaPromptBlockPropertiesRequest.js +0 -35
- package/serialization/types/JinjaPromptBlockRequest.d.ts +0 -19
- package/serialization/types/JinjaPromptBlockRequest.js +0 -40
- package/serialization/types/PlainTextPromptBlockRequest.d.ts +0 -18
- package/serialization/types/PlainTextPromptBlockRequest.js +0 -39
- package/serialization/types/PromptBlockRequest.d.ts +0 -14
- package/serialization/types/PromptBlockRequest.js +0 -42
- package/serialization/types/PromptBlockState.d.ts +0 -10
- package/serialization/types/PromptBlockState.js +0 -31
- package/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
- package/serialization/types/PromptRequestInputRequest.d.ts +0 -13
- package/serialization/types/PromptRequestInputRequest.js +0 -38
- package/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
- package/serialization/types/RichTextChildBlockRequest.js +0 -33
- package/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
- package/serialization/types/RichTextPromptBlockRequest.js +0 -40
- package/serialization/types/VariablePromptBlockRequest.d.ts +0 -18
- package/serialization/types/VariablePromptBlockRequest.js +0 -39
- package/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
- package/serialization/types/VellumVariableExtensionsRequest.js +0 -33
- package/serialization/types/VellumVariableRequest.d.ts +0 -19
- package/serialization/types/VellumVariableRequest.js +0 -41
- /package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.js → AdHocExecutePromptStream.js} +0 -0
- /package/api/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +0 -0
- /package/api/types/{ChatMessagePromptBlockPropertiesRequest.js → PromptParameters.js} +0 -0
- /package/api/types/{ChatMessagePromptBlockRequest.js → PromptRequestChatHistoryInput.js} +0 -0
- /package/api/types/{EphemeralPromptCacheConfigRequest.js → PromptRequestInput.js} +0 -0
- /package/api/types/{EphemeralPromptCacheConfigTypeEnum.js → PromptRequestJsonInput.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → PromptRequestStringInput.js} +0 -0
- /package/api/types/{FunctionDefinitionPromptBlockRequest.js → PromptSettings.js} +0 -0
- /package/{api/types/JinjaPromptBlockPropertiesRequest.js → dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +0 -0
- /package/{api/types/JinjaPromptBlockRequest.js → dist/api/types/AdHocExpandMeta.js} +0 -0
- /package/{api/types/PlainTextPromptBlockRequest.js → dist/api/types/PromptParameters.js} +0 -0
- /package/{api/types/PromptBlockRequest.js → dist/api/types/PromptRequestChatHistoryInput.js} +0 -0
- /package/{api/types/PromptParametersRequest.js → dist/api/types/PromptRequestInput.js} +0 -0
- /package/{api/types/PromptRequestChatHistoryInputRequest.js → dist/api/types/PromptRequestJsonInput.js} +0 -0
- /package/{api/types/PromptRequestInputRequest.js → dist/api/types/PromptRequestStringInput.js} +0 -0
- /package/{api/types/PromptRequestJsonInputRequest.js → dist/api/types/PromptSettings.js} +0 -0
|
@@ -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 PromptParameters: core.serialization.ObjectSchema<serializers.PromptParameters.Raw, Vellum.PromptParameters>;
|
|
8
|
+
export declare namespace PromptParameters {
|
|
9
9
|
interface Raw {
|
|
10
10
|
stop?: string[] | null;
|
|
11
11
|
temperature?: number | null;
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptParameters = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptParameters = core.serialization.object({
|
|
32
32
|
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
33
33
|
temperature: core.serialization.number().optional(),
|
|
34
34
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { ChatMessage } from "./ChatMessage";
|
|
8
|
+
export declare const PromptRequestChatHistoryInput: core.serialization.ObjectSchema<serializers.PromptRequestChatHistoryInput.Raw, Vellum.PromptRequestChatHistoryInput>;
|
|
9
|
+
export declare namespace PromptRequestChatHistoryInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
key: string;
|
|
12
|
+
type: "CHAT_HISTORY";
|
|
13
|
+
value: ChatMessage.Raw[];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestChatHistoryInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
32
|
-
exports.
|
|
31
|
+
const ChatMessage_1 = require("./ChatMessage");
|
|
32
|
+
exports.PromptRequestChatHistoryInput = core.serialization.object({
|
|
33
33
|
key: core.serialization.string(),
|
|
34
34
|
type: core.serialization.stringLiteral("CHAT_HISTORY"),
|
|
35
|
-
value: core.serialization.list(
|
|
35
|
+
value: core.serialization.list(ChatMessage_1.ChatMessage),
|
|
36
36
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { PromptRequestStringInput } from "./PromptRequestStringInput";
|
|
8
|
+
import { PromptRequestJsonInput } from "./PromptRequestJsonInput";
|
|
9
|
+
import { PromptRequestChatHistoryInput } from "./PromptRequestChatHistoryInput";
|
|
10
|
+
export declare const PromptRequestInput: core.serialization.Schema<serializers.PromptRequestInput.Raw, Vellum.PromptRequestInput>;
|
|
11
|
+
export declare namespace PromptRequestInput {
|
|
12
|
+
type Raw = PromptRequestStringInput.Raw | PromptRequestJsonInput.Raw | PromptRequestChatHistoryInput.Raw;
|
|
13
|
+
}
|
|
@@ -26,6 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
|
|
31
|
+
const PromptRequestStringInput_1 = require("./PromptRequestStringInput");
|
|
32
|
+
const PromptRequestJsonInput_1 = require("./PromptRequestJsonInput");
|
|
33
|
+
const PromptRequestChatHistoryInput_1 = require("./PromptRequestChatHistoryInput");
|
|
34
|
+
exports.PromptRequestInput = core.serialization.undiscriminatedUnion([
|
|
35
|
+
PromptRequestStringInput_1.PromptRequestStringInput,
|
|
36
|
+
PromptRequestJsonInput_1.PromptRequestJsonInput,
|
|
37
|
+
PromptRequestChatHistoryInput_1.PromptRequestChatHistoryInput,
|
|
38
|
+
]);
|
|
@@ -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 PromptRequestJsonInput: core.serialization.ObjectSchema<serializers.PromptRequestJsonInput.Raw, Vellum.PromptRequestJsonInput>;
|
|
8
|
+
export declare namespace PromptRequestJsonInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
key: string;
|
|
11
11
|
type: "JSON";
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestJsonInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptRequestJsonInput = core.serialization.object({
|
|
32
32
|
key: core.serialization.string(),
|
|
33
33
|
type: core.serialization.stringLiteral("JSON"),
|
|
34
34
|
value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
package/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts}
RENAMED
|
@@ -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 PromptRequestStringInput: core.serialization.ObjectSchema<serializers.PromptRequestStringInput.Raw, Vellum.PromptRequestStringInput>;
|
|
8
|
+
export declare namespace PromptRequestStringInput {
|
|
9
9
|
interface Raw {
|
|
10
10
|
key: string;
|
|
11
11
|
type: "STRING";
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptRequestStringInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptRequestStringInput = core.serialization.object({
|
|
32
32
|
key: core.serialization.string(),
|
|
33
33
|
type: core.serialization.stringLiteral("STRING"),
|
|
34
34
|
value: core.serialization.string(),
|
|
@@ -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 PromptSettings: core.serialization.ObjectSchema<serializers.PromptSettings.Raw, Vellum.PromptSettings>;
|
|
8
|
+
export declare namespace PromptSettings {
|
|
9
9
|
interface Raw {
|
|
10
10
|
timeout?: number | null;
|
|
11
11
|
}
|
|
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.PromptSettings = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.PromptSettings = core.serialization.object({
|
|
32
32
|
timeout: core.serialization.number().optional(),
|
|
33
33
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./AdHocExecutePromptEvent";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./AdHocExpandMeta";
|
|
3
3
|
export * from "./AdHocFulfilledPromptExecutionMeta";
|
|
4
4
|
export * from "./AdHocInitiatedPromptExecutionMeta";
|
|
5
5
|
export * from "./AdHocRejectedPromptExecutionMeta";
|
|
@@ -34,8 +34,6 @@ export * from "./ChatHistoryVellumValueRequest";
|
|
|
34
34
|
export * from "./ChatMessage";
|
|
35
35
|
export * from "./ChatMessageContent";
|
|
36
36
|
export * from "./ChatMessageContentRequest";
|
|
37
|
-
export * from "./ChatMessagePromptBlockPropertiesRequest";
|
|
38
|
-
export * from "./ChatMessagePromptBlockRequest";
|
|
39
37
|
export * from "./ChatMessageRequest";
|
|
40
38
|
export * from "./ChatMessageRole";
|
|
41
39
|
export * from "./CodeExecutionNodeArrayResult";
|
|
@@ -79,8 +77,6 @@ export * from "./EnrichedNormalizedCompletion";
|
|
|
79
77
|
export * from "./EntityStatus";
|
|
80
78
|
export * from "./EntityVisibility";
|
|
81
79
|
export * from "./EnvironmentEnum";
|
|
82
|
-
export * from "./EphemeralPromptCacheConfigRequest";
|
|
83
|
-
export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
84
80
|
export * from "./ErrorInputRequest";
|
|
85
81
|
export * from "./ErrorVariableValue";
|
|
86
82
|
export * from "./ErrorVellumValue";
|
|
@@ -129,8 +125,6 @@ export * from "./FunctionCallRequest";
|
|
|
129
125
|
export * from "./FunctionCallVariableValue";
|
|
130
126
|
export * from "./FunctionCallVellumValue";
|
|
131
127
|
export * from "./FunctionCallVellumValueRequest";
|
|
132
|
-
export * from "./FunctionDefinitionPromptBlockPropertiesRequest";
|
|
133
|
-
export * from "./FunctionDefinitionPromptBlockRequest";
|
|
134
128
|
export * from "./GenerateOptionsRequest";
|
|
135
129
|
export * from "./GenerateRequest";
|
|
136
130
|
export * from "./GenerateResponse";
|
|
@@ -164,8 +158,6 @@ export * from "./InstructorVectorizerConfig";
|
|
|
164
158
|
export * from "./InstructorVectorizerConfigRequest";
|
|
165
159
|
export * from "./IterationStateEnum";
|
|
166
160
|
export * from "./JsonInputRequest";
|
|
167
|
-
export * from "./JinjaPromptBlockPropertiesRequest";
|
|
168
|
-
export * from "./JinjaPromptBlockRequest";
|
|
169
161
|
export * from "./JsonVariableValue";
|
|
170
162
|
export * from "./JsonVellumValue";
|
|
171
163
|
export * from "./JsonVellumValueRequest";
|
|
@@ -249,12 +241,9 @@ export * from "./PaginatedTestSuiteTestCaseList";
|
|
|
249
241
|
export * from "./PaginatedWorkflowReleaseTagReadList";
|
|
250
242
|
export * from "./PdfSearchResultMetaSource";
|
|
251
243
|
export * from "./PdfSearchResultMetaSourceRequest";
|
|
252
|
-
export * from "./PlainTextPromptBlockRequest";
|
|
253
244
|
export * from "./Price";
|
|
254
245
|
export * from "./ProcessingFailureReasonEnum";
|
|
255
246
|
export * from "./ProcessingStateEnum";
|
|
256
|
-
export * from "./PromptBlockRequest";
|
|
257
|
-
export * from "./PromptBlockState";
|
|
258
247
|
export * from "./PromptDeploymentExpandMetaRequest";
|
|
259
248
|
export * from "./PromptDeploymentInputRequest";
|
|
260
249
|
export * from "./PromptExecutionMeta";
|
|
@@ -262,12 +251,12 @@ export * from "./PromptNodeExecutionMeta";
|
|
|
262
251
|
export * from "./PromptNodeResult";
|
|
263
252
|
export * from "./PromptNodeResultData";
|
|
264
253
|
export * from "./PromptOutput";
|
|
265
|
-
export * from "./
|
|
266
|
-
export * from "./
|
|
267
|
-
export * from "./
|
|
268
|
-
export * from "./
|
|
269
|
-
export * from "./
|
|
270
|
-
export * from "./
|
|
254
|
+
export * from "./PromptParameters";
|
|
255
|
+
export * from "./PromptRequestChatHistoryInput";
|
|
256
|
+
export * from "./PromptRequestInput";
|
|
257
|
+
export * from "./PromptRequestJsonInput";
|
|
258
|
+
export * from "./PromptRequestStringInput";
|
|
259
|
+
export * from "./PromptSettings";
|
|
271
260
|
export * from "./RawPromptExecutionOverridesRequest";
|
|
272
261
|
export * from "./ReductoChunkerConfig";
|
|
273
262
|
export * from "./ReductoChunkerConfigRequest";
|
|
@@ -281,8 +270,6 @@ export * from "./RejectedPromptExecutionMeta";
|
|
|
281
270
|
export * from "./RejectedWorkflowNodeResultEvent";
|
|
282
271
|
export * from "./ReleaseTagSource";
|
|
283
272
|
export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
284
|
-
export * from "./RichTextChildBlockRequest";
|
|
285
|
-
export * from "./RichTextPromptBlockRequest";
|
|
286
273
|
export * from "./SandboxScenario";
|
|
287
274
|
export * from "./ScenarioInput";
|
|
288
275
|
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
@@ -416,7 +403,6 @@ export * from "./TokenOverlappingWindowChunkingRequest";
|
|
|
416
403
|
export * from "./UnitEnum";
|
|
417
404
|
export * from "./UploadDocumentResponse";
|
|
418
405
|
export * from "./UpsertTestSuiteTestCaseRequest";
|
|
419
|
-
export * from "./VariablePromptBlockRequest";
|
|
420
406
|
export * from "./VellumAudio";
|
|
421
407
|
export * from "./VellumAudioRequest";
|
|
422
408
|
export * from "./VellumError";
|
|
@@ -431,8 +417,6 @@ export * from "./VellumValueLogicalExpressionRequest";
|
|
|
431
417
|
export * from "./VellumValueRequest";
|
|
432
418
|
export * from "./VellumVariable";
|
|
433
419
|
export * from "./VellumVariableExtensions";
|
|
434
|
-
export * from "./VellumVariableExtensionsRequest";
|
|
435
|
-
export * from "./VellumVariableRequest";
|
|
436
420
|
export * from "./VellumVariableType";
|
|
437
421
|
export * from "./WorkflowDeploymentRead";
|
|
438
422
|
export * from "./WorkflowEventError";
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AdHocExecutePromptEvent"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./AdHocExpandMeta"), exports);
|
|
19
19
|
__exportStar(require("./AdHocFulfilledPromptExecutionMeta"), exports);
|
|
20
20
|
__exportStar(require("./AdHocInitiatedPromptExecutionMeta"), exports);
|
|
21
21
|
__exportStar(require("./AdHocRejectedPromptExecutionMeta"), exports);
|
|
@@ -50,8 +50,6 @@ __exportStar(require("./ChatHistoryVellumValueRequest"), exports);
|
|
|
50
50
|
__exportStar(require("./ChatMessage"), exports);
|
|
51
51
|
__exportStar(require("./ChatMessageContent"), exports);
|
|
52
52
|
__exportStar(require("./ChatMessageContentRequest"), exports);
|
|
53
|
-
__exportStar(require("./ChatMessagePromptBlockPropertiesRequest"), exports);
|
|
54
|
-
__exportStar(require("./ChatMessagePromptBlockRequest"), exports);
|
|
55
53
|
__exportStar(require("./ChatMessageRequest"), exports);
|
|
56
54
|
__exportStar(require("./ChatMessageRole"), exports);
|
|
57
55
|
__exportStar(require("./CodeExecutionNodeArrayResult"), exports);
|
|
@@ -95,8 +93,6 @@ __exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
|
95
93
|
__exportStar(require("./EntityStatus"), exports);
|
|
96
94
|
__exportStar(require("./EntityVisibility"), exports);
|
|
97
95
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
98
|
-
__exportStar(require("./EphemeralPromptCacheConfigRequest"), exports);
|
|
99
|
-
__exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
|
|
100
96
|
__exportStar(require("./ErrorInputRequest"), exports);
|
|
101
97
|
__exportStar(require("./ErrorVariableValue"), exports);
|
|
102
98
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
@@ -145,8 +141,6 @@ __exportStar(require("./FunctionCallRequest"), exports);
|
|
|
145
141
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
146
142
|
__exportStar(require("./FunctionCallVellumValue"), exports);
|
|
147
143
|
__exportStar(require("./FunctionCallVellumValueRequest"), exports);
|
|
148
|
-
__exportStar(require("./FunctionDefinitionPromptBlockPropertiesRequest"), exports);
|
|
149
|
-
__exportStar(require("./FunctionDefinitionPromptBlockRequest"), exports);
|
|
150
144
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
151
145
|
__exportStar(require("./GenerateRequest"), exports);
|
|
152
146
|
__exportStar(require("./GenerateResponse"), exports);
|
|
@@ -180,8 +174,6 @@ __exportStar(require("./InstructorVectorizerConfig"), exports);
|
|
|
180
174
|
__exportStar(require("./InstructorVectorizerConfigRequest"), exports);
|
|
181
175
|
__exportStar(require("./IterationStateEnum"), exports);
|
|
182
176
|
__exportStar(require("./JsonInputRequest"), exports);
|
|
183
|
-
__exportStar(require("./JinjaPromptBlockPropertiesRequest"), exports);
|
|
184
|
-
__exportStar(require("./JinjaPromptBlockRequest"), exports);
|
|
185
177
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
186
178
|
__exportStar(require("./JsonVellumValue"), exports);
|
|
187
179
|
__exportStar(require("./JsonVellumValueRequest"), exports);
|
|
@@ -265,12 +257,9 @@ __exportStar(require("./PaginatedTestSuiteTestCaseList"), exports);
|
|
|
265
257
|
__exportStar(require("./PaginatedWorkflowReleaseTagReadList"), exports);
|
|
266
258
|
__exportStar(require("./PdfSearchResultMetaSource"), exports);
|
|
267
259
|
__exportStar(require("./PdfSearchResultMetaSourceRequest"), exports);
|
|
268
|
-
__exportStar(require("./PlainTextPromptBlockRequest"), exports);
|
|
269
260
|
__exportStar(require("./Price"), exports);
|
|
270
261
|
__exportStar(require("./ProcessingFailureReasonEnum"), exports);
|
|
271
262
|
__exportStar(require("./ProcessingStateEnum"), exports);
|
|
272
|
-
__exportStar(require("./PromptBlockRequest"), exports);
|
|
273
|
-
__exportStar(require("./PromptBlockState"), exports);
|
|
274
263
|
__exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
|
|
275
264
|
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
276
265
|
__exportStar(require("./PromptExecutionMeta"), exports);
|
|
@@ -278,12 +267,12 @@ __exportStar(require("./PromptNodeExecutionMeta"), exports);
|
|
|
278
267
|
__exportStar(require("./PromptNodeResult"), exports);
|
|
279
268
|
__exportStar(require("./PromptNodeResultData"), exports);
|
|
280
269
|
__exportStar(require("./PromptOutput"), exports);
|
|
281
|
-
__exportStar(require("./
|
|
282
|
-
__exportStar(require("./
|
|
283
|
-
__exportStar(require("./
|
|
284
|
-
__exportStar(require("./
|
|
285
|
-
__exportStar(require("./
|
|
286
|
-
__exportStar(require("./
|
|
270
|
+
__exportStar(require("./PromptParameters"), exports);
|
|
271
|
+
__exportStar(require("./PromptRequestChatHistoryInput"), exports);
|
|
272
|
+
__exportStar(require("./PromptRequestInput"), exports);
|
|
273
|
+
__exportStar(require("./PromptRequestJsonInput"), exports);
|
|
274
|
+
__exportStar(require("./PromptRequestStringInput"), exports);
|
|
275
|
+
__exportStar(require("./PromptSettings"), exports);
|
|
287
276
|
__exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
|
|
288
277
|
__exportStar(require("./ReductoChunkerConfig"), exports);
|
|
289
278
|
__exportStar(require("./ReductoChunkerConfigRequest"), exports);
|
|
@@ -297,8 +286,6 @@ __exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
|
297
286
|
__exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
|
|
298
287
|
__exportStar(require("./ReleaseTagSource"), exports);
|
|
299
288
|
__exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
|
|
300
|
-
__exportStar(require("./RichTextChildBlockRequest"), exports);
|
|
301
|
-
__exportStar(require("./RichTextPromptBlockRequest"), exports);
|
|
302
289
|
__exportStar(require("./SandboxScenario"), exports);
|
|
303
290
|
__exportStar(require("./ScenarioInput"), exports);
|
|
304
291
|
__exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
|
|
@@ -432,7 +419,6 @@ __exportStar(require("./TokenOverlappingWindowChunkingRequest"), exports);
|
|
|
432
419
|
__exportStar(require("./UnitEnum"), exports);
|
|
433
420
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
434
421
|
__exportStar(require("./UpsertTestSuiteTestCaseRequest"), exports);
|
|
435
|
-
__exportStar(require("./VariablePromptBlockRequest"), exports);
|
|
436
422
|
__exportStar(require("./VellumAudio"), exports);
|
|
437
423
|
__exportStar(require("./VellumAudioRequest"), exports);
|
|
438
424
|
__exportStar(require("./VellumError"), exports);
|
|
@@ -447,8 +433,6 @@ __exportStar(require("./VellumValueLogicalExpressionRequest"), exports);
|
|
|
447
433
|
__exportStar(require("./VellumValueRequest"), exports);
|
|
448
434
|
__exportStar(require("./VellumVariable"), exports);
|
|
449
435
|
__exportStar(require("./VellumVariableExtensions"), exports);
|
|
450
|
-
__exportStar(require("./VellumVariableExtensionsRequest"), exports);
|
|
451
|
-
__exportStar(require("./VellumVariableRequest"), exports);
|
|
452
436
|
__exportStar(require("./VellumVariableType"), exports);
|
|
453
437
|
__exportStar(require("./WorkflowDeploymentRead"), exports);
|
|
454
438
|
__exportStar(require("./WorkflowEventError"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.9.
|
|
1
|
+
export declare const SDK_VERSION = "0.9.7";
|
package/version.js
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* The properties of a ChatMessagePromptTemplateBlock
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatMessagePromptBlockPropertiesRequest {
|
|
9
|
-
blocks: Vellum.PromptBlockRequest[];
|
|
10
|
-
chatRole?: Vellum.ChatMessageRole;
|
|
11
|
-
chatSource?: string;
|
|
12
|
-
chatMessageUnterminated?: boolean;
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* A block that represents a chat message in a prompt template.
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatMessagePromptBlockRequest {
|
|
9
|
-
blockType: "CHAT_MESSAGE";
|
|
10
|
-
properties: Vellum.ChatMessagePromptBlockPropertiesRequest;
|
|
11
|
-
id: string;
|
|
12
|
-
state?: Vellum.PromptBlockState;
|
|
13
|
-
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface FunctionDefinitionPromptBlockPropertiesRequest {
|
|
5
|
-
/** The name identifying the function. */
|
|
6
|
-
functionName?: string;
|
|
7
|
-
/** A description to help guide the model when to invoke this function. */
|
|
8
|
-
functionDescription?: string;
|
|
9
|
-
/** An OpenAPI specification of parameters that are supported by this function. */
|
|
10
|
-
functionParameters?: Record<string, unknown>;
|
|
11
|
-
/** Set this option to true to force the model to return a function call of this function. */
|
|
12
|
-
functionForced?: boolean;
|
|
13
|
-
/** Set this option to use strict schema decoding when available. */
|
|
14
|
-
functionStrict?: boolean;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* A block that represents a function definition in a prompt template.
|
|
7
|
-
*/
|
|
8
|
-
export interface FunctionDefinitionPromptBlockRequest {
|
|
9
|
-
blockType: "FUNCTION_DEFINITION";
|
|
10
|
-
properties: Vellum.FunctionDefinitionPromptBlockPropertiesRequest;
|
|
11
|
-
id: string;
|
|
12
|
-
state?: Vellum.PromptBlockState;
|
|
13
|
-
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* A block of Jinja template code that is used to generate a prompt
|
|
7
|
-
*/
|
|
8
|
-
export interface JinjaPromptBlockRequest {
|
|
9
|
-
blockType: "JINJA";
|
|
10
|
-
properties: Vellum.JinjaPromptBlockPropertiesRequest;
|
|
11
|
-
id: string;
|
|
12
|
-
state?: Vellum.PromptBlockState;
|
|
13
|
-
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* A block that holds a plain text string value.
|
|
7
|
-
*/
|
|
8
|
-
export interface PlainTextPromptBlockRequest {
|
|
9
|
-
blockType: "PLAIN_TEXT";
|
|
10
|
-
text: string;
|
|
11
|
-
id: string;
|
|
12
|
-
state?: Vellum.PromptBlockState;
|
|
13
|
-
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
export declare type PromptBlockRequest = Vellum.JinjaPromptBlockRequest | Vellum.ChatMessagePromptBlockRequest | Vellum.FunctionDefinitionPromptBlockRequest | Vellum.VariablePromptBlockRequest | Vellum.RichTextPromptBlockRequest;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* - `ENABLED` - ENABLED
|
|
6
|
-
* - `DISABLED` - DISABLED
|
|
7
|
-
*/
|
|
8
|
-
export declare type PromptBlockState = "ENABLED" | "DISABLED";
|
|
9
|
-
export declare const PromptBlockState: {
|
|
10
|
-
readonly Enabled: "ENABLED";
|
|
11
|
-
readonly Disabled: "DISABLED";
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PromptBlockState = void 0;
|
|
7
|
-
exports.PromptBlockState = {
|
|
8
|
-
Enabled: "ENABLED",
|
|
9
|
-
Disabled: "DISABLED",
|
|
10
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
export declare type PromptRequestInputRequest = Vellum.PromptRequestStringInputRequest | Vellum.PromptRequestJsonInputRequest | Vellum.PromptRequestChatHistoryInputRequest;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* A block that includes a combination of plain text and variable blocks.
|
|
7
|
-
*/
|
|
8
|
-
export interface RichTextPromptBlockRequest {
|
|
9
|
-
blockType: "RICH_TEXT";
|
|
10
|
-
blocks: Vellum.RichTextChildBlockRequest[];
|
|
11
|
-
id: string;
|
|
12
|
-
state?: Vellum.PromptBlockState;
|
|
13
|
-
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "../index";
|
|
5
|
-
/**
|
|
6
|
-
* A block that represents a variable in a prompt template.
|
|
7
|
-
*/
|
|
8
|
-
export interface VariablePromptBlockRequest {
|
|
9
|
-
blockType: "VARIABLE";
|
|
10
|
-
id: string;
|
|
11
|
-
state?: Vellum.PromptBlockState;
|
|
12
|
-
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
13
|
-
inputVariableId: string;
|
|
14
|
-
}
|