vellum-ai 0.9.6 → 0.9.7

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 (255) hide show
  1. package/.mock/definition/__package__.yml +90 -88
  2. package/.mock/definition/adHoc.yml +7 -7
  3. package/.mock/openapi/openapi.yml +111 -136
  4. package/Client.js +10 -10
  5. package/api/resources/adHoc/client/Client.d.ts +1 -1
  6. package/api/resources/adHoc/client/Client.js +2 -2
  7. package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -20
  8. package/api/resources/adHoc/client/requests/index.d.ts +1 -1
  9. package/api/resources/containerImages/client/Client.js +4 -4
  10. package/api/resources/deployments/client/Client.js +6 -6
  11. package/api/resources/documentIndexes/client/Client.js +8 -8
  12. package/api/resources/documents/client/Client.js +5 -5
  13. package/api/resources/folderEntities/client/Client.js +2 -2
  14. package/api/resources/metricDefinitions/client/Client.js +1 -1
  15. package/api/resources/sandboxes/client/Client.js +3 -3
  16. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  17. package/api/resources/testSuites/client/Client.js +4 -4
  18. package/api/resources/workflowDeployments/client/Client.js +5 -5
  19. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  20. package/api/resources/workflows/client/Client.js +2 -2
  21. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  22. package/{dist/api/types/AdHocExpandMetaRequest.d.ts → api/types/AdHocExpandMeta.d.ts} +1 -1
  23. package/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
  24. package/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
  25. package/api/types/PromptRequestInput.d.ts +5 -0
  26. package/{dist/api/types/PromptRequestJsonInputRequest.d.ts → api/types/PromptRequestJsonInput.d.ts} +1 -1
  27. package/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
  28. package/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
  29. package/api/types/index.d.ts +7 -23
  30. package/api/types/index.js +7 -23
  31. package/dist/Client.js +10 -10
  32. package/dist/api/resources/adHoc/client/Client.d.ts +1 -1
  33. package/dist/api/resources/adHoc/client/Client.js +2 -2
  34. package/dist/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.d.ts → AdHocExecutePromptStream.d.ts} +14 -20
  35. package/dist/api/resources/adHoc/client/requests/index.d.ts +1 -1
  36. package/dist/api/resources/containerImages/client/Client.js +4 -4
  37. package/dist/api/resources/deployments/client/Client.js +6 -6
  38. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  39. package/dist/api/resources/documents/client/Client.js +5 -5
  40. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  41. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  42. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  43. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  44. package/dist/api/resources/testSuites/client/Client.js +4 -4
  45. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  46. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  47. package/dist/api/resources/workflows/client/Client.js +2 -2
  48. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  49. package/{api/types/AdHocExpandMetaRequest.d.ts → dist/api/types/AdHocExpandMeta.d.ts} +1 -1
  50. package/dist/api/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +1 -1
  51. package/dist/api/types/{PromptRequestChatHistoryInputRequest.d.ts → PromptRequestChatHistoryInput.d.ts} +2 -2
  52. package/dist/api/types/PromptRequestInput.d.ts +5 -0
  53. package/{api/types/PromptRequestJsonInputRequest.d.ts → dist/api/types/PromptRequestJsonInput.d.ts} +1 -1
  54. package/dist/api/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +1 -1
  55. package/dist/api/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +1 -1
  56. package/dist/api/types/index.d.ts +7 -23
  57. package/dist/api/types/index.js +7 -23
  58. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
  59. package/{serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -14
  60. package/dist/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
  61. package/dist/serialization/resources/adHoc/client/requests/index.js +3 -3
  62. package/dist/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
  63. package/dist/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
  64. package/dist/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
  65. package/dist/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
  66. package/dist/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
  67. package/dist/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
  68. package/dist/serialization/types/PromptRequestInput.d.ts +13 -0
  69. package/dist/serialization/types/{JinjaPromptBlockPropertiesRequest.js → PromptRequestInput.js} +9 -6
  70. package/{serialization/types/PromptRequestJsonInputRequest.d.ts → dist/serialization/types/PromptRequestJsonInput.d.ts} +2 -2
  71. package/{serialization/types/PromptRequestJsonInputRequest.js → dist/serialization/types/PromptRequestJsonInput.js} +2 -2
  72. package/dist/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +2 -2
  73. package/{serialization/types/PromptRequestStringInputRequest.js → dist/serialization/types/PromptRequestStringInput.js} +2 -2
  74. package/dist/serialization/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +2 -2
  75. package/dist/serialization/types/{PromptSettingsRequest.js → PromptSettings.js} +2 -2
  76. package/dist/serialization/types/index.d.ts +7 -23
  77. package/dist/serialization/types/index.js +7 -23
  78. package/dist/version.d.ts +1 -1
  79. package/dist/version.js +1 -1
  80. package/package.json +1 -1
  81. package/reference.md +8 -14
  82. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +23 -0
  83. package/{dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js → serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +13 -14
  84. package/serialization/resources/adHoc/client/requests/index.d.ts +1 -1
  85. package/serialization/resources/adHoc/client/requests/index.js +3 -3
  86. package/serialization/types/{AdHocExpandMetaRequest.d.ts → AdHocExpandMeta.d.ts} +2 -2
  87. package/serialization/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +2 -2
  88. package/serialization/types/{PromptParametersRequest.d.ts → PromptParameters.d.ts} +2 -2
  89. package/serialization/types/{PromptParametersRequest.js → PromptParameters.js} +2 -2
  90. package/serialization/types/PromptRequestChatHistoryInput.d.ts +15 -0
  91. package/serialization/types/{PromptRequestChatHistoryInputRequest.js → PromptRequestChatHistoryInput.js} +4 -4
  92. package/serialization/types/PromptRequestInput.d.ts +13 -0
  93. package/{dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js → serialization/types/PromptRequestInput.js} +9 -2
  94. package/{dist/serialization/types/PromptRequestJsonInputRequest.d.ts → serialization/types/PromptRequestJsonInput.d.ts} +2 -2
  95. package/{dist/serialization/types/PromptRequestJsonInputRequest.js → serialization/types/PromptRequestJsonInput.js} +2 -2
  96. package/serialization/types/{PromptRequestStringInputRequest.d.ts → PromptRequestStringInput.d.ts} +2 -2
  97. package/{dist/serialization/types/PromptRequestStringInputRequest.js → serialization/types/PromptRequestStringInput.js} +2 -2
  98. package/serialization/types/{PromptSettingsRequest.d.ts → PromptSettings.d.ts} +2 -2
  99. package/serialization/types/{PromptSettingsRequest.js → PromptSettings.js} +2 -2
  100. package/serialization/types/index.d.ts +7 -23
  101. package/serialization/types/index.js +7 -23
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -13
  105. package/api/types/ChatMessagePromptBlockRequest.d.ts +0 -13
  106. package/api/types/EphemeralPromptCacheConfigRequest.d.ts +0 -7
  107. package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -7
  108. package/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -15
  109. package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -13
  110. package/api/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -8
  111. package/api/types/JinjaPromptBlockRequest.d.ts +0 -13
  112. package/api/types/PlainTextPromptBlockRequest.d.ts +0 -13
  113. package/api/types/PromptBlockRequest.d.ts +0 -5
  114. package/api/types/PromptBlockState.d.ts +0 -12
  115. package/api/types/PromptBlockState.js +0 -10
  116. package/api/types/PromptRequestInputRequest.d.ts +0 -5
  117. package/api/types/PromptRequestStringInputRequest.js +0 -5
  118. package/api/types/PromptSettingsRequest.js +0 -5
  119. package/api/types/RichTextChildBlockRequest.d.ts +0 -5
  120. package/api/types/RichTextChildBlockRequest.js +0 -5
  121. package/api/types/RichTextPromptBlockRequest.d.ts +0 -14
  122. package/api/types/RichTextPromptBlockRequest.js +0 -5
  123. package/api/types/VariablePromptBlockRequest.d.ts +0 -13
  124. package/api/types/VariablePromptBlockRequest.js +0 -5
  125. package/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
  126. package/api/types/VellumVariableExtensionsRequest.js +0 -5
  127. package/api/types/VellumVariableRequest.d.ts +0 -12
  128. package/api/types/VellumVariableRequest.js +0 -5
  129. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +0 -5
  130. package/dist/api/types/AdHocExpandMetaRequest.js +0 -5
  131. package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -13
  132. package/dist/api/types/ChatMessagePromptBlockPropertiesRequest.js +0 -5
  133. package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +0 -13
  134. package/dist/api/types/ChatMessagePromptBlockRequest.js +0 -5
  135. package/dist/api/types/EphemeralPromptCacheConfigRequest.d.ts +0 -7
  136. package/dist/api/types/EphemeralPromptCacheConfigRequest.js +0 -5
  137. package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -7
  138. package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.js +0 -5
  139. package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -15
  140. package/dist/api/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -5
  141. package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -13
  142. package/dist/api/types/FunctionDefinitionPromptBlockRequest.js +0 -5
  143. package/dist/api/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -8
  144. package/dist/api/types/JinjaPromptBlockPropertiesRequest.js +0 -5
  145. package/dist/api/types/JinjaPromptBlockRequest.d.ts +0 -13
  146. package/dist/api/types/JinjaPromptBlockRequest.js +0 -5
  147. package/dist/api/types/PlainTextPromptBlockRequest.d.ts +0 -13
  148. package/dist/api/types/PlainTextPromptBlockRequest.js +0 -5
  149. package/dist/api/types/PromptBlockRequest.d.ts +0 -5
  150. package/dist/api/types/PromptBlockRequest.js +0 -5
  151. package/dist/api/types/PromptBlockState.d.ts +0 -12
  152. package/dist/api/types/PromptBlockState.js +0 -10
  153. package/dist/api/types/PromptParametersRequest.js +0 -5
  154. package/dist/api/types/PromptRequestChatHistoryInputRequest.js +0 -5
  155. package/dist/api/types/PromptRequestInputRequest.d.ts +0 -5
  156. package/dist/api/types/PromptRequestInputRequest.js +0 -5
  157. package/dist/api/types/PromptRequestJsonInputRequest.js +0 -5
  158. package/dist/api/types/PromptRequestStringInputRequest.js +0 -5
  159. package/dist/api/types/PromptSettingsRequest.js +0 -5
  160. package/dist/api/types/RichTextChildBlockRequest.d.ts +0 -5
  161. package/dist/api/types/RichTextChildBlockRequest.js +0 -5
  162. package/dist/api/types/RichTextPromptBlockRequest.d.ts +0 -14
  163. package/dist/api/types/RichTextPromptBlockRequest.js +0 -5
  164. package/dist/api/types/VariablePromptBlockRequest.d.ts +0 -13
  165. package/dist/api/types/VariablePromptBlockRequest.js +0 -5
  166. package/dist/api/types/VellumVariableExtensionsRequest.d.ts +0 -9
  167. package/dist/api/types/VellumVariableExtensionsRequest.js +0 -5
  168. package/dist/api/types/VellumVariableRequest.d.ts +0 -12
  169. package/dist/api/types/VellumVariableRequest.js +0 -5
  170. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
  171. package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -16
  172. package/dist/serialization/types/ChatMessagePromptBlockPropertiesRequest.js +0 -38
  173. package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +0 -17
  174. package/dist/serialization/types/ChatMessagePromptBlockRequest.js +0 -39
  175. package/dist/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +0 -13
  176. package/dist/serialization/types/EphemeralPromptCacheConfigRequest.js +0 -34
  177. package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -10
  178. package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -16
  179. package/dist/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -37
  180. package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -18
  181. package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -39
  182. package/dist/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -14
  183. package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +0 -18
  184. package/dist/serialization/types/JinjaPromptBlockRequest.js +0 -39
  185. package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +0 -17
  186. package/dist/serialization/types/PlainTextPromptBlockRequest.js +0 -38
  187. package/dist/serialization/types/PromptBlockRequest.d.ts +0 -14
  188. package/dist/serialization/types/PromptBlockRequest.js +0 -42
  189. package/dist/serialization/types/PromptBlockState.d.ts +0 -10
  190. package/dist/serialization/types/PromptBlockState.js +0 -31
  191. package/dist/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
  192. package/dist/serialization/types/PromptRequestInputRequest.d.ts +0 -13
  193. package/dist/serialization/types/PromptRequestInputRequest.js +0 -38
  194. package/dist/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
  195. package/dist/serialization/types/RichTextChildBlockRequest.js +0 -33
  196. package/dist/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
  197. package/dist/serialization/types/RichTextPromptBlockRequest.js +0 -40
  198. package/dist/serialization/types/VariablePromptBlockRequest.d.ts +0 -17
  199. package/dist/serialization/types/VariablePromptBlockRequest.js +0 -38
  200. package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
  201. package/dist/serialization/types/VellumVariableExtensionsRequest.js +0 -33
  202. package/dist/serialization/types/VellumVariableRequest.d.ts +0 -19
  203. package/dist/serialization/types/VellumVariableRequest.js +0 -41
  204. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +0 -23
  205. package/serialization/types/ChatMessagePromptBlockPropertiesRequest.d.ts +0 -16
  206. package/serialization/types/ChatMessagePromptBlockPropertiesRequest.js +0 -38
  207. package/serialization/types/ChatMessagePromptBlockRequest.d.ts +0 -17
  208. package/serialization/types/ChatMessagePromptBlockRequest.js +0 -39
  209. package/serialization/types/EphemeralPromptCacheConfigRequest.d.ts +0 -13
  210. package/serialization/types/EphemeralPromptCacheConfigRequest.js +0 -34
  211. package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +0 -10
  212. package/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +0 -31
  213. package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.d.ts +0 -16
  214. package/serialization/types/FunctionDefinitionPromptBlockPropertiesRequest.js +0 -37
  215. package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +0 -18
  216. package/serialization/types/FunctionDefinitionPromptBlockRequest.js +0 -39
  217. package/serialization/types/JinjaPromptBlockPropertiesRequest.d.ts +0 -14
  218. package/serialization/types/JinjaPromptBlockPropertiesRequest.js +0 -35
  219. package/serialization/types/JinjaPromptBlockRequest.d.ts +0 -18
  220. package/serialization/types/JinjaPromptBlockRequest.js +0 -39
  221. package/serialization/types/PlainTextPromptBlockRequest.d.ts +0 -17
  222. package/serialization/types/PlainTextPromptBlockRequest.js +0 -38
  223. package/serialization/types/PromptBlockRequest.d.ts +0 -14
  224. package/serialization/types/PromptBlockRequest.js +0 -42
  225. package/serialization/types/PromptBlockState.d.ts +0 -10
  226. package/serialization/types/PromptBlockState.js +0 -31
  227. package/serialization/types/PromptRequestChatHistoryInputRequest.d.ts +0 -15
  228. package/serialization/types/PromptRequestInputRequest.d.ts +0 -13
  229. package/serialization/types/PromptRequestInputRequest.js +0 -38
  230. package/serialization/types/RichTextChildBlockRequest.d.ts +0 -12
  231. package/serialization/types/RichTextChildBlockRequest.js +0 -33
  232. package/serialization/types/RichTextPromptBlockRequest.d.ts +0 -19
  233. package/serialization/types/RichTextPromptBlockRequest.js +0 -40
  234. package/serialization/types/VariablePromptBlockRequest.d.ts +0 -17
  235. package/serialization/types/VariablePromptBlockRequest.js +0 -38
  236. package/serialization/types/VellumVariableExtensionsRequest.d.ts +0 -12
  237. package/serialization/types/VellumVariableExtensionsRequest.js +0 -33
  238. package/serialization/types/VellumVariableRequest.d.ts +0 -19
  239. package/serialization/types/VellumVariableRequest.js +0 -41
  240. /package/api/resources/adHoc/client/requests/{AdHocExecutePromptStreamRequest.js → AdHocExecutePromptStream.js} +0 -0
  241. /package/api/types/{AdHocExpandMetaRequest.js → AdHocExpandMeta.js} +0 -0
  242. /package/api/types/{ChatMessagePromptBlockPropertiesRequest.js → PromptParameters.js} +0 -0
  243. /package/api/types/{ChatMessagePromptBlockRequest.js → PromptRequestChatHistoryInput.js} +0 -0
  244. /package/api/types/{EphemeralPromptCacheConfigRequest.js → PromptRequestInput.js} +0 -0
  245. /package/api/types/{EphemeralPromptCacheConfigTypeEnum.js → PromptRequestJsonInput.js} +0 -0
  246. /package/api/types/{FunctionDefinitionPromptBlockPropertiesRequest.js → PromptRequestStringInput.js} +0 -0
  247. /package/api/types/{FunctionDefinitionPromptBlockRequest.js → PromptSettings.js} +0 -0
  248. /package/{api/types/JinjaPromptBlockPropertiesRequest.js → dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.js} +0 -0
  249. /package/{api/types/JinjaPromptBlockRequest.js → dist/api/types/AdHocExpandMeta.js} +0 -0
  250. /package/{api/types/PlainTextPromptBlockRequest.js → dist/api/types/PromptParameters.js} +0 -0
  251. /package/{api/types/PromptBlockRequest.js → dist/api/types/PromptRequestChatHistoryInput.js} +0 -0
  252. /package/{api/types/PromptParametersRequest.js → dist/api/types/PromptRequestInput.js} +0 -0
  253. /package/{api/types/PromptRequestChatHistoryInputRequest.js → dist/api/types/PromptRequestJsonInput.js} +0 -0
  254. /package/{api/types/PromptRequestInputRequest.js → dist/api/types/PromptRequestStringInput.js} +0 -0
  255. /package/{api/types/PromptRequestJsonInputRequest.js → dist/api/types/PromptSettings.js} +0 -0
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface VellumVariableRequest {
6
- id: string;
7
- key: string;
8
- type: Vellum.VellumVariableType;
9
- required?: boolean;
10
- default?: Vellum.VellumValueRequest;
11
- extensions?: Vellum.VellumVariableExtensionsRequest;
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,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,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 "../index";
5
- /**
6
- * The properties of a ChatMessagePromptTemplateBlock
7
- */
8
- export interface ChatMessagePromptBlockPropertiesRequest {
9
- blocks: Vellum.PromptBlockRequest[];
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,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- /**
6
- * A block that represents a chat message in a prompt template.
7
- */
8
- export interface ChatMessagePromptBlockRequest {
9
- state?: Vellum.PromptBlockState;
10
- cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
11
- blockType: "CHAT_MESSAGE";
12
- properties: Vellum.ChatMessagePromptBlockPropertiesRequest;
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,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface EphemeralPromptCacheConfigRequest {
6
- type?: Vellum.EphemeralPromptCacheConfigTypeEnum;
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,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * - `EPHEMERAL` - EPHEMERAL
6
- */
7
- export declare type EphemeralPromptCacheConfigTypeEnum = "EPHEMERAL";
@@ -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,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FunctionDefinitionPromptBlockPropertiesRequest {
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
- /** Set this option to use strict schema decoding when available. */
14
- functionStrict?: boolean;
15
- }
@@ -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 "../index";
5
- /**
6
- * A block that represents a function definition in a prompt template.
7
- */
8
- export interface FunctionDefinitionPromptBlockRequest {
9
- state?: Vellum.PromptBlockState;
10
- cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
11
- blockType: "FUNCTION_DEFINITION";
12
- properties: Vellum.FunctionDefinitionPromptBlockPropertiesRequest;
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,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface JinjaPromptBlockPropertiesRequest {
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,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- /**
6
- * A block of Jinja template code that is used to generate a prompt
7
- */
8
- export interface JinjaPromptBlockRequest {
9
- state?: Vellum.PromptBlockState;
10
- cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
11
- blockType: "JINJA";
12
- properties: Vellum.JinjaPromptBlockPropertiesRequest;
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,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- /**
6
- * A block that holds a plain text string value.
7
- */
8
- export interface PlainTextPromptBlockRequest {
9
- state?: Vellum.PromptBlockState;
10
- cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
11
- blockType: "PLAIN_TEXT";
12
- text: string;
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,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export declare type PromptBlockRequest = Vellum.JinjaPromptBlockRequest | Vellum.ChatMessagePromptBlockRequest | Vellum.FunctionDefinitionPromptBlockRequest | Vellum.VariablePromptBlockRequest | Vellum.RichTextPromptBlockRequest;
@@ -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 PromptBlockState = "ENABLED" | "DISABLED";
9
- export declare const PromptBlockState: {
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.PromptBlockState = void 0;
7
- exports.PromptBlockState = {
8
- Enabled: "ENABLED",
9
- Disabled: "DISABLED",
10
- };
@@ -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,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,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export declare type PromptRequestInputRequest = Vellum.PromptRequestStringInputRequest | Vellum.PromptRequestJsonInputRequest | Vellum.PromptRequestChatHistoryInputRequest;
@@ -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,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,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,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,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export declare type RichTextChildBlockRequest = Vellum.VariablePromptBlockRequest | Vellum.PlainTextPromptBlockRequest;
@@ -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 "../index";
5
- /**
6
- * A block that includes a combination of plain text and variable blocks.
7
- */
8
- export interface RichTextPromptBlockRequest {
9
- blockType: "RICH_TEXT";
10
- blocks: Vellum.RichTextChildBlockRequest[];
11
- id: string;
12
- state?: Vellum.PromptBlockState;
13
- cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
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,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- /**
6
- * A block that represents a variable in a prompt template.
7
- */
8
- export interface VariablePromptBlockRequest {
9
- state?: Vellum.PromptBlockState;
10
- cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
11
- blockType: "VARIABLE";
12
- inputVariableId: string;
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,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A set of fields with additional properties for use in Vellum Variables.
6
- */
7
- export interface VellumVariableExtensionsRequest {
8
- color?: 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,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "../index";
5
- export interface VellumVariableRequest {
6
- id: string;
7
- key: string;
8
- type: Vellum.VellumVariableType;
9
- required?: boolean;
10
- default?: Vellum.VellumValueRequest;
11
- extensions?: Vellum.VellumVariableExtensionsRequest;
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,23 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../index";
5
- import * as Vellum from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- import { PromptRequestInputRequest } from "../../../../types/PromptRequestInputRequest";
8
- import { VellumVariableRequest } from "../../../../types/VellumVariableRequest";
9
- import { PromptParametersRequest } from "../../../../types/PromptParametersRequest";
10
- import { PromptSettingsRequest } from "../../../../types/PromptSettingsRequest";
11
- import { AdHocExpandMetaRequest } from "../../../../types/AdHocExpandMetaRequest";
12
- export declare const AdHocExecutePromptStreamRequest: core.serialization.Schema<serializers.AdHocExecutePromptStreamRequest.Raw, Vellum.AdHocExecutePromptStreamRequest>;
13
- export declare namespace AdHocExecutePromptStreamRequest {
14
- interface Raw {
15
- ml_model: string;
16
- input_values: PromptRequestInputRequest.Raw[];
17
- input_variables: VellumVariableRequest.Raw[];
18
- parameters: PromptParametersRequest.Raw;
19
- settings?: PromptSettingsRequest.Raw | null;
20
- blocks: serializers.PromptBlockRequest.Raw[];
21
- expand_meta?: AdHocExpandMetaRequest.Raw | null;
22
- }
23
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { ChatMessageRole } from "./ChatMessageRole";
8
- export declare const ChatMessagePromptBlockPropertiesRequest: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlockPropertiesRequest.Raw, Vellum.ChatMessagePromptBlockPropertiesRequest>;
9
- export declare namespace ChatMessagePromptBlockPropertiesRequest {
10
- interface Raw {
11
- blocks: serializers.PromptBlockRequest.Raw[];
12
- chat_role?: ChatMessageRole.Raw | null;
13
- chat_source?: string | null;
14
- chat_message_unterminated?: boolean | null;
15
- }
16
- }
@@ -1,38 +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.ChatMessagePromptBlockPropertiesRequest = void 0;
30
- const serializers = __importStar(require("../index"));
31
- const core = __importStar(require("../../core"));
32
- const ChatMessageRole_1 = require("./ChatMessageRole");
33
- exports.ChatMessagePromptBlockPropertiesRequest = core.serialization.object({
34
- blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlockRequest)),
35
- chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole.optional()),
36
- chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
37
- chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
38
- });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { PromptBlockState } from "./PromptBlockState";
8
- import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
9
- export declare const ChatMessagePromptBlockRequest: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlockRequest.Raw, Vellum.ChatMessagePromptBlockRequest>;
10
- export declare namespace ChatMessagePromptBlockRequest {
11
- interface Raw {
12
- state?: PromptBlockState.Raw | null;
13
- cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
14
- block_type: "CHAT_MESSAGE";
15
- properties: serializers.ChatMessagePromptBlockPropertiesRequest.Raw;
16
- }
17
- }
@@ -1,39 +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.ChatMessagePromptBlockRequest = void 0;
30
- const serializers = __importStar(require("../index"));
31
- const core = __importStar(require("../../core"));
32
- const PromptBlockState_1 = require("./PromptBlockState");
33
- const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
34
- exports.ChatMessagePromptBlockRequest = core.serialization.object({
35
- state: PromptBlockState_1.PromptBlockState.optional(),
36
- cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
37
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
38
- properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockPropertiesRequest),
39
- });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- import { EphemeralPromptCacheConfigTypeEnum } from "./EphemeralPromptCacheConfigTypeEnum";
8
- export declare const EphemeralPromptCacheConfigRequest: core.serialization.ObjectSchema<serializers.EphemeralPromptCacheConfigRequest.Raw, Vellum.EphemeralPromptCacheConfigRequest>;
9
- export declare namespace EphemeralPromptCacheConfigRequest {
10
- interface Raw {
11
- type?: EphemeralPromptCacheConfigTypeEnum.Raw | null;
12
- }
13
- }
@@ -1,34 +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.EphemeralPromptCacheConfigRequest = void 0;
30
- const core = __importStar(require("../../core"));
31
- const EphemeralPromptCacheConfigTypeEnum_1 = require("./EphemeralPromptCacheConfigTypeEnum");
32
- exports.EphemeralPromptCacheConfigRequest = core.serialization.object({
33
- type: EphemeralPromptCacheConfigTypeEnum_1.EphemeralPromptCacheConfigTypeEnum.optional(),
34
- });
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const EphemeralPromptCacheConfigTypeEnum: core.serialization.Schema<serializers.EphemeralPromptCacheConfigTypeEnum.Raw, Vellum.EphemeralPromptCacheConfigTypeEnum>;
8
- export declare namespace EphemeralPromptCacheConfigTypeEnum {
9
- type Raw = "EPHEMERAL";
10
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as Vellum from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const FunctionDefinitionPromptBlockPropertiesRequest: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlockPropertiesRequest.Raw, Vellum.FunctionDefinitionPromptBlockPropertiesRequest>;
8
- export declare namespace FunctionDefinitionPromptBlockPropertiesRequest {
9
- interface Raw {
10
- function_name?: string | null;
11
- function_description?: string | null;
12
- function_parameters?: Record<string, unknown> | null;
13
- function_forced?: boolean | null;
14
- function_strict?: boolean | null;
15
- }
16
- }