vellum-ai 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +2 -13
- package/Client.js +12 -23
- package/api/client/requests/GenerateBodyRequest.d.ts +1 -8
- package/api/client/requests/SearchRequestBodyRequest.d.ts +0 -4
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +0 -3
- package/api/resources/documentIndexes/client/Client.d.ts +17 -3
- package/api/resources/documentIndexes/client/Client.js +19 -5
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +17 -3
- package/api/resources/documents/client/Client.d.ts +8 -0
- package/api/resources/documents/client/Client.js +12 -4
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.d.ts +2 -12
- package/api/resources/registeredPrompts/client/Client.js +3 -13
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -12
- package/api/resources/sandboxes/client/Client.d.ts +8 -8
- package/api/resources/sandboxes/client/Client.js +10 -10
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +8 -9
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/resources/workflowDeployments/client/Client.js +1 -1
- package/api/types/ApiNodeResult.d.ts +3 -0
- package/api/types/CodeExecutionNodeResult.d.ts +3 -0
- package/api/types/ConditionalNodeResult.d.ts +3 -0
- package/api/types/FulfilledWorkflowNodeResultEvent.d.ts +15 -0
- package/api/types/InitiatedWorkflowNodeResultEvent.d.ts +15 -0
- package/api/types/{ChatHistoryVariableValue.d.ts → NodeOutputCompiledChatHistoryValue.d.ts} +2 -1
- package/api/types/NodeOutputCompiledErrorValue.d.ts +8 -0
- package/api/types/NodeOutputCompiledJsonValue.d.ts +7 -0
- package/api/types/{NumberVariableValue.d.ts → NodeOutputCompiledNumberValue.d.ts} +2 -1
- package/api/types/{SearchResultsVariableValue.d.ts → NodeOutputCompiledSearchResultsValue.d.ts} +2 -1
- package/api/types/NodeOutputCompiledStringValue.d.ts +7 -0
- package/api/types/NodeOutputCompiledValue.d.ts +25 -0
- package/api/types/PromptNodeResult.d.ts +3 -0
- package/api/types/RejectedWorkflowNodeResultEvent.d.ts +15 -0
- package/api/types/SandboxScenario.d.ts +0 -1
- package/api/types/SearchNodeResult.d.ts +3 -0
- package/api/types/StreamingWorkflowNodeResultEvent.d.ts +16 -0
- package/api/types/TemplatingNodeResult.d.ts +3 -0
- package/api/types/TerminalNodeResult.d.ts +3 -0
- package/api/types/WorkflowExecutionNodeResultEvent.d.ts +3 -0
- package/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +3 -0
- package/api/types/WorkflowNodeResultEvent.d.ts +14 -9
- package/api/types/WorkflowOutput.d.ts +1 -4
- package/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataError.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataJson.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataNumber.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataSearchResults.d.ts +3 -0
- package/api/types/WorkflowResultEventOutputDataString.d.ts +3 -0
- package/api/types/index.d.ts +11 -11
- package/api/types/index.js +11 -11
- package/dist/Client.d.ts +2 -13
- package/dist/Client.js +12 -23
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -8
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +0 -4
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +0 -3
- package/dist/api/resources/documentIndexes/client/Client.d.ts +17 -3
- package/dist/api/resources/documentIndexes/client/Client.js +19 -5
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +17 -3
- package/dist/api/resources/documents/client/Client.d.ts +8 -0
- package/dist/api/resources/documents/client/Client.js +12 -4
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -12
- package/dist/api/resources/registeredPrompts/client/Client.js +3 -13
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -12
- package/dist/api/resources/sandboxes/client/Client.d.ts +8 -8
- package/dist/api/resources/sandboxes/client/Client.js +10 -10
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +8 -9
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
- package/dist/api/types/ApiNodeResult.d.ts +3 -0
- package/dist/api/types/CodeExecutionNodeResult.d.ts +3 -0
- package/dist/api/types/ConditionalNodeResult.d.ts +3 -0
- package/dist/api/types/FulfilledWorkflowNodeResultEvent.d.ts +15 -0
- package/dist/api/types/InitiatedWorkflowNodeResultEvent.d.ts +15 -0
- package/dist/api/types/{ChatHistoryVariableValue.d.ts → NodeOutputCompiledChatHistoryValue.d.ts} +2 -1
- package/dist/api/types/NodeOutputCompiledErrorValue.d.ts +8 -0
- package/dist/api/types/NodeOutputCompiledJsonValue.d.ts +7 -0
- package/dist/api/types/{NumberVariableValue.d.ts → NodeOutputCompiledNumberValue.d.ts} +2 -1
- package/dist/api/types/{SearchResultsVariableValue.d.ts → NodeOutputCompiledSearchResultsValue.d.ts} +2 -1
- package/dist/api/types/NodeOutputCompiledStringValue.d.ts +7 -0
- package/dist/api/types/NodeOutputCompiledValue.d.ts +25 -0
- package/dist/api/types/PromptNodeResult.d.ts +3 -0
- package/dist/api/types/RejectedWorkflowNodeResultEvent.d.ts +15 -0
- package/dist/api/types/SandboxScenario.d.ts +0 -1
- package/dist/api/types/SearchNodeResult.d.ts +3 -0
- package/dist/api/types/StreamingWorkflowNodeResultEvent.d.ts +16 -0
- package/dist/api/types/TemplatingNodeResult.d.ts +3 -0
- package/dist/api/types/TerminalNodeResult.d.ts +3 -0
- package/dist/api/types/WorkflowExecutionNodeResultEvent.d.ts +3 -0
- package/dist/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +3 -0
- package/dist/api/types/WorkflowNodeResultEvent.d.ts +14 -9
- package/dist/api/types/WorkflowOutput.d.ts +1 -4
- package/dist/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataError.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataJson.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataNumber.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataSearchResults.d.ts +3 -0
- package/dist/api/types/WorkflowResultEventOutputDataString.d.ts +3 -0
- package/dist/api/types/index.d.ts +11 -11
- package/dist/api/types/index.js +11 -11
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +0 -1
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +0 -3
- package/dist/serialization/types/FulfilledWorkflowNodeResultEvent.d.ts +17 -0
- package/dist/serialization/types/FulfilledWorkflowNodeResultEvent.js +49 -0
- package/dist/serialization/types/InitiatedWorkflowNodeResultEvent.d.ts +17 -0
- package/dist/serialization/types/InitiatedWorkflowNodeResultEvent.js +49 -0
- package/dist/serialization/types/NodeOutputCompiledChatHistoryValue.d.ts +13 -0
- package/{serialization/types/ChatHistoryVariableValue.js → dist/serialization/types/NodeOutputCompiledChatHistoryValue.js} +3 -2
- package/dist/serialization/types/NodeOutputCompiledErrorValue.d.ts +13 -0
- package/dist/serialization/types/{SandboxMetricInputParams.js → NodeOutputCompiledErrorValue.js} +4 -3
- package/dist/serialization/types/NodeOutputCompiledJsonValue.d.ts +13 -0
- package/{serialization/types/EvaluationParams.js → dist/serialization/types/NodeOutputCompiledJsonValue.js} +4 -3
- package/dist/serialization/types/NodeOutputCompiledNumberValue.d.ts +13 -0
- package/{serialization/types/NumberVariableValue.js → dist/serialization/types/NodeOutputCompiledNumberValue.js} +3 -2
- package/dist/serialization/types/NodeOutputCompiledSearchResultsValue.d.ts +13 -0
- package/dist/serialization/types/{SearchResultsVariableValue.js → NodeOutputCompiledSearchResultsValue.js} +3 -2
- package/dist/serialization/types/NodeOutputCompiledStringValue.d.ts +13 -0
- package/dist/serialization/types/{EvaluationParamsRequest.js → NodeOutputCompiledStringValue.js} +4 -3
- package/dist/serialization/types/NodeOutputCompiledValue.d.ts +28 -0
- package/dist/serialization/types/{VariableValue.js → NodeOutputCompiledValue.js} +8 -10
- package/dist/serialization/types/RejectedWorkflowNodeResultEvent.d.ts +17 -0
- package/dist/serialization/types/{WorkflowOutputArray.js → RejectedWorkflowNodeResultEvent.js} +7 -4
- package/dist/serialization/types/SandboxScenario.d.ts +0 -1
- package/dist/serialization/types/SandboxScenario.js +0 -1
- package/dist/serialization/types/StreamingWorkflowNodeResultEvent.d.ts +18 -0
- package/dist/serialization/types/StreamingWorkflowNodeResultEvent.js +48 -0
- package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowNodeResultEvent.d.ts +13 -10
- package/dist/serialization/types/WorkflowNodeResultEvent.js +10 -11
- package/dist/serialization/types/WorkflowOutput.d.ts +1 -4
- package/dist/serialization/types/WorkflowOutput.js +0 -1
- package/dist/serialization/types/index.d.ts +11 -11
- package/dist/serialization/types/index.js +11 -11
- package/package.json +1 -1
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +0 -1
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +0 -3
- package/serialization/types/FulfilledWorkflowNodeResultEvent.d.ts +17 -0
- package/serialization/types/FulfilledWorkflowNodeResultEvent.js +49 -0
- package/serialization/types/InitiatedWorkflowNodeResultEvent.d.ts +17 -0
- package/serialization/types/InitiatedWorkflowNodeResultEvent.js +49 -0
- package/serialization/types/NodeOutputCompiledChatHistoryValue.d.ts +13 -0
- package/{dist/serialization/types/ChatHistoryVariableValue.js → serialization/types/NodeOutputCompiledChatHistoryValue.js} +3 -2
- package/serialization/types/NodeOutputCompiledErrorValue.d.ts +13 -0
- package/{dist/serialization/types/SandboxMetricInputParamsRequest.js → serialization/types/NodeOutputCompiledErrorValue.js} +4 -3
- package/serialization/types/NodeOutputCompiledJsonValue.d.ts +13 -0
- package/serialization/types/NodeOutputCompiledJsonValue.js +34 -0
- package/serialization/types/NodeOutputCompiledNumberValue.d.ts +13 -0
- package/{dist/serialization/types/NumberVariableValue.js → serialization/types/NodeOutputCompiledNumberValue.js} +3 -2
- package/serialization/types/NodeOutputCompiledSearchResultsValue.d.ts +13 -0
- package/serialization/types/{SearchResultsVariableValue.js → NodeOutputCompiledSearchResultsValue.js} +3 -2
- package/serialization/types/NodeOutputCompiledStringValue.d.ts +13 -0
- package/{dist/serialization/types/EvaluationParams.js → serialization/types/NodeOutputCompiledStringValue.js} +4 -3
- package/serialization/types/NodeOutputCompiledValue.d.ts +28 -0
- package/serialization/types/{VariableValue.js → NodeOutputCompiledValue.js} +8 -10
- package/serialization/types/RejectedWorkflowNodeResultEvent.d.ts +17 -0
- package/serialization/types/{WorkflowOutputArray.js → RejectedWorkflowNodeResultEvent.js} +7 -4
- package/serialization/types/SandboxScenario.d.ts +0 -1
- package/serialization/types/SandboxScenario.js +0 -1
- package/serialization/types/StreamingWorkflowNodeResultEvent.d.ts +18 -0
- package/serialization/types/StreamingWorkflowNodeResultEvent.js +48 -0
- package/serialization/types/WorkflowExecutionNodeResultEvent.js +1 -1
- package/serialization/types/WorkflowNodeResultEvent.d.ts +13 -10
- package/serialization/types/WorkflowNodeResultEvent.js +10 -11
- package/serialization/types/WorkflowOutput.d.ts +1 -4
- package/serialization/types/WorkflowOutput.js +0 -1
- package/serialization/types/index.d.ts +11 -11
- package/serialization/types/index.js +11 -11
- package/api/types/ArrayEnum.d.ts +0 -4
- package/api/types/ArrayVariableValue.d.ts +0 -7
- package/api/types/EvaluationParams.d.ts +0 -7
- package/api/types/EvaluationParamsRequest.d.ts +0 -7
- package/api/types/SandboxMetricInputParams.d.ts +0 -7
- package/api/types/SandboxMetricInputParamsRequest.d.ts +0 -7
- package/api/types/VariableValue.d.ts +0 -31
- package/api/types/WorkflowOutputArray.d.ts +0 -13
- package/dist/api/types/ArrayEnum.d.ts +0 -4
- package/dist/api/types/ArrayVariableValue.d.ts +0 -7
- package/dist/api/types/EvaluationParams.d.ts +0 -7
- package/dist/api/types/EvaluationParamsRequest.d.ts +0 -7
- package/dist/api/types/SandboxMetricInputParams.d.ts +0 -7
- package/dist/api/types/SandboxMetricInputParamsRequest.d.ts +0 -7
- package/dist/api/types/VariableValue.d.ts +0 -31
- package/dist/api/types/WorkflowOutputArray.d.ts +0 -13
- package/dist/serialization/types/ArrayEnum.d.ts +0 -10
- package/dist/serialization/types/ArrayEnum.js +0 -31
- package/dist/serialization/types/ArrayVariableValue.d.ts +0 -12
- package/dist/serialization/types/ArrayVariableValue.js +0 -42
- package/dist/serialization/types/ChatHistoryVariableValue.d.ts +0 -12
- package/dist/serialization/types/EvaluationParams.d.ts +0 -12
- package/dist/serialization/types/EvaluationParamsRequest.d.ts +0 -12
- package/dist/serialization/types/NumberVariableValue.d.ts +0 -12
- package/dist/serialization/types/SandboxMetricInputParams.d.ts +0 -12
- package/dist/serialization/types/SandboxMetricInputParamsRequest.d.ts +0 -12
- package/dist/serialization/types/SearchResultsVariableValue.d.ts +0 -12
- package/dist/serialization/types/VariableValue.d.ts +0 -34
- package/dist/serialization/types/WorkflowOutputArray.d.ts +0 -14
- package/serialization/types/ArrayEnum.d.ts +0 -10
- package/serialization/types/ArrayEnum.js +0 -31
- package/serialization/types/ArrayVariableValue.d.ts +0 -12
- package/serialization/types/ArrayVariableValue.js +0 -42
- package/serialization/types/ChatHistoryVariableValue.d.ts +0 -12
- package/serialization/types/EvaluationParams.d.ts +0 -12
- package/serialization/types/EvaluationParamsRequest.d.ts +0 -12
- package/serialization/types/EvaluationParamsRequest.js +0 -33
- package/serialization/types/NumberVariableValue.d.ts +0 -12
- package/serialization/types/SandboxMetricInputParams.d.ts +0 -12
- package/serialization/types/SandboxMetricInputParams.js +0 -42
- package/serialization/types/SandboxMetricInputParamsRequest.d.ts +0 -12
- package/serialization/types/SandboxMetricInputParamsRequest.js +0 -42
- package/serialization/types/SearchResultsVariableValue.d.ts +0 -12
- package/serialization/types/VariableValue.d.ts +0 -34
- package/serialization/types/WorkflowOutputArray.d.ts +0 -14
- /package/api/types/{ArrayEnum.js → FulfilledWorkflowNodeResultEvent.js} +0 -0
- /package/api/types/{ArrayVariableValue.js → InitiatedWorkflowNodeResultEvent.js} +0 -0
- /package/api/types/{ChatHistoryVariableValue.js → NodeOutputCompiledChatHistoryValue.js} +0 -0
- /package/api/types/{EvaluationParams.js → NodeOutputCompiledErrorValue.js} +0 -0
- /package/api/types/{EvaluationParamsRequest.js → NodeOutputCompiledJsonValue.js} +0 -0
- /package/api/types/{NumberVariableValue.js → NodeOutputCompiledNumberValue.js} +0 -0
- /package/api/types/{SandboxMetricInputParams.js → NodeOutputCompiledSearchResultsValue.js} +0 -0
- /package/api/types/{SandboxMetricInputParamsRequest.js → NodeOutputCompiledStringValue.js} +0 -0
- /package/api/types/{SearchResultsVariableValue.js → NodeOutputCompiledValue.js} +0 -0
- /package/api/types/{VariableValue.js → RejectedWorkflowNodeResultEvent.js} +0 -0
- /package/api/types/{WorkflowOutputArray.js → StreamingWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{ArrayEnum.js → FulfilledWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{ArrayVariableValue.js → InitiatedWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{ChatHistoryVariableValue.js → NodeOutputCompiledChatHistoryValue.js} +0 -0
- /package/dist/api/types/{EvaluationParams.js → NodeOutputCompiledErrorValue.js} +0 -0
- /package/dist/api/types/{EvaluationParamsRequest.js → NodeOutputCompiledJsonValue.js} +0 -0
- /package/dist/api/types/{NumberVariableValue.js → NodeOutputCompiledNumberValue.js} +0 -0
- /package/dist/api/types/{SandboxMetricInputParams.js → NodeOutputCompiledSearchResultsValue.js} +0 -0
- /package/dist/api/types/{SandboxMetricInputParamsRequest.js → NodeOutputCompiledStringValue.js} +0 -0
- /package/dist/api/types/{SearchResultsVariableValue.js → NodeOutputCompiledValue.js} +0 -0
- /package/dist/api/types/{VariableValue.js → RejectedWorkflowNodeResultEvent.js} +0 -0
- /package/dist/api/types/{WorkflowOutputArray.js → StreamingWorkflowNodeResultEvent.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -65,14 +65,7 @@ export declare class VellumClient {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* await vellum.generate({
|
|
68
|
-
* requests: [
|
|
69
|
-
* inputValues: {
|
|
70
|
-
* "string": "string"
|
|
71
|
-
* },
|
|
72
|
-
* chatHistory: [{
|
|
73
|
-
* role: Vellum.ChatMessageRole.System
|
|
74
|
-
* }]
|
|
75
|
-
* }],
|
|
68
|
+
* requests: [],
|
|
76
69
|
* options: {
|
|
77
70
|
* logprobs: Vellum.LogprobsEnum.All
|
|
78
71
|
* }
|
|
@@ -102,10 +95,6 @@ export declare class VellumClient {
|
|
|
102
95
|
* filters: {
|
|
103
96
|
* metadata: {
|
|
104
97
|
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
105
|
-
* rules: [{
|
|
106
|
-
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
107
|
-
* operator: Vellum.LogicalOperator.Equals
|
|
108
|
-
* }],
|
|
109
98
|
* operator: Vellum.LogicalOperator.Equals
|
|
110
99
|
* }
|
|
111
100
|
* }
|
|
@@ -123,7 +112,7 @@ export declare class VellumClient {
|
|
|
123
112
|
*
|
|
124
113
|
* @example
|
|
125
114
|
* await vellum.submitCompletionActuals({
|
|
126
|
-
* actuals: [
|
|
115
|
+
* actuals: []
|
|
127
116
|
* })
|
|
128
117
|
*/
|
|
129
118
|
submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
|
package/Client.js
CHANGED
|
@@ -78,7 +78,7 @@ class VellumClient {
|
|
|
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.
|
|
81
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
82
82
|
},
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -142,7 +142,7 @@ class VellumClient {
|
|
|
142
142
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
143
143
|
"X-Fern-Language": "JavaScript",
|
|
144
144
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
145
|
-
"X-Fern-SDK-Version": "v0.
|
|
145
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
146
146
|
},
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
@@ -209,13 +209,13 @@ class VellumClient {
|
|
|
209
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
210
|
const _response = yield core.fetcher({
|
|
211
211
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
212
|
-
.
|
|
212
|
+
.predict, "v1/execute-workflow"),
|
|
213
213
|
method: "POST",
|
|
214
214
|
headers: {
|
|
215
215
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
216
216
|
"X-Fern-Language": "JavaScript",
|
|
217
217
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
218
|
-
"X-Fern-SDK-Version": "v0.
|
|
218
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
219
219
|
},
|
|
220
220
|
contentType: "application/json",
|
|
221
221
|
body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -274,7 +274,7 @@ class VellumClient {
|
|
|
274
274
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
275
275
|
"X-Fern-Language": "JavaScript",
|
|
276
276
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
277
|
-
"X-Fern-SDK-Version": "v0.
|
|
277
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
278
278
|
},
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
@@ -339,14 +339,7 @@ class VellumClient {
|
|
|
339
339
|
*
|
|
340
340
|
* @example
|
|
341
341
|
* await vellum.generate({
|
|
342
|
-
* requests: [
|
|
343
|
-
* inputValues: {
|
|
344
|
-
* "string": "string"
|
|
345
|
-
* },
|
|
346
|
-
* chatHistory: [{
|
|
347
|
-
* role: Vellum.ChatMessageRole.System
|
|
348
|
-
* }]
|
|
349
|
-
* }],
|
|
342
|
+
* requests: [],
|
|
350
343
|
* options: {
|
|
351
344
|
* logprobs: Vellum.LogprobsEnum.All
|
|
352
345
|
* }
|
|
@@ -363,7 +356,7 @@ class VellumClient {
|
|
|
363
356
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
364
357
|
"X-Fern-Language": "JavaScript",
|
|
365
358
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
366
|
-
"X-Fern-SDK-Version": "v0.
|
|
359
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
367
360
|
},
|
|
368
361
|
contentType: "application/json",
|
|
369
362
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -426,7 +419,7 @@ class VellumClient {
|
|
|
426
419
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
427
420
|
"X-Fern-Language": "JavaScript",
|
|
428
421
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
429
|
-
"X-Fern-SDK-Version": "v0.
|
|
422
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
430
423
|
},
|
|
431
424
|
contentType: "application/json",
|
|
432
425
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -497,10 +490,6 @@ class VellumClient {
|
|
|
497
490
|
* filters: {
|
|
498
491
|
* metadata: {
|
|
499
492
|
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
500
|
-
* rules: [{
|
|
501
|
-
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
502
|
-
* operator: Vellum.LogicalOperator.Equals
|
|
503
|
-
* }],
|
|
504
493
|
* operator: Vellum.LogicalOperator.Equals
|
|
505
494
|
* }
|
|
506
495
|
* }
|
|
@@ -518,7 +507,7 @@ class VellumClient {
|
|
|
518
507
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
519
508
|
"X-Fern-Language": "JavaScript",
|
|
520
509
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
521
|
-
"X-Fern-SDK-Version": "v0.
|
|
510
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
522
511
|
},
|
|
523
512
|
contentType: "application/json",
|
|
524
513
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -573,7 +562,7 @@ class VellumClient {
|
|
|
573
562
|
*
|
|
574
563
|
* @example
|
|
575
564
|
* await vellum.submitCompletionActuals({
|
|
576
|
-
* actuals: [
|
|
565
|
+
* actuals: []
|
|
577
566
|
* })
|
|
578
567
|
*/
|
|
579
568
|
submitCompletionActuals(request, requestOptions) {
|
|
@@ -587,7 +576,7 @@ class VellumClient {
|
|
|
587
576
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
588
577
|
"X-Fern-Language": "JavaScript",
|
|
589
578
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
590
|
-
"X-Fern-SDK-Version": "v0.
|
|
579
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
591
580
|
},
|
|
592
581
|
contentType: "application/json",
|
|
593
582
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -650,7 +639,7 @@ class VellumClient {
|
|
|
650
639
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
651
640
|
"X-Fern-Language": "JavaScript",
|
|
652
641
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
653
|
-
"X-Fern-SDK-Version": "v0.
|
|
642
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
654
643
|
},
|
|
655
644
|
contentType: "application/json",
|
|
656
645
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -5,14 +5,7 @@ import * as Vellum from "../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* requests: [
|
|
9
|
-
* inputValues: {
|
|
10
|
-
* "string": "string"
|
|
11
|
-
* },
|
|
12
|
-
* chatHistory: [{
|
|
13
|
-
* role: Vellum.ChatMessageRole.System
|
|
14
|
-
* }]
|
|
15
|
-
* }],
|
|
8
|
+
* requests: [],
|
|
16
9
|
* options: {
|
|
17
10
|
* logprobs: Vellum.LogprobsEnum.All
|
|
18
11
|
* }
|
|
@@ -12,10 +12,6 @@ import * as Vellum from "../..";
|
|
|
12
12
|
* filters: {
|
|
13
13
|
* metadata: {
|
|
14
14
|
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
15
|
-
* rules: [{
|
|
16
|
-
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
17
|
-
* operator: Vellum.LogicalOperator.Equals
|
|
18
|
-
* }],
|
|
19
15
|
* operator: Vellum.LogicalOperator.Equals
|
|
20
16
|
* }
|
|
21
17
|
* }
|
|
@@ -73,7 +73,7 @@ class Deployments {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "v0.
|
|
76
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
@@ -126,7 +126,7 @@ class Deployments {
|
|
|
126
126
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
127
127
|
"X-Fern-Language": "JavaScript",
|
|
128
128
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
129
|
-
"X-Fern-SDK-Version": "v0.
|
|
129
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
130
130
|
},
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -172,7 +172,7 @@ class Deployments {
|
|
|
172
172
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
173
173
|
"X-Fern-Language": "JavaScript",
|
|
174
174
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
175
|
-
"X-Fern-SDK-Version": "v0.
|
|
175
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
176
176
|
},
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -22,12 +22,26 @@ export declare class DocumentIndexes {
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* await vellum.documentIndexes.create({
|
|
25
|
-
* label: "
|
|
26
|
-
* name: "
|
|
25
|
+
* label: "My Document Index",
|
|
26
|
+
* name: "my-document-index",
|
|
27
27
|
* status: Vellum.EntityStatus.Active,
|
|
28
28
|
* environment: Vellum.EnvironmentEnum.Development,
|
|
29
29
|
* indexingConfig: {
|
|
30
|
-
* "
|
|
30
|
+
* "chunking": {
|
|
31
|
+
* "chunker_name": "sentence-chunker",
|
|
32
|
+
* "chunker_config": {
|
|
33
|
+
* "character_limit": 1000,
|
|
34
|
+
* "min_overlap_ratio": 0.5
|
|
35
|
+
* }
|
|
36
|
+
* },
|
|
37
|
+
* "vectorizer": {
|
|
38
|
+
* "model_name": "hkunlp/instructor-xl",
|
|
39
|
+
* "config": {
|
|
40
|
+
* "instruction_domain": "",
|
|
41
|
+
* "instruction_document_text_type": "plain_text",
|
|
42
|
+
* "instruction_query_text_type": "plain_text"
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
31
45
|
* }
|
|
32
46
|
* })
|
|
33
47
|
*/
|
|
@@ -53,12 +53,26 @@ class DocumentIndexes {
|
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* await vellum.documentIndexes.create({
|
|
56
|
-
* label: "
|
|
57
|
-
* name: "
|
|
56
|
+
* label: "My Document Index",
|
|
57
|
+
* name: "my-document-index",
|
|
58
58
|
* status: Vellum.EntityStatus.Active,
|
|
59
59
|
* environment: Vellum.EnvironmentEnum.Development,
|
|
60
60
|
* indexingConfig: {
|
|
61
|
-
* "
|
|
61
|
+
* "chunking": {
|
|
62
|
+
* "chunker_name": "sentence-chunker",
|
|
63
|
+
* "chunker_config": {
|
|
64
|
+
* "character_limit": 1000,
|
|
65
|
+
* "min_overlap_ratio": 0.5
|
|
66
|
+
* }
|
|
67
|
+
* },
|
|
68
|
+
* "vectorizer": {
|
|
69
|
+
* "model_name": "hkunlp/instructor-xl",
|
|
70
|
+
* "config": {
|
|
71
|
+
* "instruction_domain": "",
|
|
72
|
+
* "instruction_document_text_type": "plain_text",
|
|
73
|
+
* "instruction_query_text_type": "plain_text"
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
62
76
|
* }
|
|
63
77
|
* })
|
|
64
78
|
*/
|
|
@@ -73,7 +87,7 @@ class DocumentIndexes {
|
|
|
73
87
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
88
|
"X-Fern-Language": "JavaScript",
|
|
75
89
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "v0.
|
|
90
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
77
91
|
},
|
|
78
92
|
contentType: "application/json",
|
|
79
93
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -128,7 +142,7 @@ class DocumentIndexes {
|
|
|
128
142
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
143
|
"X-Fern-Language": "JavaScript",
|
|
130
144
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "v0.
|
|
145
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
132
146
|
},
|
|
133
147
|
contentType: "application/json",
|
|
134
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -5,12 +5,26 @@ import * as Vellum from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* label: "
|
|
9
|
-
* name: "
|
|
8
|
+
* label: "My Document Index",
|
|
9
|
+
* name: "my-document-index",
|
|
10
10
|
* status: Vellum.EntityStatus.Active,
|
|
11
11
|
* environment: Vellum.EnvironmentEnum.Development,
|
|
12
12
|
* indexingConfig: {
|
|
13
|
-
* "
|
|
13
|
+
* "chunking": {
|
|
14
|
+
* "chunker_name": "sentence-chunker",
|
|
15
|
+
* "chunker_config": {
|
|
16
|
+
* "character_limit": 1000,
|
|
17
|
+
* "min_overlap_ratio": 0.5
|
|
18
|
+
* }
|
|
19
|
+
* },
|
|
20
|
+
* "vectorizer": {
|
|
21
|
+
* "model_name": "hkunlp/instructor-xl",
|
|
22
|
+
* "config": {
|
|
23
|
+
* "instruction_domain": "",
|
|
24
|
+
* "instruction_document_text_type": "plain_text",
|
|
25
|
+
* "instruction_query_text_type": "plain_text"
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
14
28
|
* }
|
|
15
29
|
* }
|
|
16
30
|
*/
|
|
@@ -40,6 +40,14 @@ export declare class Documents {
|
|
|
40
40
|
* Upload a document to be indexed and used for search.
|
|
41
41
|
*
|
|
42
42
|
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
43
|
+
*
|
|
44
|
+
* This is a multipart/form-data request. The `contents` field should be a file upload. It also expects a JSON body with the following fields:
|
|
45
|
+
*
|
|
46
|
+
* - `add_to_index_names: list[str]` - Optionally include the names of all indexes that you'd like this document to be included in
|
|
47
|
+
* - `external_id: str | None` - Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
|
|
48
|
+
* - `label: str` - A human-friendly name for this document. Typically the filename.
|
|
49
|
+
* - `keywords: list[str] | None` - Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
|
|
50
|
+
* - `metadata: dict[str, Any]` - A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
|
|
43
51
|
* @throws {@link Vellum.BadRequestError}
|
|
44
52
|
* @throws {@link Vellum.NotFoundError}
|
|
45
53
|
* @throws {@link Vellum.InternalServerError}
|
|
@@ -81,7 +81,7 @@ class Documents {
|
|
|
81
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
84
|
-
"X-Fern-SDK-Version": "v0.
|
|
84
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
85
85
|
},
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
queryParameters: _queryParams,
|
|
@@ -128,7 +128,7 @@ class Documents {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "v0.
|
|
131
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -177,7 +177,7 @@ class Documents {
|
|
|
177
177
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
178
178
|
"X-Fern-Language": "JavaScript",
|
|
179
179
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
180
|
-
"X-Fern-SDK-Version": "v0.
|
|
180
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
181
181
|
},
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -219,6 +219,14 @@ class Documents {
|
|
|
219
219
|
* Upload a document to be indexed and used for search.
|
|
220
220
|
*
|
|
221
221
|
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
222
|
+
*
|
|
223
|
+
* This is a multipart/form-data request. The `contents` field should be a file upload. It also expects a JSON body with the following fields:
|
|
224
|
+
*
|
|
225
|
+
* - `add_to_index_names: list[str]` - Optionally include the names of all indexes that you'd like this document to be included in
|
|
226
|
+
* - `external_id: str | None` - Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
|
|
227
|
+
* - `label: str` - A human-friendly name for this document. Typically the filename.
|
|
228
|
+
* - `keywords: list[str] | None` - Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
|
|
229
|
+
* - `metadata: dict[str, Any]` - A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
|
|
222
230
|
* @throws {@link Vellum.BadRequestError}
|
|
223
231
|
* @throws {@link Vellum.NotFoundError}
|
|
224
232
|
* @throws {@link Vellum.InternalServerError}
|
|
@@ -253,7 +261,7 @@ class Documents {
|
|
|
253
261
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
254
262
|
"X-Fern-Language": "JavaScript",
|
|
255
263
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
256
|
-
"X-Fern-SDK-Version": "v0.
|
|
264
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
257
265
|
},
|
|
258
266
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
259
267
|
body: _request,
|
|
@@ -65,7 +65,7 @@ class ModelVersions {
|
|
|
65
65
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
68
|
-
"X-Fern-SDK-Version": "v0.
|
|
68
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -33,19 +33,9 @@ export declare class RegisteredPrompts {
|
|
|
33
33
|
* prompt: {
|
|
34
34
|
* promptBlockData: {
|
|
35
35
|
* version: 1,
|
|
36
|
-
* blocks: [
|
|
37
|
-
* id: "string",
|
|
38
|
-
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
39
|
-
* properties: {
|
|
40
|
-
* chatRole: Vellum.ChatMessageRole.System,
|
|
41
|
-
* templateType: Vellum.VellumVariableType.String
|
|
42
|
-
* }
|
|
43
|
-
* }]
|
|
36
|
+
* blocks: []
|
|
44
37
|
* },
|
|
45
|
-
* inputVariables: [
|
|
46
|
-
* key: "string",
|
|
47
|
-
* type: Vellum.VellumVariableType.String
|
|
48
|
-
* }]
|
|
38
|
+
* inputVariables: []
|
|
49
39
|
* },
|
|
50
40
|
* provider: Vellum.ProviderEnum.Anthropic,
|
|
51
41
|
* model: "string",
|
|
@@ -65,19 +65,9 @@ class RegisteredPrompts {
|
|
|
65
65
|
* prompt: {
|
|
66
66
|
* promptBlockData: {
|
|
67
67
|
* version: 1,
|
|
68
|
-
* blocks: [
|
|
69
|
-
* id: "string",
|
|
70
|
-
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
71
|
-
* properties: {
|
|
72
|
-
* chatRole: Vellum.ChatMessageRole.System,
|
|
73
|
-
* templateType: Vellum.VellumVariableType.String
|
|
74
|
-
* }
|
|
75
|
-
* }]
|
|
68
|
+
* blocks: []
|
|
76
69
|
* },
|
|
77
|
-
* inputVariables: [
|
|
78
|
-
* key: "string",
|
|
79
|
-
* type: Vellum.VellumVariableType.String
|
|
80
|
-
* }]
|
|
70
|
+
* inputVariables: []
|
|
81
71
|
* },
|
|
82
72
|
* provider: Vellum.ProviderEnum.Anthropic,
|
|
83
73
|
* model: "string",
|
|
@@ -101,7 +91,7 @@ class RegisteredPrompts {
|
|
|
101
91
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
102
92
|
"X-Fern-Language": "JavaScript",
|
|
103
93
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
104
|
-
"X-Fern-SDK-Version": "v0.
|
|
94
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
105
95
|
},
|
|
106
96
|
contentType: "application/json",
|
|
107
97
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -10,19 +10,9 @@ import * as Vellum from "../../../..";
|
|
|
10
10
|
* prompt: {
|
|
11
11
|
* promptBlockData: {
|
|
12
12
|
* version: 1,
|
|
13
|
-
* blocks: [
|
|
14
|
-
* id: "string",
|
|
15
|
-
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
16
|
-
* properties: {
|
|
17
|
-
* chatRole: Vellum.ChatMessageRole.System,
|
|
18
|
-
* templateType: Vellum.VellumVariableType.String
|
|
19
|
-
* }
|
|
20
|
-
* }]
|
|
13
|
+
* blocks: []
|
|
21
14
|
* },
|
|
22
|
-
* inputVariables: [
|
|
23
|
-
* key: "string",
|
|
24
|
-
* type: Vellum.VellumVariableType.String
|
|
25
|
-
* }]
|
|
15
|
+
* inputVariables: []
|
|
26
16
|
* },
|
|
27
17
|
* provider: Vellum.ProviderEnum.Anthropic,
|
|
28
18
|
* model: "string",
|
|
@@ -28,16 +28,16 @@ export declare class Sandboxes {
|
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* await vellum.sandboxes.upsertSandboxScenario("string", {
|
|
31
|
+
* label: "Scenario 1",
|
|
31
32
|
* inputs: [{
|
|
32
|
-
* key: "
|
|
33
|
+
* key: "var_1",
|
|
33
34
|
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* }
|
|
35
|
+
* value: "Hello, world!"
|
|
36
|
+
* }, {
|
|
37
|
+
* key: "var_2",
|
|
38
|
+
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
39
|
+
* value: "Why hello, there!"
|
|
40
|
+
* }]
|
|
41
41
|
* })
|
|
42
42
|
*/
|
|
43
43
|
upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest, requestOptions?: Sandboxes.RequestOptions): Promise<Vellum.SandboxScenario>;
|
|
@@ -59,16 +59,16 @@ class Sandboxes {
|
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* await vellum.sandboxes.upsertSandboxScenario("string", {
|
|
62
|
+
* label: "Scenario 1",
|
|
62
63
|
* inputs: [{
|
|
63
|
-
* key: "
|
|
64
|
+
* key: "var_1",
|
|
64
65
|
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* }
|
|
66
|
+
* value: "Hello, world!"
|
|
67
|
+
* }, {
|
|
68
|
+
* key: "var_2",
|
|
69
|
+
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
70
|
+
* value: "Why hello, there!"
|
|
71
|
+
* }]
|
|
72
72
|
* })
|
|
73
73
|
*/
|
|
74
74
|
upsertSandboxScenario(id, request, requestOptions) {
|
|
@@ -82,7 +82,7 @@ class Sandboxes {
|
|
|
82
82
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
85
|
-
"X-Fern-SDK-Version": "v0.
|
|
85
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
86
86
|
},
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -137,7 +137,7 @@ class Sandboxes {
|
|
|
137
137
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
138
138
|
"X-Fern-Language": "JavaScript",
|
|
139
139
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
140
|
-
"X-Fern-SDK-Version": "v0.
|
|
140
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
141
141
|
},
|
|
142
142
|
contentType: "application/json",
|
|
143
143
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -5,16 +5,16 @@ import * as Vellum from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* label: "Scenario 1",
|
|
8
9
|
* inputs: [{
|
|
9
|
-
* key: "
|
|
10
|
+
* key: "var_1",
|
|
10
11
|
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* }
|
|
12
|
+
* value: "Hello, world!"
|
|
13
|
+
* }, {
|
|
14
|
+
* key: "var_2",
|
|
15
|
+
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
16
|
+
* value: "Why hello, there!"
|
|
17
|
+
* }]
|
|
18
18
|
* }
|
|
19
19
|
*/
|
|
20
20
|
export interface UpsertSandboxScenarioRequestRequest {
|
|
@@ -23,5 +23,4 @@ export interface UpsertSandboxScenarioRequestRequest {
|
|
|
23
23
|
inputs: Vellum.ScenarioInputRequest[];
|
|
24
24
|
/** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
|
|
25
25
|
scenarioId?: string;
|
|
26
|
-
metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
|
|
27
26
|
}
|
|
@@ -74,7 +74,7 @@ class TestSuites {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "v0.
|
|
77
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
@@ -129,7 +129,7 @@ class TestSuites {
|
|
|
129
129
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
132
|
-
"X-Fern-SDK-Version": "v0.
|
|
132
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
133
133
|
},
|
|
134
134
|
contentType: "application/json",
|
|
135
135
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -73,7 +73,7 @@ class WorkflowDeployments {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "v0.
|
|
76
|
+
"X-Fern-SDK-Version": "v0.3.0",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|