vellum-ai 0.4.1 → 0.4.2

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 (205) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +17 -22
  3. package/api/resources/deployments/client/Client.js +3 -3
  4. package/api/resources/documentIndexes/client/Client.js +6 -6
  5. package/api/resources/documents/client/Client.js +5 -5
  6. package/api/resources/folderEntities/client/Client.js +1 -1
  7. package/api/resources/index.d.ts +0 -1
  8. package/api/resources/index.js +1 -2
  9. package/api/resources/sandboxes/client/Client.js +2 -2
  10. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  11. package/api/resources/testSuites/client/Client.js +3 -3
  12. package/api/resources/workflowDeployments/client/Client.js +2 -2
  13. package/api/types/index.d.ts +0 -20
  14. package/api/types/index.js +0 -20
  15. package/dist/Client.d.ts +0 -3
  16. package/dist/Client.js +17 -22
  17. package/dist/api/resources/deployments/client/Client.js +3 -3
  18. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  19. package/dist/api/resources/documents/client/Client.js +5 -5
  20. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  21. package/dist/api/resources/index.d.ts +0 -1
  22. package/dist/api/resources/index.js +1 -2
  23. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  24. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  25. package/dist/api/resources/testSuites/client/Client.js +3 -3
  26. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  27. package/dist/api/types/index.d.ts +0 -20
  28. package/dist/api/types/index.js +0 -20
  29. package/dist/serialization/types/index.d.ts +0 -20
  30. package/dist/serialization/types/index.js +0 -20
  31. package/package.json +1 -1
  32. package/serialization/types/index.d.ts +0 -20
  33. package/serialization/types/index.js +0 -20
  34. package/api/resources/modelVersions/client/Client.d.ts +0 -30
  35. package/api/resources/modelVersions/client/Client.js +0 -105
  36. package/api/resources/modelVersions/client/index.d.ts +0 -1
  37. package/api/resources/modelVersions/client/index.js +0 -2
  38. package/api/resources/modelVersions/index.d.ts +0 -1
  39. package/api/resources/modelVersions/index.js +0 -17
  40. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  41. package/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  42. package/api/types/ChatMessageEnum.d.ts +0 -4
  43. package/api/types/ChatMessageEnum.js +0 -5
  44. package/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  45. package/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  46. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  47. package/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  48. package/api/types/FunctionDefinitionEnum.d.ts +0 -4
  49. package/api/types/FunctionDefinitionEnum.js +0 -5
  50. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  51. package/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  52. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  53. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  54. package/api/types/JinjaEnum.d.ts +0 -4
  55. package/api/types/JinjaEnum.js +0 -5
  56. package/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  57. package/api/types/JinjaPromptTemplateBlock.js +0 -5
  58. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  59. package/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  60. package/api/types/ModelVersionBuildConfig.d.ts +0 -11
  61. package/api/types/ModelVersionBuildConfig.js +0 -5
  62. package/api/types/ModelVersionExecConfig.d.ts +0 -14
  63. package/api/types/ModelVersionExecConfig.js +0 -5
  64. package/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  65. package/api/types/ModelVersionExecConfigParameters.js +0 -5
  66. package/api/types/ModelVersionRead.d.ts +0 -37
  67. package/api/types/ModelVersionRead.js +0 -5
  68. package/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  69. package/api/types/ModelVersionReadStatusEnum.js +0 -12
  70. package/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  71. package/api/types/ModelVersionSandboxSnapshot.js +0 -5
  72. package/api/types/PromptTemplateBlock.d.ts +0 -19
  73. package/api/types/PromptTemplateBlock.js +0 -5
  74. package/api/types/PromptTemplateBlockData.d.ts +0 -8
  75. package/api/types/PromptTemplateBlockData.js +0 -5
  76. package/api/types/PromptTemplateBlockState.d.ts +0 -12
  77. package/api/types/PromptTemplateBlockState.js +0 -10
  78. package/api/types/ProviderEnum.d.ts +0 -34
  79. package/api/types/ProviderEnum.js +0 -21
  80. package/dist/api/resources/modelVersions/client/Client.d.ts +0 -30
  81. package/dist/api/resources/modelVersions/client/Client.js +0 -105
  82. package/dist/api/resources/modelVersions/client/index.d.ts +0 -1
  83. package/dist/api/resources/modelVersions/client/index.js +0 -2
  84. package/dist/api/resources/modelVersions/index.d.ts +0 -1
  85. package/dist/api/resources/modelVersions/index.js +0 -17
  86. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  87. package/dist/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  88. package/dist/api/types/ChatMessageEnum.d.ts +0 -4
  89. package/dist/api/types/ChatMessageEnum.js +0 -5
  90. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  91. package/dist/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  92. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  93. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  94. package/dist/api/types/FunctionDefinitionEnum.d.ts +0 -4
  95. package/dist/api/types/FunctionDefinitionEnum.js +0 -5
  96. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  97. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  98. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  99. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  100. package/dist/api/types/JinjaEnum.d.ts +0 -4
  101. package/dist/api/types/JinjaEnum.js +0 -5
  102. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  103. package/dist/api/types/JinjaPromptTemplateBlock.js +0 -5
  104. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  105. package/dist/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  106. package/dist/api/types/ModelVersionBuildConfig.d.ts +0 -11
  107. package/dist/api/types/ModelVersionBuildConfig.js +0 -5
  108. package/dist/api/types/ModelVersionExecConfig.d.ts +0 -14
  109. package/dist/api/types/ModelVersionExecConfig.js +0 -5
  110. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  111. package/dist/api/types/ModelVersionExecConfigParameters.js +0 -5
  112. package/dist/api/types/ModelVersionRead.d.ts +0 -37
  113. package/dist/api/types/ModelVersionRead.js +0 -5
  114. package/dist/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  115. package/dist/api/types/ModelVersionReadStatusEnum.js +0 -12
  116. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  117. package/dist/api/types/ModelVersionSandboxSnapshot.js +0 -5
  118. package/dist/api/types/PromptTemplateBlock.d.ts +0 -19
  119. package/dist/api/types/PromptTemplateBlock.js +0 -5
  120. package/dist/api/types/PromptTemplateBlockData.d.ts +0 -8
  121. package/dist/api/types/PromptTemplateBlockData.js +0 -5
  122. package/dist/api/types/PromptTemplateBlockState.d.ts +0 -12
  123. package/dist/api/types/PromptTemplateBlockState.js +0 -10
  124. package/dist/api/types/ProviderEnum.d.ts +0 -34
  125. package/dist/api/types/ProviderEnum.js +0 -21
  126. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  127. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  128. package/dist/serialization/types/ChatMessageEnum.d.ts +0 -10
  129. package/dist/serialization/types/ChatMessageEnum.js +0 -31
  130. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  131. package/dist/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  132. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  133. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  134. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  135. package/dist/serialization/types/FunctionDefinitionEnum.js +0 -31
  136. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  137. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  138. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  139. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  140. package/dist/serialization/types/JinjaEnum.d.ts +0 -10
  141. package/dist/serialization/types/JinjaEnum.js +0 -31
  142. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  143. package/dist/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  144. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  145. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  146. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  147. package/dist/serialization/types/ModelVersionBuildConfig.js +0 -36
  148. package/dist/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  149. package/dist/serialization/types/ModelVersionExecConfig.js +0 -40
  150. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  151. package/dist/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  152. package/dist/serialization/types/ModelVersionRead.d.ts +0 -23
  153. package/dist/serialization/types/ModelVersionRead.js +0 -44
  154. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  155. package/dist/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  156. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  157. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  158. package/dist/serialization/types/PromptTemplateBlock.d.ts +0 -25
  159. package/dist/serialization/types/PromptTemplateBlock.js +0 -53
  160. package/dist/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  161. package/dist/serialization/types/PromptTemplateBlockData.js +0 -43
  162. package/dist/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  163. package/dist/serialization/types/PromptTemplateBlockState.js +0 -31
  164. package/dist/serialization/types/ProviderEnum.d.ts +0 -10
  165. package/dist/serialization/types/ProviderEnum.js +0 -45
  166. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  167. package/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  168. package/serialization/types/ChatMessageEnum.d.ts +0 -10
  169. package/serialization/types/ChatMessageEnum.js +0 -31
  170. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  171. package/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  172. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  173. package/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  174. package/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  175. package/serialization/types/FunctionDefinitionEnum.js +0 -31
  176. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  177. package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  178. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  179. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  180. package/serialization/types/JinjaEnum.d.ts +0 -10
  181. package/serialization/types/JinjaEnum.js +0 -31
  182. package/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  183. package/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  184. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  185. package/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  186. package/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  187. package/serialization/types/ModelVersionBuildConfig.js +0 -36
  188. package/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  189. package/serialization/types/ModelVersionExecConfig.js +0 -40
  190. package/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  191. package/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  192. package/serialization/types/ModelVersionRead.d.ts +0 -23
  193. package/serialization/types/ModelVersionRead.js +0 -44
  194. package/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  195. package/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  196. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  197. package/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  198. package/serialization/types/PromptTemplateBlock.d.ts +0 -25
  199. package/serialization/types/PromptTemplateBlock.js +0 -53
  200. package/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  201. package/serialization/types/PromptTemplateBlockData.js +0 -43
  202. package/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  203. package/serialization/types/PromptTemplateBlockState.js +0 -31
  204. package/serialization/types/ProviderEnum.d.ts +0 -10
  205. package/serialization/types/ProviderEnum.js +0 -45
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * - `CREATING` - Creating
6
- * - `READY` - Ready
7
- * - `CREATION_FAILED` - Creation Failed
8
- * - `DISABLED` - Disabled
9
- */
10
- export declare type ModelVersionReadStatusEnum = "CREATING" | "READY" | "CREATION_FAILED" | "DISABLED";
11
- export declare const ModelVersionReadStatusEnum: {
12
- readonly Creating: "CREATING";
13
- readonly Ready: "READY";
14
- readonly CreationFailed: "CREATION_FAILED";
15
- readonly Disabled: "DISABLED";
16
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ModelVersionReadStatusEnum = void 0;
7
- exports.ModelVersionReadStatusEnum = {
8
- Creating: "CREATING",
9
- Ready: "READY",
10
- CreationFailed: "CREATION_FAILED",
11
- Disabled: "DISABLED",
12
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionSandboxSnapshot {
5
- /** The ID of the sandbox snapshot. */
6
- id: string;
7
- /** The index of the prompt in the sandbox snapshot. */
8
- promptIndex?: number;
9
- /** The id of the prompt in the sandbox snapshot. */
10
- promptId?: string;
11
- sandboxId?: string;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 PromptTemplateBlock = Vellum.PromptTemplateBlock.Jinja | Vellum.PromptTemplateBlock.ChatHistory | Vellum.PromptTemplateBlock.ChatMessage | Vellum.PromptTemplateBlock.FunctionDefinition;
6
- export declare namespace PromptTemplateBlock {
7
- interface Jinja extends Vellum.JinjaPromptTemplateBlock {
8
- blockType: "JINJA";
9
- }
10
- interface ChatHistory extends Vellum.ChatHistoryPromptTemplateBlock {
11
- blockType: "CHAT_HISTORY";
12
- }
13
- interface ChatMessage extends Vellum.ChatMessagePromptTemplateBlock {
14
- blockType: "CHAT_MESSAGE";
15
- }
16
- interface FunctionDefinition extends Vellum.FunctionDefinitionPromptTemplateBlock {
17
- blockType: "FUNCTION_DEFINITION";
18
- }
19
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface PromptTemplateBlockData {
6
- blocks: Vellum.PromptTemplateBlock[];
7
- version: number;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * - `ENABLED` - ENABLED
6
- * - `DISABLED` - DISABLED
7
- */
8
- export declare type PromptTemplateBlockState = "ENABLED" | "DISABLED";
9
- export declare const PromptTemplateBlockState: {
10
- readonly Enabled: "ENABLED";
11
- readonly Disabled: "DISABLED";
12
- };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PromptTemplateBlockState = void 0;
7
- exports.PromptTemplateBlockState = {
8
- Enabled: "ENABLED",
9
- Disabled: "DISABLED",
10
- };
@@ -1,34 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * - `ANTHROPIC` - Anthropic
6
- * - `AWS_BEDROCK` - AWS Bedrock
7
- * - `AZURE_OPENAI` - Azure OpenAI
8
- * - `COHERE` - Cohere
9
- * - `GOOGLE` - Google
10
- * - `HOSTED` - Hosted
11
- * - `MOSAICML` - MosaicML
12
- * - `OPENAI` - OpenAI
13
- * - `FIREWORKS_AI` - Fireworks AI
14
- * - `HUGGINGFACE` - HuggingFace
15
- * - `MYSTIC` - Mystic
16
- * - `PYQ` - Pyq
17
- * - `REPLICATE` - Replicate
18
- */
19
- export declare type ProviderEnum = "ANTHROPIC" | "AWS_BEDROCK" | "AZURE_OPENAI" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "FIREWORKS_AI" | "HUGGINGFACE" | "MYSTIC" | "PYQ" | "REPLICATE";
20
- export declare const ProviderEnum: {
21
- readonly Anthropic: "ANTHROPIC";
22
- readonly AwsBedrock: "AWS_BEDROCK";
23
- readonly AzureOpenai: "AZURE_OPENAI";
24
- readonly Cohere: "COHERE";
25
- readonly Google: "GOOGLE";
26
- readonly Hosted: "HOSTED";
27
- readonly Mosaicml: "MOSAICML";
28
- readonly Openai: "OPENAI";
29
- readonly FireworksAi: "FIREWORKS_AI";
30
- readonly Huggingface: "HUGGINGFACE";
31
- readonly Mystic: "MYSTIC";
32
- readonly Pyq: "PYQ";
33
- readonly Replicate: "REPLICATE";
34
- };
@@ -1,21 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProviderEnum = void 0;
7
- exports.ProviderEnum = {
8
- Anthropic: "ANTHROPIC",
9
- AwsBedrock: "AWS_BEDROCK",
10
- AzureOpenai: "AZURE_OPENAI",
11
- Cohere: "COHERE",
12
- Google: "GOOGLE",
13
- Hosted: "HOSTED",
14
- Mosaicml: "MOSAICML",
15
- Openai: "OPENAI",
16
- FireworksAi: "FIREWORKS_AI",
17
- Huggingface: "HUGGINGFACE",
18
- Mystic: "MYSTIC",
19
- Pyq: "PYQ",
20
- Replicate: "REPLICATE",
21
- };
@@ -1,30 +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 ModelVersions {
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 ModelVersions {
18
- protected readonly _options: ModelVersions.Options;
19
- constructor(_options: ModelVersions.Options);
20
- /**
21
- * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
22
- *
23
- * @example
24
- * await vellum.modelVersions.retrieve("id")
25
- */
26
- retrieve(id: string, requestOptions?: ModelVersions.RequestOptions): Promise<Vellum.ModelVersionRead>;
27
- protected _getCustomAuthorizationHeaders(): Promise<{
28
- X_API_KEY: string;
29
- }>;
30
- }
@@ -1,105 +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
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.ModelVersions = void 0;
42
- const environments = __importStar(require("../../../../environments"));
43
- const core = __importStar(require("../../../../core"));
44
- const url_join_1 = __importDefault(require("url-join"));
45
- const serializers = __importStar(require("../../../../serialization"));
46
- const errors = __importStar(require("../../../../errors"));
47
- class ModelVersions {
48
- constructor(_options) {
49
- this._options = _options;
50
- }
51
- /**
52
- * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
53
- *
54
- * @example
55
- * await vellum.modelVersions.retrieve("id")
56
- */
57
- retrieve(id, requestOptions) {
58
- var _a;
59
- return __awaiter(this, void 0, void 0, function* () {
60
- const _response = yield core.fetcher({
61
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
62
- .default, `v1/model-versions/${id}`),
63
- method: "GET",
64
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
- contentType: "application/json",
66
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
67
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
68
- });
69
- if (_response.ok) {
70
- return yield serializers.ModelVersionRead.parseOrThrow(_response.body, {
71
- unrecognizedObjectKeys: "passthrough",
72
- allowUnrecognizedUnionMembers: true,
73
- allowUnrecognizedEnumValues: true,
74
- breadcrumbsPrefix: ["response"],
75
- });
76
- }
77
- if (_response.error.reason === "status-code") {
78
- throw new errors.VellumError({
79
- statusCode: _response.error.statusCode,
80
- body: _response.error.body,
81
- });
82
- }
83
- switch (_response.error.reason) {
84
- case "non-json":
85
- throw new errors.VellumError({
86
- statusCode: _response.error.statusCode,
87
- body: _response.error.rawBody,
88
- });
89
- case "timeout":
90
- throw new errors.VellumTimeoutError();
91
- case "unknown":
92
- throw new errors.VellumError({
93
- message: _response.error.errorMessage,
94
- });
95
- }
96
- });
97
- }
98
- _getCustomAuthorizationHeaders() {
99
- return __awaiter(this, void 0, void 0, function* () {
100
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
101
- return { X_API_KEY: apiKeyValue };
102
- });
103
- }
104
- }
105
- exports.ModelVersions = ModelVersions;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -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 ChatHistoryPromptTemplateBlock {
9
- properties: Record<string, unknown>;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ChatMessageEnum = "CHAT_MESSAGE";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 ChatMessagePromptTemplateBlock {
9
- properties: Vellum.ChatMessagePromptTemplateBlockProperties;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 ChatMessagePromptTemplateBlockProperties {
9
- blocks: Vellum.PromptTemplateBlock[];
10
- chatRole?: Vellum.ChatMessageRole;
11
- chatSource?: string;
12
- chatMessageUnterminated?: boolean;
13
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type FunctionDefinitionEnum = "FUNCTION_DEFINITION";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 FunctionDefinitionPromptTemplateBlock {
9
- id: string;
10
- state?: Vellum.PromptTemplateBlockState;
11
- properties: Vellum.FunctionDefinitionPromptTemplateBlockProperties;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FunctionDefinitionPromptTemplateBlockProperties {
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,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type JinjaEnum = "JINJA";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 JinjaPromptTemplateBlock {
9
- id: string;
10
- state?: Vellum.PromptTemplateBlockState;
11
- properties: Vellum.JinjaPromptTemplateBlockProperties;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface JinjaPromptTemplateBlockProperties {
6
- template?: string;
7
- templateType?: Vellum.VellumVariableType;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionBuildConfig {
6
- /** The name of the base model used to create this model version, as identified by the LLM provider. */
7
- baseModel: string;
8
- /** Information about the sandbox snapshot that was used to create this model version, if applicable. */
9
- sandboxSnapshot?: Vellum.ModelVersionSandboxSnapshot;
10
- promptVersionId?: string;
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionExecConfig {
6
- /** The generation parameters that are passed to the LLM provider at runtime. */
7
- parameters: Vellum.ModelVersionExecConfigParameters;
8
- /** Input variables specified in the prompt template. */
9
- inputVariables: Vellum.VellumVariable[];
10
- /** The template used to generate prompts for this model version. */
11
- promptTemplate?: string;
12
- promptBlockData?: Vellum.PromptTemplateBlockData;
13
- promptSyntaxVersion?: number;
14
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionExecConfigParameters {
5
- temperature?: number;
6
- maxTokens?: number;
7
- topP: number;
8
- frequencyPenalty: number;
9
- presencePenalty: number;
10
- logitBias?: Record<string, number | undefined>;
11
- stop?: string[];
12
- topK?: number;
13
- customParameters?: Record<string, unknown>;
14
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,37 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionRead {
6
- /** Vellum-generated ID that uniquely identifies this model version. */
7
- id: string;
8
- /** Timestamp of when this model version was created. */
9
- created: Date;
10
- /** Human-friendly name for this model version. */
11
- label: string;
12
- /**
13
- * Which LLM provider this model version is associated with.
14
- *
15
- * - `ANTHROPIC` - Anthropic
16
- * - `AWS_BEDROCK` - AWS Bedrock
17
- * - `AZURE_OPENAI` - Azure OpenAI
18
- * - `COHERE` - Cohere
19
- * - `GOOGLE` - Google
20
- * - `HOSTED` - Hosted
21
- * - `MOSAICML` - MosaicML
22
- * - `OPENAI` - OpenAI
23
- * - `FIREWORKS_AI` - Fireworks AI
24
- * - `HUGGINGFACE` - HuggingFace
25
- * - `MYSTIC` - Mystic
26
- * - `PYQ` - Pyq
27
- * - `REPLICATE` - Replicate
28
- */
29
- provider: Vellum.ProviderEnum;
30
- /** The unique id of this model version as it exists in the above provider's system. */
31
- externalId: string;
32
- /** Configuration used to build this model version. */
33
- buildConfig: Vellum.ModelVersionBuildConfig;
34
- /** Configuration used to execute this model version. */
35
- execConfig: Vellum.ModelVersionExecConfig;
36
- status?: Vellum.ModelVersionReadStatusEnum;
37
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });