vellum-ai 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +1 -1
- package/README.md +5 -2
- package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/resources/documents/client/Client.d.ts +1 -1
- package/api/resources/documents/client/Client.js +11 -5
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
- package/api/resources/modelVersions/client/Client.d.ts +1 -1
- package/api/types/ChatMessageRequest.d.ts +8 -0
- package/api/types/ChatMessageRequest.js +5 -0
- package/api/types/{ChatRoleEnum.d.ts → ChatMessageRole.d.ts} +2 -2
- package/api/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
- package/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
- package/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
- package/api/types/GenerateOptionsRequest.d.ts +1 -1
- package/api/types/GenerateRequest.d.ts +3 -0
- package/api/types/GenerateResponse.d.ts +1 -1
- package/api/types/GenerateResult.d.ts +1 -1
- package/api/types/GenerateResultData.d.ts +1 -1
- package/api/types/ModelVersionBuildConfig.d.ts +1 -1
- package/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
- package/api/types/ModelVersionExecConfigRead.d.ts +1 -1
- package/api/types/ModelVersionRead.d.ts +1 -1
- package/api/types/NormalizedLogProbs.d.ts +2 -2
- package/api/types/NormalizedTokenLogProbs.d.ts +2 -2
- package/api/types/PaginatedSlimDocumentList.d.ts +1 -1
- package/api/types/PromptTemplateBlock.d.ts +1 -1
- package/api/types/PromptTemplateBlockData.d.ts +1 -1
- package/api/types/PromptTemplateBlockProperties.d.ts +2 -2
- package/api/types/SearchRequestOptionsRequest.d.ts +1 -1
- package/api/types/SearchResponse.d.ts +1 -1
- package/api/types/SearchResult.d.ts +1 -1
- package/api/types/SlimDocument.d.ts +1 -1
- package/api/types/index.d.ts +2 -1
- package/api/types/index.js +2 -1
- package/core/fetcher/Fetcher.js +1 -1
- package/dist/Client.d.ts +1 -1
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.js +11 -5
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
- package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
- package/dist/api/types/ChatMessageRequest.d.ts +8 -0
- package/dist/api/types/ChatMessageRequest.js +5 -0
- package/dist/api/types/{ChatRoleEnum.d.ts → ChatMessageRole.d.ts} +2 -2
- package/dist/api/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
- package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
- package/dist/api/types/GenerateOptionsRequest.d.ts +1 -1
- package/dist/api/types/GenerateRequest.d.ts +3 -0
- package/dist/api/types/GenerateResponse.d.ts +1 -1
- package/dist/api/types/GenerateResult.d.ts +1 -1
- package/dist/api/types/GenerateResultData.d.ts +1 -1
- package/dist/api/types/ModelVersionBuildConfig.d.ts +1 -1
- package/dist/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
- package/dist/api/types/ModelVersionExecConfigRead.d.ts +1 -1
- package/dist/api/types/ModelVersionRead.d.ts +1 -1
- package/dist/api/types/NormalizedLogProbs.d.ts +2 -2
- package/dist/api/types/NormalizedTokenLogProbs.d.ts +2 -2
- package/dist/api/types/PaginatedSlimDocumentList.d.ts +1 -1
- package/dist/api/types/PromptTemplateBlock.d.ts +1 -1
- package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +2 -2
- package/dist/api/types/SearchRequestOptionsRequest.d.ts +1 -1
- package/dist/api/types/SearchResponse.d.ts +1 -1
- package/dist/api/types/SearchResult.d.ts +1 -1
- package/dist/api/types/SlimDocument.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -1
- package/dist/api/types/index.js +2 -1
- package/dist/core/fetcher/Fetcher.js +1 -1
- package/dist/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/dist/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/serialization/types/BlockTypeEnum.d.ts +1 -1
- package/dist/serialization/types/ChatMessageRequest.d.ts +13 -0
- package/dist/serialization/types/ChatMessageRequest.js +34 -0
- package/dist/serialization/types/ChatMessageRole.d.ts +10 -0
- package/dist/serialization/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
- package/dist/serialization/types/Document.d.ts +1 -1
- package/dist/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/dist/serialization/types/FinishReasonEnum.d.ts +1 -1
- package/dist/serialization/types/GenerateErrorResponse.d.ts +1 -1
- package/dist/serialization/types/GenerateOptionsRequest.d.ts +1 -1
- package/dist/serialization/types/GenerateRequest.d.ts +2 -1
- package/dist/serialization/types/GenerateRequest.js +3 -0
- package/dist/serialization/types/GenerateResponse.d.ts +1 -1
- package/dist/serialization/types/GenerateResult.d.ts +1 -1
- package/dist/serialization/types/GenerateResultData.d.ts +1 -1
- package/dist/serialization/types/GenerateResultError.d.ts +1 -1
- package/dist/serialization/types/IndexingStateEnum.d.ts +1 -1
- package/dist/serialization/types/LogprobsEnum.d.ts +1 -1
- package/dist/serialization/types/ModelTypeEnum.d.ts +1 -1
- package/dist/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
- package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/serialization/types/ModelVersionExecConfigParameters.js +1 -1
- package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
- package/dist/serialization/types/ModelVersionRead.d.ts +1 -1
- package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
- package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
- package/dist/serialization/types/NormalizedLogProbs.d.ts +2 -2
- package/dist/serialization/types/NormalizedLogProbs.js +1 -1
- package/dist/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
- package/dist/serialization/types/NormalizedTokenLogProbs.js +2 -2
- package/dist/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
- package/dist/serialization/types/ProcessingStateEnum.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlock.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
- package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
- package/dist/serialization/types/ProviderEnum.d.ts +1 -1
- package/dist/serialization/types/SearchErrorResponse.d.ts +1 -1
- package/dist/serialization/types/SearchFiltersRequest.d.ts +1 -1
- package/dist/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
- package/dist/serialization/types/SearchResponse.d.ts +1 -1
- package/dist/serialization/types/SearchResult.d.ts +1 -1
- package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
- package/dist/serialization/types/SearchWeightsRequest.d.ts +1 -1
- package/dist/serialization/types/SlimDocument.d.ts +1 -1
- package/dist/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
- package/dist/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/dist/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
- package/dist/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
- package/dist/serialization/types/UploadDocumentResponse.d.ts +1 -1
- package/dist/serialization/types/index.d.ts +2 -1
- package/dist/serialization/types/index.js +2 -1
- package/package.json +2 -3
- package/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/serialization/types/BlockTypeEnum.d.ts +1 -1
- package/serialization/types/ChatMessageRequest.d.ts +13 -0
- package/serialization/types/ChatMessageRequest.js +34 -0
- package/serialization/types/ChatMessageRole.d.ts +10 -0
- package/serialization/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
- package/serialization/types/Document.d.ts +1 -1
- package/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/serialization/types/FinishReasonEnum.d.ts +1 -1
- package/serialization/types/GenerateErrorResponse.d.ts +1 -1
- package/serialization/types/GenerateOptionsRequest.d.ts +1 -1
- package/serialization/types/GenerateRequest.d.ts +2 -1
- package/serialization/types/GenerateRequest.js +3 -0
- package/serialization/types/GenerateResponse.d.ts +1 -1
- package/serialization/types/GenerateResult.d.ts +1 -1
- package/serialization/types/GenerateResultData.d.ts +1 -1
- package/serialization/types/GenerateResultError.d.ts +1 -1
- package/serialization/types/IndexingStateEnum.d.ts +1 -1
- package/serialization/types/LogprobsEnum.d.ts +1 -1
- package/serialization/types/ModelTypeEnum.d.ts +1 -1
- package/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
- package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/serialization/types/ModelVersionExecConfigParameters.js +1 -1
- package/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
- package/serialization/types/ModelVersionRead.d.ts +1 -1
- package/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
- package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
- package/serialization/types/NormalizedLogProbs.d.ts +2 -2
- package/serialization/types/NormalizedLogProbs.js +1 -1
- package/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
- package/serialization/types/NormalizedTokenLogProbs.js +2 -2
- package/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
- package/serialization/types/ProcessingStateEnum.d.ts +1 -1
- package/serialization/types/PromptTemplateBlock.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
- package/serialization/types/PromptTemplateBlockProperties.js +1 -1
- package/serialization/types/ProviderEnum.d.ts +1 -1
- package/serialization/types/SearchErrorResponse.d.ts +1 -1
- package/serialization/types/SearchFiltersRequest.d.ts +1 -1
- package/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
- package/serialization/types/SearchResponse.d.ts +1 -1
- package/serialization/types/SearchResult.d.ts +1 -1
- package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
- package/serialization/types/SearchWeightsRequest.d.ts +1 -1
- package/serialization/types/SlimDocument.d.ts +1 -1
- package/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
- package/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
- package/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
- package/serialization/types/UploadDocumentResponse.d.ts +1 -1
- package/serialization/types/index.d.ts +2 -1
- package/serialization/types/index.js +2 -1
- package/dist/serialization/types/ChatRoleEnum.d.ts +0 -10
- package/serialization/types/ChatRoleEnum.d.ts +0 -10
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
4
5
|
export interface GenerateRequest {
|
|
5
6
|
/** Key/value pairs for each template variable defined in the deployment's prompt. */
|
|
6
7
|
inputValues: Record<string, unknown>;
|
|
8
|
+
/** Optionally provide a list of chat messages that'll be used in place of the special {$chat_history} variable, if included in the prompt. */
|
|
9
|
+
chatHistory?: Vellum.ChatMessageRequest[];
|
|
7
10
|
/** Optionally include a unique identifier for each generation, as represented outside of Vellum. Note that this should generally be a list of length one. */
|
|
8
11
|
externalIds?: string[];
|
|
9
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface GenerateResult {
|
|
6
6
|
/** An object containing the resulting generation. This key will be absent if the LLM provider experienced an error. */
|
|
7
7
|
data?: Vellum.GenerateResultData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface GenerateResultData {
|
|
6
6
|
/** The generated completions. This will generally be a list of length one. */
|
|
7
7
|
completions: Vellum.EnrichedNormalizedCompletion[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface ModelVersionBuildConfig {
|
|
6
6
|
/** The name of the base model used to create this model version, as identified by the LLM provider. */
|
|
7
7
|
baseModel: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface ModelVersionExecConfigRead {
|
|
6
6
|
/** The generation parameters that are passed to the LLM provider at runtime. */
|
|
7
7
|
parameters: Vellum.ModelVersionExecConfigParameters;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface ModelVersionRead {
|
|
6
6
|
/** Vellum-generated ID that uniquely identifies this model version. */
|
|
7
7
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface NormalizedLogProbs {
|
|
6
6
|
tokens: Vellum.NormalizedTokenLogProbs[];
|
|
7
|
-
likelihood
|
|
7
|
+
likelihood?: number;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface PromptTemplateBlock {
|
|
6
6
|
blockType: Vellum.BlockTypeEnum;
|
|
7
7
|
properties: Vellum.PromptTemplateBlockProperties;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface PromptTemplateBlockProperties {
|
|
6
|
-
chatRole?: Vellum.
|
|
6
|
+
chatRole?: Vellum.ChatMessageRole;
|
|
7
7
|
text?: string;
|
|
8
8
|
variableName?: string;
|
|
9
9
|
blocks?: Record<string, unknown>[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface SearchResponse {
|
|
6
6
|
/** The results of the search. Each result represents a chunk that matches the search query. */
|
|
7
7
|
results: Vellum.SearchResult[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import * as Vellum from "..";
|
|
5
5
|
export interface SearchResult {
|
|
6
6
|
/** The document that contains the chunk that matched the search query. */
|
|
7
7
|
document: Vellum.Document;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./BlockTypeEnum";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./ChatMessageRequest";
|
|
3
|
+
export * from "./ChatMessageRole";
|
|
3
4
|
export * from "./Document";
|
|
4
5
|
export * from "./DocumentDocumentToDocumentIndex";
|
|
5
6
|
export * from "./EnrichedNormalizedCompletion";
|
package/dist/api/types/index.js
CHANGED
|
@@ -15,7 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BlockTypeEnum"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./ChatMessageRequest"), exports);
|
|
19
|
+
__exportStar(require("./ChatMessageRole"), exports);
|
|
19
20
|
__exportStar(require("./Document"), exports);
|
|
20
21
|
__exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
|
|
21
22
|
__exportStar(require("./EnrichedNormalizedCompletion"), exports);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../../api";
|
|
6
6
|
import * as core from "../../../core";
|
|
7
7
|
export declare const GenerateBodyRequest: core.serialization.Schema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
|
|
8
8
|
export declare namespace GenerateBodyRequest {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../../api";
|
|
6
6
|
import * as core from "../../../core";
|
|
7
7
|
export declare const SearchRequestBodyRequest: core.serialization.Schema<serializers.SearchRequestBodyRequest.Raw, Vellum.SearchRequestBodyRequest>;
|
|
8
8
|
export declare namespace SearchRequestBodyRequest {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "../..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../../api";
|
|
6
6
|
import * as core from "../../../core";
|
|
7
7
|
export declare const SubmitCompletionActualsRequest: core.serialization.Schema<serializers.SubmitCompletionActualsRequest.Raw, Vellum.SubmitCompletionActualsRequest>;
|
|
8
8
|
export declare namespace SubmitCompletionActualsRequest {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const BlockTypeEnum: core.serialization.Schema<serializers.BlockTypeEnum.Raw, Vellum.BlockTypeEnum>;
|
|
8
8
|
export declare namespace BlockTypeEnum {
|
|
@@ -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 ChatMessageRequest: core.serialization.ObjectSchema<serializers.ChatMessageRequest.Raw, Vellum.ChatMessageRequest>;
|
|
8
|
+
export declare namespace ChatMessageRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text: string;
|
|
11
|
+
role: serializers.ChatMessageRole.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.ChatMessageRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ChatMessageRequest = core.serialization.object({
|
|
32
|
+
text: core.serialization.string(),
|
|
33
|
+
role: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole),
|
|
34
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 ChatMessageRole: core.serialization.Schema<serializers.ChatMessageRole.Raw, Vellum.ChatMessageRole>;
|
|
8
|
+
export declare namespace ChatMessageRole {
|
|
9
|
+
type Raw = "SYSTEM" | "ASSISTANT" | "USER";
|
|
10
|
+
}
|
|
@@ -26,6 +26,6 @@ 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.ChatMessageRole = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.ChatMessageRole = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER"]);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const Document: core.serialization.ObjectSchema<serializers.Document.Raw, Vellum.Document>;
|
|
8
8
|
export declare namespace Document {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const DocumentDocumentToDocumentIndex: core.serialization.ObjectSchema<serializers.DocumentDocumentToDocumentIndex.Raw, Vellum.DocumentDocumentToDocumentIndex>;
|
|
8
8
|
export declare namespace DocumentDocumentToDocumentIndex {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const EnrichedNormalizedCompletion: core.serialization.ObjectSchema<serializers.EnrichedNormalizedCompletion.Raw, Vellum.EnrichedNormalizedCompletion>;
|
|
8
8
|
export declare namespace EnrichedNormalizedCompletion {
|
|
@@ -10,7 +10,7 @@ export declare namespace EnrichedNormalizedCompletion {
|
|
|
10
10
|
id: string;
|
|
11
11
|
external_id?: string | null;
|
|
12
12
|
text: string;
|
|
13
|
-
finish_reason
|
|
13
|
+
finish_reason?: serializers.FinishReasonEnum.Raw | null;
|
|
14
14
|
logprobs?: serializers.NormalizedLogProbs.Raw | null;
|
|
15
15
|
model_version_id: string;
|
|
16
16
|
}
|
|
@@ -32,7 +32,7 @@ exports.EnrichedNormalizedCompletion = core.serialization.object({
|
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
34
|
text: core.serialization.string(),
|
|
35
|
-
finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum)),
|
|
35
|
+
finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum).optional()),
|
|
36
36
|
logprobs: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedLogProbs).optional(),
|
|
37
37
|
modelVersionId: core.serialization.property("model_version_id", core.serialization.string()),
|
|
38
38
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const FinishReasonEnum: core.serialization.Schema<serializers.FinishReasonEnum.Raw, Vellum.FinishReasonEnum>;
|
|
8
8
|
export declare namespace FinishReasonEnum {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateErrorResponse: core.serialization.ObjectSchema<serializers.GenerateErrorResponse.Raw, Vellum.GenerateErrorResponse>;
|
|
8
8
|
export declare namespace GenerateErrorResponse {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateOptionsRequest: core.serialization.ObjectSchema<serializers.GenerateOptionsRequest.Raw, Vellum.GenerateOptionsRequest>;
|
|
8
8
|
export declare namespace GenerateOptionsRequest {
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateRequest: core.serialization.ObjectSchema<serializers.GenerateRequest.Raw, Vellum.GenerateRequest>;
|
|
8
8
|
export declare namespace GenerateRequest {
|
|
9
9
|
interface Raw {
|
|
10
10
|
input_values: Record<string, unknown>;
|
|
11
|
+
chat_history?: serializers.ChatMessageRequest.Raw[] | null;
|
|
11
12
|
external_ids?: string[] | null;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -30,5 +30,8 @@ exports.GenerateRequest = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.GenerateRequest = core.serialization.object({
|
|
32
32
|
inputValues: core.serialization.property("input_values", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
|
|
33
|
+
chatHistory: core.serialization.property("chat_history", core.serialization
|
|
34
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
|
|
35
|
+
.optional()),
|
|
33
36
|
externalIds: core.serialization.property("external_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
34
37
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateResponse: core.serialization.ObjectSchema<serializers.GenerateResponse.Raw, Vellum.GenerateResponse>;
|
|
8
8
|
export declare namespace GenerateResponse {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateResult: core.serialization.ObjectSchema<serializers.GenerateResult.Raw, Vellum.GenerateResult>;
|
|
8
8
|
export declare namespace GenerateResult {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateResultData: core.serialization.ObjectSchema<serializers.GenerateResultData.Raw, Vellum.GenerateResultData>;
|
|
8
8
|
export declare namespace GenerateResultData {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const GenerateResultError: core.serialization.ObjectSchema<serializers.GenerateResultError.Raw, Vellum.GenerateResultError>;
|
|
8
8
|
export declare namespace GenerateResultError {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const IndexingStateEnum: core.serialization.Schema<serializers.IndexingStateEnum.Raw, Vellum.IndexingStateEnum>;
|
|
8
8
|
export declare namespace IndexingStateEnum {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const LogprobsEnum: core.serialization.Schema<serializers.LogprobsEnum.Raw, Vellum.LogprobsEnum>;
|
|
8
8
|
export declare namespace LogprobsEnum {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelTypeEnum: core.serialization.Schema<serializers.ModelTypeEnum.Raw, Vellum.ModelTypeEnum>;
|
|
8
8
|
export declare namespace ModelTypeEnum {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelVersionBuildConfig: core.serialization.ObjectSchema<serializers.ModelVersionBuildConfig.Raw, Vellum.ModelVersionBuildConfig>;
|
|
8
8
|
export declare namespace ModelVersionBuildConfig {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelVersionExecConfigParameters: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigParameters.Raw, Vellum.ModelVersionExecConfigParameters>;
|
|
8
8
|
export declare namespace ModelVersionExecConfigParameters {
|
|
9
9
|
interface Raw {
|
|
10
10
|
temperature: number;
|
|
11
11
|
max_tokens: number;
|
|
12
|
-
stop
|
|
12
|
+
stop?: string[] | null;
|
|
13
13
|
top_p: number;
|
|
14
14
|
top_k?: number | null;
|
|
15
15
|
frequency_penalty: number;
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.ModelVersionExecConfigParameters = core.serialization.object({
|
|
32
32
|
temperature: core.serialization.number(),
|
|
33
33
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
|
|
34
|
-
stop: core.serialization.list(core.serialization.string()),
|
|
34
|
+
stop: core.serialization.list(core.serialization.string()).optional(),
|
|
35
35
|
topP: core.serialization.property("top_p", core.serialization.number()),
|
|
36
36
|
topK: core.serialization.property("top_k", core.serialization.number().optional()),
|
|
37
37
|
frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelVersionExecConfigRead: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigRead.Raw, Vellum.ModelVersionExecConfigRead>;
|
|
8
8
|
export declare namespace ModelVersionExecConfigRead {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelVersionRead: core.serialization.ObjectSchema<serializers.ModelVersionRead.Raw, Vellum.ModelVersionRead>;
|
|
8
8
|
export declare namespace ModelVersionRead {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelVersionReadStatusEnum: core.serialization.Schema<serializers.ModelVersionReadStatusEnum.Raw, Vellum.ModelVersionReadStatusEnum>;
|
|
8
8
|
export declare namespace ModelVersionReadStatusEnum {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ModelVersionSandboxSnapshot: core.serialization.ObjectSchema<serializers.ModelVersionSandboxSnapshot.Raw, Vellum.ModelVersionSandboxSnapshot>;
|
|
8
8
|
export declare namespace ModelVersionSandboxSnapshot {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as serializers from "..";
|
|
5
|
-
import
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const NormalizedLogProbs: core.serialization.ObjectSchema<serializers.NormalizedLogProbs.Raw, Vellum.NormalizedLogProbs>;
|
|
8
8
|
export declare namespace NormalizedLogProbs {
|
|
9
9
|
interface Raw {
|
|
10
10
|
tokens: serializers.NormalizedTokenLogProbs.Raw[];
|
|
11
|
-
likelihood
|
|
11
|
+
likelihood?: number | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -30,5 +30,5 @@ exports.NormalizedLogProbs = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.NormalizedLogProbs = core.serialization.object({
|
|
32
32
|
tokens: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedTokenLogProbs)),
|
|
33
|
-
likelihood: core.serialization.number(),
|
|
33
|
+
likelihood: core.serialization.number().optional(),
|
|
34
34
|
});
|