vellum-ai 0.0.5 → 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.
Files changed (187) hide show
  1. package/Client.d.ts +1 -1
  2. package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  3. package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  4. package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  5. package/api/resources/documents/client/Client.d.ts +1 -1
  6. package/api/resources/documents/client/Client.js +11 -5
  7. package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
  8. package/api/resources/modelVersions/client/Client.d.ts +1 -1
  9. package/api/types/ChatMessageRequest.d.ts +8 -0
  10. package/api/types/ChatMessageRequest.js +5 -0
  11. package/api/types/{ChatRoleEnum.d.ts → ChatMessageRole.d.ts} +2 -2
  12. package/api/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  13. package/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  14. package/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
  15. package/api/types/GenerateOptionsRequest.d.ts +1 -1
  16. package/api/types/GenerateRequest.d.ts +3 -0
  17. package/api/types/GenerateResponse.d.ts +1 -1
  18. package/api/types/GenerateResult.d.ts +1 -1
  19. package/api/types/GenerateResultData.d.ts +1 -1
  20. package/api/types/ModelVersionBuildConfig.d.ts +1 -1
  21. package/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
  22. package/api/types/ModelVersionExecConfigRead.d.ts +1 -1
  23. package/api/types/ModelVersionRead.d.ts +1 -1
  24. package/api/types/NormalizedLogProbs.d.ts +2 -2
  25. package/api/types/NormalizedTokenLogProbs.d.ts +2 -2
  26. package/api/types/PaginatedSlimDocumentList.d.ts +1 -1
  27. package/api/types/PromptTemplateBlock.d.ts +1 -1
  28. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  29. package/api/types/PromptTemplateBlockProperties.d.ts +2 -2
  30. package/api/types/SearchRequestOptionsRequest.d.ts +1 -1
  31. package/api/types/SearchResponse.d.ts +1 -1
  32. package/api/types/SearchResult.d.ts +1 -1
  33. package/api/types/SlimDocument.d.ts +1 -1
  34. package/api/types/index.d.ts +2 -1
  35. package/api/types/index.js +2 -1
  36. package/dist/Client.d.ts +1 -1
  37. package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  38. package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  39. package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  40. package/dist/api/resources/documents/client/Client.d.ts +1 -1
  41. package/dist/api/resources/documents/client/Client.js +11 -5
  42. package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +3 -3
  43. package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
  44. package/dist/api/types/ChatMessageRequest.d.ts +8 -0
  45. package/dist/api/types/ChatMessageRequest.js +5 -0
  46. package/dist/api/types/{ChatRoleEnum.d.ts → ChatMessageRole.d.ts} +2 -2
  47. package/dist/api/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  48. package/dist/api/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  49. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +2 -2
  50. package/dist/api/types/GenerateOptionsRequest.d.ts +1 -1
  51. package/dist/api/types/GenerateRequest.d.ts +3 -0
  52. package/dist/api/types/GenerateResponse.d.ts +1 -1
  53. package/dist/api/types/GenerateResult.d.ts +1 -1
  54. package/dist/api/types/GenerateResultData.d.ts +1 -1
  55. package/dist/api/types/ModelVersionBuildConfig.d.ts +1 -1
  56. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +1 -1
  57. package/dist/api/types/ModelVersionExecConfigRead.d.ts +1 -1
  58. package/dist/api/types/ModelVersionRead.d.ts +1 -1
  59. package/dist/api/types/NormalizedLogProbs.d.ts +2 -2
  60. package/dist/api/types/NormalizedTokenLogProbs.d.ts +2 -2
  61. package/dist/api/types/PaginatedSlimDocumentList.d.ts +1 -1
  62. package/dist/api/types/PromptTemplateBlock.d.ts +1 -1
  63. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  64. package/dist/api/types/PromptTemplateBlockProperties.d.ts +2 -2
  65. package/dist/api/types/SearchRequestOptionsRequest.d.ts +1 -1
  66. package/dist/api/types/SearchResponse.d.ts +1 -1
  67. package/dist/api/types/SearchResult.d.ts +1 -1
  68. package/dist/api/types/SlimDocument.d.ts +1 -1
  69. package/dist/api/types/index.d.ts +2 -1
  70. package/dist/api/types/index.js +2 -1
  71. package/dist/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
  72. package/dist/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  73. package/dist/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  74. package/dist/serialization/types/BlockTypeEnum.d.ts +1 -1
  75. package/dist/serialization/types/ChatMessageRequest.d.ts +13 -0
  76. package/dist/serialization/types/ChatMessageRequest.js +34 -0
  77. package/dist/serialization/types/ChatMessageRole.d.ts +10 -0
  78. package/dist/serialization/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  79. package/dist/serialization/types/Document.d.ts +1 -1
  80. package/dist/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  81. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
  82. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  83. package/dist/serialization/types/FinishReasonEnum.d.ts +1 -1
  84. package/dist/serialization/types/GenerateErrorResponse.d.ts +1 -1
  85. package/dist/serialization/types/GenerateOptionsRequest.d.ts +1 -1
  86. package/dist/serialization/types/GenerateRequest.d.ts +2 -1
  87. package/dist/serialization/types/GenerateRequest.js +3 -0
  88. package/dist/serialization/types/GenerateResponse.d.ts +1 -1
  89. package/dist/serialization/types/GenerateResult.d.ts +1 -1
  90. package/dist/serialization/types/GenerateResultData.d.ts +1 -1
  91. package/dist/serialization/types/GenerateResultError.d.ts +1 -1
  92. package/dist/serialization/types/IndexingStateEnum.d.ts +1 -1
  93. package/dist/serialization/types/LogprobsEnum.d.ts +1 -1
  94. package/dist/serialization/types/ModelTypeEnum.d.ts +1 -1
  95. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
  96. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  97. package/dist/serialization/types/ModelVersionExecConfigParameters.js +1 -1
  98. package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
  99. package/dist/serialization/types/ModelVersionRead.d.ts +1 -1
  100. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
  101. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  102. package/dist/serialization/types/NormalizedLogProbs.d.ts +2 -2
  103. package/dist/serialization/types/NormalizedLogProbs.js +1 -1
  104. package/dist/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
  105. package/dist/serialization/types/NormalizedTokenLogProbs.js +2 -2
  106. package/dist/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
  107. package/dist/serialization/types/ProcessingStateEnum.d.ts +1 -1
  108. package/dist/serialization/types/PromptTemplateBlock.d.ts +1 -1
  109. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  110. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
  111. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
  112. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  113. package/dist/serialization/types/SearchErrorResponse.d.ts +1 -1
  114. package/dist/serialization/types/SearchFiltersRequest.d.ts +1 -1
  115. package/dist/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
  116. package/dist/serialization/types/SearchResponse.d.ts +1 -1
  117. package/dist/serialization/types/SearchResult.d.ts +1 -1
  118. package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  119. package/dist/serialization/types/SearchWeightsRequest.d.ts +1 -1
  120. package/dist/serialization/types/SlimDocument.d.ts +1 -1
  121. package/dist/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
  122. package/dist/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
  123. package/dist/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
  124. package/dist/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
  125. package/dist/serialization/types/UploadDocumentResponse.d.ts +1 -1
  126. package/dist/serialization/types/index.d.ts +2 -1
  127. package/dist/serialization/types/index.js +2 -1
  128. package/package.json +2 -3
  129. package/serialization/client/requests/GenerateBodyRequest.d.ts +1 -1
  130. package/serialization/client/requests/SearchRequestBodyRequest.d.ts +1 -1
  131. package/serialization/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
  132. package/serialization/types/BlockTypeEnum.d.ts +1 -1
  133. package/serialization/types/ChatMessageRequest.d.ts +13 -0
  134. package/serialization/types/ChatMessageRequest.js +34 -0
  135. package/serialization/types/ChatMessageRole.d.ts +10 -0
  136. package/serialization/types/{ChatRoleEnum.js → ChatMessageRole.js} +2 -2
  137. package/serialization/types/Document.d.ts +1 -1
  138. package/serialization/types/DocumentDocumentToDocumentIndex.d.ts +1 -1
  139. package/serialization/types/EnrichedNormalizedCompletion.d.ts +2 -2
  140. package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  141. package/serialization/types/FinishReasonEnum.d.ts +1 -1
  142. package/serialization/types/GenerateErrorResponse.d.ts +1 -1
  143. package/serialization/types/GenerateOptionsRequest.d.ts +1 -1
  144. package/serialization/types/GenerateRequest.d.ts +2 -1
  145. package/serialization/types/GenerateRequest.js +3 -0
  146. package/serialization/types/GenerateResponse.d.ts +1 -1
  147. package/serialization/types/GenerateResult.d.ts +1 -1
  148. package/serialization/types/GenerateResultData.d.ts +1 -1
  149. package/serialization/types/GenerateResultError.d.ts +1 -1
  150. package/serialization/types/IndexingStateEnum.d.ts +1 -1
  151. package/serialization/types/LogprobsEnum.d.ts +1 -1
  152. package/serialization/types/ModelTypeEnum.d.ts +1 -1
  153. package/serialization/types/ModelVersionBuildConfig.d.ts +1 -1
  154. package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  155. package/serialization/types/ModelVersionExecConfigParameters.js +1 -1
  156. package/serialization/types/ModelVersionExecConfigRead.d.ts +1 -1
  157. package/serialization/types/ModelVersionRead.d.ts +1 -1
  158. package/serialization/types/ModelVersionReadStatusEnum.d.ts +1 -1
  159. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  160. package/serialization/types/NormalizedLogProbs.d.ts +2 -2
  161. package/serialization/types/NormalizedLogProbs.js +1 -1
  162. package/serialization/types/NormalizedTokenLogProbs.d.ts +3 -3
  163. package/serialization/types/NormalizedTokenLogProbs.js +2 -2
  164. package/serialization/types/PaginatedSlimDocumentList.d.ts +1 -1
  165. package/serialization/types/ProcessingStateEnum.d.ts +1 -1
  166. package/serialization/types/PromptTemplateBlock.d.ts +1 -1
  167. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  168. package/serialization/types/PromptTemplateBlockProperties.d.ts +2 -2
  169. package/serialization/types/PromptTemplateBlockProperties.js +1 -1
  170. package/serialization/types/ProviderEnum.d.ts +1 -1
  171. package/serialization/types/SearchErrorResponse.d.ts +1 -1
  172. package/serialization/types/SearchFiltersRequest.d.ts +1 -1
  173. package/serialization/types/SearchRequestOptionsRequest.d.ts +1 -1
  174. package/serialization/types/SearchResponse.d.ts +1 -1
  175. package/serialization/types/SearchResult.d.ts +1 -1
  176. package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  177. package/serialization/types/SearchWeightsRequest.d.ts +1 -1
  178. package/serialization/types/SlimDocument.d.ts +1 -1
  179. package/serialization/types/SlimDocumentStatusEnum.d.ts +1 -1
  180. package/serialization/types/SubmitCompletionActualRequest.d.ts +1 -1
  181. package/serialization/types/SubmitCompletionActualsErrorResponse.d.ts +1 -1
  182. package/serialization/types/UploadDocumentErrorResponse.d.ts +1 -1
  183. package/serialization/types/UploadDocumentResponse.d.ts +1 -1
  184. package/serialization/types/index.d.ts +2 -1
  185. package/serialization/types/index.js +2 -1
  186. package/dist/serialization/types/ChatRoleEnum.d.ts +0 -10
  187. package/serialization/types/ChatRoleEnum.d.ts +0 -10
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
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;
@@ -4,7 +4,7 @@
4
4
  export interface ModelVersionExecConfigParameters {
5
5
  temperature: number;
6
6
  maxTokens: number;
7
- stop: string[];
7
+ stop?: string[];
8
8
  topP: number;
9
9
  topK?: number;
10
10
  frequencyPenalty: number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface NormalizedLogProbs {
6
6
  tokens: Vellum.NormalizedTokenLogProbs[];
7
- likelihood: number;
7
+ likelihood?: number;
8
8
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface NormalizedTokenLogProbs {
5
5
  token: string;
6
- logprob: number;
7
- topLogprobs: Record<string, number>;
6
+ logprob?: number;
7
+ topLogprobs?: Record<string, number | undefined>;
8
8
  textOffset: number;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PaginatedSlimDocumentList {
6
6
  count?: number;
7
7
  next?: string;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlock {
6
6
  blockType: Vellum.BlockTypeEnum;
7
7
  properties: Vellum.PromptTemplateBlockProperties;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockData {
6
6
  version: number;
7
7
  blocks: Vellum.PromptTemplateBlock[];
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
- chatRole?: Vellum.ChatRoleEnum;
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 { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface SearchRequestOptionsRequest {
6
6
  /** The maximum number of results to return. */
7
7
  limit?: number;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
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 { Vellum } from "../..";
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,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import { Vellum } from "../..";
4
+ import * as Vellum from "..";
5
5
  export interface SlimDocument {
6
6
  /** Vellum-generated ID that uniquely identifies this document. */
7
7
  id: string;
@@ -1,5 +1,6 @@
1
1
  export * from "./BlockTypeEnum";
2
- export * from "./ChatRoleEnum";
2
+ export * from "./ChatMessageRequest";
3
+ export * from "./ChatMessageRole";
3
4
  export * from "./Document";
4
5
  export * from "./DocumentDocumentToDocumentIndex";
5
6
  export * from "./EnrichedNormalizedCompletion";
@@ -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("./ChatRoleEnum"), exports);
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 { Vellum } from "../../..";
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 { Vellum } from "../../..";
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 { Vellum } from "../../..";
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 { Vellum } from "../..";
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.ChatRoleEnum = void 0;
29
+ exports.ChatMessageRole = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ChatRoleEnum = core.serialization.enum_(["SYSTEM", "ASSISTANT", "USER"]);
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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: serializers.FinishReasonEnum.Raw;
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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: string[];
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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 { Vellum } from "../..";
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: number;
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
  });
@@ -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 { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const NormalizedTokenLogProbs: core.serialization.ObjectSchema<serializers.NormalizedTokenLogProbs.Raw, Vellum.NormalizedTokenLogProbs>;
8
8
  export declare namespace NormalizedTokenLogProbs {
9
9
  interface Raw {
10
10
  token: string;
11
- logprob: number;
12
- top_logprobs: Record<string, number>;
11
+ logprob?: number | null;
12
+ top_logprobs?: Record<string, number | null | undefined> | null;
13
13
  text_offset: number;
14
14
  }
15
15
  }
@@ -30,7 +30,7 @@ exports.NormalizedTokenLogProbs = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.NormalizedTokenLogProbs = core.serialization.object({
32
32
  token: core.serialization.string(),
33
- logprob: core.serialization.number(),
34
- topLogprobs: core.serialization.property("top_logprobs", core.serialization.record(core.serialization.string(), core.serialization.number())),
33
+ logprob: core.serialization.number().optional(),
34
+ topLogprobs: core.serialization.property("top_logprobs", core.serialization.record(core.serialization.string(), core.serialization.number().optional()).optional()),
35
35
  textOffset: core.serialization.property("text_offset", core.serialization.number()),
36
36
  });
@@ -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 { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const PaginatedSlimDocumentList: core.serialization.ObjectSchema<serializers.PaginatedSlimDocumentList.Raw, Vellum.PaginatedSlimDocumentList>;
8
8
  export declare namespace PaginatedSlimDocumentList {
@@ -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 { Vellum } from "../..";
5
+ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ProcessingStateEnum: core.serialization.Schema<serializers.ProcessingStateEnum.Raw, Vellum.ProcessingStateEnum>;
8
8
  export declare namespace ProcessingStateEnum {