vellum-ai 0.3.25 → 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 (390) 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.d.ts +7 -0
  8. package/api/resources/documents/client/Client.js +51 -4
  9. package/api/resources/folderEntities/client/Client.js +1 -1
  10. package/api/resources/index.d.ts +0 -2
  11. package/api/resources/index.js +1 -3
  12. package/api/resources/modelVersions/client/Client.js +1 -1
  13. package/api/resources/sandboxes/client/Client.d.ts +1 -9
  14. package/api/resources/sandboxes/client/Client.js +3 -11
  15. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  16. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  17. package/api/resources/testSuites/client/Client.js +3 -3
  18. package/api/resources/workflowDeployments/client/Client.js +2 -2
  19. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  20. package/api/types/ChatMessageEnum.d.ts +4 -0
  21. package/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  22. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  23. package/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  24. package/api/types/FunctionDefinitionEnum.d.ts +4 -0
  25. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  26. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  27. package/api/types/JinjaEnum.d.ts +4 -0
  28. package/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  29. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  30. package/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  31. package/api/types/NamedScenarioInputRequest.d.ts +13 -0
  32. package/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  33. package/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  34. package/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  35. package/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  36. package/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  37. package/api/types/PromptTemplateBlock.d.ts +14 -5
  38. package/api/types/PromptTemplateBlockData.d.ts +1 -1
  39. package/api/types/ScenarioInput.d.ts +8 -5
  40. package/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  41. package/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  42. package/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  43. package/api/types/TestCaseVariableValue.d.ts +4 -1
  44. package/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  45. package/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  46. package/api/types/VellumVariableType.d.ts +3 -1
  47. package/api/types/VellumVariableType.js +1 -0
  48. package/api/types/index.d.ts +20 -17
  49. package/api/types/index.js +20 -17
  50. package/dist/Client.d.ts +0 -3
  51. package/dist/Client.js +17 -22
  52. package/dist/api/errors/index.d.ts +0 -1
  53. package/dist/api/errors/index.js +0 -1
  54. package/dist/api/resources/deployments/client/Client.js +3 -3
  55. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  56. package/dist/api/resources/documents/client/Client.d.ts +7 -0
  57. package/dist/api/resources/documents/client/Client.js +51 -4
  58. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  59. package/dist/api/resources/index.d.ts +0 -2
  60. package/dist/api/resources/index.js +1 -3
  61. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  62. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -9
  63. package/dist/api/resources/sandboxes/client/Client.js +3 -11
  64. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -10
  65. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  66. package/dist/api/resources/testSuites/client/Client.js +3 -3
  67. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  68. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +12 -0
  69. package/dist/api/types/ChatMessageEnum.d.ts +4 -0
  70. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +12 -0
  71. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +13 -0
  72. package/dist/api/types/FulfilledFunctionCallRequest.d.ts +13 -0
  73. package/dist/api/types/FunctionDefinitionEnum.d.ts +4 -0
  74. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +12 -0
  75. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +13 -0
  76. package/dist/api/types/JinjaEnum.d.ts +4 -0
  77. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +12 -0
  78. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +8 -0
  79. package/dist/api/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +11 -0
  80. package/dist/api/types/NamedScenarioInputRequest.d.ts +13 -0
  81. package/dist/api/types/NamedScenarioInputRequest.js +5 -0
  82. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.d.ts +10 -0
  83. package/dist/api/types/NamedScenarioInputStringVariableValueRequest.js +5 -0
  84. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.d.ts +11 -0
  85. package/dist/api/types/NamedTestCaseFunctionCallVariableValue.js +5 -0
  86. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +11 -0
  87. package/dist/api/types/NamedTestCaseFunctionCallVariableValueRequest.js +5 -0
  88. package/dist/api/types/NamedTestCaseVariableValue.d.ts +4 -1
  89. package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
  90. package/dist/api/types/PromptTemplateBlock.d.ts +14 -5
  91. package/dist/api/types/PromptTemplateBlockData.d.ts +1 -1
  92. package/dist/api/types/ScenarioInput.d.ts +8 -5
  93. package/dist/api/types/ScenarioInputChatHistoryVariableValue.d.ts +11 -0
  94. package/dist/api/types/ScenarioInputChatHistoryVariableValue.js +5 -0
  95. package/dist/api/types/ScenarioInputStringVariableValue.d.ts +10 -0
  96. package/dist/api/types/ScenarioInputStringVariableValue.js +5 -0
  97. package/dist/api/types/TestCaseFunctionCallVariableValue.d.ts +12 -0
  98. package/dist/api/types/TestCaseFunctionCallVariableValue.js +5 -0
  99. package/dist/api/types/TestCaseVariableValue.d.ts +4 -1
  100. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +12 -0
  101. package/dist/api/types/TestSuiteRunExecutionFunctionCallOutput.js +5 -0
  102. package/dist/api/types/TestSuiteRunExecutionOutput.d.ts +4 -1
  103. package/dist/api/types/VellumVariableType.d.ts +3 -1
  104. package/dist/api/types/VellumVariableType.js +1 -0
  105. package/dist/api/types/index.d.ts +20 -17
  106. package/dist/api/types/index.js +20 -17
  107. package/dist/serialization/resources/index.d.ts +0 -2
  108. package/dist/serialization/resources/index.js +1 -3
  109. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  110. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  111. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  112. package/dist/serialization/types/{RegisteredPromptSandbox.js → ChatHistoryPromptTemplateBlock.js} +5 -3
  113. package/dist/serialization/types/ChatMessageEnum.d.ts +10 -0
  114. package/{serialization/types/ScenarioInputTypeEnum.js → dist/serialization/types/ChatMessageEnum.js} +2 -2
  115. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  116. package/dist/serialization/types/{PromptTemplateBlockRequest.js → ChatMessagePromptTemplateBlock.js} +3 -5
  117. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  118. package/{serialization/types/PromptTemplateBlockDataRequest.js → dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js} +7 -4
  119. package/dist/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  120. package/dist/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  121. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  122. package/dist/serialization/types/{BlockTypeEnum.js → FunctionDefinitionEnum.js} +2 -2
  123. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  124. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +37 -0
  125. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  126. package/dist/serialization/types/{RegisterPromptPromptInfoRequest.js → FunctionDefinitionPromptTemplateBlockProperties.js} +6 -6
  127. package/dist/serialization/types/JinjaEnum.d.ts +10 -0
  128. package/dist/serialization/types/{ScenarioInputTypeEnum.js → JinjaEnum.js} +2 -2
  129. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  130. package/dist/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  131. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  132. package/{serialization/types/RegisteredPromptInputVariableRequest.js → dist/serialization/types/JinjaPromptTemplateBlockProperties.js} +4 -5
  133. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  134. package/dist/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  135. package/dist/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  136. package/dist/serialization/types/NamedScenarioInputRequest.js +41 -0
  137. package/dist/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  138. package/{serialization/types/RegisteredPromptDeployment.js → dist/serialization/types/NamedScenarioInputStringVariableValueRequest.js} +3 -4
  139. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  140. package/dist/serialization/types/{RegisteredPromptModelVersion.js → NamedTestCaseFunctionCallVariableValue.js} +5 -4
  141. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  142. package/dist/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  143. package/dist/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  144. package/dist/serialization/types/NamedTestCaseVariableValue.js +2 -0
  145. package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  146. package/dist/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  147. package/dist/serialization/types/PromptTemplateBlock.d.ts +16 -8
  148. package/dist/serialization/types/PromptTemplateBlock.js +13 -7
  149. package/dist/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  150. package/dist/serialization/types/PromptTemplateBlockData.js +1 -1
  151. package/dist/serialization/types/ScenarioInput.d.ts +9 -8
  152. package/dist/serialization/types/ScenarioInput.js +10 -7
  153. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  154. package/dist/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  155. package/dist/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  156. package/dist/serialization/types/{RegisterPromptErrorResponse.js → ScenarioInputStringVariableValue.js} +4 -3
  157. package/dist/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  158. package/dist/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  159. package/dist/serialization/types/TestCaseVariableValue.d.ts +5 -1
  160. package/dist/serialization/types/TestCaseVariableValue.js +2 -0
  161. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  162. package/dist/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  163. package/dist/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  164. package/dist/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  165. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  166. package/dist/serialization/types/VellumVariableType.js +1 -0
  167. package/dist/serialization/types/index.d.ts +20 -17
  168. package/dist/serialization/types/index.js +20 -17
  169. package/package.json +1 -1
  170. package/serialization/resources/index.d.ts +0 -2
  171. package/serialization/resources/index.js +1 -3
  172. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
  173. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +2 -2
  174. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +15 -0
  175. package/serialization/types/ChatHistoryPromptTemplateBlock.js +36 -0
  176. package/serialization/types/ChatMessageEnum.d.ts +10 -0
  177. package/serialization/types/{BlockTypeEnum.js → ChatMessageEnum.js} +2 -2
  178. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +15 -0
  179. package/serialization/types/{PromptTemplateBlockRequest.js → ChatMessagePromptTemplateBlock.js} +3 -5
  180. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +16 -0
  181. package/{dist/serialization/types/PromptTemplateBlockDataRequest.js → serialization/types/ChatMessagePromptTemplateBlockProperties.js} +7 -4
  182. package/serialization/types/FulfilledFunctionCallRequest.d.ts +16 -0
  183. package/serialization/types/FulfilledFunctionCallRequest.js +37 -0
  184. package/serialization/types/FunctionDefinitionEnum.d.ts +10 -0
  185. package/serialization/types/FunctionDefinitionEnum.js +31 -0
  186. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +16 -0
  187. package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +37 -0
  188. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +15 -0
  189. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +36 -0
  190. package/serialization/types/JinjaEnum.d.ts +10 -0
  191. package/serialization/types/JinjaEnum.js +31 -0
  192. package/serialization/types/JinjaPromptTemplateBlock.d.ts +16 -0
  193. package/serialization/types/JinjaPromptTemplateBlock.js +37 -0
  194. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +14 -0
  195. package/{dist/serialization/types/RegisteredPromptInputVariableRequest.js → serialization/types/JinjaPromptTemplateBlockProperties.js} +4 -5
  196. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.d.ts +14 -0
  197. package/serialization/types/NamedScenarioInputChatHistoryVariableValueRequest.js +35 -0
  198. package/serialization/types/NamedScenarioInputRequest.d.ts +18 -0
  199. package/serialization/types/NamedScenarioInputRequest.js +41 -0
  200. package/serialization/types/NamedScenarioInputStringVariableValueRequest.d.ts +13 -0
  201. package/{dist/serialization/types/RegisteredPromptDeployment.js → serialization/types/NamedScenarioInputStringVariableValueRequest.js} +3 -4
  202. package/serialization/types/NamedTestCaseFunctionCallVariableValue.d.ts +14 -0
  203. package/serialization/types/NamedTestCaseFunctionCallVariableValue.js +35 -0
  204. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.d.ts +14 -0
  205. package/serialization/types/NamedTestCaseFunctionCallVariableValueRequest.js +35 -0
  206. package/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
  207. package/serialization/types/NamedTestCaseVariableValue.js +2 -0
  208. package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
  209. package/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
  210. package/serialization/types/PromptTemplateBlock.d.ts +16 -8
  211. package/serialization/types/PromptTemplateBlock.js +13 -7
  212. package/serialization/types/PromptTemplateBlockData.d.ts +1 -1
  213. package/serialization/types/PromptTemplateBlockData.js +1 -1
  214. package/serialization/types/ScenarioInput.d.ts +9 -8
  215. package/serialization/types/ScenarioInput.js +10 -7
  216. package/serialization/types/ScenarioInputChatHistoryVariableValue.d.ts +14 -0
  217. package/serialization/types/ScenarioInputChatHistoryVariableValue.js +35 -0
  218. package/serialization/types/ScenarioInputStringVariableValue.d.ts +13 -0
  219. package/{dist/serialization/types/RegisterPromptPrompt.js → serialization/types/ScenarioInputStringVariableValue.js} +4 -4
  220. package/serialization/types/TestCaseFunctionCallVariableValue.d.ts +15 -0
  221. package/serialization/types/TestCaseFunctionCallVariableValue.js +36 -0
  222. package/serialization/types/TestCaseVariableValue.d.ts +5 -1
  223. package/serialization/types/TestCaseVariableValue.js +2 -0
  224. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.d.ts +15 -0
  225. package/serialization/types/TestSuiteRunExecutionFunctionCallOutput.js +36 -0
  226. package/serialization/types/TestSuiteRunExecutionOutput.d.ts +5 -1
  227. package/serialization/types/TestSuiteRunExecutionOutput.js +2 -0
  228. package/serialization/types/VellumVariableType.d.ts +1 -1
  229. package/serialization/types/VellumVariableType.js +1 -0
  230. package/serialization/types/index.d.ts +20 -17
  231. package/serialization/types/index.js +20 -17
  232. package/api/errors/ConflictError.d.ts +0 -8
  233. package/api/errors/ConflictError.js +0 -41
  234. package/api/resources/registeredPrompts/client/Client.d.ts +0 -60
  235. package/api/resources/registeredPrompts/client/Client.js +0 -153
  236. package/api/resources/registeredPrompts/client/index.d.ts +0 -1
  237. package/api/resources/registeredPrompts/client/index.js +0 -17
  238. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -64
  239. package/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  240. package/api/resources/registeredPrompts/client/requests/index.js +0 -2
  241. package/api/resources/registeredPrompts/index.d.ts +0 -1
  242. package/api/resources/registeredPrompts/index.js +0 -17
  243. package/api/types/BlockTypeEnum.d.ts +0 -16
  244. package/api/types/BlockTypeEnum.js +0 -12
  245. package/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  246. package/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  247. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  248. package/api/types/PromptTemplateBlockRequest.d.ts +0 -10
  249. package/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  250. package/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  251. package/api/types/RegisterPromptPrompt.d.ts +0 -9
  252. package/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  253. package/api/types/RegisterPromptResponse.d.ts +0 -18
  254. package/api/types/RegisteredPromptDeployment.d.ts +0 -11
  255. package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  256. package/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  257. package/api/types/RegisteredPromptSandbox.d.ts +0 -9
  258. package/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  259. package/api/types/ScenarioInputRequest.d.ts +0 -10
  260. package/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  261. package/api/types/ScenarioInputTypeEnum.js +0 -10
  262. package/dist/api/errors/ConflictError.d.ts +0 -8
  263. package/dist/api/errors/ConflictError.js +0 -41
  264. package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -60
  265. package/dist/api/resources/registeredPrompts/client/Client.js +0 -153
  266. package/dist/api/resources/registeredPrompts/client/index.d.ts +0 -1
  267. package/dist/api/resources/registeredPrompts/client/index.js +0 -17
  268. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -64
  269. package/dist/api/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  270. package/dist/api/resources/registeredPrompts/client/requests/index.js +0 -2
  271. package/dist/api/resources/registeredPrompts/index.d.ts +0 -1
  272. package/dist/api/resources/registeredPrompts/index.js +0 -17
  273. package/dist/api/types/BlockTypeEnum.d.ts +0 -16
  274. package/dist/api/types/BlockTypeEnum.js +0 -12
  275. package/dist/api/types/PromptTemplateBlockDataRequest.d.ts +0 -8
  276. package/dist/api/types/PromptTemplateBlockProperties.d.ts +0 -16
  277. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -16
  278. package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -10
  279. package/dist/api/types/RegisterPromptErrorResponse.d.ts +0 -7
  280. package/dist/api/types/RegisterPromptModelParametersRequest.d.ts +0 -14
  281. package/dist/api/types/RegisterPromptPrompt.d.ts +0 -9
  282. package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +0 -9
  283. package/dist/api/types/RegisterPromptResponse.d.ts +0 -18
  284. package/dist/api/types/RegisteredPromptDeployment.d.ts +0 -11
  285. package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -9
  286. package/dist/api/types/RegisteredPromptModelVersion.d.ts +0 -9
  287. package/dist/api/types/RegisteredPromptSandbox.d.ts +0 -9
  288. package/dist/api/types/RegisteredPromptSandboxSnapshot.d.ts +0 -7
  289. package/dist/api/types/ScenarioInputRequest.d.ts +0 -10
  290. package/dist/api/types/ScenarioInputTypeEnum.d.ts +0 -12
  291. package/dist/api/types/ScenarioInputTypeEnum.js +0 -10
  292. package/dist/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  293. package/dist/serialization/resources/registeredPrompts/client/index.js +0 -17
  294. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  295. package/dist/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  296. package/dist/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  297. package/dist/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  298. package/dist/serialization/resources/registeredPrompts/index.d.ts +0 -1
  299. package/dist/serialization/resources/registeredPrompts/index.js +0 -17
  300. package/dist/serialization/types/BlockTypeEnum.d.ts +0 -10
  301. package/dist/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  302. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  303. package/dist/serialization/types/PromptTemplateBlockProperties.js +0 -55
  304. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  305. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +0 -55
  306. package/dist/serialization/types/PromptTemplateBlockRequest.d.ts +0 -17
  307. package/dist/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  308. package/dist/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  309. package/dist/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  310. package/dist/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  311. package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  312. package/dist/serialization/types/RegisterPromptResponse.d.ts +0 -22
  313. package/dist/serialization/types/RegisterPromptResponse.js +0 -43
  314. package/dist/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  315. package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  316. package/dist/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  317. package/dist/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  318. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  319. package/dist/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
  320. package/dist/serialization/types/ScenarioInputRequest.d.ts +0 -17
  321. package/dist/serialization/types/ScenarioInputRequest.js +0 -38
  322. package/dist/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  323. package/serialization/resources/registeredPrompts/client/index.d.ts +0 -1
  324. package/serialization/resources/registeredPrompts/client/index.js +0 -17
  325. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +0 -21
  326. package/serialization/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js +0 -42
  327. package/serialization/resources/registeredPrompts/client/requests/index.d.ts +0 -1
  328. package/serialization/resources/registeredPrompts/client/requests/index.js +0 -5
  329. package/serialization/resources/registeredPrompts/index.d.ts +0 -1
  330. package/serialization/resources/registeredPrompts/index.js +0 -17
  331. package/serialization/types/BlockTypeEnum.d.ts +0 -10
  332. package/serialization/types/PromptTemplateBlockDataRequest.d.ts +0 -13
  333. package/serialization/types/PromptTemplateBlockProperties.d.ts +0 -23
  334. package/serialization/types/PromptTemplateBlockProperties.js +0 -55
  335. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -23
  336. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +0 -55
  337. package/serialization/types/PromptTemplateBlockRequest.d.ts +0 -17
  338. package/serialization/types/RegisterPromptErrorResponse.d.ts +0 -12
  339. package/serialization/types/RegisterPromptErrorResponse.js +0 -33
  340. package/serialization/types/RegisterPromptModelParametersRequest.d.ts +0 -20
  341. package/serialization/types/RegisterPromptModelParametersRequest.js +0 -41
  342. package/serialization/types/RegisterPromptPrompt.d.ts +0 -13
  343. package/serialization/types/RegisterPromptPrompt.js +0 -34
  344. package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +0 -15
  345. package/serialization/types/RegisterPromptPromptInfoRequest.js +0 -36
  346. package/serialization/types/RegisterPromptResponse.d.ts +0 -22
  347. package/serialization/types/RegisterPromptResponse.js +0 -43
  348. package/serialization/types/RegisteredPromptDeployment.d.ts +0 -14
  349. package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +0 -15
  350. package/serialization/types/RegisteredPromptModelVersion.d.ts +0 -13
  351. package/serialization/types/RegisteredPromptModelVersion.js +0 -34
  352. package/serialization/types/RegisteredPromptSandbox.d.ts +0 -13
  353. package/serialization/types/RegisteredPromptSandbox.js +0 -34
  354. package/serialization/types/RegisteredPromptSandboxSnapshot.d.ts +0 -12
  355. package/serialization/types/RegisteredPromptSandboxSnapshot.js +0 -33
  356. package/serialization/types/ScenarioInputRequest.d.ts +0 -17
  357. package/serialization/types/ScenarioInputRequest.js +0 -38
  358. package/serialization/types/ScenarioInputTypeEnum.d.ts +0 -10
  359. /package/api/{resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js → types/ChatHistoryPromptTemplateBlock.js} +0 -0
  360. /package/api/types/{PromptTemplateBlockDataRequest.js → ChatMessageEnum.js} +0 -0
  361. /package/api/types/{PromptTemplateBlockProperties.js → ChatMessagePromptTemplateBlock.js} +0 -0
  362. /package/api/types/{PromptTemplateBlockPropertiesRequest.js → ChatMessagePromptTemplateBlockProperties.js} +0 -0
  363. /package/api/types/{PromptTemplateBlockRequest.js → FulfilledFunctionCallRequest.js} +0 -0
  364. /package/api/types/{RegisterPromptErrorResponse.js → FunctionDefinitionEnum.js} +0 -0
  365. /package/api/types/{RegisterPromptModelParametersRequest.js → FunctionDefinitionPromptTemplateBlock.js} +0 -0
  366. /package/api/types/{RegisterPromptPrompt.js → FunctionDefinitionPromptTemplateBlockProperties.js} +0 -0
  367. /package/api/types/{RegisterPromptPromptInfoRequest.js → JinjaEnum.js} +0 -0
  368. /package/api/types/{RegisterPromptResponse.js → JinjaPromptTemplateBlock.js} +0 -0
  369. /package/api/types/{RegisteredPromptDeployment.js → JinjaPromptTemplateBlockProperties.js} +0 -0
  370. /package/api/types/{RegisteredPromptInputVariableRequest.js → NamedScenarioInputChatHistoryVariableValueRequest.js} +0 -0
  371. /package/api/types/{RegisteredPromptModelVersion.js → NamedScenarioInputRequest.js} +0 -0
  372. /package/api/types/{RegisteredPromptSandbox.js → NamedScenarioInputStringVariableValueRequest.js} +0 -0
  373. /package/api/types/{RegisteredPromptSandboxSnapshot.js → NamedTestCaseFunctionCallVariableValue.js} +0 -0
  374. /package/api/types/{ScenarioInputRequest.js → NamedTestCaseFunctionCallVariableValueRequest.js} +0 -0
  375. /package/{dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.js → api/types/ScenarioInputChatHistoryVariableValue.js} +0 -0
  376. /package/{dist/api/types/PromptTemplateBlockDataRequest.js → api/types/ScenarioInputStringVariableValue.js} +0 -0
  377. /package/{dist/api/types/PromptTemplateBlockProperties.js → api/types/TestCaseFunctionCallVariableValue.js} +0 -0
  378. /package/{dist/api/types/PromptTemplateBlockPropertiesRequest.js → api/types/TestSuiteRunExecutionFunctionCallOutput.js} +0 -0
  379. /package/dist/api/types/{PromptTemplateBlockRequest.js → ChatHistoryPromptTemplateBlock.js} +0 -0
  380. /package/dist/api/types/{RegisterPromptErrorResponse.js → ChatMessageEnum.js} +0 -0
  381. /package/dist/api/types/{RegisterPromptModelParametersRequest.js → ChatMessagePromptTemplateBlock.js} +0 -0
  382. /package/dist/api/types/{RegisterPromptPrompt.js → ChatMessagePromptTemplateBlockProperties.js} +0 -0
  383. /package/dist/api/types/{RegisterPromptPromptInfoRequest.js → FulfilledFunctionCallRequest.js} +0 -0
  384. /package/dist/api/types/{RegisterPromptResponse.js → FunctionDefinitionEnum.js} +0 -0
  385. /package/dist/api/types/{RegisteredPromptDeployment.js → FunctionDefinitionPromptTemplateBlock.js} +0 -0
  386. /package/dist/api/types/{RegisteredPromptInputVariableRequest.js → FunctionDefinitionPromptTemplateBlockProperties.js} +0 -0
  387. /package/dist/api/types/{RegisteredPromptModelVersion.js → JinjaEnum.js} +0 -0
  388. /package/dist/api/types/{RegisteredPromptSandbox.js → JinjaPromptTemplateBlock.js} +0 -0
  389. /package/dist/api/types/{RegisteredPromptSandboxSnapshot.js → JinjaPromptTemplateBlockProperties.js} +0 -0
  390. /package/dist/api/types/{ScenarioInputRequest.js → NamedScenarioInputChatHistoryVariableValueRequest.js} +0 -0
