vellum-ai 0.4.1 → 0.4.2

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 (205) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +17 -22
  3. package/api/resources/deployments/client/Client.js +3 -3
  4. package/api/resources/documentIndexes/client/Client.js +6 -6
  5. package/api/resources/documents/client/Client.js +5 -5
  6. package/api/resources/folderEntities/client/Client.js +1 -1
  7. package/api/resources/index.d.ts +0 -1
  8. package/api/resources/index.js +1 -2
  9. package/api/resources/sandboxes/client/Client.js +2 -2
  10. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  11. package/api/resources/testSuites/client/Client.js +3 -3
  12. package/api/resources/workflowDeployments/client/Client.js +2 -2
  13. package/api/types/index.d.ts +0 -20
  14. package/api/types/index.js +0 -20
  15. package/dist/Client.d.ts +0 -3
  16. package/dist/Client.js +17 -22
  17. package/dist/api/resources/deployments/client/Client.js +3 -3
  18. package/dist/api/resources/documentIndexes/client/Client.js +6 -6
  19. package/dist/api/resources/documents/client/Client.js +5 -5
  20. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  21. package/dist/api/resources/index.d.ts +0 -1
  22. package/dist/api/resources/index.js +1 -2
  23. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  24. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  25. package/dist/api/resources/testSuites/client/Client.js +3 -3
  26. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  27. package/dist/api/types/index.d.ts +0 -20
  28. package/dist/api/types/index.js +0 -20
  29. package/dist/serialization/types/index.d.ts +0 -20
  30. package/dist/serialization/types/index.js +0 -20
  31. package/package.json +1 -1
  32. package/serialization/types/index.d.ts +0 -20
  33. package/serialization/types/index.js +0 -20
  34. package/api/resources/modelVersions/client/Client.d.ts +0 -30
  35. package/api/resources/modelVersions/client/Client.js +0 -105
  36. package/api/resources/modelVersions/client/index.d.ts +0 -1
  37. package/api/resources/modelVersions/client/index.js +0 -2
  38. package/api/resources/modelVersions/index.d.ts +0 -1
  39. package/api/resources/modelVersions/index.js +0 -17
  40. package/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  41. package/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  42. package/api/types/ChatMessageEnum.d.ts +0 -4
  43. package/api/types/ChatMessageEnum.js +0 -5
  44. package/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  45. package/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  46. package/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  47. package/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  48. package/api/types/FunctionDefinitionEnum.d.ts +0 -4
  49. package/api/types/FunctionDefinitionEnum.js +0 -5
  50. package/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  51. package/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  52. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  53. package/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  54. package/api/types/JinjaEnum.d.ts +0 -4
  55. package/api/types/JinjaEnum.js +0 -5
  56. package/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  57. package/api/types/JinjaPromptTemplateBlock.js +0 -5
  58. package/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  59. package/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  60. package/api/types/ModelVersionBuildConfig.d.ts +0 -11
  61. package/api/types/ModelVersionBuildConfig.js +0 -5
  62. package/api/types/ModelVersionExecConfig.d.ts +0 -14
  63. package/api/types/ModelVersionExecConfig.js +0 -5
  64. package/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  65. package/api/types/ModelVersionExecConfigParameters.js +0 -5
  66. package/api/types/ModelVersionRead.d.ts +0 -37
  67. package/api/types/ModelVersionRead.js +0 -5
  68. package/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  69. package/api/types/ModelVersionReadStatusEnum.js +0 -12
  70. package/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  71. package/api/types/ModelVersionSandboxSnapshot.js +0 -5
  72. package/api/types/PromptTemplateBlock.d.ts +0 -19
  73. package/api/types/PromptTemplateBlock.js +0 -5
  74. package/api/types/PromptTemplateBlockData.d.ts +0 -8
  75. package/api/types/PromptTemplateBlockData.js +0 -5
  76. package/api/types/PromptTemplateBlockState.d.ts +0 -12
  77. package/api/types/PromptTemplateBlockState.js +0 -10
  78. package/api/types/ProviderEnum.d.ts +0 -34
  79. package/api/types/ProviderEnum.js +0 -21
  80. package/dist/api/resources/modelVersions/client/Client.d.ts +0 -30
  81. package/dist/api/resources/modelVersions/client/Client.js +0 -105
  82. package/dist/api/resources/modelVersions/client/index.d.ts +0 -1
  83. package/dist/api/resources/modelVersions/client/index.js +0 -2
  84. package/dist/api/resources/modelVersions/index.d.ts +0 -1
  85. package/dist/api/resources/modelVersions/index.js +0 -17
  86. package/dist/api/types/ChatHistoryPromptTemplateBlock.d.ts +0 -12
  87. package/dist/api/types/ChatHistoryPromptTemplateBlock.js +0 -5
  88. package/dist/api/types/ChatMessageEnum.d.ts +0 -4
  89. package/dist/api/types/ChatMessageEnum.js +0 -5
  90. package/dist/api/types/ChatMessagePromptTemplateBlock.d.ts +0 -12
  91. package/dist/api/types/ChatMessagePromptTemplateBlock.js +0 -5
  92. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -13
  93. package/dist/api/types/ChatMessagePromptTemplateBlockProperties.js +0 -5
  94. package/dist/api/types/FunctionDefinitionEnum.d.ts +0 -4
  95. package/dist/api/types/FunctionDefinitionEnum.js +0 -5
  96. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -12
  97. package/dist/api/types/FunctionDefinitionPromptTemplateBlock.js +0 -5
  98. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -13
  99. package/dist/api/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -5
  100. package/dist/api/types/JinjaEnum.d.ts +0 -4
  101. package/dist/api/types/JinjaEnum.js +0 -5
  102. package/dist/api/types/JinjaPromptTemplateBlock.d.ts +0 -12
  103. package/dist/api/types/JinjaPromptTemplateBlock.js +0 -5
  104. package/dist/api/types/JinjaPromptTemplateBlockProperties.d.ts +0 -8
  105. package/dist/api/types/JinjaPromptTemplateBlockProperties.js +0 -5
  106. package/dist/api/types/ModelVersionBuildConfig.d.ts +0 -11
  107. package/dist/api/types/ModelVersionBuildConfig.js +0 -5
  108. package/dist/api/types/ModelVersionExecConfig.d.ts +0 -14
  109. package/dist/api/types/ModelVersionExecConfig.js +0 -5
  110. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +0 -14
  111. package/dist/api/types/ModelVersionExecConfigParameters.js +0 -5
  112. package/dist/api/types/ModelVersionRead.d.ts +0 -37
  113. package/dist/api/types/ModelVersionRead.js +0 -5
  114. package/dist/api/types/ModelVersionReadStatusEnum.d.ts +0 -16
  115. package/dist/api/types/ModelVersionReadStatusEnum.js +0 -12
  116. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +0 -12
  117. package/dist/api/types/ModelVersionSandboxSnapshot.js +0 -5
  118. package/dist/api/types/PromptTemplateBlock.d.ts +0 -19
  119. package/dist/api/types/PromptTemplateBlock.js +0 -5
  120. package/dist/api/types/PromptTemplateBlockData.d.ts +0 -8
  121. package/dist/api/types/PromptTemplateBlockData.js +0 -5
  122. package/dist/api/types/PromptTemplateBlockState.d.ts +0 -12
  123. package/dist/api/types/PromptTemplateBlockState.js +0 -10
  124. package/dist/api/types/ProviderEnum.d.ts +0 -34
  125. package/dist/api/types/ProviderEnum.js +0 -21
  126. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  127. package/dist/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  128. package/dist/serialization/types/ChatMessageEnum.d.ts +0 -10
  129. package/dist/serialization/types/ChatMessageEnum.js +0 -31
  130. package/dist/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  131. package/dist/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  132. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  133. package/dist/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  134. package/dist/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  135. package/dist/serialization/types/FunctionDefinitionEnum.js +0 -31
  136. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  137. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  138. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  139. package/dist/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  140. package/dist/serialization/types/JinjaEnum.d.ts +0 -10
  141. package/dist/serialization/types/JinjaEnum.js +0 -31
  142. package/dist/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  143. package/dist/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  144. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  145. package/dist/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  146. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  147. package/dist/serialization/types/ModelVersionBuildConfig.js +0 -36
  148. package/dist/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  149. package/dist/serialization/types/ModelVersionExecConfig.js +0 -40
  150. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  151. package/dist/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  152. package/dist/serialization/types/ModelVersionRead.d.ts +0 -23
  153. package/dist/serialization/types/ModelVersionRead.js +0 -44
  154. package/dist/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  155. package/dist/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  156. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  157. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  158. package/dist/serialization/types/PromptTemplateBlock.d.ts +0 -25
  159. package/dist/serialization/types/PromptTemplateBlock.js +0 -53
  160. package/dist/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  161. package/dist/serialization/types/PromptTemplateBlockData.js +0 -43
  162. package/dist/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  163. package/dist/serialization/types/PromptTemplateBlockState.js +0 -31
  164. package/dist/serialization/types/ProviderEnum.d.ts +0 -10
  165. package/dist/serialization/types/ProviderEnum.js +0 -45
  166. package/serialization/types/ChatHistoryPromptTemplateBlock.d.ts +0 -15
  167. package/serialization/types/ChatHistoryPromptTemplateBlock.js +0 -36
  168. package/serialization/types/ChatMessageEnum.d.ts +0 -10
  169. package/serialization/types/ChatMessageEnum.js +0 -31
  170. package/serialization/types/ChatMessagePromptTemplateBlock.d.ts +0 -15
  171. package/serialization/types/ChatMessagePromptTemplateBlock.js +0 -45
  172. package/serialization/types/ChatMessagePromptTemplateBlockProperties.d.ts +0 -16
  173. package/serialization/types/ChatMessagePromptTemplateBlockProperties.js +0 -46
  174. package/serialization/types/FunctionDefinitionEnum.d.ts +0 -10
  175. package/serialization/types/FunctionDefinitionEnum.js +0 -31
  176. package/serialization/types/FunctionDefinitionPromptTemplateBlock.d.ts +0 -16
  177. package/serialization/types/FunctionDefinitionPromptTemplateBlock.js +0 -37
  178. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.d.ts +0 -15
  179. package/serialization/types/FunctionDefinitionPromptTemplateBlockProperties.js +0 -36
  180. package/serialization/types/JinjaEnum.d.ts +0 -10
  181. package/serialization/types/JinjaEnum.js +0 -31
  182. package/serialization/types/JinjaPromptTemplateBlock.d.ts +0 -16
  183. package/serialization/types/JinjaPromptTemplateBlock.js +0 -37
  184. package/serialization/types/JinjaPromptTemplateBlockProperties.d.ts +0 -14
  185. package/serialization/types/JinjaPromptTemplateBlockProperties.js +0 -35
  186. package/serialization/types/ModelVersionBuildConfig.d.ts +0 -15
  187. package/serialization/types/ModelVersionBuildConfig.js +0 -36
  188. package/serialization/types/ModelVersionExecConfig.d.ts +0 -19
  189. package/serialization/types/ModelVersionExecConfig.js +0 -40
  190. package/serialization/types/ModelVersionExecConfigParameters.d.ts +0 -20
  191. package/serialization/types/ModelVersionExecConfigParameters.js +0 -41
  192. package/serialization/types/ModelVersionRead.d.ts +0 -23
  193. package/serialization/types/ModelVersionRead.js +0 -44
  194. package/serialization/types/ModelVersionReadStatusEnum.d.ts +0 -10
  195. package/serialization/types/ModelVersionReadStatusEnum.js +0 -31
  196. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +0 -15
  197. package/serialization/types/ModelVersionSandboxSnapshot.js +0 -36
  198. package/serialization/types/PromptTemplateBlock.d.ts +0 -25
  199. package/serialization/types/PromptTemplateBlock.js +0 -53
  200. package/serialization/types/PromptTemplateBlockData.d.ts +0 -13
  201. package/serialization/types/PromptTemplateBlockData.js +0 -43
  202. package/serialization/types/PromptTemplateBlockState.d.ts +0 -10
  203. package/serialization/types/PromptTemplateBlockState.js +0 -31
  204. package/serialization/types/ProviderEnum.d.ts +0 -10
  205. package/serialization/types/ProviderEnum.js +0 -45
