vellum-ai 0.1.3 → 0.1.4

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 (175) hide show
  1. package/Client.js +6 -6
  2. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
  3. package/api/resources/deployments/client/Client.js +1 -1
  4. package/api/resources/documentIndexes/client/Client.js +2 -2
  5. package/api/resources/documents/client/Client.js +4 -4
  6. package/api/resources/modelVersions/client/Client.js +1 -1
  7. package/api/resources/registeredPrompts/client/Client.js +1 -1
  8. package/api/resources/sandboxes/client/Client.js +2 -2
  9. package/api/resources/testSuites/client/Client.js +2 -2
  10. package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -7
  11. package/api/types/SearchResultDocumentRequest.d.ts +11 -0
  12. package/api/types/SearchResultDocumentRequest.js +5 -0
  13. package/api/types/SearchResultRequest.d.ts +13 -0
  14. package/api/types/SearchResultRequest.js +5 -0
  15. package/api/types/TestCaseChatHistoryVariableValue.d.ts +8 -0
  16. package/api/types/TestCaseChatHistoryVariableValue.js +5 -0
  17. package/api/types/TestCaseChatHistoryVariableValueRequest.d.ts +8 -0
  18. package/api/types/TestCaseChatHistoryVariableValueRequest.js +5 -0
  19. package/api/types/TestCaseErrorVariableValue.d.ts +8 -0
  20. package/api/types/TestCaseErrorVariableValue.js +5 -0
  21. package/api/types/TestCaseErrorVariableValueRequest.d.ts +8 -0
  22. package/api/types/TestCaseErrorVariableValueRequest.js +5 -0
  23. package/api/types/TestCaseJsonVariableValue.d.ts +7 -0
  24. package/api/types/TestCaseJsonVariableValue.js +5 -0
  25. package/api/types/TestCaseJsonVariableValueRequest.d.ts +7 -0
  26. package/api/types/TestCaseJsonVariableValueRequest.js +5 -0
  27. package/api/types/TestCaseNumberVariableValue.d.ts +7 -0
  28. package/api/types/TestCaseNumberVariableValue.js +5 -0
  29. package/api/types/TestCaseNumberVariableValueRequest.d.ts +7 -0
  30. package/api/types/TestCaseNumberVariableValueRequest.js +5 -0
  31. package/api/types/TestCaseSearchResultsVariableValue.d.ts +8 -0
  32. package/api/types/TestCaseSearchResultsVariableValue.js +5 -0
  33. package/api/types/TestCaseSearchResultsVariableValueRequest.d.ts +8 -0
  34. package/api/types/TestCaseSearchResultsVariableValueRequest.js +5 -0
  35. package/api/types/TestCaseStringVariableValue.d.ts +7 -0
  36. package/api/types/TestCaseStringVariableValue.js +5 -0
  37. package/api/types/TestCaseStringVariableValueRequest.d.ts +7 -0
  38. package/api/types/TestCaseStringVariableValueRequest.js +5 -0
  39. package/api/types/TestCaseVariableValue.d.ts +25 -0
  40. package/api/types/TestCaseVariableValue.js +5 -0
  41. package/api/types/TestCaseVariableValueRequest.d.ts +25 -0
  42. package/api/types/TestCaseVariableValueRequest.js +5 -0
  43. package/api/types/TestSuiteTestCase.d.ts +3 -7
  44. package/api/types/VellumErrorRequest.d.ts +8 -0
  45. package/api/types/VellumErrorRequest.js +5 -0
  46. package/api/types/index.d.ts +17 -0
  47. package/api/types/index.js +17 -0
  48. package/dist/Client.js +6 -6
  49. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
  50. package/dist/api/resources/deployments/client/Client.js +1 -1
  51. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  52. package/dist/api/resources/documents/client/Client.js +4 -4
  53. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  54. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  55. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  56. package/dist/api/resources/testSuites/client/Client.js +2 -2
  57. package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -7
  58. package/dist/api/types/SearchResultDocumentRequest.d.ts +11 -0
  59. package/dist/api/types/SearchResultDocumentRequest.js +5 -0
  60. package/dist/api/types/SearchResultRequest.d.ts +13 -0
  61. package/dist/api/types/SearchResultRequest.js +5 -0
  62. package/dist/api/types/TestCaseChatHistoryVariableValue.d.ts +8 -0
  63. package/dist/api/types/TestCaseChatHistoryVariableValue.js +5 -0
  64. package/dist/api/types/TestCaseChatHistoryVariableValueRequest.d.ts +8 -0
  65. package/dist/api/types/TestCaseChatHistoryVariableValueRequest.js +5 -0
  66. package/dist/api/types/TestCaseErrorVariableValue.d.ts +8 -0
  67. package/dist/api/types/TestCaseErrorVariableValue.js +5 -0
  68. package/dist/api/types/TestCaseErrorVariableValueRequest.d.ts +8 -0
  69. package/dist/api/types/TestCaseErrorVariableValueRequest.js +5 -0
  70. package/dist/api/types/TestCaseJsonVariableValue.d.ts +7 -0
  71. package/dist/api/types/TestCaseJsonVariableValue.js +5 -0
  72. package/dist/api/types/TestCaseJsonVariableValueRequest.d.ts +7 -0
  73. package/dist/api/types/TestCaseJsonVariableValueRequest.js +5 -0
  74. package/dist/api/types/TestCaseNumberVariableValue.d.ts +7 -0
  75. package/dist/api/types/TestCaseNumberVariableValue.js +5 -0
  76. package/dist/api/types/TestCaseNumberVariableValueRequest.d.ts +7 -0
  77. package/dist/api/types/TestCaseNumberVariableValueRequest.js +5 -0
  78. package/dist/api/types/TestCaseSearchResultsVariableValue.d.ts +8 -0
  79. package/dist/api/types/TestCaseSearchResultsVariableValue.js +5 -0
  80. package/dist/api/types/TestCaseSearchResultsVariableValueRequest.d.ts +8 -0
  81. package/dist/api/types/TestCaseSearchResultsVariableValueRequest.js +5 -0
  82. package/dist/api/types/TestCaseStringVariableValue.d.ts +7 -0
  83. package/dist/api/types/TestCaseStringVariableValue.js +5 -0
  84. package/dist/api/types/TestCaseStringVariableValueRequest.d.ts +7 -0
  85. package/dist/api/types/TestCaseStringVariableValueRequest.js +5 -0
  86. package/dist/api/types/TestCaseVariableValue.d.ts +25 -0
  87. package/dist/api/types/TestCaseVariableValue.js +5 -0
  88. package/dist/api/types/TestCaseVariableValueRequest.d.ts +25 -0
  89. package/dist/api/types/TestCaseVariableValueRequest.js +5 -0
  90. package/dist/api/types/TestSuiteTestCase.d.ts +3 -7
  91. package/dist/api/types/VellumErrorRequest.d.ts +8 -0
  92. package/dist/api/types/VellumErrorRequest.js +5 -0
  93. package/dist/api/types/index.d.ts +17 -0
  94. package/dist/api/types/index.js +17 -0
  95. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -3
  96. package/dist/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +3 -3
  97. package/dist/serialization/types/SearchResultDocumentRequest.d.ts +14 -0
  98. package/dist/serialization/types/SearchResultDocumentRequest.js +35 -0
  99. package/dist/serialization/types/SearchResultRequest.d.ts +15 -0
  100. package/dist/serialization/types/SearchResultRequest.js +45 -0
  101. package/dist/serialization/types/TestCaseChatHistoryVariableValue.d.ts +13 -0
  102. package/dist/serialization/types/TestCaseChatHistoryVariableValue.js +45 -0
  103. package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +13 -0
  104. package/dist/serialization/types/TestCaseChatHistoryVariableValueRequest.js +45 -0
  105. package/dist/serialization/types/TestCaseErrorVariableValue.d.ts +13 -0
  106. package/dist/serialization/types/TestCaseErrorVariableValue.js +43 -0
  107. package/dist/serialization/types/TestCaseErrorVariableValueRequest.d.ts +13 -0
  108. package/dist/serialization/types/TestCaseErrorVariableValueRequest.js +43 -0
  109. package/dist/serialization/types/TestCaseJsonVariableValue.d.ts +13 -0
  110. package/dist/serialization/types/TestCaseJsonVariableValue.js +34 -0
  111. package/dist/serialization/types/TestCaseJsonVariableValueRequest.d.ts +13 -0
  112. package/dist/serialization/types/TestCaseJsonVariableValueRequest.js +34 -0
  113. package/dist/serialization/types/TestCaseNumberVariableValue.d.ts +13 -0
  114. package/dist/serialization/types/TestCaseNumberVariableValue.js +34 -0
  115. package/dist/serialization/types/TestCaseNumberVariableValueRequest.d.ts +13 -0
  116. package/dist/serialization/types/TestCaseNumberVariableValueRequest.js +34 -0
  117. package/dist/serialization/types/TestCaseSearchResultsVariableValue.d.ts +13 -0
  118. package/dist/serialization/types/TestCaseSearchResultsVariableValue.js +45 -0
  119. package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +13 -0
  120. package/dist/serialization/types/TestCaseSearchResultsVariableValueRequest.js +45 -0
  121. package/dist/serialization/types/TestCaseStringVariableValue.d.ts +13 -0
  122. package/dist/serialization/types/TestCaseStringVariableValue.js +34 -0
  123. package/dist/serialization/types/TestCaseStringVariableValueRequest.d.ts +13 -0
  124. package/dist/serialization/types/TestCaseStringVariableValueRequest.js +34 -0
  125. package/dist/serialization/types/TestCaseVariableValue.d.ts +28 -0
  126. package/dist/serialization/types/TestCaseVariableValue.js +52 -0
  127. package/dist/serialization/types/TestCaseVariableValueRequest.d.ts +28 -0
  128. package/dist/serialization/types/TestCaseVariableValueRequest.js +52 -0
  129. package/dist/serialization/types/TestSuiteTestCase.d.ts +3 -3
  130. package/dist/serialization/types/TestSuiteTestCase.js +3 -3
  131. package/dist/serialization/types/VellumErrorRequest.d.ts +13 -0
  132. package/dist/serialization/types/VellumErrorRequest.js +43 -0
  133. package/dist/serialization/types/index.d.ts +17 -0
  134. package/dist/serialization/types/index.js +17 -0
  135. package/package.json +1 -1
  136. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +3 -3
  137. package/serialization/resources/testSuites/client/requests/TestSuiteTestCaseRequest.js +3 -3
  138. package/serialization/types/SearchResultDocumentRequest.d.ts +14 -0
  139. package/serialization/types/SearchResultDocumentRequest.js +35 -0
  140. package/serialization/types/SearchResultRequest.d.ts +15 -0
  141. package/serialization/types/SearchResultRequest.js +45 -0
  142. package/serialization/types/TestCaseChatHistoryVariableValue.d.ts +13 -0
  143. package/serialization/types/TestCaseChatHistoryVariableValue.js +45 -0
  144. package/serialization/types/TestCaseChatHistoryVariableValueRequest.d.ts +13 -0
  145. package/serialization/types/TestCaseChatHistoryVariableValueRequest.js +45 -0
  146. package/serialization/types/TestCaseErrorVariableValue.d.ts +13 -0
  147. package/serialization/types/TestCaseErrorVariableValue.js +43 -0
  148. package/serialization/types/TestCaseErrorVariableValueRequest.d.ts +13 -0
  149. package/serialization/types/TestCaseErrorVariableValueRequest.js +43 -0
  150. package/serialization/types/TestCaseJsonVariableValue.d.ts +13 -0
  151. package/serialization/types/TestCaseJsonVariableValue.js +34 -0
  152. package/serialization/types/TestCaseJsonVariableValueRequest.d.ts +13 -0
  153. package/serialization/types/TestCaseJsonVariableValueRequest.js +34 -0
  154. package/serialization/types/TestCaseNumberVariableValue.d.ts +13 -0
  155. package/serialization/types/TestCaseNumberVariableValue.js +34 -0
  156. package/serialization/types/TestCaseNumberVariableValueRequest.d.ts +13 -0
  157. package/serialization/types/TestCaseNumberVariableValueRequest.js +34 -0
  158. package/serialization/types/TestCaseSearchResultsVariableValue.d.ts +13 -0
  159. package/serialization/types/TestCaseSearchResultsVariableValue.js +45 -0
  160. package/serialization/types/TestCaseSearchResultsVariableValueRequest.d.ts +13 -0
  161. package/serialization/types/TestCaseSearchResultsVariableValueRequest.js +45 -0
  162. package/serialization/types/TestCaseStringVariableValue.d.ts +13 -0
  163. package/serialization/types/TestCaseStringVariableValue.js +34 -0
  164. package/serialization/types/TestCaseStringVariableValueRequest.d.ts +13 -0
  165. package/serialization/types/TestCaseStringVariableValueRequest.js +34 -0
  166. package/serialization/types/TestCaseVariableValue.d.ts +28 -0
  167. package/serialization/types/TestCaseVariableValue.js +52 -0
  168. package/serialization/types/TestCaseVariableValueRequest.d.ts +28 -0
  169. package/serialization/types/TestCaseVariableValueRequest.js +52 -0
  170. package/serialization/types/TestSuiteTestCase.d.ts +3 -3
  171. package/serialization/types/TestSuiteTestCase.js +3 -3
  172. package/serialization/types/VellumErrorRequest.d.ts +13 -0
  173. package/serialization/types/VellumErrorRequest.js +43 -0
  174. package/serialization/types/index.d.ts +17 -0
  175. package/serialization/types/index.js +17 -0