@@ -26,9 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.RegisteredPromptModelVersion = void 0;
29
+ exports.NamedTestCaseFunctionCallVariableValue = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.RegisteredPromptModelVersion = core.serialization.object({
32
- id: core.serialization.string(),
33
- label: core.serialization.string(),
31
+ const FulfilledFunctionCall_1 = require("./FulfilledFunctionCall");
32
+ exports.NamedTestCaseFunctionCallVariableValue = core.serialization.object({
33
+ value: FulfilledFunctionCall_1.FulfilledFunctionCall.optional(),
34
+ name: core.serialization.string(),
34
35
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ import { FulfilledFunctionCallRequest } from "./FulfilledFunctionCallRequest";
8
+ export declare const NamedTestCaseFunctionCallVariableValueRequest: core.serialization.ObjectSchema<serializers.NamedTestCaseFunctionCallVariableValueRequest.Raw, Vellum.NamedTestCaseFunctionCallVariableValueRequest>;
9
+ export declare namespace NamedTestCaseFunctionCallVariableValueRequest {
10
+ interface Raw {
11
+ value?: FulfilledFunctionCallRequest.Raw | null;
12
+ name: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.NamedTestCaseFunctionCallVariableValueRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const FulfilledFunctionCallRequest_1 = require("./FulfilledFunctionCallRequest");
32
+ exports.NamedTestCaseFunctionCallVariableValueRequest = core.serialization.object({
33
+ value: FulfilledFunctionCallRequest_1.FulfilledFunctionCallRequest.optional(),
34
+ name: core.serialization.string(),
35
+ });
@@ -10,9 +10,10 @@ import { NamedTestCaseJsonVariableValue } from "./NamedTestCaseJsonVariableValue
10
10
  import { NamedTestCaseChatHistoryVariableValue } from "./NamedTestCaseChatHistoryVariableValue";
11
11
  import { NamedTestCaseSearchResultsVariableValue } from "./NamedTestCaseSearchResultsVariableValue";
12
12
  import { NamedTestCaseErrorVariableValue } from "./NamedTestCaseErrorVariableValue";
13
+ import { NamedTestCaseFunctionCallVariableValue } from "./NamedTestCaseFunctionCallVariableValue";
13
14
  export declare const NamedTestCaseVariableValue: core.serialization.Schema<serializers.NamedTestCaseVariableValue.Raw, Vellum.NamedTestCaseVariableValue>;
14
15
  export declare namespace NamedTestCaseVariableValue {
15
- type Raw = NamedTestCaseVariableValue.String | NamedTestCaseVariableValue.Number | NamedTestCaseVariableValue.Json | NamedTestCaseVariableValue.ChatHistory | NamedTestCaseVariableValue.SearchResults | NamedTestCaseVariableValue.Error;
16
+ type Raw = NamedTestCaseVariableValue.String | NamedTestCaseVariableValue.Number | NamedTestCaseVariableValue.Json | NamedTestCaseVariableValue.ChatHistory | NamedTestCaseVariableValue.SearchResults | NamedTestCaseVariableValue.Error | NamedTestCaseVariableValue.FunctionCall;
16
17
  interface String extends NamedTestCaseStringVariableValue.Raw {
17
18
  type: "STRING";
18
19
  }
@@ -31,4 +32,7 @@ export declare namespace NamedTestCaseVariableValue {
31
32
  interface Error extends NamedTestCaseErrorVariableValue.Raw {
32
33
  type: "ERROR";
33
34
  }
35
+ interface FunctionCall extends NamedTestCaseFunctionCallVariableValue.Raw {
36
+ type: "FUNCTION_CALL";
37
+ }
34
38
  }
@@ -34,6 +34,7 @@ const NamedTestCaseJsonVariableValue_1 = require("./NamedTestCaseJsonVariableVal
34
34
  const NamedTestCaseChatHistoryVariableValue_1 = require("./NamedTestCaseChatHistoryVariableValue");
35
35
  const NamedTestCaseSearchResultsVariableValue_1 = require("./NamedTestCaseSearchResultsVariableValue");
36
36
  const NamedTestCaseErrorVariableValue_1 = require("./NamedTestCaseErrorVariableValue");
37
+ const NamedTestCaseFunctionCallVariableValue_1 = require("./NamedTestCaseFunctionCallVariableValue");
37
38
  exports.NamedTestCaseVariableValue = core.serialization
38
39
  .union("type", {
39
40
  STRING: NamedTestCaseStringVariableValue_1.NamedTestCaseStringVariableValue,
@@ -42,6 +43,7 @@ exports.NamedTestCaseVariableValue = core.serialization
42
43
  CHAT_HISTORY: NamedTestCaseChatHistoryVariableValue_1.NamedTestCaseChatHistoryVariableValue,
43
44
  SEARCH_RESULTS: NamedTestCaseSearchResultsVariableValue_1.NamedTestCaseSearchResultsVariableValue,
44
45
  ERROR: NamedTestCaseErrorVariableValue_1.NamedTestCaseErrorVariableValue,
46
+ FUNCTION_CALL: NamedTestCaseFunctionCallVariableValue_1.NamedTestCaseFunctionCallVariableValue,
45
47
  })
46
48
  .transform({
47
49
  transform: (value) => value,
@@ -10,9 +10,10 @@ import { NamedTestCaseJsonVariableValueRequest } from "./NamedTestCaseJsonVariab
10
10
  import { NamedTestCaseChatHistoryVariableValueRequest } from "./NamedTestCaseChatHistoryVariableValueRequest";
11
11
  import { NamedTestCaseSearchResultsVariableValueRequest } from "./NamedTestCaseSearchResultsVariableValueRequest";
12
12
  import { NamedTestCaseErrorVariableValueRequest } from "./NamedTestCaseErrorVariableValueRequest";
13
+ import { NamedTestCaseFunctionCallVariableValueRequest } from "./NamedTestCaseFunctionCallVariableValueRequest";
13
14
  export declare const NamedTestCaseVariableValueRequest: core.serialization.Schema<serializers.NamedTestCaseVariableValueRequest.Raw, Vellum.NamedTestCaseVariableValueRequest>;
14
15
  export declare namespace NamedTestCaseVariableValueRequest {
15
- type Raw = NamedTestCaseVariableValueRequest.String | NamedTestCaseVariableValueRequest.Number | NamedTestCaseVariableValueRequest.Json | NamedTestCaseVariableValueRequest.ChatHistory | NamedTestCaseVariableValueRequest.SearchResults | NamedTestCaseVariableValueRequest.Error;
16
+ type Raw = NamedTestCaseVariableValueRequest.String | NamedTestCaseVariableValueRequest.Number | NamedTestCaseVariableValueRequest.Json | NamedTestCaseVariableValueRequest.ChatHistory | NamedTestCaseVariableValueRequest.SearchResults | NamedTestCaseVariableValueRequest.Error | NamedTestCaseVariableValueRequest.FunctionCall;
16
17
  interface String extends NamedTestCaseStringVariableValueRequest.Raw {
17
18
  type: "STRING";
18
19
  }
@@ -31,4 +32,7 @@ export declare namespace NamedTestCaseVariableValueRequest {
31
32
  interface Error extends NamedTestCaseErrorVariableValueRequest.Raw {
32
33
  type: "ERROR";
33
34
  }
35
+ interface FunctionCall extends NamedTestCaseFunctionCallVariableValueRequest.Raw {
36
+ type: "FUNCTION_CALL";
37
+ }
34
38
  }
@@ -34,6 +34,7 @@ const NamedTestCaseJsonVariableValueRequest_1 = require("./NamedTestCaseJsonVari
34
34
  const NamedTestCaseChatHistoryVariableValueRequest_1 = require("./NamedTestCaseChatHistoryVariableValueRequest");
35
35
  const NamedTestCaseSearchResultsVariableValueRequest_1 = require("./NamedTestCaseSearchResultsVariableValueRequest");
36
36
  const NamedTestCaseErrorVariableValueRequest_1 = require("./NamedTestCaseErrorVariableValueRequest");
37
+ const NamedTestCaseFunctionCallVariableValueRequest_1 = require("./NamedTestCaseFunctionCallVariableValueRequest");
37
38
  exports.NamedTestCaseVariableValueRequest = core.serialization
38
39
  .union("type", {
39
40
  STRING: NamedTestCaseStringVariableValueRequest_1.NamedTestCaseStringVariableValueRequest,
@@ -42,6 +43,7 @@ exports.NamedTestCaseVariableValueRequest = core.serialization
42
43
  CHAT_HISTORY: NamedTestCaseChatHistoryVariableValueRequest_1.NamedTestCaseChatHistoryVariableValueRequest,
43
44
  SEARCH_RESULTS: NamedTestCaseSearchResultsVariableValueRequest_1.NamedTestCaseSearchResultsVariableValueRequest,
44
45
  ERROR: NamedTestCaseErrorVariableValueRequest_1.NamedTestCaseErrorVariableValueRequest,
46
+ FUNCTION_CALL: NamedTestCaseFunctionCallVariableValueRequest_1.NamedTestCaseFunctionCallVariableValueRequest,
45
47
  })
46
48
  .transform({
47
49
  transform: (value) => value,
@@ -4,14 +4,22 @@
4
4
  import * as serializers from "..";
5
5
  import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
- import { BlockTypeEnum } from "./BlockTypeEnum";
8
- import { PromptTemplateBlockState } from "./PromptTemplateBlockState";
9
- export declare const PromptTemplateBlock: core.serialization.ObjectSchema<serializers.PromptTemplateBlock.Raw, Vellum.PromptTemplateBlock>;
7
+ import { JinjaPromptTemplateBlock } from "./JinjaPromptTemplateBlock";
8
+ import { ChatHistoryPromptTemplateBlock } from "./ChatHistoryPromptTemplateBlock";
9
+ import { FunctionDefinitionPromptTemplateBlock } from "./FunctionDefinitionPromptTemplateBlock";
10
+ export declare const PromptTemplateBlock: core.serialization.Schema<serializers.PromptTemplateBlock.Raw, Vellum.PromptTemplateBlock>;
10
11
  export declare namespace PromptTemplateBlock {
11
- interface Raw {
12
- id: string;
13
- block_type: BlockTypeEnum.Raw;
14
- properties: serializers.PromptTemplateBlockProperties.Raw;
15
- state?: PromptTemplateBlockState.Raw | null;
12
+ type Raw = PromptTemplateBlock.Jinja | PromptTemplateBlock.ChatHistory | PromptTemplateBlock.ChatMessage | PromptTemplateBlock.FunctionDefinition;
13
+ interface Jinja extends JinjaPromptTemplateBlock.Raw {
14
+ block_type: "JINJA";
15
+ }
16
+ interface ChatHistory extends ChatHistoryPromptTemplateBlock.Raw {
17
+ block_type: "CHAT_HISTORY";
18
+ }
19
+ interface ChatMessage extends serializers.ChatMessagePromptTemplateBlock.Raw {
20
+ block_type: "CHAT_MESSAGE";
21
+ }
22
+ interface FunctionDefinition extends FunctionDefinitionPromptTemplateBlock.Raw {
23
+ block_type: "FUNCTION_DEFINITION";
16
24
  }
17
25
  }
@@ -37,11 +37,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.PromptTemplateBlock = void 0;
39
39
  const core = __importStar(require("../../core"));
40
- const BlockTypeEnum_1 = require("./BlockTypeEnum");
41
- const PromptTemplateBlockState_1 = require("./PromptTemplateBlockState");
42
- exports.PromptTemplateBlock = core.serialization.object({
43
- id: core.serialization.string(),
44
- blockType: core.serialization.property("block_type", BlockTypeEnum_1.BlockTypeEnum),
45
- properties: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockProperties; })),
46
- state: PromptTemplateBlockState_1.PromptTemplateBlockState.optional(),
40
+ const JinjaPromptTemplateBlock_1 = require("./JinjaPromptTemplateBlock");
41
+ const ChatHistoryPromptTemplateBlock_1 = require("./ChatHistoryPromptTemplateBlock");
42
+ const FunctionDefinitionPromptTemplateBlock_1 = require("./FunctionDefinitionPromptTemplateBlock");
43
+ exports.PromptTemplateBlock = core.serialization
44
+ .union(core.serialization.discriminant("blockType", "block_type"), {
45
+ JINJA: JinjaPromptTemplateBlock_1.JinjaPromptTemplateBlock,
46
+ CHAT_HISTORY: ChatHistoryPromptTemplateBlock_1.ChatHistoryPromptTemplateBlock,
47
+ CHAT_MESSAGE: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessagePromptTemplateBlock; })),
48
+ FUNCTION_DEFINITION: FunctionDefinitionPromptTemplateBlock_1.FunctionDefinitionPromptTemplateBlock,
49
+ })
50
+ .transform({
51
+ transform: (value) => value,
52
+ untransform: (value) => value,
47
53
  });
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const PromptTemplateBlockData: core.serialization.ObjectSchema<serializers.PromptTemplateBlockData.Raw, Vellum.PromptTemplateBlockData>;
8
8
  export declare namespace PromptTemplateBlockData {
9
9
  interface Raw {
10
- version: number;
11
10
  blocks: serializers.PromptTemplateBlock.Raw[];
11
+ version: number;
12
12
  }
13
13
  }
@@ -38,6 +38,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.PromptTemplateBlockData = void 0;
39
39
  const core = __importStar(require("../../core"));
40
40
  exports.PromptTemplateBlockData = core.serialization.object({
41
+ blocks: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlock; }))),
41
42
  version: core.serialization.number(),
42
- blocks: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlock; }))),
43
43
  });
@@ -4,14 +4,15 @@
4
4
  import * as serializers from "..";
5
5
  import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
- import { ScenarioInputTypeEnum } from "./ScenarioInputTypeEnum";
8
- import { ChatMessage } from "./ChatMessage";
9
- export declare const ScenarioInput: core.serialization.ObjectSchema<serializers.ScenarioInput.Raw, Vellum.ScenarioInput>;
7
+ import { ScenarioInputStringVariableValue } from "./ScenarioInputStringVariableValue";
8
+ import { ScenarioInputChatHistoryVariableValue } from "./ScenarioInputChatHistoryVariableValue";
9
+ export declare const ScenarioInput: core.serialization.Schema<serializers.ScenarioInput.Raw, Vellum.ScenarioInput>;
10
10
  export declare namespace ScenarioInput {
11
- interface Raw {
12
- key: string;
13
- type?: ScenarioInputTypeEnum.Raw | null;
14
- value?: string | null;
15
- chat_history?: ChatMessage.Raw[] | null;
11
+ type Raw = ScenarioInput.String | ScenarioInput.ChatHistory;
12
+ interface String extends ScenarioInputStringVariableValue.Raw {
13
+ type: "STRING";
14
+ }
15
+ interface ChatHistory extends ScenarioInputChatHistoryVariableValue.Raw {
16
+ type: "CHAT_HISTORY";
16
17
  }
17
18
  }
@@ -28,11 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ScenarioInput = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ScenarioInputTypeEnum_1 = require("./ScenarioInputTypeEnum");
32
- const ChatMessage_1 = require("./ChatMessage");
33
- exports.ScenarioInput = core.serialization.object({
34
- key: core.serialization.string(),
35
- type: ScenarioInputTypeEnum_1.ScenarioInputTypeEnum.optional(),
36
- value: core.serialization.string().optional(),
37
- chatHistory: core.serialization.property("chat_history", core.serialization.list(ChatMessage_1.ChatMessage).optional()),
31
+ const ScenarioInputStringVariableValue_1 = require("./ScenarioInputStringVariableValue");
32
+ const ScenarioInputChatHistoryVariableValue_1 = require("./ScenarioInputChatHistoryVariableValue");
33
+ exports.ScenarioInput = core.serialization
34
+ .union("type", {
35
+ STRING: ScenarioInputStringVariableValue_1.ScenarioInputStringVariableValue,
36
+ CHAT_HISTORY: ScenarioInputChatHistoryVariableValue_1.ScenarioInputChatHistoryVariableValue,
37
+ })
38
+ .transform({
39
+ transform: (value) => value,
40
+ untransform: (value) => value,
38
41
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ import { ChatMessage } from "./ChatMessage";
8
+ export declare const ScenarioInputChatHistoryVariableValue: core.serialization.ObjectSchema<serializers.ScenarioInputChatHistoryVariableValue.Raw, Vellum.ScenarioInputChatHistoryVariableValue>;
9
+ export declare namespace ScenarioInputChatHistoryVariableValue {
10
+ interface Raw {
11
+ value?: ChatMessage.Raw[] | null;
12
+ input_variable_id: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.ScenarioInputChatHistoryVariableValue = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const ChatMessage_1 = require("./ChatMessage");
32
+ exports.ScenarioInputChatHistoryVariableValue = core.serialization.object({
33
+ value: core.serialization.list(ChatMessage_1.ChatMessage).optional(),
34
+ inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
35
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const ScenarioInputStringVariableValue: core.serialization.ObjectSchema<serializers.ScenarioInputStringVariableValue.Raw, Vellum.ScenarioInputStringVariableValue>;
8
+ export declare namespace ScenarioInputStringVariableValue {
9
+ interface Raw {
10
+ value?: string | null;
11
+ input_variable_id: string;
12
+ }
13
+ }
@@ -26,8 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.RegisterPromptErrorResponse = void 0;
29
+ exports.ScenarioInputStringVariableValue = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.RegisterPromptErrorResponse = core.serialization.object({
32
- detail: core.serialization.string(),
31
+ exports.ScenarioInputStringVariableValue = core.serialization.object({
32
+ value: core.serialization.string().optional(),
33
+ inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
33
34
  });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ import { FulfilledFunctionCall } from "./FulfilledFunctionCall";
8
+ export declare const TestCaseFunctionCallVariableValue: core.serialization.ObjectSchema<serializers.TestCaseFunctionCallVariableValue.Raw, Vellum.TestCaseFunctionCallVariableValue>;
9
+ export declare namespace TestCaseFunctionCallVariableValue {
10
+ interface Raw {
11
+ variable_id: string;
12
+ name: string;
13
+ value?: FulfilledFunctionCall.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.TestCaseFunctionCallVariableValue = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const FulfilledFunctionCall_1 = require("./FulfilledFunctionCall");
32
+ exports.TestCaseFunctionCallVariableValue = core.serialization.object({
33
+ variableId: core.serialization.property("variable_id", core.serialization.string()),
34
+ name: core.serialization.string(),
35
+ value: FulfilledFunctionCall_1.FulfilledFunctionCall.optional(),
36
+ });
@@ -10,9 +10,10 @@ import { TestCaseJsonVariableValue } from "./TestCaseJsonVariableValue";
10
10
  import { TestCaseChatHistoryVariableValue } from "./TestCaseChatHistoryVariableValue";
11
11
  import { TestCaseSearchResultsVariableValue } from "./TestCaseSearchResultsVariableValue";
12
12
  import { TestCaseErrorVariableValue } from "./TestCaseErrorVariableValue";
13
+ import { TestCaseFunctionCallVariableValue } from "./TestCaseFunctionCallVariableValue";
13
14
  export declare const TestCaseVariableValue: core.serialization.Schema<serializers.TestCaseVariableValue.Raw, Vellum.TestCaseVariableValue>;
14
15
  export declare namespace TestCaseVariableValue {
15
- type Raw = TestCaseVariableValue.String | TestCaseVariableValue.Number | TestCaseVariableValue.Json | TestCaseVariableValue.ChatHistory | TestCaseVariableValue.SearchResults | TestCaseVariableValue.Error;
16
+ type Raw = TestCaseVariableValue.String | TestCaseVariableValue.Number | TestCaseVariableValue.Json | TestCaseVariableValue.ChatHistory | TestCaseVariableValue.SearchResults | TestCaseVariableValue.Error | TestCaseVariableValue.FunctionCall;
16
17
  interface String extends TestCaseStringVariableValue.Raw {
17
18
  type: "STRING";
18
19
  }
@@ -31,4 +32,7 @@ export declare namespace TestCaseVariableValue {
31
32
  interface Error extends TestCaseErrorVariableValue.Raw {
32
33
  type: "ERROR";
33
34
  }
35
+ interface FunctionCall extends TestCaseFunctionCallVariableValue.Raw {
36
+ type: "FUNCTION_CALL";
37
+ }
34
38
  }
@@ -34,6 +34,7 @@ const TestCaseJsonVariableValue_1 = require("./TestCaseJsonVariableValue");
34
34
  const TestCaseChatHistoryVariableValue_1 = require("./TestCaseChatHistoryVariableValue");
35
35
  const TestCaseSearchResultsVariableValue_1 = require("./TestCaseSearchResultsVariableValue");
36
36
  const TestCaseErrorVariableValue_1 = require("./TestCaseErrorVariableValue");
37
+ const TestCaseFunctionCallVariableValue_1 = require("./TestCaseFunctionCallVariableValue");
37
38
  exports.TestCaseVariableValue = core.serialization
38
39
  .union("type", {
39
40
  STRING: TestCaseStringVariableValue_1.TestCaseStringVariableValue,
@@ -42,6 +43,7 @@ exports.TestCaseVariableValue = core.serialization
42
43
  CHAT_HISTORY: TestCaseChatHistoryVariableValue_1.TestCaseChatHistoryVariableValue,
43
44
  SEARCH_RESULTS: TestCaseSearchResultsVariableValue_1.TestCaseSearchResultsVariableValue,
44
45
  ERROR: TestCaseErrorVariableValue_1.TestCaseErrorVariableValue,
46
+ FUNCTION_CALL: TestCaseFunctionCallVariableValue_1.TestCaseFunctionCallVariableValue,
45
47
  })
46
48
  .transform({
47
49
  transform: (value) => value,
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ import { FulfilledFunctionCall } from "./FulfilledFunctionCall";
8
+ export declare const TestSuiteRunExecutionFunctionCallOutput: core.serialization.ObjectSchema<serializers.TestSuiteRunExecutionFunctionCallOutput.Raw, Vellum.TestSuiteRunExecutionFunctionCallOutput>;
9
+ export declare namespace TestSuiteRunExecutionFunctionCallOutput {
10
+ interface Raw {
11
+ name: string;
12
+ value?: FulfilledFunctionCall.Raw | null;
13
+ output_variable_id: string;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.TestSuiteRunExecutionFunctionCallOutput = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const FulfilledFunctionCall_1 = require("./FulfilledFunctionCall");
32
+ exports.TestSuiteRunExecutionFunctionCallOutput = core.serialization.object({
33
+ name: core.serialization.string(),
34
+ value: FulfilledFunctionCall_1.FulfilledFunctionCall.optional(),
35
+ outputVariableId: core.serialization.property("output_variable_id", core.serialization.string()),
36
+ });
@@ -10,9 +10,10 @@ import { TestSuiteRunExecutionJsonOutput } from "./TestSuiteRunExecutionJsonOutp
10
10
  import { TestSuiteRunExecutionChatHistoryOutput } from "./TestSuiteRunExecutionChatHistoryOutput";
11
11
  import { TestSuiteRunExecutionSearchResultsOutput } from "./TestSuiteRunExecutionSearchResultsOutput";
12
12
  import { TestSuiteRunExecutionErrorOutput } from "./TestSuiteRunExecutionErrorOutput";
13
+ import { TestSuiteRunExecutionFunctionCallOutput } from "./TestSuiteRunExecutionFunctionCallOutput";
13
14
  export declare const TestSuiteRunExecutionOutput: core.serialization.Schema<serializers.TestSuiteRunExecutionOutput.Raw, Vellum.TestSuiteRunExecutionOutput>;
14
15
  export declare namespace TestSuiteRunExecutionOutput {
15
- type Raw = TestSuiteRunExecutionOutput.String | TestSuiteRunExecutionOutput.Number | TestSuiteRunExecutionOutput.Json | TestSuiteRunExecutionOutput.ChatHistory | TestSuiteRunExecutionOutput.SearchResults | TestSuiteRunExecutionOutput.Error;
16
+ type Raw = TestSuiteRunExecutionOutput.String | TestSuiteRunExecutionOutput.Number | TestSuiteRunExecutionOutput.Json | TestSuiteRunExecutionOutput.ChatHistory | TestSuiteRunExecutionOutput.SearchResults | TestSuiteRunExecutionOutput.Error | TestSuiteRunExecutionOutput.FunctionCall;
16
17
  interface String extends TestSuiteRunExecutionStringOutput.Raw {
17
18
  type: "STRING";
18
19
  }
@@ -31,4 +32,7 @@ export declare namespace TestSuiteRunExecutionOutput {
31
32
  interface Error extends TestSuiteRunExecutionErrorOutput.Raw {
32
33
  type: "ERROR";
33
34
  }
35
+ interface FunctionCall extends TestSuiteRunExecutionFunctionCallOutput.Raw {
36
+ type: "FUNCTION_CALL";
37
+ }
34
38
  }
@@ -34,6 +34,7 @@ const TestSuiteRunExecutionJsonOutput_1 = require("./TestSuiteRunExecutionJsonOu
34
34
  const TestSuiteRunExecutionChatHistoryOutput_1 = require("./TestSuiteRunExecutionChatHistoryOutput");
35
35
  const TestSuiteRunExecutionSearchResultsOutput_1 = require("./TestSuiteRunExecutionSearchResultsOutput");
36
36
  const TestSuiteRunExecutionErrorOutput_1 = require("./TestSuiteRunExecutionErrorOutput");
37
+ const TestSuiteRunExecutionFunctionCallOutput_1 = require("./TestSuiteRunExecutionFunctionCallOutput");
37
38
  exports.TestSuiteRunExecutionOutput = core.serialization
38
39
  .union("type", {
39
40
  STRING: TestSuiteRunExecutionStringOutput_1.TestSuiteRunExecutionStringOutput,
@@ -42,6 +43,7 @@ exports.TestSuiteRunExecutionOutput = core.serialization
42
43
  CHAT_HISTORY: TestSuiteRunExecutionChatHistoryOutput_1.TestSuiteRunExecutionChatHistoryOutput,
43
44
  SEARCH_RESULTS: TestSuiteRunExecutionSearchResultsOutput_1.TestSuiteRunExecutionSearchResultsOutput,
44
45
  ERROR: TestSuiteRunExecutionErrorOutput_1.TestSuiteRunExecutionErrorOutput,
46
+ FUNCTION_CALL: TestSuiteRunExecutionFunctionCallOutput_1.TestSuiteRunExecutionFunctionCallOutput,
45
47
  })
46
48
  .transform({
47
49
  transform: (value) => value,
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const VellumVariableType: core.serialization.Schema<serializers.VellumVariableType.Raw, Vellum.VellumVariableType>;
8
8
  export declare namespace VellumVariableType {
9
- type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE";
9
+ type Raw = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE" | "NULL";
10
10
  }
@@ -38,4 +38,5 @@ exports.VellumVariableType = core.serialization.enum_([
38
38
  "ARRAY",
39
39
  "FUNCTION_CALL",
40
40
  "IMAGE",
41
+ "NULL",
41
42
  ]);