@@ -24,14 +24,10 @@ __exportStar(require("./ArrayEnum"), exports);
24
24
  __exportStar(require("./ArrayVariableValueItem"), exports);
25
25
  __exportStar(require("./ChatHistoryEnum"), exports);
26
26
  __exportStar(require("./ChatHistoryInputRequest"), exports);
27
- __exportStar(require("./ChatHistoryPromptTemplateBlock"), exports);
28
27
  __exportStar(require("./ChatHistoryVariableValue"), exports);
29
28
  __exportStar(require("./ChatMessage"), exports);
30
29
  __exportStar(require("./ChatMessageContent"), exports);
31
30
  __exportStar(require("./ChatMessageContentRequest"), exports);
32
- __exportStar(require("./ChatMessageEnum"), exports);
33
- __exportStar(require("./ChatMessagePromptTemplateBlock"), exports);
34
- __exportStar(require("./ChatMessagePromptTemplateBlockProperties"), exports);
35
31
  __exportStar(require("./ChatMessageRequest"), exports);
36
32
  __exportStar(require("./ChatMessageRole"), exports);
37
33
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -92,9 +88,6 @@ __exportStar(require("./FunctionCallChatMessageContentValue"), exports);
92
88
  __exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
93
89
  __exportStar(require("./FunctionCallEnum"), exports);