package/dist/Client.js CHANGED
@@ -70,7 +70,7 @@ class VellumClient {
70
70
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "vellum-ai",
73
- "X-Fern-SDK-Version": "v0.1.3",
73
+ "X-Fern-SDK-Version": "v0.1.4",
74
74
  },
75
75
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
76
76
  unrecognizedObjectKeys: "strip",
@@ -111,7 +111,7 @@ class VellumClient {
111
111
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
112
112
  "X-Fern-Language": "JavaScript",
113
113
  "X-Fern-SDK-Name": "vellum-ai",
114
- "X-Fern-SDK-Version": "v0.1.3",
114
+ "X-Fern-SDK-Version": "v0.1.4",
115
115
  },
116
116
  contentType: "application/json",
117
117
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -179,7 +179,7 @@ class VellumClient {
179
179
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
180
180
  "X-Fern-Language": "JavaScript",
181
181
  "X-Fern-SDK-Name": "vellum-ai",
182
- "X-Fern-SDK-Version": "v0.1.3",
182
+ "X-Fern-SDK-Version": "v0.1.4",
183
183
  },
184
184
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
185
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -217,7 +217,7 @@ class VellumClient {
217
217
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
218
218
  "X-Fern-Language": "JavaScript",
219
219
  "X-Fern-SDK-Name": "vellum-ai",
220
- "X-Fern-SDK-Version": "v0.1.3",
220
+ "X-Fern-SDK-Version": "v0.1.4",
221
221
  },
