vellum-ai 0.9.11 → 0.9.13

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 (246) hide show
  1. package/.mock/definition/__package__.yml +90 -74
  2. package/.mock/definition/adHoc.yml +1 -0
  3. package/.mock/definition/metricDefinitions.yml +2 -2
  4. package/.mock/openapi/openapi.yml +140 -106
  5. package/Client.d.ts +2 -2
  6. package/Client.js +12 -12
  7. package/api/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +3 -3
  8. package/api/client/requests/index.d.ts +1 -1
  9. package/api/resources/adHoc/client/Client.js +1 -1
  10. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +17 -3
  11. package/api/resources/containerImages/client/Client.js +4 -4
  12. package/api/resources/deployments/client/Client.js +6 -6
  13. package/api/resources/documentIndexes/client/Client.js +8 -8
  14. package/api/resources/documents/client/Client.js +5 -5
  15. package/api/resources/folderEntities/client/Client.js +2 -2
  16. package/api/resources/metricDefinitions/client/Client.d.ts +2 -2
  17. package/api/resources/metricDefinitions/client/Client.js +3 -3
  18. package/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.d.ts → ExecuteMetricDefinition.d.ts} +2 -2
  19. package/api/resources/metricDefinitions/client/requests/index.d.ts +1 -1
  20. package/api/resources/sandboxes/client/Client.js +3 -3
  21. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  22. package/api/resources/testSuites/client/Client.js +4 -4
  23. package/api/resources/workflowDeployments/client/Client.js +5 -5
  24. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  25. package/api/resources/workflows/client/Client.js +2 -2
  26. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  27. package/api/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +2 -2
  28. package/api/types/ChatHistoryInput.d.ts +13 -0
  29. package/{dist/api/types/CodeExecutionPackageRequest.d.ts → api/types/CodeExecutionPackage.d.ts} +1 -1
  30. package/api/types/CodeExecutorInput.d.ts +5 -0
  31. package/{dist/api/types/CodeExecutorSecretInputRequest.d.ts → api/types/CodeExecutorSecretInput.d.ts} +1 -1
  32. package/api/types/{ProcessingStateEnum.d.ts → DocumentProcessingState.d.ts} +4 -2
  33. package/api/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +3 -2
  34. package/api/types/DocumentRead.d.ts +1 -9
  35. package/api/types/{ErrorInputRequest.d.ts → ErrorInput.d.ts} +2 -2
  36. package/{dist/api/types/FunctionCallInputRequest.d.ts → api/types/FunctionCallInput.d.ts} +2 -2
  37. package/{dist/api/types/FunctionDefinitionPromptBlock.d.ts → api/types/FunctionDefinition.d.ts} +6 -7
  38. package/api/types/JsonInput.d.ts +12 -0
  39. package/api/types/MetricDefinitionInput.d.ts +5 -0
  40. package/api/types/{NumberInputRequest.d.ts → NumberInput.d.ts} +1 -1
  41. package/api/types/PromptBlock.d.ts +1 -1
  42. package/{dist/api/types/SearchResultsInputRequest.d.ts → api/types/SearchResultsInput.d.ts} +2 -2
  43. package/api/types/SlimDocument.d.ts +1 -9
  44. package/api/types/StringInput.d.ts +12 -0
  45. package/api/types/VellumErrorCodeEnum.d.ts +3 -1
  46. package/api/types/VellumErrorCodeEnum.js +1 -0
  47. package/api/types/index.d.ts +14 -11
  48. package/api/types/index.js +14 -11
  49. package/dist/Client.d.ts +2 -2
  50. package/dist/Client.js +12 -12
  51. package/dist/api/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +3 -3
  52. package/dist/api/client/requests/index.d.ts +1 -1
  53. package/dist/api/resources/adHoc/client/Client.js +1 -1
  54. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +17 -3
  55. package/dist/api/resources/containerImages/client/Client.js +4 -4
  56. package/dist/api/resources/deployments/client/Client.js +6 -6
  57. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  58. package/dist/api/resources/documents/client/Client.js +5 -5
  59. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  60. package/dist/api/resources/metricDefinitions/client/Client.d.ts +2 -2
  61. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  62. package/dist/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.d.ts → ExecuteMetricDefinition.d.ts} +2 -2
  63. package/dist/api/resources/metricDefinitions/client/requests/index.d.ts +1 -1
  64. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  65. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  66. package/dist/api/resources/testSuites/client/Client.js +4 -4
  67. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  68. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  69. package/dist/api/resources/workflows/client/Client.js +2 -2
  70. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  71. package/dist/api/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +2 -2
  72. package/dist/api/types/ChatHistoryInput.d.ts +13 -0
  73. package/{api/types/CodeExecutionPackageRequest.d.ts → dist/api/types/CodeExecutionPackage.d.ts} +1 -1
  74. package/dist/api/types/CodeExecutorInput.d.ts +5 -0
  75. package/{api/types/CodeExecutorSecretInputRequest.d.ts → dist/api/types/CodeExecutorSecretInput.d.ts} +1 -1
  76. package/dist/api/types/{ProcessingStateEnum.d.ts → DocumentProcessingState.d.ts} +4 -2
  77. package/dist/api/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +3 -2
  78. package/dist/api/types/DocumentRead.d.ts +1 -9
  79. package/dist/api/types/{ErrorInputRequest.d.ts → ErrorInput.d.ts} +2 -2
  80. package/{api/types/FunctionCallInputRequest.d.ts → dist/api/types/FunctionCallInput.d.ts} +2 -2
  81. package/{api/types/FunctionDefinitionPromptBlock.d.ts → dist/api/types/FunctionDefinition.d.ts} +6 -7
  82. package/dist/api/types/FunctionDefinition.js +5 -0
  83. package/dist/api/types/JsonInput.d.ts +12 -0
  84. package/dist/api/types/JsonInput.js +5 -0
  85. package/dist/api/types/MetricDefinitionInput.d.ts +5 -0
  86. package/dist/api/types/MetricDefinitionInput.js +5 -0
  87. package/dist/api/types/{NumberInputRequest.d.ts → NumberInput.d.ts} +1 -1
  88. package/dist/api/types/NumberInput.js +5 -0
  89. package/dist/api/types/PromptBlock.d.ts +1 -1
  90. package/{api/types/SearchResultsInputRequest.d.ts → dist/api/types/SearchResultsInput.d.ts} +2 -2
  91. package/dist/api/types/SearchResultsInput.js +5 -0
  92. package/dist/api/types/SlimDocument.d.ts +1 -9
  93. package/dist/api/types/StringInput.d.ts +12 -0
  94. package/dist/api/types/StringInput.js +5 -0
  95. package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
  96. package/dist/api/types/VellumErrorCodeEnum.js +1 -0
  97. package/dist/api/types/index.d.ts +14 -11
  98. package/dist/api/types/index.js +14 -11
  99. package/dist/serialization/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +6 -6
  100. package/dist/serialization/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +6 -6
  101. package/dist/serialization/client/requests/index.d.ts +1 -1
  102. package/dist/serialization/client/requests/index.js +3 -3
  103. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  104. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  105. package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +14 -0
  106. package/{serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +4 -4
  107. package/dist/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -1
  108. package/dist/serialization/resources/metricDefinitions/client/requests/index.js +3 -3
  109. package/dist/serialization/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +3 -3
  110. package/{serialization/types/ArrayInputRequest.js → dist/serialization/types/ArrayInput.js} +3 -3
  111. package/dist/serialization/types/ChatHistoryInput.d.ts +15 -0
  112. package/dist/serialization/types/ChatHistoryInput.js +36 -0
  113. package/{serialization/types/CodeExecutionPackageRequest.d.ts → dist/serialization/types/CodeExecutionPackage.d.ts} +2 -2
  114. package/dist/serialization/types/{CodeExecutionPackageRequest.js → CodeExecutionPackage.js} +2 -2
  115. package/dist/serialization/types/CodeExecutorInput.d.ts +19 -0
  116. package/dist/serialization/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +20 -10
  117. package/{serialization/types/CodeExecutorSecretInputRequest.d.ts → dist/serialization/types/CodeExecutorSecretInput.d.ts} +2 -2
  118. package/{serialization/types/CodeExecutorSecretInputRequest.js → dist/serialization/types/CodeExecutorSecretInput.js} +2 -2
  119. package/dist/serialization/types/DocumentProcessingState.d.ts +10 -0
  120. package/dist/serialization/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +2 -2
  121. package/dist/serialization/types/DocumentRead.d.ts +2 -2
  122. package/dist/serialization/types/DocumentRead.js +2 -2
  123. package/dist/serialization/types/ErrorInput.d.ts +15 -0
  124. package/dist/serialization/types/{ErrorInputRequest.js → ErrorInput.js} +4 -4
  125. package/dist/serialization/types/FunctionCallInput.d.ts +15 -0
  126. package/{serialization/types/FunctionCallInputRequest.js → dist/serialization/types/FunctionCallInput.js} +4 -4
  127. package/dist/serialization/types/FunctionDefinition.d.ts +20 -0
  128. package/dist/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  129. package/dist/serialization/types/JsonInput.d.ts +14 -0
  130. package/dist/serialization/types/JsonInput.js +35 -0
  131. package/dist/serialization/types/MetricDefinitionInput.d.ts +14 -0
  132. package/dist/serialization/types/MetricDefinitionInput.js +35 -0
  133. package/{serialization/types/NumberInputRequest.d.ts → dist/serialization/types/NumberInput.d.ts} +2 -2
  134. package/dist/serialization/types/{NumberInputRequest.js → NumberInput.js} +2 -2
  135. package/dist/serialization/types/PromptBlock.d.ts +1 -2
  136. package/dist/serialization/types/PromptBlock.js +0 -2
  137. package/dist/serialization/types/SearchResultsInput.d.ts +15 -0
  138. package/dist/serialization/types/{SearchResultsInputRequest.js → SearchResultsInput.js} +4 -4
  139. package/dist/serialization/types/SlimDocument.d.ts +2 -2
  140. package/dist/serialization/types/SlimDocument.js +2 -2
  141. package/dist/serialization/types/StringInput.d.ts +14 -0
  142. package/dist/serialization/types/StringInput.js +35 -0
  143. package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  144. package/dist/serialization/types/VellumErrorCodeEnum.js +1 -0
  145. package/dist/serialization/types/index.d.ts +14 -11
  146. package/dist/serialization/types/index.js +14 -11
  147. package/dist/version.d.ts +1 -1
  148. package/dist/version.js +1 -1
  149. package/package.json +1 -1
  150. package/reference.md +19 -4
  151. package/serialization/client/requests/{CodeExecutorRequest.d.ts → CodeExecutor.d.ts} +6 -6
  152. package/serialization/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +6 -6
  153. package/serialization/client/requests/index.d.ts +1 -1
  154. package/serialization/client/requests/index.js +3 -3
  155. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  156. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  157. package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +14 -0
  158. package/{dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +4 -4
  159. package/serialization/resources/metricDefinitions/client/requests/index.d.ts +1 -1
  160. package/serialization/resources/metricDefinitions/client/requests/index.js +3 -3
  161. package/serialization/types/{ArrayInputRequest.d.ts → ArrayInput.d.ts} +3 -3
  162. package/{dist/serialization/types/ArrayInputRequest.js → serialization/types/ArrayInput.js} +3 -3
  163. package/serialization/types/ChatHistoryInput.d.ts +15 -0
  164. package/serialization/types/ChatHistoryInput.js +36 -0
  165. package/{dist/serialization/types/CodeExecutionPackageRequest.d.ts → serialization/types/CodeExecutionPackage.d.ts} +2 -2
  166. package/serialization/types/{CodeExecutionPackageRequest.js → CodeExecutionPackage.js} +2 -2
  167. package/serialization/types/CodeExecutorInput.d.ts +19 -0
  168. package/serialization/types/{MetricDefinitionInputRequest.js → CodeExecutorInput.js} +20 -10
  169. package/{dist/serialization/types/CodeExecutorSecretInputRequest.d.ts → serialization/types/CodeExecutorSecretInput.d.ts} +2 -2
  170. package/{dist/serialization/types/CodeExecutorSecretInputRequest.js → serialization/types/CodeExecutorSecretInput.js} +2 -2
  171. package/serialization/types/DocumentProcessingState.d.ts +10 -0
  172. package/serialization/types/{ProcessingStateEnum.js → DocumentProcessingState.js} +2 -2
  173. package/serialization/types/DocumentRead.d.ts +2 -2
  174. package/serialization/types/DocumentRead.js +2 -2
  175. package/serialization/types/ErrorInput.d.ts +15 -0
  176. package/serialization/types/{ErrorInputRequest.js → ErrorInput.js} +4 -4
  177. package/serialization/types/FunctionCallInput.d.ts +15 -0
  178. package/{dist/serialization/types/FunctionCallInputRequest.js → serialization/types/FunctionCallInput.js} +4 -4
  179. package/serialization/types/FunctionDefinition.d.ts +20 -0
  180. package/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  181. package/serialization/types/JsonInput.d.ts +14 -0
  182. package/serialization/types/JsonInput.js +35 -0
  183. package/serialization/types/MetricDefinitionInput.d.ts +14 -0
  184. package/serialization/types/MetricDefinitionInput.js +35 -0
  185. package/{dist/serialization/types/NumberInputRequest.d.ts → serialization/types/NumberInput.d.ts} +2 -2
  186. package/serialization/types/{NumberInputRequest.js → NumberInput.js} +2 -2
  187. package/serialization/types/PromptBlock.d.ts +1 -2
  188. package/serialization/types/PromptBlock.js +0 -2
  189. package/serialization/types/SearchResultsInput.d.ts +15 -0
  190. package/serialization/types/{SearchResultsInputRequest.js → SearchResultsInput.js} +4 -4
  191. package/serialization/types/SlimDocument.d.ts +2 -2
  192. package/serialization/types/SlimDocument.js +2 -2
  193. package/serialization/types/StringInput.d.ts +14 -0
  194. package/serialization/types/StringInput.js +35 -0
  195. package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  196. package/serialization/types/VellumErrorCodeEnum.js +1 -0
  197. package/serialization/types/index.d.ts +14 -11
  198. package/serialization/types/index.js +14 -11
  199. package/version.d.ts +1 -1
  200. package/version.js +1 -1
  201. package/api/types/CodeExecutorInputRequest.d.ts +0 -5
  202. package/api/types/MetricDefinitionInputRequest.d.ts +0 -5
  203. package/dist/api/types/CodeExecutorInputRequest.d.ts +0 -5
  204. package/dist/api/types/MetricDefinitionInputRequest.d.ts +0 -5
  205. package/dist/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +0 -14
  206. package/dist/serialization/types/CodeExecutorInputRequest.d.ts +0 -19
  207. package/dist/serialization/types/CodeExecutorInputRequest.js +0 -50
  208. package/dist/serialization/types/ErrorInputRequest.d.ts +0 -15
  209. package/dist/serialization/types/FunctionCallInputRequest.d.ts +0 -15
  210. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  211. package/dist/serialization/types/MetricDefinitionInputRequest.d.ts +0 -14
  212. package/dist/serialization/types/ProcessingStateEnum.d.ts +0 -10
  213. package/dist/serialization/types/SearchResultsInputRequest.d.ts +0 -15
  214. package/serialization/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.d.ts +0 -14
  215. package/serialization/types/CodeExecutorInputRequest.d.ts +0 -19
  216. package/serialization/types/CodeExecutorInputRequest.js +0 -50
  217. package/serialization/types/ErrorInputRequest.d.ts +0 -15
  218. package/serialization/types/FunctionCallInputRequest.d.ts +0 -15
  219. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  220. package/serialization/types/MetricDefinitionInputRequest.d.ts +0 -14
  221. package/serialization/types/ProcessingStateEnum.d.ts +0 -10
  222. package/serialization/types/SearchResultsInputRequest.d.ts +0 -15
  223. /package/api/client/requests/{CodeExecutorRequest.js → CodeExecutor.js} +0 -0
  224. /package/api/resources/metricDefinitions/client/requests/{ExecuteMetricDefinitionRequest.js → ExecuteMetricDefinition.js} +0 -0
  225. /package/api/types/{ArrayInputRequest.js → ArrayInput.js} +0 -0
  226. /package/api/types/{CodeExecutionPackageRequest.js → ChatHistoryInput.js} +0 -0
  227. /package/api/types/{CodeExecutorInputRequest.js → CodeExecutionPackage.js} +0 -0
  228. /package/api/types/{CodeExecutorSecretInputRequest.js → CodeExecutorInput.js} +0 -0
  229. /package/api/types/{ErrorInputRequest.js → CodeExecutorSecretInput.js} +0 -0
  230. /package/api/types/{FunctionCallInputRequest.js → ErrorInput.js} +0 -0
  231. /package/api/types/{FunctionDefinitionPromptBlock.js → FunctionCallInput.js} +0 -0
  232. /package/api/types/{MetricDefinitionInputRequest.js → FunctionDefinition.js} +0 -0
  233. /package/api/types/{NumberInputRequest.js → JsonInput.js} +0 -0
  234. /package/api/types/{SearchResultsInputRequest.js → MetricDefinitionInput.js} +0 -0
  235. /package/{dist/api/client/requests/CodeExecutorRequest.js → api/types/NumberInput.js} +0 -0
  236. /package/{dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinitionRequest.js → api/types/SearchResultsInput.js} +0 -0
  237. /package/{dist/api/types/ArrayInputRequest.js → api/types/StringInput.js} +0 -0
  238. /package/dist/api/{types/CodeExecutionPackageRequest.js → client/requests/CodeExecutor.js} +0 -0
  239. /package/dist/api/{types/CodeExecutorInputRequest.js → resources/metricDefinitions/client/requests/ExecuteMetricDefinition.js} +0 -0
  240. /package/dist/api/types/{CodeExecutorSecretInputRequest.js → ArrayInput.js} +0 -0
  241. /package/dist/api/types/{ErrorInputRequest.js → ChatHistoryInput.js} +0 -0
  242. /package/dist/api/types/{FunctionCallInputRequest.js → CodeExecutionPackage.js} +0 -0
  243. /package/dist/api/types/{FunctionDefinitionPromptBlock.js → CodeExecutorInput.js} +0 -0
  244. /package/dist/api/types/{MetricDefinitionInputRequest.js → CodeExecutorSecretInput.js} +0 -0
  245. /package/dist/api/types/{NumberInputRequest.js → ErrorInput.js} +0 -0
  246. /package/dist/api/types/{SearchResultsInputRequest.js → FunctionCallInput.js} +0 -0
@@ -891,7 +891,7 @@ paths:
891
891
  content:
892
892
  application/json:
893
893
  schema:
894
- $ref: '#/components/schemas/CodeExecutorRequest'
894
+ $ref: '#/components/schemas/CodeExecutor'
895
895
  required: true
896
896
  security:
897
897
  - apiKeyAuth: []
@@ -1335,7 +1335,7 @@ paths:
1335
1335
  content:
1336
1336
  application/json:
1337
1337
  schema:
1338
- $ref: '#/components/schemas/ExecuteMetricDefinitionRequest'
1338
+ $ref: '#/components/schemas/ExecuteMetricDefinition'
1339
1339
  required: true
1340
1340
  security:
1341
1341
  - apiKeyAuth: []
@@ -2295,6 +2295,11 @@ components:
2295
2295
  type: array
2296
2296
  items:
2297
2297
  $ref: '#/components/schemas/PromptBlock'
2298
+ functions:
2299
+ type: array
2300
+ items:
2301
+ $ref: '#/components/schemas/FunctionDefinition'
2302
+ nullable: true
2298
2303
  expand_meta:
2299
2304
  allOf:
2300
2305
  - $ref: '#/components/schemas/AdHocExpandMeta'
@@ -2479,7 +2484,7 @@ components:
2479
2484
  type: string
2480
2485
  enum:
2481
2486
  - ARRAY
2482
- ArrayInputRequest:
2487
+ ArrayInput:
2483
2488
  type: object
2484
2489
  description: A user input representing a Vellum Array value
2485
2490
  properties:
@@ -2492,7 +2497,7 @@ components:
2492
2497
  value:
2493
2498
  type: array
2494
2499
  items:
2495
- $ref: '#/components/schemas/VellumValueRequest'
2500
+ $ref: '#/components/schemas/VellumValue'
2496
2501
  required:
2497
2502
  - name
2498
2503
  - type
@@ -2704,6 +2709,24 @@ components:
2704
2709
  type: string
2705
2710
  enum:
2706
2711
  - CHAT_HISTORY
2712
+ ChatHistoryInput:
2713
+ type: object
2714
+ description: A user input representing a list of chat messages
2715
+ properties:
2716
+ name:
2717
+ type: string
2718
+ minLength: 1
2719
+ description: The variable's name, as defined in the deployment.
2720
+ type:
2721
+ type: string
2722
+ value:
2723
+ type: array
2724
+ items:
2725
+ $ref: '#/components/schemas/ChatMessage'
2726
+ required:
2727
+ - name
2728
+ - type
2729
+ - value
2707
2730
  ChatHistoryInputRequest:
2708
2731
  type: object
2709
2732
  description: A user input representing a list of chat messages
@@ -3036,7 +3059,7 @@ components:
3036
3059
  - id
3037
3060
  - type
3038
3061
  - value
3039
- CodeExecutionPackageRequest:
3062
+ CodeExecutionPackage:
3040
3063
  type: object
3041
3064
  properties:
3042
3065
  version:
@@ -3056,40 +3079,7 @@ components:
3056
3079
  description: |-
3057
3080
  * `PYTHON_3_11_6` - PYTHON_3_11_6
3058
3081
  * `TYPESCRIPT_5_3_3` - TYPESCRIPT_5_3_3
3059
- CodeExecutorErrorResponse:
3060
- type: object
3061
- properties:
3062
- message:
3063
- type: string
3064
- log:
3065
- type: string
3066
- required:
3067
- - log
3068
- - message
3069
- CodeExecutorInputRequest:
3070
- oneOf:
3071
- - $ref: '#/components/schemas/StringInputRequest'
3072
- - $ref: '#/components/schemas/JSONInputRequest'
3073
- - $ref: '#/components/schemas/ChatHistoryInputRequest'
3074
- - $ref: '#/components/schemas/NumberInputRequest'
3075
- - $ref: '#/components/schemas/SearchResultsInputRequest'
3076
- - $ref: '#/components/schemas/ErrorInputRequest'
3077
- - $ref: '#/components/schemas/ArrayInputRequest'
3078
- - $ref: '#/components/schemas/FunctionCallInputRequest'
3079
- - $ref: '#/components/schemas/CodeExecutorSecretInputRequest'
3080
- discriminator:
3081
- propertyName: type
3082
- mapping:
3083
- STRING: '#/components/schemas/StringInputRequest'
3084
- JSON: '#/components/schemas/JSONInputRequest'
3085
- CHAT_HISTORY: '#/components/schemas/ChatHistoryInputRequest'
3086
- NUMBER: '#/components/schemas/NumberInputRequest'
3087
- SEARCH_RESULTS: '#/components/schemas/SearchResultsInputRequest'
3088
- ERROR: '#/components/schemas/ErrorInputRequest'
3089
- ARRAY: '#/components/schemas/ArrayInputRequest'
3090
- FUNCTION_CALL: '#/components/schemas/FunctionCallInputRequest'
3091
- SECRET: '#/components/schemas/CodeExecutorSecretInputRequest'
3092
- CodeExecutorRequest:
3082
+ CodeExecutor:
3093
3083
  type: object
3094
3084
  properties:
3095
3085
  code:
@@ -3100,11 +3090,11 @@ components:
3100
3090
  input_values:
3101
3091
  type: array
3102
3092
  items:
3103
- $ref: '#/components/schemas/CodeExecutorInputRequest'
3093
+ $ref: '#/components/schemas/CodeExecutorInput'
3104
3094
  packages:
3105
3095
  type: array
3106
3096
  items:
3107
- $ref: '#/components/schemas/CodeExecutionPackageRequest'
3097
+ $ref: '#/components/schemas/CodeExecutionPackage'
3108
3098
  output_type:
3109
3099
  $ref: '#/components/schemas/VellumVariableType'
3110
3100
  required:
@@ -3113,6 +3103,39 @@ components:
3113
3103
  - output_type
3114
3104
  - packages
3115
3105
  - runtime
3106
+ CodeExecutorErrorResponse:
3107
+ type: object
3108
+ properties:
3109
+ message:
3110
+ type: string
3111
+ log:
3112
+ type: string
3113
+ required:
3114
+ - log
3115
+ - message
3116
+ CodeExecutorInput:
3117
+ oneOf:
3118
+ - $ref: '#/components/schemas/StringInput'
3119
+ - $ref: '#/components/schemas/JSONInput'
3120
+ - $ref: '#/components/schemas/ChatHistoryInput'
3121
+ - $ref: '#/components/schemas/NumberInput'
3122
+ - $ref: '#/components/schemas/SearchResultsInput'
3123
+ - $ref: '#/components/schemas/ErrorInput'
3124
+ - $ref: '#/components/schemas/ArrayInput'
3125
+ - $ref: '#/components/schemas/FunctionCallInput'
3126
+ - $ref: '#/components/schemas/CodeExecutorSecretInput'
3127
+ discriminator:
3128
+ propertyName: type
3129
+ mapping:
3130
+ STRING: '#/components/schemas/StringInput'
3131
+ JSON: '#/components/schemas/JSONInput'
3132
+ CHAT_HISTORY: '#/components/schemas/ChatHistoryInput'
3133
+ NUMBER: '#/components/schemas/NumberInput'
3134
+ SEARCH_RESULTS: '#/components/schemas/SearchResultsInput'
3135
+ ERROR: '#/components/schemas/ErrorInput'
3136
+ ARRAY: '#/components/schemas/ArrayInput'
3137
+ FUNCTION_CALL: '#/components/schemas/FunctionCallInput'
3138
+ SECRET: '#/components/schemas/CodeExecutorSecretInput'
3116
3139
  CodeExecutorResponse:
3117
3140
  type: object
3118
3141
  properties:
@@ -3123,7 +3146,7 @@ components:
3123
3146
  required:
3124
3147
  - log
3125
3148
  - output
3126
- CodeExecutorSecretInputRequest:
3149
+ CodeExecutorSecretInput:
3127
3150
  type: object
3128
3151
  description: A user input representing a Vellum Workspace Secret value
3129
3152
  properties:
@@ -3706,6 +3729,20 @@ components:
3706
3729
  * `PRODUCTION` - Production
3707
3730
  required:
3708
3731
  - label
3732
+ DocumentProcessingState:
3733
+ enum:
3734
+ - QUEUED
3735
+ - PROCESSING
3736
+ - PROCESSED
3737
+ - FAILED
3738
+ - UNKNOWN
3739
+ type: string
3740
+ description: |-
3741
+ * `QUEUED` - Queued
3742
+ * `PROCESSING` - Processing
3743
+ * `PROCESSED` - Processed
3744
+ * `FAILED` - Failed
3745
+ * `UNKNOWN` - Unknown
3709
3746
  DocumentRead:
3710
3747
  type: object
3711
3748
  properties:
@@ -3727,15 +3764,7 @@ components:
3727
3764
  uploaded file's file name.
3728
3765
  maxLength: 1000
3729
3766
  processing_state:
3730
- allOf:
3731
- - $ref: '#/components/schemas/ProcessingStateEnum'
3732
- description: |-
3733
- The current processing state of the document
3734
-
3735
- * `QUEUED` - Queued
3736
- * `PROCESSING` - Processing
3737
- * `PROCESSED` - Processed
3738
- * `FAILED` - Failed
3767
+ $ref: '#/components/schemas/DocumentProcessingState'
3739
3768
  status:
3740
3769
  allOf:
3741
3770
  - $ref: '#/components/schemas/DocumentStatus'
@@ -3768,6 +3797,7 @@ components:
3768
3797
  - last_uploaded_at
3769
3798
  - original_file_url
3770
3799
  - processed_file_url
3800
+ - processing_state
3771
3801
  DocumentStatus:
3772
3802
  enum:
3773
3803
  - ACTIVE
@@ -3869,7 +3899,7 @@ components:
3869
3899
  type: string
3870
3900
  enum:
3871
3901
  - ERROR
3872
- ErrorInputRequest:
3902
+ ErrorInput:
3873
3903
  type: object
3874
3904
  description: A user input representing a Vellum Error value
3875
3905
  properties:
@@ -3880,7 +3910,7 @@ components:
3880
3910
  type:
3881
3911
  type: string
3882
3912
  value:
3883
- $ref: '#/components/schemas/VellumErrorRequest'
3913
+ $ref: '#/components/schemas/VellumError'
3884
3914
  required:
3885
3915
  - name
3886
3916
  - type
@@ -3923,13 +3953,13 @@ components:
3923
3953
  required:
3924
3954
  - type
3925
3955
  - value
3926
- ExecuteMetricDefinitionRequest:
3956
+ ExecuteMetricDefinition:
3927
3957
  type: object
3928
3958
  properties:
3929
3959
  inputs:
3930
3960
  type: array
3931
3961
  items:
3932
- $ref: '#/components/schemas/MetricDefinitionInputRequest'
3962
+ $ref: '#/components/schemas/MetricDefinitionInput'
3933
3963
  release_tag:
3934
3964
  type: string
3935
3965
  minLength: 1
@@ -4895,7 +4925,7 @@ components:
4895
4925
  type: string
4896
4926
  enum:
4897
4927
  - FUNCTION_CALL
4898
- FunctionCallInputRequest:
4928
+ FunctionCallInput:
4899
4929
  type: object
4900
4930
  description: A user input representing a Vellum Function Call value
4901
4931
  properties:
@@ -4906,7 +4936,7 @@ components:
4906
4936
  type:
4907
4937
  type: string
4908
4938
  value:
4909
- $ref: '#/components/schemas/FunctionCallRequest'
4939
+ $ref: '#/components/schemas/FunctionCall'
4910
4940
  required:
4911
4941
  - name
4912
4942
  - type
@@ -4968,11 +4998,7 @@ components:
4968
4998
  required:
4969
4999
  - type
4970
5000
  - value
4971
- FunctionDefinitionEnum:
4972
- type: string
4973
- enum:
4974
- - FUNCTION_DEFINITION
4975
- FunctionDefinitionPromptBlock:
5001
+ FunctionDefinition:
4976
5002
  type: object
4977
5003
  description: A block that represents a function definition in a prompt template.
4978
5004
  properties:
@@ -4982,27 +5008,23 @@ components:
4982
5008
  allOf:
4983
5009
  - $ref: '#/components/schemas/EphemeralPromptCacheConfig'
4984
5010
  nullable: true
4985
- block_type:
4986
- $ref: '#/components/schemas/FunctionDefinitionEnum'
4987
- function_name:
5011
+ name:
4988
5012
  type: string
4989
5013
  nullable: true
4990
5014
  minLength: 1
4991
- function_description:
5015
+ description:
4992
5016
  type: string
4993
5017
  nullable: true
4994
- function_parameters:
5018
+ parameters:
4995
5019
  type: object
4996
5020
  additionalProperties: {}
4997
5021
  nullable: true
4998
- function_forced:
5022
+ forced:
4999
5023
  type: boolean
5000
5024
  nullable: true
5001
- function_strict:
5025
+ strict:
5002
5026
  type: boolean
5003
5027
  nullable: true
5004
- required:
5005
- - block_type
5006
5028
  GenerateBodyRequest:
5007
5029
  type: object
5008
5030
  properties:
@@ -5503,6 +5525,21 @@ components:
5503
5525
  * `INITIATED` - INITIATED
5504
5526
  * `FULFILLED` - FULFILLED
5505
5527
  * `REJECTED` - REJECTED
5528
+ JSONInput:
5529
+ type: object
5530
+ description: A user input representing a JSON object
5531
+ properties:
5532
+ name:
5533
+ type: string
5534
+ minLength: 1
5535
+ description: The variable's name
5536
+ type:
5537
+ type: string
5538
+ value: {}
5539
+ required:
5540
+ - name
5541
+ - type
5542
+ - value
5506
5543
  JSONInputRequest:
5507
5544
  type: object
5508
5545
  description: A user input representing a JSON object
@@ -5842,19 +5879,19 @@ components:
5842
5879
  $ref: '#/components/schemas/TestSuiteRunMetricOutput'
5843
5880
  required:
5844
5881
  - outputs
5845
- MetricDefinitionInputRequest:
5882
+ MetricDefinitionInput:
5846
5883
  oneOf:
5847
- - $ref: '#/components/schemas/StringInputRequest'
5848
- - $ref: '#/components/schemas/JSONInputRequest'
5849
- - $ref: '#/components/schemas/ChatHistoryInputRequest'
5850
- - $ref: '#/components/schemas/NumberInputRequest'
5884
+ - $ref: '#/components/schemas/StringInput'
5885
+ - $ref: '#/components/schemas/JSONInput'
5886
+ - $ref: '#/components/schemas/ChatHistoryInput'
5887
+ - $ref: '#/components/schemas/NumberInput'
5851
5888
  discriminator:
5852
5889
  propertyName: type
5853
5890
  mapping:
5854
- STRING: '#/components/schemas/StringInputRequest'
5855
- JSON: '#/components/schemas/JSONInputRequest'
5856
- CHAT_HISTORY: '#/components/schemas/ChatHistoryInputRequest'
5857
- NUMBER: '#/components/schemas/NumberInputRequest'
5891
+ STRING: '#/components/schemas/StringInput'
5892
+ JSON: '#/components/schemas/JSONInput'
5893
+ CHAT_HISTORY: '#/components/schemas/ChatHistoryInput'
5894
+ NUMBER: '#/components/schemas/NumberInput'
5858
5895
  MetricEnum:
5859
5896
  type: string
5860
5897
  enum:
@@ -6603,7 +6640,7 @@ components:
6603
6640
  type: string
6604
6641
  enum:
6605
6642
  - NUMBER
6606
- NumberInputRequest:
6643
+ NumberInput:
6607
6644
  type: object
6608
6645
  description: A user input representing a number value
6609
6646
  properties:
@@ -7105,23 +7142,10 @@ components:
7105
7142
  description: |-
7106
7143
  * `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
7107
7144
  * `INVALID_FILE` - Invalid File
7108
- ProcessingStateEnum:
7109
- enum:
7110
- - QUEUED
7111
- - PROCESSING
7112
- - PROCESSED
7113
- - FAILED
7114
- type: string
7115
- description: |-
7116
- * `QUEUED` - Queued
7117
- * `PROCESSING` - Processing
7118
- * `PROCESSED` - Processed
7119
- * `FAILED` - Failed
7120
7145
  PromptBlock:
7121
7146
  oneOf:
7122
7147
  - $ref: '#/components/schemas/JinjaPromptBlock'
7123
7148
  - $ref: '#/components/schemas/ChatMessagePromptBlock'
7124
- - $ref: '#/components/schemas/FunctionDefinitionPromptBlock'
7125
7149
  - $ref: '#/components/schemas/VariablePromptBlock'
7126
7150
  - $ref: '#/components/schemas/RichTextPromptBlock'
7127
7151
  discriminator:
@@ -7129,7 +7153,6 @@ components:
7129
7153
  mapping:
7130
7154
  JINJA: '#/components/schemas/JinjaPromptBlock'
7131
7155
  CHAT_MESSAGE: '#/components/schemas/ChatMessagePromptBlock'
7132
- FUNCTION_DEFINITION: '#/components/schemas/FunctionDefinitionPromptBlock'
7133
7156
  VARIABLE: '#/components/schemas/VariablePromptBlock'
7134
7157
  RICH_TEXT: '#/components/schemas/RichTextPromptBlock'
7135
7158
  PromptBlockState:
@@ -8015,7 +8038,7 @@ components:
8015
8038
  type: string
8016
8039
  enum:
8017
8040
  - SEARCH_RESULTS
8018
- SearchResultsInputRequest:
8041
+ SearchResultsInput:
8019
8042
  type: object
8020
8043
  description: A user input representing a search results value
8021
8044
  properties:
@@ -8028,7 +8051,7 @@ components:
8028
8051
  value:
8029
8052
  type: array
8030
8053
  items:
8031
- $ref: '#/components/schemas/SearchResultRequest'
8054
+ $ref: '#/components/schemas/SearchResult'
8032
8055
  required:
8033
8056
  - name
8034
8057
  - type
@@ -8240,15 +8263,7 @@ components:
8240
8263
  description: Human-friendly name for this document.
8241
8264
  maxLength: 1000
8242
8265
  processing_state:
8243
- allOf:
8244
- - $ref: '#/components/schemas/ProcessingStateEnum'
8245
- description: |-
8246
- An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle.
8247
-
8248
- * `QUEUED` - Queued
8249
- * `PROCESSING` - Processing
8250
- * `PROCESSED` - Processed
8251
- * `FAILED` - Failed
8266
+ $ref: '#/components/schemas/DocumentProcessingState'
8252
8267
  processing_failure_reason:
8253
8268
  allOf:
8254
8269
  - $ref: '#/components/schemas/ProcessingFailureReasonEnum'
@@ -8286,6 +8301,7 @@ components:
8286
8301
  - id
8287
8302
  - label
8288
8303
  - last_uploaded_at
8304
+ - processing_state
8289
8305
  SlimWorkflowDeployment:
8290
8306
  type: object
8291
8307
  properties:
@@ -8472,6 +8488,22 @@ components:
8472
8488
  type: string
8473
8489
  enum:
8474
8490
  - STRING
8491
+ StringInput:
8492
+ type: object
8493
+ description: A user input representing a string value
8494
+ properties:
8495
+ name:
8496
+ type: string
8497
+ minLength: 1
8498
+ description: The variable's name
8499
+ type:
8500
+ type: string
8501
+ value:
8502
+ type: string
8503
+ required:
8504
+ - name
8505
+ - type
8506
+ - value
8475
8507
  StringInputRequest:
8476
8508
  type: object
8477
8509
  description: A user input representing a string value
@@ -10290,6 +10322,7 @@ components:
10290
10322
  VellumErrorCodeEnum:
10291
10323
  enum:
10292
10324
  - INVALID_REQUEST
10325
+ - INVALID_INPUTS
10293
10326
  - PROVIDER_ERROR
10294
10327
  - REQUEST_TIMEOUT
10295
10328
  - INTERNAL_SERVER_ERROR
@@ -10297,6 +10330,7 @@ components:
10297
10330
  type: string
10298
10331
  description: |-
10299
10332
  * `INVALID_REQUEST` - INVALID_REQUEST
10333
+ * `INVALID_INPUTS` - INVALID_INPUTS
10300
10334
  * `PROVIDER_ERROR` - PROVIDER_ERROR
10301
10335
  * `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
10302
10336
  * `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
package/Client.d.ts CHANGED
@@ -38,7 +38,7 @@ export declare class VellumClient {
38
38
  /**
39
39
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
40
40
  *
41
- * @param {Vellum.CodeExecutorRequest} request
41
+ * @param {Vellum.CodeExecutor} request
42
42
  * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
43
43
  *
44
44
  * @throws {@link Vellum.BadRequestError}
@@ -59,7 +59,7 @@ export declare class VellumClient {
59
59
  * outputType: "STRING"
60
60
  * })
61
61
  */
62
- executeCode(request: Vellum.CodeExecutorRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.CodeExecutorResponse>;
62
+ executeCode(request: Vellum.CodeExecutor, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.CodeExecutorResponse>;
63
63
  /**
64
64
  * Executes a deployed Prompt and returns the result.
65
65
  *
package/Client.js CHANGED
@@ -66,7 +66,7 @@ class VellumClient {
66
66
  /**
67
67
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
68
68
  *
69
- * @param {Vellum.CodeExecutorRequest} request
69
+ * @param {Vellum.CodeExecutor} request
70
70
  * @param {VellumClient.RequestOptions} requestOptions - Request-specific configuration.
71
71
  *
72
72
  * @throws {@link Vellum.BadRequestError}
@@ -94,10 +94,10 @@ class VellumClient {
94
94
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
95
95
  .default, "v1/execute-code"),
96
96
  method: "POST",
97
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
98
98
  contentType: "application/json",
99
99
  requestType: "json",
100
- body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
100
+ body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
101
101
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
102
102
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
103
103
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -163,7 +163,7 @@ class VellumClient {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .predict, "v1/execute-prompt"),
165
165
  method: "POST",
166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -221,7 +221,7 @@ class VellumClient {
221
221
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
222
222
  .predict, "v1/execute-prompt-stream"),
223
223
  method: "POST",
224
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -306,7 +306,7 @@ class VellumClient {
306
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
307
307
  .predict, "v1/execute-workflow"),
308
308
  method: "POST",
309
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -362,7 +362,7 @@ class VellumClient {
362
362
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
363
363
  .predict, "v1/execute-workflow-stream"),
364
364
  method: "POST",
365
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
366
  contentType: "application/json",
367
367
  requestType: "json",
368
368
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -449,7 +449,7 @@ class VellumClient {
449
449
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
450
450
  .predict, "v1/generate"),
451
451
  method: "POST",
452
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
453
453
  contentType: "application/json",
454
454
  requestType: "json",
455
455
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -510,7 +510,7 @@ class VellumClient {
510
510
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
511
511
  .predict, "v1/generate-stream"),
512
512
  method: "POST",
513
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
514
514
  contentType: "application/json",
515
515
  requestType: "json",
516
516
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -591,7 +591,7 @@ class VellumClient {
591
591
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
592
592
  .predict, "v1/search"),
593
593
  method: "POST",
594
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
595
  contentType: "application/json",
596
596
  requestType: "json",
597
597
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -659,7 +659,7 @@ class VellumClient {
659
659
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
660
660
  .predict, "v1/submit-completion-actuals"),
661
661
  method: "POST",
662
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
663
663
  contentType: "application/json",
664
664
  requestType: "json",
665
665
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -722,7 +722,7 @@ class VellumClient {
722
722
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
723
723
  .predict, "v1/submit-workflow-execution-actuals"),
724
724
  method: "POST",
725
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
726
726
  contentType: "application/json",
727
727
  requestType: "json",
728
728
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -19,10 +19,10 @@ import * as Vellum from "../../index";
19
19
  * outputType: "STRING"
20
20
  * }
21
21
  */
22
- export interface CodeExecutorRequest {
22
+ export interface CodeExecutor {
23
23
  code: string;
24
24
  runtime: Vellum.CodeExecutionRuntime;
25
- inputValues: Vellum.CodeExecutorInputRequest[];
26
- packages: Vellum.CodeExecutionPackageRequest[];
25
+ inputValues: Vellum.CodeExecutorInput[];
26
+ packages: Vellum.CodeExecutionPackage[];
27
27
  outputType: Vellum.VellumVariableType;
28
28
  }
@@ -1,4 +1,4 @@
1
- export { type CodeExecutorRequest } from "./CodeExecutorRequest";
1
+ export { type CodeExecutor } from "./CodeExecutor";
2
2
  export { type ExecutePromptRequest } from "./ExecutePromptRequest";
3
3
  export { type ExecutePromptStreamRequest } from "./ExecutePromptStreamRequest";
4
4
  export { type ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest";
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),