94
90
  __exportStar(require("./FunctionCallVariableValue"), exports);
95
- __exportStar(require("./FunctionDefinitionEnum"), exports);
96
- __exportStar(require("./FunctionDefinitionPromptTemplateBlock"), exports);
97
- __exportStar(require("./FunctionDefinitionPromptTemplateBlockProperties"), exports);
98
91
  __exportStar(require("./GenerateErrorResponse"), exports);
99
92
  __exportStar(require("./GenerateOptionsRequest"), exports);
100
93
  __exportStar(require("./GenerateRequest"), exports);
@@ -115,9 +108,6 @@ __exportStar(require("./InitiatedExecutePromptEvent"), exports);
115
108
  __exportStar(require("./InitiatedPromptExecutionMeta"), exports);
116
109
  __exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
117
110
  __exportStar(require("./JsonInputRequest"), exports);
118
- __exportStar(require("./JinjaEnum"), exports);
119
- __exportStar(require("./JinjaPromptTemplateBlock"), exports);
120
- __exportStar(require("./JinjaPromptTemplateBlockProperties"), exports);
121
111
  __exportStar(require("./JsonEnum"), exports);
122
112
  __exportStar(require("./JsonVariableValue"), exports);
123
113
  __exportStar(require("./LogicalOperator"), exports);