222
222
  contentType: "application/json",
223
223
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -281,7 +281,7 @@ class VellumClient {
281
281
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
282
282
  "X-Fern-Language": "JavaScript",
283
283
  "X-Fern-SDK-Name": "vellum-ai",
284
- "X-Fern-SDK-Version": "v0.1.3",
284
+ "X-Fern-SDK-Version": "v0.1.4",
285
285
  },
286
286
  contentType: "application/json",
287
287
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -339,7 +339,7 @@ class VellumClient {
339
339
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
340
340
  "X-Fern-Language": "JavaScript",
341
341
  "X-Fern-SDK-Name": "vellum-ai",
342
- "X-Fern-SDK-Version": "v0.1.3",
342
+ "X-Fern-SDK-Version": "v0.1.4",
343
343
  },
344
344
  contentType: "application/json",
345
345
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -9,6 +9,7 @@ export interface ExecuteWorkflowStreamRequest {
9
9
  workflowDeploymentName?: string;
10
10
  /** Optionally specify a release tag if you want to pin to a specific release of the Workflow Deployment */
11
11
  releaseTag?: string;
12
+ /** The list of inputs defined in the Workflow's deployment with their corresponding values. */
12
13
  inputs: Vellum.WorkflowRequestInputRequest[];
13
14
  /** Optionally include a unique identifier for tracking purposes. */
14
15
  externalId?: string;
@@ -62,7 +62,7 @@ class Deployments {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.3",
65
+ "X-Fern-SDK-Version": "v0.1.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -62,7 +62,7 @@ class DocumentIndexes {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.3",
65
+ "X-Fern-SDK-Version": "v0.1.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class DocumentIndexes {
114
114
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
115
115
  "X-Fern-Language": "JavaScript",
116
116
  "X-Fern-SDK-Name": "vellum-ai",
117
- "X-Fern-SDK-Version": "v0.1.3",
117
+ "X-Fern-SDK-Version": "v0.1.4",
118
118
  },
119
119
  contentType: "application/json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -78,7 +78,7 @@ class Documents {
78
78
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "vellum-ai",
81
- "X-Fern-SDK-Version": "v0.1.3",
81
+ "X-Fern-SDK-Version": "v0.1.4",
82
82
  },
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
@@ -125,7 +125,7 @@ class Documents {
125
125
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
126
126
  "X-Fern-Language": "JavaScript",
127
127
  "X-Fern-SDK-Name": "vellum-ai",
128
- "X-Fern-SDK-Version": "v0.1.3",
128
+ "X-Fern-SDK-Version": "v0.1.4",
129
129
  },
