vellum-ai 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +17 -22
  3. package/api/errors/index.d.ts +0 -1
  4. package/api/errors/index.js +0 -1
  5. package/api/resources/deployments/client/Client.js +3 -3
  6. package/api/resources/documentIndexes/client/Client.js +6 -6
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/folderEntities/client/Client.js +1 -1
  9. package/api/resources/index.d.ts +0 -2
  10. package/api/resources/index.js +1 -3
  11. package/api/resources/modelVersions/client/Client.js +1 -1
  12. package/api/resources/sandboxes/client/Client.js +2 -2
  13. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  14. package/api/resources/testSuites/client/Client.js +3 -3
  15. package/api/resources/workflowDeployments/client/Client.js +2 -2
  16. package/api/types/index.d.ts +0 -19
  17. package/api/types/index.js +0 -19
  18. package/dist/Client.d.ts +0 -3
  19. package/dist/Client.js +17 -22
  20. package/dist/api/errors/index.d.ts +0 -1
  21. package/dist/api/errors/index.js +0 -1
  22. package/dist/api/resources/deployments/client/Client.js +3 -3
  23. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  24. package/dist/api/resources/documents/client/Client.js +5 -5
  25. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  26. package/dist/api/resources/index.d.ts +0 -2
  27. package/dist/api/resources/index.js +1 -3
  28. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  29. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  30. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  31. package/dist/api/resources/testSuites/client/Client.js +3 -3
  32. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  33. package/dist/api/types/index.d.ts +0 -19
  34. package/dist/api/types/index.js +0 -19
  35. package/dist/serialization/resources/index.d.ts +0 -2
  36. package/dist/serialization/resources/index.js +1 -3
  37. package/dist/serialization/types/index.d.ts +0 -19
  38. package/dist/serialization/types/index.js +0 -19
  39. package/package.json +1 -1
  40. package/serialization/resources/index.d.ts +0 -2
  41. package/serialization/resources/index.js +1 -3
  42. package/serialization/types/index.d.ts +0 -19
  43. package/serialization/types/index.js +0 -19
  44. package/api/errors/ConflictError.d.ts +0 -8
  45. package/api/errors/ConflictError.js +0 -41
  46. package/api/resources/registeredPrompts/client/Client.d.ts +0 -56
  47. package/api/resources/registeredPrompts/client/Client.js +0 -149
  48. package/api/resources/registeredPrompts/client/index.d.ts +0 -1
  49. package/api/resources/registeredPrompts/client/index.js +0 -17
  50. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -60
  51. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -5
  52. package/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  53. package/api/resources/registeredPrompts/client/requests/index.js +0 -2
  54. package/api/resources/registeredPrompts/index.d.ts +0 -1
  55. package/api/resources/registeredPrompts/index.js +0 -17
  56. package/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -12
  57. package/api/types/ChatHistoryPromptTemplateBlockRequest.js +0 -5
  58. package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -13
  59. package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -5
  60. package/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -12
  61. package/api/types/ChatMessagePromptTemplateBlockRequest.js +0 -5
  62. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -13
  63. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -5
  64. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -12
  65. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -5
  66. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -8
  67. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -5
  68. package/api/types/JinjaPromptTemplateBlockRequest.d.ts +0 -12
  69. package/api/types/JinjaPromptTemplateBlockRequest.js +0 -5
  70. package/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  71. package/api/types/PromptTemplateBlockDataRequest.js +0 -5
  72. package/api/types/PromptTemplateBlockRequest.d.ts +0 -19
  73. package/api/types/PromptTemplateBlockRequest.js +0 -5
  74. package/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  75. package/api/types/RegisterPromptErrorResponse.js +0 -5
  76. package/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  77. package/api/types/RegisterPromptModelParametersRequest.js +0 -5
  78. package/api/types/RegisterPromptPrompt.d.ts +0 -9
  79. package/api/types/RegisterPromptPrompt.js +0 -5
  80. package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  81. package/api/types/RegisterPromptPromptInfoRequest.js +0 -5
  82. package/api/types/RegisterPromptResponse.d.ts +0 -18
  83. package/api/types/RegisterPromptResponse.js +0 -5
  84. package/api/types/RegisteredPromptDeployment.d.ts +0 -11
  85. package/api/types/RegisteredPromptDeployment.js +0 -5
  86. package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  87. package/api/types/RegisteredPromptInputVariableRequest.js +0 -5
  88. package/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  89. package/api/types/RegisteredPromptModelVersion.js +0 -5
  90. package/api/types/RegisteredPromptSandbox.d.ts +0 -9
  91. package/api/types/RegisteredPromptSandbox.js +0 -5
  92. package/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  93. package/api/types/RegisteredPromptSandboxSnapshot.js +0 -5
  94. package/dist/api/errors/ConflictError.d.ts +0 -8
  95. package/dist/api/errors/ConflictError.js +0 -41
  96. package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -56
  97. package/dist/api/resources/registeredPrompts/client/Client.js +0 -149
  98. package/dist/api/resources/registeredPrompts/client/index.d.ts +0 -1
  99. package/dist/api/resources/registeredPrompts/client/index.js +0 -17
  100. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -60
  101. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -5
  102. package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  103. package/dist/api/resources/registeredPrompts/client/requests/index.js +0 -2
  104. package/dist/api/resources/registeredPrompts/index.d.ts +0 -1
  105. package/dist/api/resources/registeredPrompts/index.js +0 -17
  106. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -12
  107. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.js +0 -5
  108. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -13
  109. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -5
  110. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -12
  111. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.js +0 -5
  112. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -13
  113. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -5
  114. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -12
  115. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -5
  116. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -8
  117. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -5
  118. package/dist/api/types/JinjaPromptTemplateBlockRequest.d.ts +0 -12
  119. package/dist/api/types/JinjaPromptTemplateBlockRequest.js +0 -5
  120. package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  121. package/dist/api/types/PromptTemplateBlockDataRequest.js +0 -5
  122. package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -19
  123. package/dist/api/types/PromptTemplateBlockRequest.js +0 -5
  124. package/dist/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  125. package/dist/api/types/RegisterPromptErrorResponse.js +0 -5
  126. package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  127. package/dist/api/types/RegisterPromptModelParametersRequest.js +0 -5
  128. package/dist/api/types/RegisterPromptPrompt.d.ts +0 -9
  129. package/dist/api/types/RegisterPromptPrompt.js +0 -5
  130. package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  131. package/dist/api/types/RegisterPromptPromptInfoRequest.js +0 -5
  132. package/dist/api/types/RegisterPromptResponse.d.ts +0 -18
  133. package/dist/api/types/RegisterPromptResponse.js +0 -5
  134. package/dist/api/types/RegisteredPromptDeployment.d.ts +0 -11
  135. package/dist/api/types/RegisteredPromptDeployment.js +0 -5
  136. package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  137. package/dist/api/types/RegisteredPromptInputVariableRequest.js +0 -5
  138. package/dist/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  139. package/dist/api/types/RegisteredPromptModelVersion.js +0 -5
  140. package/dist/api/types/RegisteredPromptSandbox.d.ts +0 -9
  141. package/dist/api/types/RegisteredPromptSandbox.js +0 -5
  142. package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  143. package/dist/api/types/RegisteredPromptSandboxSnapshot.js +0 -5
  144. package/dist/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  145. package/dist/serialization/resources/registeredPrompts/client/index.js +0 -17
  146. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  147. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  148. package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  149. package/dist/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  150. package/dist/serialization/resources/registeredPrompts/index.d.ts +0 -1
  151. package/dist/serialization/resources/registeredPrompts/index.js +0 -17
  152. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -15
  153. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +0 -36
  154. package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -16
  155. package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -46
  156. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -15
  157. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.js +0 -45
  158. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -15
  159. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -36
  160. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -16
  161. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -37
  162. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -14
  163. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -35
  164. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +0 -16
  165. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.js +0 -37
  166. package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  167. package/dist/serialization/types/PromptTemplateBlockDataRequest.js +0 -43
  168. package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +0 -25
  169. package/dist/serialization/types/PromptTemplateBlockRequest.js +0 -53
  170. package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  171. package/dist/serialization/types/RegisterPromptErrorResponse.js +0 -33
  172. package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  173. package/dist/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  174. package/dist/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  175. package/dist/serialization/types/RegisterPromptPrompt.js +0 -34
  176. package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  177. package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
  178. package/dist/serialization/types/RegisterPromptResponse.d.ts +0 -22
  179. package/dist/serialization/types/RegisterPromptResponse.js +0 -43
  180. package/dist/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  181. package/dist/serialization/types/RegisteredPromptDeployment.js +0 -35
  182. package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  183. package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +0 -36
  184. package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  185. package/dist/serialization/types/RegisteredPromptModelVersion.js +0 -34
  186. package/dist/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  187. package/dist/serialization/types/RegisteredPromptSandbox.js +0 -34
  188. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  189. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
  190. package/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  191. package/serialization/resources/registeredPrompts/client/index.js +0 -17
  192. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  193. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  194. package/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  195. package/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  196. package/serialization/resources/registeredPrompts/index.d.ts +0 -1
  197. package/serialization/resources/registeredPrompts/index.js +0 -17
  198. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +0 -15
  199. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +0 -36
  200. package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +0 -16
  201. package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +0 -46
  202. package/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +0 -15
  203. package/serialization/types/ChatMessagePromptTemplateBlockRequest.js +0 -45
  204. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +0 -15
  205. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +0 -36
  206. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +0 -16
  207. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +0 -37
  208. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +0 -14
  209. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +0 -35
  210. package/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +0 -16
  211. package/serialization/types/JinjaPromptTemplateBlockRequest.js +0 -37
  212. package/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  213. package/serialization/types/PromptTemplateBlockDataRequest.js +0 -43
  214. package/serialization/types/PromptTemplateBlockRequest.d.ts +0 -25
  215. package/serialization/types/PromptTemplateBlockRequest.js +0 -53
  216. package/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  217. package/serialization/types/RegisterPromptErrorResponse.js +0 -33
  218. package/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  219. package/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  220. package/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  221. package/serialization/types/RegisterPromptPrompt.js +0 -34
  222. package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  223. package/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
  224. package/serialization/types/RegisterPromptResponse.d.ts +0 -22
  225. package/serialization/types/RegisterPromptResponse.js +0 -43
  226. package/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  227. package/serialization/types/RegisteredPromptDeployment.js +0 -35
  228. package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  229. package/serialization/types/RegisteredPromptInputVariableRequest.js +0 -36
  230. package/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  231. package/serialization/types/RegisteredPromptModelVersion.js +0 -34
  232. package/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  233. package/serialization/types/RegisteredPromptSandbox.js +0 -34
  234. package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  235. package/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a chat history variable in a prompt template.