@@ -126,12 +116,6 @@ __exportStar(require("./MlModelUsage"), exports);
126
116
  __exportStar(require("./MetadataFilterConfigRequest"), exports);
127
117
  __exportStar(require("./MetadataFilterRuleCombinator"), exports);
128
118
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
129
- __exportStar(require("./ModelVersionBuildConfig"), exports);
130
- __exportStar(require("./ModelVersionExecConfig"), exports);
131
- __exportStar(require("./ModelVersionExecConfigParameters"), exports);
132
- __exportStar(require("./ModelVersionRead"), exports);
133
- __exportStar(require("./ModelVersionReadStatusEnum"), exports);
134
- __exportStar(require("./ModelVersionSandboxSnapshot"), exports);
135
119
  __exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
136
120
  __exportStar(require("./NamedScenarioInputRequest"), exports);
137
121
  __exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
@@ -187,10 +171,6 @@ __exportStar(require("./PromptExecutionMeta"), exports);
187
171
  __exportStar(require("./PromptNodeResult"), exports);
188
172
  __exportStar(require("./PromptNodeResultData"), exports);
189
173
  __exportStar(require("./PromptOutput"), exports);
190
- __exportStar(require("./PromptTemplateBlock"), exports);
191
- __exportStar(require("./PromptTemplateBlockData"), exports);
192
- __exportStar(require("./PromptTemplateBlockState"), exports);
193
- __exportStar(require("./ProviderEnum"), exports);
194
174
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
195
175
  __exportStar(require("./RejectedEnum"), exports);