130
130
  contentType: "application/json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -169,7 +169,7 @@ class Documents {
169
169
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "vellum-ai",
172
- "X-Fern-SDK-Version": "v0.1.3",
172
+ "X-Fern-SDK-Version": "v0.1.4",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
@@ -245,7 +245,7 @@ class Documents {
245
245
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "vellum-ai",
248
- "X-Fern-SDK-Version": "v0.1.3",
248
+ "X-Fern-SDK-Version": "v0.1.4",
249
249
  "Content-Length": (yield core.getFormDataContentLength(_request)).toString(),
250
250
  },
251
251
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
@@ -62,7 +62,7 @@ class ModelVersions {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.3",
65
+ "X-Fern-SDK-Version": "v0.1.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class RegisteredPrompts {
69
69
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "vellum-ai",
72
- "X-Fern-SDK-Version": "v0.1.3",
72
+ "X-Fern-SDK-Version": "v0.1.4",
73
73
  },
74
74
  contentType: "application/json",
75
75
  body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class Sandboxes {
68
68
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "vellum-ai",
71
- "X-Fern-SDK-Version": "v0.1.3",
71
+ "X-Fern-SDK-Version": "v0.1.4",
72
72
  },
73
73
  contentType: "application/json",
74
74
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
@@ -120,7 +120,7 @@ class Sandboxes {
120
120
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
121
121
  "X-Fern-Language": "JavaScript",
122
122
  "X-Fern-SDK-Name": "vellum-ai",
123
- "X-Fern-SDK-Version": "v0.1.3",
123
+ "X-Fern-SDK-Version": "v0.1.4",
124
124
  },
