vellum-ai 0.4.0 → 0.4.1
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 +0 -3
- package/Client.js +17 -22
- package/api/errors/index.d.ts +0 -1
- package/api/errors/index.js +0 -1
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.js +2 -2
- package/api/types/index.d.ts +0 -19
- package/api/types/index.js +0 -19
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +17 -22
- package/dist/api/errors/index.d.ts +0 -1
- package/dist/api/errors/index.js +0 -1
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
- package/dist/api/types/index.d.ts +0 -19
- package/dist/api/types/index.js +0 -19
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/types/index.d.ts +0 -19
- package/dist/serialization/types/index.js +0 -19
- package/package.json +1 -1
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/types/index.d.ts +0 -19
- package/serialization/types/index.js +0 -19
- package/api/errors/ConflictError.d.ts +0 -8
- package/api/errors/ConflictError.js +0 -41
- package/api/resources/registeredPrompts/client/Client.d.ts +0 -56
- package/api/resources/registeredPrompts/client/Client.js +0 -149
- package/api/resources/registeredPrompts/client/index.d.ts +0 -1
- package/api/resources/registeredPrompts/client/index.js +0 -17
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -60
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -5
- package/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/api/resources/registeredPrompts/client/requests/index.js +0 -2
- package/api/resources/registeredPrompts/index.d.ts +0 -1
- package/api/resources/registeredPrompts/index.js +0 -17
- package/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -12
- package/api/types/ChatHistoryPromptTemplateBlockRequest.js +0 -5
- package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -13
- package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -5
- package/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -12
- package/api/types/ChatMessagePromptTemplateBlockRequest.js +0 -5
- package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -13
- package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -5
- package/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -12
- package/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -5
- package/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -8
- package/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -5
- package/api/types/JinjaPromptTemplateBlockRequest.d.ts +0 -12
- package/api/types/JinjaPromptTemplateBlockRequest.js +0 -5
- package/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
- package/api/types/PromptTemplateBlockDataRequest.js +0 -5
- package/api/types/PromptTemplateBlockRequest.d.ts +0 -19
- package/api/types/PromptTemplateBlockRequest.js +0 -5
- package/api/types/RegisterPromptErrorResponse.d.ts +0 -7
- package/api/types/RegisterPromptErrorResponse.js +0 -5
- package/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
- package/api/types/RegisterPromptModelParametersRequest.js +0 -5
- package/api/types/RegisterPromptPrompt.d.ts +0 -9
- package/api/types/RegisterPromptPrompt.js +0 -5
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
- package/api/types/RegisterPromptPromptInfoRequest.js +0 -5
- package/api/types/RegisterPromptResponse.d.ts +0 -18
- package/api/types/RegisterPromptResponse.js +0 -5
- package/api/types/RegisteredPromptDeployment.d.ts +0 -11
- package/api/types/RegisteredPromptDeployment.js +0 -5
- package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
- package/api/types/RegisteredPromptInputVariableRequest.js +0 -5
- package/api/types/RegisteredPromptModelVersion.d.ts +0 -9
- package/api/types/RegisteredPromptModelVersion.js +0 -5
- package/api/types/RegisteredPromptSandbox.d.ts +0 -9
- package/api/types/RegisteredPromptSandbox.js +0 -5
- package/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
- package/api/types/RegisteredPromptSandboxSnapshot.js +0 -5
- package/dist/api/errors/ConflictError.d.ts +0 -8
- package/dist/api/errors/ConflictError.js +0 -41
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -56
- package/dist/api/resources/registeredPrompts/client/Client.js +0 -149
- package/dist/api/resources/registeredPrompts/client/index.d.ts +0 -1
- package/dist/api/resources/registeredPrompts/client/index.js +0 -17
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -60
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -5
- package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/dist/api/resources/registeredPrompts/client/requests/index.js +0 -2
- package/dist/api/resources/registeredPrompts/index.d.ts +0 -1
- package/dist/api/resources/registeredPrompts/index.js +0 -17
- package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -12
- package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.js +0 -5
- package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -13
- package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -5
- package/dist/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -12
- package/dist/api/types/ChatMessagePromptTemplateBlockRequest.js +0 -5
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -13
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -5
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -12
- package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -5
- package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -8
- package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -5
- package/dist/api/types/JinjaPromptTemplateBlockRequest.d.ts +0 -12
- package/dist/api/types/JinjaPromptTemplateBlockRequest.js +0 -5
- package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
- package/dist/api/types/PromptTemplateBlockDataRequest.js +0 -5
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -19
- package/dist/api/types/PromptTemplateBlockRequest.js +0 -5
- package/dist/api/types/RegisterPromptErrorResponse.d.ts +0 -7
- package/dist/api/types/RegisterPromptErrorResponse.js +0 -5
- package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
- package/dist/api/types/RegisterPromptModelParametersRequest.js +0 -5
- package/dist/api/types/RegisterPromptPrompt.d.ts +0 -9
- package/dist/api/types/RegisterPromptPrompt.js +0 -5
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
- package/dist/api/types/RegisterPromptPromptInfoRequest.js +0 -5
- package/dist/api/types/RegisterPromptResponse.d.ts +0 -18
- package/dist/api/types/RegisterPromptResponse.js +0 -5
- package/dist/api/types/RegisteredPromptDeployment.d.ts +0 -11
- package/dist/api/types/RegisteredPromptDeployment.js +0 -5
- package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
- package/dist/api/types/RegisteredPromptInputVariableRequest.js +0 -5
- package/dist/api/types/RegisteredPromptModelVersion.d.ts +0 -9
- package/dist/api/types/RegisteredPromptModelVersion.js +0 -5
- package/dist/api/types/RegisteredPromptSandbox.d.ts +0 -9
- package/dist/api/types/RegisteredPromptSandbox.js +0 -5
- package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
- package/dist/api/types/RegisteredPromptSandboxSnapshot.js +0 -5
- package/dist/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
- package/dist/serialization/resources/registeredPrompts/client/index.js +0 -17
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
- package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
- package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
- package/dist/serialization/resources/registeredPrompts/index.d.ts +0 -1
- package/dist/serialization/resources/registeredPrompts/index.js +0 -17
- package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -15
- package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +0 -36
- package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -16
- package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -46
- package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -15
- package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.js +0 -45
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -15
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -36
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -16
- package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -37
- package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -14
- package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -35
- package/dist/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +0 -16
- package/dist/serialization/types/JinjaPromptTemplateBlockRequest.js +0 -37
- package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
- package/dist/serialization/types/PromptTemplateBlockDataRequest.js +0 -43
- package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +0 -25
- package/dist/serialization/types/PromptTemplateBlockRequest.js +0 -53
- package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
- package/dist/serialization/types/RegisterPromptErrorResponse.js +0 -33
- package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
- package/dist/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
- package/dist/serialization/types/RegisterPromptPrompt.d.ts +0 -13
- package/dist/serialization/types/RegisterPromptPrompt.js +0 -34
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
- package/dist/serialization/types/RegisterPromptResponse.d.ts +0 -22
- package/dist/serialization/types/RegisterPromptResponse.js +0 -43
- package/dist/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
- package/dist/serialization/types/RegisteredPromptDeployment.js +0 -35
- package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
- package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +0 -36
- package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
- package/dist/serialization/types/RegisteredPromptModelVersion.js +0 -34
- package/dist/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
- package/dist/serialization/types/RegisteredPromptSandbox.js +0 -34
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
- package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
- package/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
- package/serialization/resources/registeredPrompts/client/index.js +0 -17
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
- package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
- package/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
- package/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
- package/serialization/resources/registeredPrompts/index.d.ts +0 -1
- package/serialization/resources/registeredPrompts/index.js +0 -17
- package/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -15
- package/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +0 -36
- package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -16
- package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -46
- package/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -15
- package/serialization/types/ChatMessagePromptTemplateBlockRequest.js +0 -45
- package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -15
- package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -36
- package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -16
- package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -37
- package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -14
- package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -35
- package/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +0 -16
- package/serialization/types/JinjaPromptTemplateBlockRequest.js +0 -37
- package/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
- package/serialization/types/PromptTemplateBlockDataRequest.js +0 -43
- package/serialization/types/PromptTemplateBlockRequest.d.ts +0 -25
- package/serialization/types/PromptTemplateBlockRequest.js +0 -53
- package/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
- package/serialization/types/RegisterPromptErrorResponse.js +0 -33
- package/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
- package/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
- package/serialization/types/RegisterPromptPrompt.d.ts +0 -13
- package/serialization/types/RegisterPromptPrompt.js +0 -34
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
- package/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
- package/serialization/types/RegisterPromptResponse.d.ts +0 -22
- package/serialization/types/RegisterPromptResponse.js +0 -43
- package/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
- package/serialization/types/RegisteredPromptDeployment.js +0 -35
- package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
- package/serialization/types/RegisteredPromptInputVariableRequest.js +0 -36
- package/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
- package/serialization/types/RegisteredPromptModelVersion.js +0 -34
- package/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
- package/serialization/types/RegisteredPromptSandbox.js +0 -34
- package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
- package/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
/**
|
|
6
|
-
* A block of that represents a chat history variable in a prompt template.
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatHistoryPromptTemplateBlockRequest {
|
|
9
|
-
properties: Record<string, unknown>;
|
|
10
|
-
id: string;
|
|
11
|
-
state?: Vellum.PromptTemplateBlockState;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
/**
|
|
6
|
-
* The properties of a ChatMessagePromptTemplateBlock
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatMessagePromptTemplateBlockPropertiesRequest {
|
|
9
|
-
blocks: Vellum.PromptTemplateBlockRequest[];
|
|
10
|
-
chatRole?: Vellum.ChatMessageRole;
|
|
11
|
-
chatSource?: string;
|
|
12
|
-
chatMessageUnterminated?: boolean;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
/**
|
|
6
|
-
* A block of that represents a chat message in a prompt template.
|
|
7
|
-
*/
|
|
8
|
-
export interface ChatMessagePromptTemplateBlockRequest {
|
|
9
|
-
properties: Vellum.ChatMessagePromptTemplateBlockPropertiesRequest;
|
|
10
|
-
id: string;
|
|
11
|
-
state?: Vellum.PromptTemplateBlockState;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface FunctionDefinitionPromptTemplateBlockPropertiesRequest {
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
/**
|
|
6
|
-
* A block of that represents a function definition in a prompt template.
|
|
7
|
-
*/
|
|
8
|
-
export interface FunctionDefinitionPromptTemplateBlockRequest {
|
|
9
|
-
id: string;
|
|
10
|
-
state?: Vellum.PromptTemplateBlockState;
|
|
11
|
-
properties: Vellum.FunctionDefinitionPromptTemplateBlockPropertiesRequest;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
/**
|
|
6
|
-
* A block of Jinja template code that is used to generate a prompt
|
|
7
|
-
*/
|
|
8
|
-
export interface JinjaPromptTemplateBlockRequest {
|
|
9
|
-
id: string;
|
|
10
|
-
state?: Vellum.PromptTemplateBlockState;
|
|
11
|
-
properties: Vellum.JinjaPromptTemplateBlockPropertiesRequest;
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
export declare type PromptTemplateBlockRequest = Vellum.PromptTemplateBlockRequest.Jinja | Vellum.PromptTemplateBlockRequest.ChatHistory | Vellum.PromptTemplateBlockRequest.ChatMessage | Vellum.PromptTemplateBlockRequest.FunctionDefinition;
|
|
6
|
-
export declare namespace PromptTemplateBlockRequest {
|
|
7
|
-
interface Jinja extends Vellum.JinjaPromptTemplateBlockRequest {
|
|
8
|
-
blockType: "JINJA";
|
|
9
|
-
}
|
|
10
|
-
interface ChatHistory extends Vellum.ChatHistoryPromptTemplateBlockRequest {
|
|
11
|
-
blockType: "CHAT_HISTORY";
|
|
12
|
-
}
|
|
13
|
-
interface ChatMessage extends Vellum.ChatMessagePromptTemplateBlockRequest {
|
|
14
|
-
blockType: "CHAT_MESSAGE";
|
|
15
|
-
}
|
|
16
|
-
interface FunctionDefinition extends Vellum.FunctionDefinitionPromptTemplateBlockRequest {
|
|
17
|
-
blockType: "FUNCTION_DEFINITION";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface RegisterPromptModelParametersRequest {
|
|
5
|
-
temperature: number;
|
|
6
|
-
maxTokens: number;
|
|
7
|
-
stop?: string[];
|
|
8
|
-
topP: number;
|
|
9
|
-
topK?: number;
|
|
10
|
-
frequencyPenalty: number;
|
|
11
|
-
presencePenalty: number;
|
|
12
|
-
logitBias?: Record<string, number | undefined>;
|
|
13
|
-
customParameters?: Record<string, unknown>;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
export interface RegisterPromptPromptInfoRequest {
|
|
6
|
-
promptBlockData: Vellum.PromptTemplateBlockDataRequest;
|
|
7
|
-
/** The input variables specified in the prompt template. */
|
|
8
|
-
inputVariables: Vellum.RegisteredPromptInputVariableRequest[];
|
|
9
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Vellum from "..";
|
|
5
|
-
export interface RegisterPromptResponse {
|
|
6
|
-
/** Information about the generated prompt */
|
|
7
|
-
prompt: Vellum.RegisterPromptPrompt;
|
|
8
|
-
/** Information about the generated sandbox snapshot */
|
|
9
|
-
sandboxSnapshot: Vellum.RegisteredPromptSandboxSnapshot;
|
|
10
|
-
/** Information about the generated sandbox */
|
|
11
|
-
sandbox: Vellum.RegisteredPromptSandbox;
|
|
12
|
-
/** Information about the generated model version */
|
|
13
|
-
modelVersion: Vellum.RegisteredPromptModelVersion;
|
|
14
|
-
/** The ID of the generated prompt version */
|
|
15
|
-
promptVersionId: string;
|
|
16
|
-
/** Information about the generated deployment */
|
|
17
|
-
deployment: Vellum.RegisteredPromptDeployment;
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface RegisteredPromptDeployment {
|
|
5
|
-
/** The ID of the generated deployment. */
|
|
6
|
-
id: string;
|
|
7
|
-
/** A uniquely-identifying name for generated deployment. */
|
|
8
|
-
name: string;
|
|
9
|
-
/** A human-friendly label for the generated deployment. */
|
|
10
|
-
label: string;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface RegisteredPromptModelVersion {
|
|
5
|
-
/** The ID of the generated model version. */
|
|
6
|
-
id: string;
|
|
7
|
-
/** A human-friendly label for the generated model version. */
|
|
8
|
-
label: string;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Vellum from "..";
|
|
6
|
-
export declare class ConflictError extends errors.VellumError {
|
|
7
|
-
constructor(body: Vellum.RegisterPromptErrorResponse);
|
|
8
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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.ConflictError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
31
|
-
class ConflictError extends errors.VellumError {
|
|
32
|
-
constructor(body) {
|
|
33
|
-
super({
|
|
34
|
-
message: "ConflictError",
|
|
35
|
-
statusCode: 409,
|
|
36
|
-
body: body,
|
|
37
|
-
});
|
|
38
|
-
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.ConflictError = ConflictError;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments";
|
|
5
|
-
import * as core from "../../../../core";
|
|
6
|
-
import * as Vellum from "../../..";
|
|
7
|
-
export declare namespace RegisteredPrompts {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey: core.Supplier<string>;
|
|
11
|
-
}
|
|
12
|
-
interface RequestOptions {
|
|
13
|
-
timeoutInSeconds?: number;
|
|
14
|
-
maxRetries?: number;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare class RegisteredPrompts {
|
|
18
|
-
protected readonly _options: RegisteredPrompts.Options;
|
|
19
|
-
constructor(_options: RegisteredPrompts.Options);
|
|
20
|
-
/**
|
|
21
|
-
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
22
|
-
* partners, not directly by Vellum users.
|
|
23
|
-
*
|
|
24
|
-
* Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
|
|
25
|
-
* @throws {@link Vellum.BadRequestError}
|
|
26
|
-
* @throws {@link Vellum.NotFoundError}
|
|
27
|
-
* @throws {@link Vellum.ConflictError}
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* await vellum.registeredPrompts.registerPrompt({
|
|
31
|
-
* label: "label",
|
|
32
|
-
* name: "name",
|
|
33
|
-
* prompt: {
|
|
34
|
-
* promptBlockData: {
|
|
35
|
-
* blocks: [],
|
|
36
|
-
* version: 1
|
|
37
|
-
* },
|
|
38
|
-
* inputVariables: [{
|
|
39
|
-
* key: "key"
|
|
40
|
-
* }]
|
|
41
|
-
* },
|
|
42
|
-
* model: "model",
|
|
43
|
-
* parameters: {
|
|
44
|
-
* temperature: 1.1,
|
|
45
|
-
* maxTokens: 1,
|
|
46
|
-
* topP: 1.1,
|
|
47
|
-
* frequencyPenalty: 1.1,
|
|
48
|
-
* presencePenalty: 1.1
|
|
49
|
-
* }
|
|
50
|
-
* })
|
|
51
|
-
*/
|
|
52
|
-
registerPrompt(request: Vellum.RegisterPromptRequestRequest, requestOptions?: RegisteredPrompts.RequestOptions): Promise<Vellum.RegisterPromptResponse>;
|
|
53
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
54
|
-
X_API_KEY: string;
|
|
55
|
-
}>;
|
|
56
|
-
}
|