7
- */
8
- export interface ChatHistoryPromptTemplateBlockRequest {
9
- properties: Record<string, unknown>;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -1,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 ChatMessagePromptTemplateBlockPropertiesRequest {
9
- blocks: Vellum.PromptTemplateBlockRequest[];
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,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a chat message in a prompt template.
7
- */
8
- export interface ChatMessagePromptTemplateBlockRequest {
9
- properties: Vellum.ChatMessagePromptTemplateBlockPropertiesRequest;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -1,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 FunctionDefinitionPromptTemplateBlockPropertiesRequest {
5
- /** The name identifying the function. */
6
- functionName?: string;
7
- /** A description to help guide the model when to invoke this function. */
8
- functionDescription?: string;
9
- /** An OpenAPI specification of parameters that are supported by this function. */
10
- functionParameters?: Record<string, unknown>;
11
- /** Set this option to true to force the model to return a function call of this function. */
12
- functionForced?: boolean;
13
- }
@@ -1,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 FunctionDefinitionPromptTemplateBlockRequest {
9
- id: string;
10
- state?: Vellum.PromptTemplateBlockState;
11
- properties: Vellum.FunctionDefinitionPromptTemplateBlockPropertiesRequest;
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 JinjaPromptTemplateBlockPropertiesRequest {
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,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of Jinja template code that is used to generate a prompt
7
- */
8
- export interface JinjaPromptTemplateBlockRequest {
9
- id: string;
10
- state?: Vellum.PromptTemplateBlockState;
11
- properties: Vellum.JinjaPromptTemplateBlockPropertiesRequest;
12
- }
@@ -1,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 PromptTemplateBlockDataRequest {
6
- blocks: Vellum.PromptTemplateBlockRequest[];
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,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export declare type PromptTemplateBlockRequest = Vellum.PromptTemplateBlockRequest.Jinja | Vellum.PromptTemplateBlockRequest.ChatHistory | Vellum.PromptTemplateBlockRequest.ChatMessage | Vellum.PromptTemplateBlockRequest.FunctionDefinition;
6
- export declare namespace PromptTemplateBlockRequest {
7
- interface Jinja extends Vellum.JinjaPromptTemplateBlockRequest {
8
- blockType: "JINJA";
9
- }
10
- interface ChatHistory extends Vellum.ChatHistoryPromptTemplateBlockRequest {
11
- blockType: "CHAT_HISTORY";
12
- }
13
- interface ChatMessage extends Vellum.ChatMessagePromptTemplateBlockRequest {
14
- blockType: "CHAT_MESSAGE";
15
- }
16
- interface FunctionDefinition extends Vellum.FunctionDefinitionPromptTemplateBlockRequest {
17
- blockType: "FUNCTION_DEFINITION";
18
- }
19
- }
@@ -1,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,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RegisterPromptErrorResponse {
5
- /** Details about why the request failed. */
6
- detail: string;
7
- }
@@ -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 RegisterPromptModelParametersRequest {
5
- temperature: number;
6
- maxTokens: number;
7
- stop?: string[];
8
- topP: number;
9
- topK?: number;
10
- frequencyPenalty: number;
11
- presencePenalty: number;
12
- logitBias?: Record<string, number | undefined>;
13
- customParameters?: Record<string, unknown>;
14
- }
@@ -1,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,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RegisterPromptPrompt {
5
- /** The ID of the generated prompt. */
6
- id: string;
7
- /** A human-friendly label for the generated prompt. */
8
- label: string;
9
- }
@@ -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,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface RegisterPromptPromptInfoRequest {
6
- promptBlockData: Vellum.PromptTemplateBlockDataRequest;
7
- /** The input variables specified in the prompt template. */
8
- inputVariables: Vellum.RegisteredPromptInputVariableRequest[];
9
- }
@@ -1,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,18 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface RegisterPromptResponse {
6
- /** Information about the generated prompt */
7
- prompt: Vellum.RegisterPromptPrompt;
8
- /** Information about the generated sandbox snapshot */
9
- sandboxSnapshot: Vellum.RegisteredPromptSandboxSnapshot;
10
- /** Information about the generated sandbox */
11
- sandbox: Vellum.RegisteredPromptSandbox;
12
- /** Information about the generated model version */
13
- modelVersion: Vellum.RegisteredPromptModelVersion;
14
- /** The ID of the generated prompt version */
15
- promptVersionId: string;
16
- /** Information about the generated deployment */
17
- deployment: Vellum.RegisteredPromptDeployment;
18
- }
@@ -1,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
- export interface RegisteredPromptDeployment {
5
- /** The ID of the generated deployment. */
6
- id: string;
7
- /** A uniquely-identifying name for generated deployment. */
8
- name: string;
9
- /** A human-friendly label for the generated deployment. */
10
- label: string;
11
- }
@@ -1,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,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface RegisteredPromptInputVariableRequest {
6
- key: string;
7
- id?: string;
8
- type?: Vellum.VellumVariableType;
9
- }
@@ -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,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RegisteredPromptModelVersion {
5
- /** The ID of the generated model version. */
6
- id: string;
7
- /** A human-friendly label for the generated model version. */
8
- label: string;
9
- }
@@ -1,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,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RegisteredPromptSandbox {
5
- /** The ID of the generated sandbox. */
6
- id: string;
7
- /** A human-friendly label for the generated sandbox. */
8
- label: string;
9
- }
@@ -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,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RegisteredPromptSandboxSnapshot {
5
- /** The ID of the generated sandbox snapshot. */
6
- id: string;
7
- }
@@ -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 errors from "../../errors";
5
- import * as Vellum from "..";
6
- export declare class ConflictError extends errors.VellumError {
7
- constructor(body: Vellum.RegisterPromptErrorResponse);
8
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ConflictError = void 0;
30
- const errors = __importStar(require("../../errors"));
31
- class ConflictError extends errors.VellumError {
32
- constructor(body) {
33
- super({
34
- message: "ConflictError",
35
- statusCode: 409,
36
- body: body,
37
- });
38
- Object.setPrototypeOf(this, ConflictError.prototype);
39
- }
40
- }
41
- exports.ConflictError = ConflictError;
@@ -1,56 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as Vellum from "../../..";
7
- export declare namespace RegisteredPrompts {
8
- interface Options {
9
- environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
11
- }
12
- interface RequestOptions {
13
- timeoutInSeconds?: number;
14
- maxRetries?: number;
15
- }
16
- }
17
- export declare class RegisteredPrompts {
18
- protected readonly _options: RegisteredPrompts.Options;
19
- constructor(_options: RegisteredPrompts.Options);
20
- /**
21
- * Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
22
- * partners, not directly by Vellum users.
23
- *
24
- * Under the hood, this endpoint creates a new sandbox, a new model version, and a new deployment.
25
- * @throws {@link Vellum.BadRequestError}
26
- * @throws {@link Vellum.NotFoundError}
27
- * @throws {@link Vellum.ConflictError}
28
- *
29
- * @example
30
- * await vellum.registeredPrompts.registerPrompt({
31
- * label: "label",
32
- * name: "name",
33
- * prompt: {
34
- * promptBlockData: {
35
- * blocks: [],
36
- * version: 1
37
- * },
38
- * inputVariables: [{
39
- * key: "key"
40
- * }]
41
- * },
42
- * model: "model",
43
- * parameters: {
44
- * temperature: 1.1,
45
- * maxTokens: 1,
46
- * topP: 1.1,
47
- * frequencyPenalty: 1.1,
48
- * presencePenalty: 1.1
49
- * }
50
- * })
51
- */
52
- registerPrompt(request: Vellum.RegisterPromptRequestRequest, requestOptions?: RegisteredPrompts.RequestOptions): Promise<Vellum.RegisterPromptResponse>;
53
- protected _getCustomAuthorizationHeaders(): Promise<{
54
- X_API_KEY: string;
55
- }>;
56
- }