125
125
  contentType: "application/json",
126
126
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -68,7 +68,7 @@ class TestSuites {
68
68
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "vellum-ai",
71
- "X-Fern-SDK-Version": "v0.1.3",
71
+ "X-Fern-SDK-Version": "v0.1.4",
72
72
  },
73
73
  contentType: "application/json",
74
74
  body: yield serializers.TestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -119,7 +119,7 @@ class TestSuites {
119
119
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
120
120
  "X-Fern-Language": "JavaScript",
121
121
  "X-Fern-SDK-Name": "vellum-ai",
122
- "X-Fern-SDK-Version": "v0.1.3",
122
+ "X-Fern-SDK-Version": "v0.1.4",
123
123
  },
124
124
  contentType: "application/json",
125
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -3,12 +3,8 @@
3
3
  */
4
4
  import * as Vellum from "../../../..";
5
5
  export interface TestSuiteTestCaseRequest {
6
- /** The id of the test case to update. If none is provided, an id will be generated and a new test case will be appended. */
7
- testCaseId?: string;
8
- /** A human-friendly label for the test case. */
6
+ testSuiteTestCaseRequestId?: string;
9
7
  label?: string;
10
- /** Key/value pairs for each input variable that the Test Suite expects. */
11
- inputValues: Record<string, unknown>;
12
- /** Parameters to use when evaluating the test case, specific to the test suite's evaluation metric. */
13
- evaluationParams: Vellum.EvaluationParamsRequest;
8
+ inputValues: Vellum.TestCaseVariableValueRequest[];
9
+ evaluationValues: Vellum.TestCaseVariableValueRequest[];
14
10
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SearchResultDocumentRequest {
5
+ /** The human-readable name for the document. */
6
+ label: string;
7
+ /** The unique ID of the document as represented in an external system and specified when it was originally uploaded. */
8
+ externalId?: string;
9
+ /** A previously supplied JSON object containing metadata that can be filtered on when searching. */
10
+ metadata?: Record<string, unknown>;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface SearchResultRequest {
6
+ /** The text of the chunk that matched the search query. */
7
+ text: string;
8
+ /** A score representing how well the chunk matches the search query. */
9
+ score: number;
10
+ keywords: string[];
11
+ /** The document that contains the chunk that matched the search query. */
12
+ document: Vellum.SearchResultDocumentRequest;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TestCaseChatHistoryVariableValue {
6
+ variableId: string;
7
+ value?: Vellum.ChatMessage[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TestCaseChatHistoryVariableValueRequest {
6
+ variableId: string;
7
+ value?: Vellum.ChatMessageRequest[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TestCaseErrorVariableValue {
6
+ variableId: string;
7
+ value?: Vellum.VellumError;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TestCaseErrorVariableValueRequest {
6
+ variableId: string;
7
+ value?: Vellum.VellumErrorRequest;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestCaseJsonVariableValue {
5
+ variableId: string;
6
+ value?: Record<string, unknown>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestCaseJsonVariableValueRequest {
5
+ variableId: string;
6
+ value?: Record<string, unknown>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestCaseNumberVariableValue {
5
+ variableId: string;
6
+ value?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestCaseNumberVariableValueRequest {
5
+ variableId: string;
6
+ value?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TestCaseSearchResultsVariableValue {
6
+ variableId: string;
7
+ value?: Vellum.SearchResult[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TestCaseSearchResultsVariableValueRequest {
6
+ variableId: string;
7
+ value?: Vellum.SearchResultRequest[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestCaseStringVariableValue {
5
+ variableId: string;
6
+ value?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestCaseStringVariableValueRequest {
5
+ variableId: string;
6
+ value?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type TestCaseVariableValue = Vellum.TestCaseVariableValue.String | Vellum.TestCaseVariableValue.Number | Vellum.TestCaseVariableValue.Json | Vellum.TestCaseVariableValue.ChatHistory | Vellum.TestCaseVariableValue.SearchResults | Vellum.TestCaseVariableValue.Error_;
6
+ export declare namespace TestCaseVariableValue {
7
+ interface String extends Vellum.TestCaseStringVariableValue {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.TestCaseNumberVariableValue {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.TestCaseJsonVariableValue {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.TestCaseChatHistoryVariableValue {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.TestCaseSearchResultsVariableValue {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.TestCaseErrorVariableValue {
23
+ type: "ERROR";
24
+ }
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type TestCaseVariableValueRequest = Vellum.TestCaseVariableValueRequest.String | Vellum.TestCaseVariableValueRequest.Number | Vellum.TestCaseVariableValueRequest.Json | Vellum.TestCaseVariableValueRequest.ChatHistory | Vellum.TestCaseVariableValueRequest.SearchResults | Vellum.TestCaseVariableValueRequest.Error_;
6
+ export declare namespace TestCaseVariableValueRequest {
7
+ interface String extends Vellum.TestCaseStringVariableValueRequest {
8
+ type: "STRING";
9
+ }
10
+ interface Number extends Vellum.TestCaseNumberVariableValueRequest {
11
+ type: "NUMBER";
12
+ }
13
+ interface Json extends Vellum.TestCaseJsonVariableValueRequest {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends Vellum.TestCaseChatHistoryVariableValueRequest {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ interface SearchResults extends Vellum.TestCaseSearchResultsVariableValueRequest {
20
+ type: "SEARCH_RESULTS";
21
+ }
22
+ interface Error_ extends Vellum.TestCaseErrorVariableValueRequest {
23
+ type: "ERROR";
24
+ }
25
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,12 +3,8 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface TestSuiteTestCase {
6
- /** The id of the test case to update. If none is provided, an id will be generated and a new test case will be appended. */
7
- testCaseId?: string;
8
- /** A human-friendly label for the test case. */
6
+ id?: string;
9
7
  label?: string;
10
- /** Key/value pairs for each input variable that the Test Suite expects. */
11
- inputValues: Record<string, unknown>;
12
- /** Parameters to use when evaluating the test case, specific to the test suite's evaluation metric. */
13
- evaluationParams: Vellum.EvaluationParams;
8
+ inputValues: Vellum.TestCaseVariableValue[];
9
+ evaluationValues: Vellum.TestCaseVariableValue[];
14
10
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface VellumErrorRequest {
6
+ message: string;
7
+ code: Vellum.VellumErrorCodeEnum;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -86,7 +86,9 @@ export * from "./SearchRequestOptionsRequest";
86
86
  export * from "./SearchResponse";
87
87
  export * from "./SearchResult";
88
88
  export * from "./SearchResultDocument";
89
+ export * from "./SearchResultDocumentRequest";
89
90
  export * from "./SearchResultMergingRequest";
91
+ export * from "./SearchResultRequest";
90
92
  export * from "./SearchWeightsRequest";
91
93
  export * from "./SlimDocument";
92
94
  export * from "./SubmitCompletionActualRequest";
@@ -110,11 +112,26 @@ export * from "./TerminalNodeResultData";
110
112
  export * from "./TerminalNodeResultOutput";
111
113
  export * from "./TerminalNodeSearchResultsResult";
112
114
  export * from "./TerminalNodeStringResult";
115
+ export * from "./TestCaseChatHistoryVariableValue";
116
+ export * from "./TestCaseChatHistoryVariableValueRequest";
117
+ export * from "./TestCaseErrorVariableValue";
118
+ export * from "./TestCaseErrorVariableValueRequest";
119
+ export * from "./TestCaseJsonVariableValue";
120
+ export * from "./TestCaseJsonVariableValueRequest";
121
+ export * from "./TestCaseNumberVariableValue";
122
+ export * from "./TestCaseNumberVariableValueRequest";
123
+ export * from "./TestCaseSearchResultsVariableValue";
124
+ export * from "./TestCaseSearchResultsVariableValueRequest";
125
+ export * from "./TestCaseStringVariableValue";
126
+ export * from "./TestCaseStringVariableValueRequest";
127
+ export * from "./TestCaseVariableValue";
128
+ export * from "./TestCaseVariableValueRequest";
113
129
  export * from "./TestSuiteTestCase";
114
130
  export * from "./UploadDocumentErrorResponse";
115
131
  export * from "./UploadDocumentResponse";
116
132
  export * from "./VellumError";
117
133
  export * from "./VellumErrorCodeEnum";
134
+ export * from "./VellumErrorRequest";
118
135
  export * from "./VellumVariable";
119
136
  export * from "./VellumVariableType";
120
137
  export * from "./WorkflowEventError";
@@ -102,7 +102,9 @@ __exportStar(require("./SearchRequestOptionsRequest"), exports);
102
102
  __exportStar(require("./SearchResponse"), exports);
103
103
  __exportStar(require("./SearchResult"), exports);
104
104
  __exportStar(require("./SearchResultDocument"), exports);
105
+ __exportStar(require("./SearchResultDocumentRequest"), exports);
105
106
  __exportStar(require("./SearchResultMergingRequest"), exports);
107
+ __exportStar(require("./SearchResultRequest"), exports);
106
108
  __exportStar(require("./SearchWeightsRequest"), exports);
107
109
  __exportStar(require("./SlimDocument"), exports);
108
110
  __exportStar(require("./SubmitCompletionActualRequest"), exports);
@@ -126,11 +128,26 @@ __exportStar(require("./TerminalNodeResultData"), exports);
126
128
  __exportStar(require("./TerminalNodeResultOutput"), exports);
127
129
  __exportStar(require("./TerminalNodeSearchResultsResult"), exports);
128
130
  __exportStar(require("./TerminalNodeStringResult"), exports);
131
+ __exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
132
+ __exportStar(require("./TestCaseChatHistoryVariableValueRequest"), exports);
133
+ __exportStar(require("./TestCaseErrorVariableValue"), exports);
134
+ __exportStar(require("./TestCaseErrorVariableValueRequest"), exports);
135
+ __exportStar(require("./TestCaseJsonVariableValue"), exports);
136
+ __exportStar(require("./TestCaseJsonVariableValueRequest"), exports);
137
+ __exportStar(require("./TestCaseNumberVariableValue"), exports);
138
+ __exportStar(require("./TestCaseNumberVariableValueRequest"), exports);
139
+ __exportStar(require("./TestCaseSearchResultsVariableValue"), exports);
140
+ __exportStar(require("./TestCaseSearchResultsVariableValueRequest"), exports);
141
+ __exportStar(require("./TestCaseStringVariableValue"), exports);
142
+ __exportStar(require("./TestCaseStringVariableValueRequest"), exports);
143
+ __exportStar(require("./TestCaseVariableValue"), exports);
144
+ __exportStar(require("./TestCaseVariableValueRequest"), exports);
129
145
  __exportStar(require("./TestSuiteTestCase"), exports);
130
146
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
131
147
  __exportStar(require("./UploadDocumentResponse"), exports);
132
148
  __exportStar(require("./VellumError"), exports);
133
149
  __exportStar(require("./VellumErrorCodeEnum"), exports);
150
+ __exportStar(require("./VellumErrorRequest"), exports);
134
151
  __exportStar(require("./VellumVariable"), exports);
135
152
  __exportStar(require("./VellumVariableType"), exports);
136
153
  __exportStar(require("./WorkflowEventError"), exports);