196
176
  __exportStar(require("./RejectedExecutePromptEvent"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -8,14 +8,10 @@ export * from "./ArrayEnum";
8
8
  export * from "./ArrayVariableValueItem";
9
9
  export * from "./ChatHistoryEnum";
10
10
  export * from "./ChatHistoryInputRequest";
11
- export * from "./ChatHistoryPromptTemplateBlock";
12
11
  export * from "./ChatHistoryVariableValue";
13
12
  export * from "./ChatMessage";
14
13
  export * from "./ChatMessageContent";
15
14
  export * from "./ChatMessageContentRequest";
16
- export * from "./ChatMessageEnum";
17
- export * from "./ChatMessagePromptTemplateBlock";
18
- export * from "./ChatMessagePromptTemplateBlockProperties";
19
15
  export * from "./ChatMessageRequest";
20
16
  export * from "./ChatMessageRole";
21
17
  export * from "./CodeExecutionNodeArrayResult";
@@ -76,9 +72,6 @@ export * from "./FunctionCallChatMessageContentValue";
76
72
  export * from "./FunctionCallChatMessageContentValueRequest";
77
73
  export * from "./FunctionCallEnum";
78
74
  export * from "./FunctionCallVariableValue";
79
- export * from "./FunctionDefinitionEnum";
80
- export * from "./FunctionDefinitionPromptTemplateBlock";
81
- export * from "./FunctionDefinitionPromptTemplateBlockProperties";
82
75
  export * from "./GenerateErrorResponse";
83
76
  export * from "./GenerateOptionsRequest";
84
77
  export * from "./GenerateRequest";
@@ -99,9 +92,6 @@ export * from "./InitiatedExecutePromptEvent";
99
92
  export * from "./InitiatedPromptExecutionMeta";
100
93
  export * from "./InitiatedWorkflowNodeResultEvent";
101
94
  export * from "./JsonInputRequest";
102
- export * from "./JinjaEnum";
103
- export * from "./JinjaPromptTemplateBlock";
104
- export * from "./JinjaPromptTemplateBlockProperties";
105
95
  export * from "./JsonEnum";
106
96
  export * from "./JsonVariableValue";
107
97
  export * from "./LogicalOperator";
@@ -110,12 +100,6 @@ export * from "./MlModelUsage";
110
100
  export * from "./MetadataFilterConfigRequest";
111
101
  export * from "./MetadataFilterRuleCombinator";
112
102
  export * from "./MetadataFilterRuleRequest";
113
- export * from "./ModelVersionBuildConfig";
114
- export * from "./ModelVersionExecConfig";
115
- export * from "./ModelVersionExecConfigParameters";
116
- export * from "./ModelVersionRead";
117
- export * from "./ModelVersionReadStatusEnum";
118
- export * from "./ModelVersionSandboxSnapshot";
119
103
  export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
120
104
  export * from "./NamedScenarioInputRequest";
121
105
  export * from "./NamedScenarioInputStringVariableValueRequest";
@@ -171,10 +155,6 @@ export * from "./PromptExecutionMeta";
171
155
  export * from "./PromptNodeResult";
172
156
  export * from "./PromptNodeResultData";
173
157
  export * from "./PromptOutput";
174
- export * from "./PromptTemplateBlock";
175
- export * from "./PromptTemplateBlockData";
176
- export * from "./PromptTemplateBlockState";
177
- export * from "./ProviderEnum";
178
158
  export * from "./RawPromptExecutionOverridesRequest";
179
159
  export * from "./RejectedEnum";
180
160
  export * from "./RejectedExecutePromptEvent";
@@ -24,14 +24,10 @@ __exportStar(require("./ArrayEnum"), exports);
24
24
  __exportStar(require("./ArrayVariableValueItem"), exports);
25
25
  __exportStar(require("./ChatHistoryEnum"), exports);
26
26
  __exportStar(require("./ChatHistoryInputRequest"), exports);
27
- __exportStar(require("./ChatHistoryPromptTemplateBlock"), exports);
28
27
  __exportStar(require("./ChatHistoryVariableValue"), exports);
29
28
  __exportStar(require("./ChatMessage"), exports);
30
29
  __exportStar(require("./ChatMessageContent"), exports);
31
30
  __exportStar(require("./ChatMessageContentRequest"), exports);
32
- __exportStar(require("./ChatMessageEnum"), exports);
33
- __exportStar(require("./ChatMessagePromptTemplateBlock"), exports);
34
- __exportStar(require("./ChatMessagePromptTemplateBlockProperties"), exports);
35
31
  __exportStar(require("./ChatMessageRequest"), exports);
36
32
  __exportStar(require("./ChatMessageRole"), exports);
37
33
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -92,9 +88,6 @@ __exportStar(require("./FunctionCallChatMessageContentValue"), exports);
92
88
  __exportStar(require("./FunctionCallChatMessageContentValueRequest"), exports);
93
89
  __exportStar(require("./FunctionCallEnum"), exports);
94
90
  __exportStar(require("./FunctionCallVariableValue"), exports);
95
- __exportStar(require("./FunctionDefinitionEnum"), exports);
96
- __exportStar(require("./FunctionDefinitionPromptTemplateBlock"), exports);
97
- __exportStar(require("./FunctionDefinitionPromptTemplateBlockProperties"), exports);
98
91
  __exportStar(require("./GenerateErrorResponse"), exports);
99
92
  __exportStar(require("./GenerateOptionsRequest"), exports);
100
93
  __exportStar(require("./GenerateRequest"), exports);
@@ -115,9 +108,6 @@ __exportStar(require("./InitiatedExecutePromptEvent"), exports);
115
108
  __exportStar(require("./InitiatedPromptExecutionMeta"), exports);
116
109
  __exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
117
110
  __exportStar(require("./JsonInputRequest"), exports);
118
- __exportStar(require("./JinjaEnum"), exports);
119
- __exportStar(require("./JinjaPromptTemplateBlock"), exports);
120
- __exportStar(require("./JinjaPromptTemplateBlockProperties"), exports);
121
111
  __exportStar(require("./JsonEnum"), exports);
122
112
  __exportStar(require("./JsonVariableValue"), exports);
123
113
  __exportStar(require("./LogicalOperator"), exports);
@@ -126,12 +116,6 @@ __exportStar(require("./MlModelUsage"), exports);
126
116
  __exportStar(require("./MetadataFilterConfigRequest"), exports);
127
117
  __exportStar(require("./MetadataFilterRuleCombinator"), exports);
128
118
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
129
- __exportStar(require("./ModelVersionBuildConfig"), exports);
130
- __exportStar(require("./ModelVersionExecConfig"), exports);
131
- __exportStar(require("./ModelVersionExecConfigParameters"), exports);
132
- __exportStar(require("./ModelVersionRead"), exports);
133
- __exportStar(require("./ModelVersionReadStatusEnum"), exports);
134
- __exportStar(require("./ModelVersionSandboxSnapshot"), exports);
135
119
  __exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
136
120
  __exportStar(require("./NamedScenarioInputRequest"), exports);
137
121
  __exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
@@ -187,10 +171,6 @@ __exportStar(require("./PromptExecutionMeta"), exports);
187
171
  __exportStar(require("./PromptNodeResult"), exports);
188
172
  __exportStar(require("./PromptNodeResultData"), exports);
189
173
  __exportStar(require("./PromptOutput"), exports);
190
- __exportStar(require("./PromptTemplateBlock"), exports);
191
- __exportStar(require("./PromptTemplateBlockData"), exports);
192
- __exportStar(require("./PromptTemplateBlockState"), exports);
193
- __exportStar(require("./ProviderEnum"), exports);
194
174
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
195
175
  __exportStar(require("./RejectedEnum"), exports);
196
176
  __exportStar(require("./RejectedExecutePromptEvent"), exports);
@@ -1,30 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as Vellum from "../../..";
7
- export declare namespace ModelVersions {
8
- interface Options {
9
- environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
11
- }
12
- interface RequestOptions {
13
- timeoutInSeconds?: number;
14
- maxRetries?: number;
15
- }
16
- }
17
- export declare class ModelVersions {
18
- protected readonly _options: ModelVersions.Options;
19
- constructor(_options: ModelVersions.Options);
20
- /**
21
- * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
22
- *
23
- * @example
24
- * await vellum.modelVersions.retrieve("id")
25
- */
26
- retrieve(id: string, requestOptions?: ModelVersions.RequestOptions): Promise<Vellum.ModelVersionRead>;
27
- protected _getCustomAuthorizationHeaders(): Promise<{
28
- X_API_KEY: string;
29
- }>;
30
- }
@@ -1,105 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
- var __importDefault = (this && this.__importDefault) || function (mod) {
38
- return (mod && mod.__esModule) ? mod : { "default": mod };
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.ModelVersions = void 0;
42
- const environments = __importStar(require("../../../../environments"));
43
- const core = __importStar(require("../../../../core"));
44
- const url_join_1 = __importDefault(require("url-join"));
45
- const serializers = __importStar(require("../../../../serialization"));
46
- const errors = __importStar(require("../../../../errors"));
47
- class ModelVersions {
48
- constructor(_options) {
49
- this._options = _options;
50
- }
51
- /**
52
- * Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
53
- *
54
- * @example
55
- * await vellum.modelVersions.retrieve("id")
56
- */
57
- retrieve(id, requestOptions) {
58
- var _a;
59
- return __awaiter(this, void 0, void 0, function* () {
60
- const _response = yield core.fetcher({
61
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
62
- .default, `v1/model-versions/${id}`),
63
- method: "GET",
64
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.4.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
- contentType: "application/json",
66
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
67
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
68
- });
69
- if (_response.ok) {
70
- return yield serializers.ModelVersionRead.parseOrThrow(_response.body, {
71
- unrecognizedObjectKeys: "passthrough",
72
- allowUnrecognizedUnionMembers: true,
73
- allowUnrecognizedEnumValues: true,
74
- breadcrumbsPrefix: ["response"],
75
- });
76
- }
77
- if (_response.error.reason === "status-code") {
78
- throw new errors.VellumError({
79
- statusCode: _response.error.statusCode,
80
- body: _response.error.body,
81
- });
82
- }
83
- switch (_response.error.reason) {
84
- case "non-json":
85
- throw new errors.VellumError({
86
- statusCode: _response.error.statusCode,
87
- body: _response.error.rawBody,
88
- });
89
- case "timeout":
90
- throw new errors.VellumTimeoutError();
91
- case "unknown":
92
- throw new errors.VellumError({
93
- message: _response.error.errorMessage,
94
- });
95
- }
96
- });
97
- }
98
- _getCustomAuthorizationHeaders() {
99
- return __awaiter(this, void 0, void 0, function* () {
100
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
101
- return { X_API_KEY: apiKeyValue };
102
- });
103
- }
104
- }
105
- exports.ModelVersions = ModelVersions;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a chat history variable in a prompt template.
7
- */
8
- export interface ChatHistoryPromptTemplateBlock {
9
- properties: Record<string, unknown>;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type ChatMessageEnum = "CHAT_MESSAGE";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a chat message in a prompt template.
7
- */
8
- export interface ChatMessagePromptTemplateBlock {
9
- properties: Vellum.ChatMessagePromptTemplateBlockProperties;
10
- id: string;
11
- state?: Vellum.PromptTemplateBlockState;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * The properties of a ChatMessagePromptTemplateBlock
7
- */
8
- export interface ChatMessagePromptTemplateBlockProperties {
9
- blocks: Vellum.PromptTemplateBlock[];
10
- chatRole?: Vellum.ChatMessageRole;
11
- chatSource?: string;
12
- chatMessageUnterminated?: boolean;
13
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type FunctionDefinitionEnum = "FUNCTION_DEFINITION";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of that represents a function definition in a prompt template.
7
- */
8
- export interface FunctionDefinitionPromptTemplateBlock {
9
- id: string;
10
- state?: Vellum.PromptTemplateBlockState;
11
- properties: Vellum.FunctionDefinitionPromptTemplateBlockProperties;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface FunctionDefinitionPromptTemplateBlockProperties {
5
- /** The name identifying the function. */
6
- functionName?: string;
7
- /** A description to help guide the model when to invoke this function. */
8
- functionDescription?: string;
9
- /** An OpenAPI specification of parameters that are supported by this function. */
10
- functionParameters?: Record<string, unknown>;
11
- /** Set this option to true to force the model to return a function call of this function. */
12
- functionForced?: boolean;
13
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type JinjaEnum = "JINJA";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- /**
6
- * A block of Jinja template code that is used to generate a prompt
7
- */
8
- export interface JinjaPromptTemplateBlock {
9
- id: string;
10
- state?: Vellum.PromptTemplateBlockState;
11
- properties: Vellum.JinjaPromptTemplateBlockProperties;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface JinjaPromptTemplateBlockProperties {
6
- template?: string;
7
- templateType?: Vellum.VellumVariableType;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionBuildConfig {
6
- /** The name of the base model used to create this model version, as identified by the LLM provider. */
7
- baseModel: string;
8
- /** Information about the sandbox snapshot that was used to create this model version, if applicable. */
9
- sandboxSnapshot?: Vellum.ModelVersionSandboxSnapshot;
10
- promptVersionId?: string;
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionExecConfig {
6
- /** The generation parameters that are passed to the LLM provider at runtime. */
7
- parameters: Vellum.ModelVersionExecConfigParameters;
8
- /** Input variables specified in the prompt template. */
9
- inputVariables: Vellum.VellumVariable[];
10
- /** The template used to generate prompts for this model version. */
11
- promptTemplate?: string;
12
- promptBlockData?: Vellum.PromptTemplateBlockData;
13
- promptSyntaxVersion?: number;
14
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ModelVersionExecConfigParameters {
5
- temperature?: number;
6
- maxTokens?: number;
7
- topP: number;
8
- frequencyPenalty: number;
9
- presencePenalty: number;
10
- logitBias?: Record<string, number | undefined>;
11
- stop?: string[];
12
- topK?: number;
13
- customParameters?: Record<string, unknown>;
14
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,37 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Vellum from "..";
5
- export interface ModelVersionRead {
6
- /** Vellum-generated ID that uniquely identifies this model version. */
7
- id: string;
8
- /** Timestamp of when this model version was created. */
9
- created: Date;
10
- /** Human-friendly name for this model version. */
11
- label: string;
12
- /**
13
- * Which LLM provider this model version is associated with.
14
- *
15
- * - `ANTHROPIC` - Anthropic
16
- * - `AWS_BEDROCK` - AWS Bedrock
17
- * - `AZURE_OPENAI` - Azure OpenAI
18
- * - `COHERE` - Cohere
19
- * - `GOOGLE` - Google
20
- * - `HOSTED` - Hosted
21
- * - `MOSAICML` - MosaicML
22
- * - `OPENAI` - OpenAI
23
- * - `FIREWORKS_AI` - Fireworks AI
24
- * - `HUGGINGFACE` - HuggingFace
25
- * - `MYSTIC` - Mystic
26
- * - `PYQ` - Pyq
27
- * - `REPLICATE` - Replicate
28
- */
29
- provider: Vellum.ProviderEnum;
30
- /** The unique id of this model version as it exists in the above provider's system. */
31
- externalId: string;
32
- /** Configuration used to build this model version. */
33
- buildConfig: Vellum.ModelVersionBuildConfig;
34
- /** Configuration used to execute this model version. */
35
- execConfig: Vellum.ModelVersionExecConfig;
36
- status?: Vellum.ModelVersionReadStatusEnum;
37
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });