vellum-ai 0.3.25 → 0.4.0

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 (347) hide show
  1. package/Client.js +9 -9
  2. package/api/resources/deployments/client/Client.js +3 -3
  3. package/api/resources/documentIndexes/client/Client.js +6 -6
  4. package/api/resources/documents/client/Client.d.ts +7 -0
  5. package/api/resources/documents/client/Client.js +51 -4
  6. package/api/resources/folderEntities/client/Client.js +1 -1
  7. package/api/resources/modelVersions/client/Client.js +1 -1
  8. package/api/resources/registeredPrompts/client/Client.d.ts +2 -6
  9. package/api/resources/registeredPrompts/client/Client.js +3 -7
  10. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -6
  11. package/api/resources/sandboxes/client/Client.d.ts +1 -9
  12. package/api/resources/sandboxes/client/Client.js +3 -11
  13. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +3 -3
  16. package/api/resources/workflowDeployments/client/Client.js +2 -2
  17. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  18. package/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +12 -0
  19. package/api/types/ChatMessageEnum.d.ts +4 -0
  20. package/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  21. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  22. package/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +13 -0
  23. package/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +12 -0
  24. package/api/types/ChatMessagePromptTemplateBlockRequest.js +5 -0
  25. package/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  26. package/api/types/FulfilledFunctionCallRequest.js +5 -0
  27. package/api/types/FunctionDefinitionEnum.d.ts +4 -0
  28. package/api/types/FunctionDefinitionEnum.js +5 -0
  29. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  30. package/api/types/FunctionDefinitionPromptTemplateBlock.js +5 -0
  31. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  32. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +5 -0
  33. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +13 -0
  34. package/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +5 -0
  35. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +12 -0
  36. package/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +5 -0
  37. package/api/types/JinjaEnum.d.ts +4 -0
  38. package/api/types/JinjaEnum.js +5 -0
  39. package/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  40. package/api/types/JinjaPromptTemplateBlock.js +5 -0
  41. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  42. package/api/types/JinjaPromptTemplateBlockProperties.js +5 -0
  43. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +8 -0
  44. package/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +5 -0
  45. package/api/types/JinjaPromptTemplateBlockRequest.d.ts +12 -0
  46. package/api/types/JinjaPromptTemplateBlockRequest.js +5 -0
  47. package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  48. package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.js +5 -0
  49. package/api/types/NamedScenarioInputRequest.d.ts +13 -0
  50. package/api/types/NamedScenarioInputRequest.js +5 -0
  51. package/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  52. package/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
  53. package/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  54. package/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
  55. package/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  56. package/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
  57. package/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  58. package/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  59. package/api/types/PromptTemplateBlock.d.ts +14 -5
  60. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  61. package/api/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  62. package/api/types/PromptTemplateBlockRequest.d.ts +14 -5
  63. package/api/types/ScenarioInput.d.ts +8 -5
  64. package/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  65. package/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
  66. package/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  67. package/api/types/ScenarioInputStringVariableValue.js +5 -0
  68. package/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  69. package/api/types/TestCaseFunctionCallVariableValue.js +5 -0
  70. package/api/types/TestCaseVariableValue.d.ts +4 -1
  71. package/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  72. package/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
  73. package/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  74. package/api/types/VellumVariableType.d.ts +3 -1
  75. package/api/types/VellumVariableType.js +1 -0
  76. package/api/types/index.d.ts +27 -5
  77. package/api/types/index.js +27 -5
  78. package/dist/Client.js +9 -9
  79. package/dist/api/resources/deployments/client/Client.js +3 -3
  80. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  81. package/dist/api/resources/documents/client/Client.d.ts +7 -0
  82. package/dist/api/resources/documents/client/Client.js +51 -4
  83. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  84. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  85. package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -6
  86. package/dist/api/resources/registeredPrompts/client/Client.js +3 -7
  87. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -6
  88. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -9
  89. package/dist/api/resources/sandboxes/client/Client.js +3 -11
  90. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  91. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  92. package/dist/api/resources/testSuites/client/Client.js +3 -3
  93. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  94. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  95. package/dist/api/types/ChatHistoryPromptTemplateBlock.js +5 -0
  96. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.d.ts +12 -0
  97. package/dist/api/types/ChatHistoryPromptTemplateBlockRequest.js +5 -0
  98. package/dist/api/types/ChatMessageEnum.d.ts +4 -0
  99. package/dist/api/types/ChatMessageEnum.js +5 -0
  100. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  101. package/dist/api/types/ChatMessagePromptTemplateBlock.js +5 -0
  102. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  103. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +5 -0
  104. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +13 -0
  105. package/dist/api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js +5 -0
  106. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.d.ts +12 -0
  107. package/dist/api/types/ChatMessagePromptTemplateBlockRequest.js +5 -0
  108. package/dist/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  109. package/dist/api/types/FulfilledFunctionCallRequest.js +5 -0
  110. package/dist/api/types/FunctionDefinitionEnum.d.ts +4 -0
  111. package/dist/api/types/FunctionDefinitionEnum.js +5 -0
  112. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  113. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +5 -0
  114. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  115. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +5 -0
  116. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +13 -0
  117. package/dist/api/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +5 -0
  118. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +12 -0
  119. package/dist/api/types/FunctionDefinitionPromptTemplateBlockRequest.js +5 -0
  120. package/dist/api/types/JinjaEnum.d.ts +4 -0
  121. package/dist/api/types/JinjaEnum.js +5 -0
  122. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  123. package/dist/api/types/JinjaPromptTemplateBlock.js +5 -0
  124. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  125. package/dist/api/types/JinjaPromptTemplateBlockProperties.js +5 -0
  126. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +8 -0
  127. package/dist/api/types/JinjaPromptTemplateBlockPropertiesRequest.js +5 -0
  128. package/dist/api/types/JinjaPromptTemplateBlockRequest.d.ts +12 -0
  129. package/dist/api/types/JinjaPromptTemplateBlockRequest.js +5 -0
  130. package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  131. package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.js +5 -0
  132. package/dist/api/types/NamedScenarioInputRequest.d.ts +13 -0
  133. package/dist/api/types/NamedScenarioInputRequest.js +5 -0
  134. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  135. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
  136. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  137. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
  138. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  139. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
  140. package/dist/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  141. package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  142. package/dist/api/types/PromptTemplateBlock.d.ts +14 -5
  143. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  144. package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  145. package/dist/api/types/PromptTemplateBlockRequest.d.ts +14 -5
  146. package/dist/api/types/ScenarioInput.d.ts +8 -5
  147. package/dist/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  148. package/dist/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
  149. package/dist/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  150. package/dist/api/types/ScenarioInputStringVariableValue.js +5 -0
  151. package/dist/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  152. package/dist/api/types/TestCaseFunctionCallVariableValue.js +5 -0
  153. package/dist/api/types/TestCaseVariableValue.d.ts +4 -1
  154. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  155. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
  156. package/dist/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  157. package/dist/api/types/VellumVariableType.d.ts +3 -1
  158. package/dist/api/types/VellumVariableType.js +1 -0
  159. package/dist/api/types/index.d.ts +27 -5
  160. package/dist/api/types/index.js +27 -5
  161. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  162. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  163. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  164. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
  165. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +15 -0
  166. package/dist/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +36 -0
  167. package/dist/serialization/types/ChatMessageEnum.d.ts +10 -0
  168. package/{serialization/types/ScenarioInputTypeEnum.js → dist/serialization/types/ChatMessageEnum.js} +2 -2
  169. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  170. package/dist/serialization/types/ChatMessagePromptTemplateBlock.js +45 -0
  171. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  172. package/{serialization/types/PromptTemplateBlockProperties.js → dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js} +4 -13
  173. package/dist/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +16 -0
  174. package/dist/serialization/types/{PromptTemplateBlockProperties.js → ChatMessagePromptTemplateBlockPropertiesRequest.js} +4 -13
  175. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +15 -0
  176. package/dist/serialization/types/ChatMessagePromptTemplateBlockRequest.js +45 -0
  177. package/dist/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  178. package/dist/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  179. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  180. package/dist/serialization/types/{BlockTypeEnum.js → FunctionDefinitionEnum.js} +2 -2
  181. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  182. package/{serialization/types/ScenarioInputRequest.js → dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js} +7 -8
  183. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  184. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
  185. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +15 -0
  186. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +36 -0
  187. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +16 -0
  188. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +37 -0
  189. package/dist/serialization/types/JinjaEnum.d.ts +10 -0
  190. package/dist/serialization/types/{ScenarioInputTypeEnum.js → JinjaEnum.js} +2 -2
  191. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  192. package/dist/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  193. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  194. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +35 -0
  195. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +14 -0
  196. package/dist/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +35 -0
  197. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +16 -0
  198. package/dist/serialization/types/JinjaPromptTemplateBlockRequest.js +37 -0
  199. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  200. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  201. package/dist/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  202. package/dist/serialization/types/NamedScenarioInputRequest.js +41 -0
  203. package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  204. package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.js +34 -0
  205. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  206. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
  207. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  208. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  209. package/dist/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  210. package/dist/serialization/types/NamedTestCaseVariableValue.js +2 -0
  211. package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  212. package/dist/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  213. package/dist/serialization/types/PromptTemplateBlock.d.ts +16 -8
  214. package/dist/serialization/types/PromptTemplateBlock.js +13 -7
  215. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  216. package/dist/serialization/types/PromptTemplateBlockData.js +1 -1
  217. package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  218. package/dist/serialization/types/PromptTemplateBlockDataRequest.js +1 -1
  219. package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +16 -8
  220. package/dist/serialization/types/PromptTemplateBlockRequest.js +13 -7
  221. package/dist/serialization/types/ScenarioInput.d.ts +9 -8
  222. package/dist/serialization/types/ScenarioInput.js +10 -7
  223. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  224. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  225. package/dist/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  226. package/dist/serialization/types/ScenarioInputStringVariableValue.js +34 -0
  227. package/dist/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  228. package/dist/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  229. package/dist/serialization/types/TestCaseVariableValue.d.ts +5 -1
  230. package/dist/serialization/types/TestCaseVariableValue.js +2 -0
  231. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  232. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  233. package/dist/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  234. package/dist/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  235. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  236. package/dist/serialization/types/VellumVariableType.js +1 -0
  237. package/dist/serialization/types/index.d.ts +27 -5
  238. package/dist/serialization/types/index.js +27 -5
  239. package/package.json +1 -1
  240. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  241. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  242. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  243. package/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
  244. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.d.ts +15 -0
  245. package/serialization/types/ChatHistoryPromptTemplateBlockRequest.js +36 -0
  246. package/serialization/types/ChatMessageEnum.d.ts +10 -0
  247. package/serialization/types/{BlockTypeEnum.js → ChatMessageEnum.js} +2 -2
  248. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  249. package/serialization/types/ChatMessagePromptTemplateBlock.js +45 -0
  250. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  251. package/{dist/serialization/types/PromptTemplateBlockPropertiesRequest.js → serialization/types/ChatMessagePromptTemplateBlockProperties.js} +4 -13
  252. package/serialization/types/ChatMessagePromptTemplateBlockPropertiesRequest.d.ts +16 -0
  253. package/serialization/types/{PromptTemplateBlockPropertiesRequest.js → ChatMessagePromptTemplateBlockPropertiesRequest.js} +4 -13
  254. package/serialization/types/ChatMessagePromptTemplateBlockRequest.d.ts +15 -0
  255. package/serialization/types/ChatMessagePromptTemplateBlockRequest.js +45 -0
  256. package/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  257. package/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  258. package/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  259. package/serialization/types/FunctionDefinitionEnum.js +31 -0
  260. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  261. package/{dist/serialization/types/ScenarioInputRequest.js → serialization/types/FunctionDefinitionPromptTemplateBlock.js} +7 -8
  262. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  263. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
  264. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.d.ts +15 -0
  265. package/serialization/types/FunctionDefinitionPromptTemplateBlockPropertiesRequest.js +36 -0
  266. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.d.ts +16 -0
  267. package/serialization/types/FunctionDefinitionPromptTemplateBlockRequest.js +37 -0
  268. package/serialization/types/JinjaEnum.d.ts +10 -0
  269. package/serialization/types/JinjaEnum.js +31 -0
  270. package/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  271. package/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  272. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  273. package/serialization/types/JinjaPromptTemplateBlockProperties.js +35 -0
  274. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.d.ts +14 -0
  275. package/serialization/types/JinjaPromptTemplateBlockPropertiesRequest.js +35 -0
  276. package/serialization/types/JinjaPromptTemplateBlockRequest.d.ts +16 -0
  277. package/serialization/types/JinjaPromptTemplateBlockRequest.js +37 -0
  278. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  279. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  280. package/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  281. package/serialization/types/NamedScenarioInputRequest.js +41 -0
  282. package/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  283. package/serialization/types/NamedScenarioInputStringVariableValueRequest.js +34 -0
  284. package/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  285. package/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
  286. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  287. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  288. package/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  289. package/serialization/types/NamedTestCaseVariableValue.js +2 -0
  290. package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  291. package/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  292. package/serialization/types/PromptTemplateBlock.d.ts +16 -8
  293. package/serialization/types/PromptTemplateBlock.js +13 -7
  294. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  295. package/serialization/types/PromptTemplateBlockData.js +1 -1
  296. package/serialization/types/PromptTemplateBlockDataRequest.d.ts +1 -1
  297. package/serialization/types/PromptTemplateBlockDataRequest.js +1 -1
  298. package/serialization/types/PromptTemplateBlockRequest.d.ts +16 -8
  299. package/serialization/types/PromptTemplateBlockRequest.js +13 -7
  300. package/serialization/types/ScenarioInput.d.ts +9 -8
  301. package/serialization/types/ScenarioInput.js +10 -7
  302. package/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  303. package/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  304. package/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  305. package/serialization/types/ScenarioInputStringVariableValue.js +34 -0
  306. package/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  307. package/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  308. package/serialization/types/TestCaseVariableValue.d.ts +5 -1
  309. package/serialization/types/TestCaseVariableValue.js +2 -0
  310. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  311. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  312. package/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  313. package/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  314. package/serialization/types/VellumVariableType.d.ts +1 -1
  315. package/serialization/types/VellumVariableType.js +1 -0
  316. package/serialization/types/index.d.ts +27 -5
  317. package/serialization/types/index.js +27 -5
  318. package/api/types/BlockTypeEnum.d.ts +0 -16
  319. package/api/types/BlockTypeEnum.js +0 -12
  320. package/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  321. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  322. package/api/types/ScenarioInputRequest.d.ts +0 -10
  323. package/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  324. package/api/types/ScenarioInputTypeEnum.js +0 -10
  325. package/dist/api/types/BlockTypeEnum.d.ts +0 -16
  326. package/dist/api/types/BlockTypeEnum.js +0 -12
  327. package/dist/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  328. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  329. package/dist/api/types/ScenarioInputRequest.d.ts +0 -10
  330. package/dist/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  331. package/dist/api/types/ScenarioInputTypeEnum.js +0 -10
  332. package/dist/serialization/types/BlockTypeEnum.d.ts +0 -10
  333. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  334. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  335. package/dist/serialization/types/ScenarioInputRequest.d.ts +0 -17
  336. package/dist/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  337. package/serialization/types/BlockTypeEnum.d.ts +0 -10
  338. package/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  339. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  340. package/serialization/types/ScenarioInputRequest.d.ts +0 -17
  341. package/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  342. /package/api/types/{PromptTemplateBlockProperties.js → ChatHistoryPromptTemplateBlock.js} +0 -0
  343. /package/api/types/{PromptTemplateBlockPropertiesRequest.js → ChatHistoryPromptTemplateBlockRequest.js} +0 -0
  344. /package/api/types/{ScenarioInputRequest.js → ChatMessageEnum.js} +0 -0
  345. /package/{dist/api/types/PromptTemplateBlockProperties.js → api/types/ChatMessagePromptTemplateBlock.js} +0 -0
  346. /package/{dist/api/types/PromptTemplateBlockPropertiesRequest.js → api/types/ChatMessagePromptTemplateBlockProperties.js} +0 -0
  347. /package/{dist/api/types/ScenarioInputRequest.js → api/types/ChatMessagePromptTemplateBlockPropertiesRequest.js} +0 -0
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * The final resolved function call value.
7
+ */
8
+ export interface FulfilledFunctionCallRequest {
9
+ state: Vellum.FulfilledEnum;
10
+ arguments: Record<string, unknown>;
11
+ id?: string;
12
+ name: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type FunctionDefinitionEnum = "FUNCTION_DEFINITION";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type JinjaEnum = "JINJA";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * Named Prompt Sandbox Scenario input value that is of type CHAT_HISTORY
7
+ */
8
+ export interface NamedScenarioInputChatHistoryVariableValueRequest {
9
+ value?: Vellum.ChatMessageRequest[];
10
+ name: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type NamedScenarioInputRequest = Vellum.NamedScenarioInputRequest.String | Vellum.NamedScenarioInputRequest.ChatHistory;
6
+ export declare namespace NamedScenarioInputRequest {
7
+ interface String extends Vellum.NamedScenarioInputStringVariableValueRequest {
8
+ type: "STRING";
9
+ }
10
+ interface ChatHistory extends Vellum.NamedScenarioInputChatHistoryVariableValueRequest {
11
+ type: "CHAT_HISTORY";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Named Prompt Sandbox Scenario input value that is of type STRING
6
+ */
7
+ export interface NamedScenarioInputStringVariableValueRequest {
8
+ value?: string;
9
+ name: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * Named Test Case value that is of type FUNCTION_CALL
7
+ */
8
+ export interface NamedTestCaseFunctionCallVariableValue {
9
+ value?: Vellum.FulfilledFunctionCall;
10
+ name: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * Named Test Case value that is of type FUNCTION_CALL
7
+ */
8
+ export interface NamedTestCaseFunctionCallVariableValueRequest {
9
+ value?: Vellum.FulfilledFunctionCallRequest;
10
+ name: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type NamedTestCaseVariableValue = Vellum.NamedTestCaseVariableValue.String | Vellum.NamedTestCaseVariableValue.Number | Vellum.NamedTestCaseVariableValue.Json | Vellum.NamedTestCaseVariableValue.ChatHistory | Vellum.NamedTestCaseVariableValue.SearchResults | Vellum.NamedTestCaseVariableValue.Error_;
5
+ export declare type NamedTestCaseVariableValue = Vellum.NamedTestCaseVariableValue.String | Vellum.NamedTestCaseVariableValue.Number | Vellum.NamedTestCaseVariableValue.Json | Vellum.NamedTestCaseVariableValue.ChatHistory | Vellum.NamedTestCaseVariableValue.SearchResults | Vellum.NamedTestCaseVariableValue.Error_ | Vellum.NamedTestCaseVariableValue.FunctionCall;
6
6
  export declare namespace NamedTestCaseVariableValue {
7
7
  interface String extends Vellum.NamedTestCaseStringVariableValue {
8
8
  type: "STRING";
@@ -22,4 +22,7 @@ export declare namespace NamedTestCaseVariableValue {
22
22
  interface Error_ extends Vellum.NamedTestCaseErrorVariableValue {
23
23
  type: "ERROR";
24
24
  }
25
+ interface FunctionCall extends Vellum.NamedTestCaseFunctionCallVariableValue {
26
+ type: "FUNCTION_CALL";
27
+ }
25
28
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_;
5
+ export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_ | Vellum.NamedTestCaseVariableValueRequest.FunctionCall;
6
6
  export declare namespace NamedTestCaseVariableValueRequest {
7
7
  interface String extends Vellum.NamedTestCaseStringVariableValueRequest {
8
8
  type: "STRING";
@@ -22,4 +22,7 @@ export declare namespace NamedTestCaseVariableValueRequest {
22
22
  interface Error_ extends Vellum.NamedTestCaseErrorVariableValueRequest {
23
23
  type: "ERROR";
24
24
  }
25
+ interface FunctionCall extends Vellum.NamedTestCaseFunctionCallVariableValueRequest {
26
+ type: "FUNCTION_CALL";
27
+ }
25
28
  }
@@ -2,9 +2,18 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface PromptTemplateBlock {
6
- id: string;
7
- blockType: Vellum.BlockTypeEnum;
8
- properties: Vellum.PromptTemplateBlockProperties;
9
- state?: Vellum.PromptTemplateBlockState;
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
+ }
10
19
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockData {
6
- version: number;
7
6
  blocks: Vellum.PromptTemplateBlock[];
7
+ version: number;
8
8
  }
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockDataRequest {
6
- version: number;
7
6
  blocks: Vellum.PromptTemplateBlockRequest[];
7
+ version: number;
8
8
  }
@@ -2,9 +2,18 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface PromptTemplateBlockRequest {
6
- id: string;
7
- blockType: Vellum.BlockTypeEnum;
8
- properties: Vellum.PromptTemplateBlockPropertiesRequest;
9
- state?: Vellum.PromptTemplateBlockState;
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
+ }
10
19
  }
@@ -2,9 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export interface ScenarioInput {
6
- key: string;
7
- type?: Vellum.ScenarioInputTypeEnum;
8
- value?: string;
9
- chatHistory?: Vellum.ChatMessage[];
5
+ export declare type ScenarioInput = Vellum.ScenarioInput.String | Vellum.ScenarioInput.ChatHistory;
6
+ export declare namespace ScenarioInput {
7
+ interface String extends Vellum.ScenarioInputStringVariableValue {
8
+ type: "STRING";
9
+ }
10
+ interface ChatHistory extends Vellum.ScenarioInputChatHistoryVariableValue {
11
+ type: "CHAT_HISTORY";
12
+ }
10
13
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * Prompt Sandbox Scenario input value that is of type CHAT_HISTORY
7
+ */
8
+ export interface ScenarioInputChatHistoryVariableValue {
9
+ value?: Vellum.ChatMessage[];
10
+ inputVariableId: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Prompt Sandbox Scenario input value that is of type STRING
6
+ */
7
+ export interface ScenarioInputStringVariableValue {
8
+ value?: string;
9
+ inputVariableId: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * A function call value for a variable in a Test Case.
7
+ */
8
+ export interface TestCaseFunctionCallVariableValue {
9
+ variableId: string;
10
+ name: string;
11
+ value?: Vellum.FulfilledFunctionCall;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type TestCaseVariableValue = Vellum.TestCaseVariableValue.String | Vellum.TestCaseVariableValue.Number | Vellum.TestCaseVariableValue.Json | Vellum.TestCaseVariableValue.ChatHistory | Vellum.TestCaseVariableValue.SearchResults | Vellum.TestCaseVariableValue.Error_;
5
+ export declare type TestCaseVariableValue = Vellum.TestCaseVariableValue.String | Vellum.TestCaseVariableValue.Number | Vellum.TestCaseVariableValue.Json | Vellum.TestCaseVariableValue.ChatHistory | Vellum.TestCaseVariableValue.SearchResults | Vellum.TestCaseVariableValue.Error_ | Vellum.TestCaseVariableValue.FunctionCall;
6
6
  export declare namespace TestCaseVariableValue {
7
7
  interface String extends Vellum.TestCaseStringVariableValue {
8
8
  type: "STRING";
@@ -22,4 +22,7 @@ export declare namespace TestCaseVariableValue {
22
22
  interface Error_ extends Vellum.TestCaseErrorVariableValue {
23
23
  type: "ERROR";
24
24
  }
25
+ interface FunctionCall extends Vellum.TestCaseFunctionCallVariableValue {
26
+ type: "FUNCTION_CALL";
27
+ }
25
28
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * Execution output of an entity evaluated during a Test Suite Run that is of type FUNCTION_CALL
7
+ */
8
+ export interface TestSuiteRunExecutionFunctionCallOutput {
9
+ name: string;
10
+ value?: Vellum.FulfilledFunctionCall;
11
+ outputVariableId: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type TestSuiteRunExecutionOutput = Vellum.TestSuiteRunExecutionOutput.String | Vellum.TestSuiteRunExecutionOutput.Number | Vellum.TestSuiteRunExecutionOutput.Json | Vellum.TestSuiteRunExecutionOutput.ChatHistory | Vellum.TestSuiteRunExecutionOutput.SearchResults | Vellum.TestSuiteRunExecutionOutput.Error_;
5
+ export declare type TestSuiteRunExecutionOutput = Vellum.TestSuiteRunExecutionOutput.String | Vellum.TestSuiteRunExecutionOutput.Number | Vellum.TestSuiteRunExecutionOutput.Json | Vellum.TestSuiteRunExecutionOutput.ChatHistory | Vellum.TestSuiteRunExecutionOutput.SearchResults | Vellum.TestSuiteRunExecutionOutput.Error_ | Vellum.TestSuiteRunExecutionOutput.FunctionCall;
6
6
  export declare namespace TestSuiteRunExecutionOutput {
7
7
  interface String extends Vellum.TestSuiteRunExecutionStringOutput {
8
8
  type: "STRING";
@@ -22,4 +22,7 @@ export declare namespace TestSuiteRunExecutionOutput {
22
22
  interface Error_ extends Vellum.TestSuiteRunExecutionErrorOutput {
23
23
  type: "ERROR";
24
24
  }
25
+ interface FunctionCall extends Vellum.TestSuiteRunExecutionFunctionCallOutput {
26
+ type: "FUNCTION_CALL";
27
+ }
25
28
  }
@@ -11,8 +11,9 @@
11
11
  * - `ARRAY` - ARRAY
12
12
  * - `FUNCTION_CALL` - FUNCTION_CALL
13
13
  * - `IMAGE` - IMAGE
14
+ * - `NULL` - NULL
14
15
  */
15
- export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE";
16
+ export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE" | "NULL";
16
17
  export declare const VellumVariableType: {
17
18
  readonly String: "STRING";
18
19
  readonly Number: "NUMBER";
@@ -23,4 +24,5 @@ export declare const VellumVariableType: {
23
24
  readonly Array: "ARRAY";
24
25
  readonly FunctionCall: "FUNCTION_CALL";
25
26
  readonly Image: "IMAGE";
27
+ readonly Null: "NULL";
26
28
  };
@@ -14,4 +14,5 @@ exports.VellumVariableType = {
14
14
  Array: "ARRAY",
15
15
  FunctionCall: "FUNCTION_CALL",
16
16
  Image: "IMAGE",
17
+ Null: "NULL",
17
18
  };