vellum-ai 0.8.7 → 0.8.8
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 +3 -3
- package/Client.js +10 -10
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
- package/api/resources/adHoc/client/Client.d.ts +3 -3
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/deployments/client/Client.d.ts +3 -3
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/api/resources/documentIndexes/client/Client.js +9 -9
- package/api/resources/documents/client/Client.d.ts +3 -3
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.js +4 -4
- package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/api/resources/testSuites/client/Client.d.ts +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/types/AdHocExpandMetaRequest.d.ts +1 -0
- package/api/types/Price.d.ts +8 -0
- package/api/types/Price.js +5 -0
- package/api/types/PromptDeploymentExpandMetaRequest.d.ts +2 -0
- package/api/types/PromptExecutionMeta.d.ts +1 -0
- package/api/types/TestSuiteRunMetricJsonOutput.d.ts +11 -0
- package/api/types/TestSuiteRunMetricJsonOutput.js +5 -0
- package/api/types/TestSuiteRunMetricOutput.d.ts +1 -1
- package/api/types/UnitEnum.d.ts +7 -0
- package/api/types/UnitEnum.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +10 -10
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +1 -0
- package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/deployments/client/Client.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +9 -9
- package/dist/api/resources/documents/client/Client.d.ts +3 -3
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.js +4 -4
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
- package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/types/AdHocExpandMetaRequest.d.ts +1 -0
- package/dist/api/types/Price.d.ts +8 -0
- package/dist/api/types/Price.js +5 -0
- package/dist/api/types/PromptDeploymentExpandMetaRequest.d.ts +2 -0
- package/dist/api/types/PromptExecutionMeta.d.ts +1 -0
- package/dist/api/types/TestSuiteRunMetricJsonOutput.d.ts +11 -0
- package/dist/api/types/TestSuiteRunMetricJsonOutput.js +5 -0
- package/dist/api/types/TestSuiteRunMetricOutput.d.ts +1 -1
- package/dist/api/types/UnitEnum.d.ts +7 -0
- package/dist/api/types/UnitEnum.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/types/Price.d.ts +14 -0
- package/dist/serialization/types/Price.js +35 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequest.d.ts +1 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequest.js +1 -0
- package/dist/serialization/types/PromptExecutionMeta.d.ts +2 -0
- package/dist/serialization/types/PromptExecutionMeta.js +2 -0
- package/dist/serialization/types/TestSuiteRunMetricJsonOutput.d.ts +14 -0
- package/dist/serialization/types/TestSuiteRunMetricJsonOutput.js +35 -0
- package/dist/serialization/types/TestSuiteRunMetricOutput.d.ts +2 -1
- package/dist/serialization/types/TestSuiteRunMetricOutput.js +2 -0
- package/dist/serialization/types/UnitEnum.d.ts +10 -0
- package/dist/serialization/types/UnitEnum.js +31 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/package.json +1 -1
- package/serialization/types/Price.d.ts +14 -0
- package/serialization/types/Price.js +35 -0
- package/serialization/types/PromptDeploymentExpandMetaRequest.d.ts +1 -0
- package/serialization/types/PromptDeploymentExpandMetaRequest.js +1 -0
- package/serialization/types/PromptExecutionMeta.d.ts +2 -0
- package/serialization/types/PromptExecutionMeta.js +2 -0
- package/serialization/types/TestSuiteRunMetricJsonOutput.d.ts +14 -0
- package/serialization/types/TestSuiteRunMetricJsonOutput.js +35 -0
- package/serialization/types/TestSuiteRunMetricOutput.d.ts +2 -1
- package/serialization/types/TestSuiteRunMetricOutput.js +2 -0
- package/serialization/types/UnitEnum.d.ts +10 -0
- package/serialization/types/UnitEnum.js +31 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class TestSuiteRuns {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -72,7 +72,7 @@ class TestSuiteRuns {
|
|
|
72
72
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
73
73
|
.default, "v1/test-suite-runs"),
|
|
74
74
|
method: "POST",
|
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
requestType: "json",
|
|
78
78
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -125,7 +125,7 @@ class TestSuiteRuns {
|
|
|
125
125
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
126
126
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
127
127
|
method: "GET",
|
|
128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
requestType: "json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -192,7 +192,7 @@ class TestSuiteRuns {
|
|
|
192
192
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
193
193
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
194
194
|
method: "GET",
|
|
195
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
195
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
queryParameters: _queryParams,
|
|
198
198
|
requestType: "json",
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace TestSuites {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace TestSuites {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class TestSuites {
|
|
22
22
|
protected readonly _options: TestSuites.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: TestSuites.Options);
|
|
24
24
|
/**
|
|
25
25
|
* List the Test Cases associated with a Test Suite
|
|
26
26
|
*
|
|
@@ -74,6 +74,6 @@ export declare class TestSuites {
|
|
|
74
74
|
*/
|
|
75
75
|
deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
|
|
76
76
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
77
|
-
X_API_KEY: string
|
|
77
|
+
X_API_KEY: string;
|
|
78
78
|
}>;
|
|
79
79
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class TestSuites {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -73,7 +73,7 @@ class TestSuites {
|
|
|
73
73
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -142,7 +142,7 @@ class TestSuites {
|
|
|
142
142
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
143
143
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -189,7 +189,7 @@ class TestSuites {
|
|
|
189
189
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
190
190
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
191
191
|
method: "POST",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -256,7 +256,7 @@ class TestSuites {
|
|
|
256
256
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
257
257
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
258
258
|
method: "DELETE",
|
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
requestType: "json",
|
|
262
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkflowDeployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkflowDeployments {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowDeployments {
|
|
22
22
|
protected readonly _options: WorkflowDeployments.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: WorkflowDeployments.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to list all Workflow Deployments.
|
|
26
26
|
*
|
|
@@ -65,6 +65,6 @@ export declare class WorkflowDeployments {
|
|
|
65
65
|
*/
|
|
66
66
|
updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
|
|
67
67
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
68
|
-
X_API_KEY: string
|
|
68
|
+
X_API_KEY: string;
|
|
69
69
|
}>;
|
|
70
70
|
}
|
|
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkflowDeployments {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -78,7 +78,7 @@ class WorkflowDeployments {
|
|
|
78
78
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
79
79
|
.default, "v1/workflow-deployments"),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
requestType: "json",
|
|
@@ -131,7 +131,7 @@ class WorkflowDeployments {
|
|
|
131
131
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
132
132
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class WorkflowDeployments {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
186
186
|
method: "GET",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -238,7 +238,7 @@ class WorkflowDeployments {
|
|
|
238
238
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
239
239
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
240
240
|
method: "PATCH",
|
|
241
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
241
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
242
242
|
contentType: "application/json",
|
|
243
243
|
requestType: "json",
|
|
244
244
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace WorkflowSandboxes {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace WorkflowSandboxes {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowSandboxes {
|
|
22
22
|
protected readonly _options: WorkflowSandboxes.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: WorkflowSandboxes.Options);
|
|
24
24
|
/**
|
|
25
25
|
* @param {string} id - A UUID string identifying this workflow sandbox.
|
|
26
26
|
* @param {string} workflowId - An ID identifying the Workflow you'd like to deploy.
|
|
@@ -32,6 +32,6 @@ export declare class WorkflowSandboxes {
|
|
|
32
32
|
*/
|
|
33
33
|
deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
|
|
34
34
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
35
|
-
X_API_KEY: string
|
|
35
|
+
X_API_KEY: string;
|
|
36
36
|
}>;
|
|
37
37
|
}
|
|
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class WorkflowSandboxes {
|
|
48
|
-
constructor(_options
|
|
48
|
+
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface AdHocExpandMetaRequest {
|
|
5
|
+
/** If enabled, the response will include model host cost tracking. This may increase latency for some model hosts. */
|
|
5
6
|
cost?: boolean;
|
|
6
7
|
/** If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt. */
|
|
7
8
|
modelName?: boolean;
|
|
@@ -6,6 +6,8 @@ export interface PromptDeploymentExpandMetaRequest {
|
|
|
6
6
|
modelName?: boolean;
|
|
7
7
|
/** If enabled, the response will include model host usage tracking. This may increase latency for some model hosts. */
|
|
8
8
|
usage?: boolean;
|
|
9
|
+
/** If enabled, the response will include model host cost tracking. This may increase latency for some model hosts. */
|
|
10
|
+
cost?: boolean;
|
|
9
11
|
/** If enabled, the response will include the reason provided by the model for why the execution finished. */
|
|
10
12
|
finishReason?: boolean;
|
|
11
13
|
/** If enabled, the response will include the time in nanoseconds it took to execute the Prompt Deployment. */
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export declare type TestSuiteRunMetricOutput = Vellum.TestSuiteRunMetricStringOutput | Vellum.TestSuiteRunMetricNumberOutput | Vellum.TestSuiteRunMetricErrorOutput;
|
|
5
|
+
export declare type TestSuiteRunMetricOutput = Vellum.TestSuiteRunMetricStringOutput | Vellum.TestSuiteRunMetricNumberOutput | Vellum.TestSuiteRunMetricJsonOutput | Vellum.TestSuiteRunMetricErrorOutput;
|
package/api/types/index.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export * from "./PaginatedTestSuiteTestCaseList";
|
|
|
204
204
|
export * from "./PdfSearchResultMetaSource";
|
|
205
205
|
export * from "./PdfSearchResultMetaSourceRequest";
|
|
206
206
|
export * from "./PlainTextPromptBlockRequest";
|
|
207
|
+
export * from "./Price";
|
|
207
208
|
export * from "./ProcessingFailureReasonEnum";
|
|
208
209
|
export * from "./ProcessingStateEnum";
|
|
209
210
|
export * from "./PromptBlockRequest";
|
|
@@ -330,6 +331,7 @@ export * from "./TestSuiteRunExternalExecConfigData";
|
|
|
330
331
|
export * from "./TestSuiteRunExternalExecConfigDataRequest";
|
|
331
332
|
export * from "./TestSuiteRunExternalExecConfigRequest";
|
|
332
333
|
export * from "./TestSuiteRunMetricErrorOutput";
|
|
334
|
+
export * from "./TestSuiteRunMetricJsonOutput";
|
|
333
335
|
export * from "./TestSuiteRunMetricNumberOutput";
|
|
334
336
|
export * from "./TestSuiteRunMetricOutput";
|
|
335
337
|
export * from "./TestSuiteRunMetricStringOutput";
|
|
@@ -359,6 +361,7 @@ export * from "./TokenOverlappingWindowChunkerConfig";
|
|
|
359
361
|
export * from "./TokenOverlappingWindowChunkerConfigRequest";
|
|
360
362
|
export * from "./TokenOverlappingWindowChunking";
|
|
361
363
|
export * from "./TokenOverlappingWindowChunkingRequest";
|
|
364
|
+
export * from "./UnitEnum";
|
|
362
365
|
export * from "./UploadDocumentResponse";
|
|
363
366
|
export * from "./UpsertTestSuiteTestCaseRequest";
|
|
364
367
|
export * from "./VariablePromptBlockRequest";
|
package/api/types/index.js
CHANGED
|
@@ -220,6 +220,7 @@ __exportStar(require("./PaginatedTestSuiteTestCaseList"), exports);
|
|
|
220
220
|
__exportStar(require("./PdfSearchResultMetaSource"), exports);
|
|
221
221
|
__exportStar(require("./PdfSearchResultMetaSourceRequest"), exports);
|
|
222
222
|
__exportStar(require("./PlainTextPromptBlockRequest"), exports);
|
|
223
|
+
__exportStar(require("./Price"), exports);
|
|
223
224
|
__exportStar(require("./ProcessingFailureReasonEnum"), exports);
|
|
224
225
|
__exportStar(require("./ProcessingStateEnum"), exports);
|
|
225
226
|
__exportStar(require("./PromptBlockRequest"), exports);
|
|
@@ -346,6 +347,7 @@ __exportStar(require("./TestSuiteRunExternalExecConfigData"), exports);
|
|
|
346
347
|
__exportStar(require("./TestSuiteRunExternalExecConfigDataRequest"), exports);
|
|
347
348
|
__exportStar(require("./TestSuiteRunExternalExecConfigRequest"), exports);
|
|
348
349
|
__exportStar(require("./TestSuiteRunMetricErrorOutput"), exports);
|
|
350
|
+
__exportStar(require("./TestSuiteRunMetricJsonOutput"), exports);
|
|
349
351
|
__exportStar(require("./TestSuiteRunMetricNumberOutput"), exports);
|
|
350
352
|
__exportStar(require("./TestSuiteRunMetricOutput"), exports);
|
|
351
353
|
__exportStar(require("./TestSuiteRunMetricStringOutput"), exports);
|
|
@@ -375,6 +377,7 @@ __exportStar(require("./TokenOverlappingWindowChunkerConfig"), exports);
|
|
|
375
377
|
__exportStar(require("./TokenOverlappingWindowChunkerConfigRequest"), exports);
|
|
376
378
|
__exportStar(require("./TokenOverlappingWindowChunking"), exports);
|
|
377
379
|
__exportStar(require("./TokenOverlappingWindowChunkingRequest"), exports);
|
|
380
|
+
__exportStar(require("./UnitEnum"), exports);
|
|
378
381
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
379
382
|
__exportStar(require("./UpsertTestSuiteTestCaseRequest"), exports);
|
|
380
383
|
__exportStar(require("./VariablePromptBlockRequest"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Clie
|
|
|
17
17
|
export declare namespace VellumClient {
|
|
18
18
|
interface Options {
|
|
19
19
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
20
|
-
apiKey
|
|
20
|
+
apiKey: core.Supplier<string>;
|
|
21
21
|
}
|
|
22
22
|
interface RequestOptions {
|
|
23
23
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -30,7 +30,7 @@ export declare namespace VellumClient {
|
|
|
30
30
|
}
|
|
31
31
|
export declare class VellumClient {
|
|
32
32
|
protected readonly _options: VellumClient.Options;
|
|
33
|
-
constructor(_options
|
|
33
|
+
constructor(_options: VellumClient.Options);
|
|
34
34
|
/**
|
|
35
35
|
* Executes a deployed Prompt and returns the result.
|
|
36
36
|
*
|
|
@@ -180,6 +180,6 @@ export declare class VellumClient {
|
|
|
180
180
|
protected _workflowSandboxes: WorkflowSandboxes | undefined;
|
|
181
181
|
get workflowSandboxes(): WorkflowSandboxes;
|
|
182
182
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
183
|
-
X_API_KEY: string
|
|
183
|
+
X_API_KEY: string;
|
|
184
184
|
}>;
|
|
185
185
|
}
|
package/dist/Client.js
CHANGED
|
@@ -56,7 +56,7 @@ const Client_8 = require("./api/resources/testSuites/client/Client");
|
|
|
56
56
|
const Client_9 = require("./api/resources/workflowDeployments/client/Client");
|
|
57
57
|
const Client_10 = require("./api/resources/workflowSandboxes/client/Client");
|
|
58
58
|
class VellumClient {
|
|
59
|
-
constructor(_options
|
|
59
|
+
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
@@ -86,7 +86,7 @@ class VellumClient {
|
|
|
86
86
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
87
87
|
.predict, "v1/execute-prompt"),
|
|
88
88
|
method: "POST",
|
|
89
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
89
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -144,7 +144,7 @@ class VellumClient {
|
|
|
144
144
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
145
145
|
.predict, "v1/execute-prompt-stream"),
|
|
146
146
|
method: "POST",
|
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -229,7 +229,7 @@ class VellumClient {
|
|
|
229
229
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
230
230
|
.predict, "v1/execute-workflow"),
|
|
231
231
|
method: "POST",
|
|
232
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
232
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
233
233
|
contentType: "application/json",
|
|
234
234
|
requestType: "json",
|
|
235
235
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -285,7 +285,7 @@ class VellumClient {
|
|
|
285
285
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
286
286
|
.predict, "v1/execute-workflow-stream"),
|
|
287
287
|
method: "POST",
|
|
288
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
288
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
289
289
|
contentType: "application/json",
|
|
290
290
|
requestType: "json",
|
|
291
291
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -372,7 +372,7 @@ class VellumClient {
|
|
|
372
372
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
373
373
|
.predict, "v1/generate"),
|
|
374
374
|
method: "POST",
|
|
375
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
375
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
376
376
|
contentType: "application/json",
|
|
377
377
|
requestType: "json",
|
|
378
378
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -433,7 +433,7 @@ class VellumClient {
|
|
|
433
433
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
434
434
|
.predict, "v1/generate-stream"),
|
|
435
435
|
method: "POST",
|
|
436
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
436
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
437
437
|
contentType: "application/json",
|
|
438
438
|
requestType: "json",
|
|
439
439
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -514,7 +514,7 @@ class VellumClient {
|
|
|
514
514
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
515
515
|
.predict, "v1/search"),
|
|
516
516
|
method: "POST",
|
|
517
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
517
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
518
518
|
contentType: "application/json",
|
|
519
519
|
requestType: "json",
|
|
520
520
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -582,7 +582,7 @@ class VellumClient {
|
|
|
582
582
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
583
583
|
.predict, "v1/submit-completion-actuals"),
|
|
584
584
|
method: "POST",
|
|
585
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
585
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
586
586
|
contentType: "application/json",
|
|
587
587
|
requestType: "json",
|
|
588
588
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -645,7 +645,7 @@ class VellumClient {
|
|
|
645
645
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
646
646
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
647
647
|
method: "POST",
|
|
648
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
648
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
649
649
|
contentType: "application/json",
|
|
650
650
|
requestType: "json",
|
|
651
651
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace AdHoc {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,12 +20,12 @@ export declare namespace AdHoc {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class AdHoc {
|
|
22
22
|
protected readonly _options: AdHoc.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: AdHoc.Options);
|
|
24
24
|
/**
|
|
25
25
|
* An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
|
26
26
|
*/
|
|
27
27
|
adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStreamRequest, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
|
|
28
28
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
29
|
-
X_API_KEY: string
|
|
29
|
+
X_API_KEY: string;
|
|
30
30
|
}>;
|
|
31
31
|
}
|
|
@@ -46,7 +46,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
|
|
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class AdHoc {
|
|
49
|
-
constructor(_options
|
|
49
|
+
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -59,7 +59,7 @@ class AdHoc {
|
|
|
59
59
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
60
60
|
.default, "v1/ad-hoc/execute-prompt-stream"),
|
|
61
61
|
method: "POST",
|
|
62
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.8", "User-Agent": "vellum-ai/0.8.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
|
|
|
7
7
|
export declare namespace Deployments {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
-
apiKey
|
|
10
|
+
apiKey: core.Supplier<string>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
13
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -20,7 +20,7 @@ export declare namespace Deployments {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class Deployments {
|
|
22
22
|
protected readonly _options: Deployments.Options;
|
|
23
|
-
constructor(_options
|
|
23
|
+
constructor(_options: Deployments.Options);
|
|
24
24
|
/**
|
|
25
25
|
* Used to list all Prompt Deployments.
|
|
26
26
|
*
|
|
@@ -95,6 +95,6 @@ export declare class Deployments {
|
|
|
95
95
|
*/
|
|
96
96
|
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
97
97
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
98
|
-
X_API_KEY: string
|
|
98
|
+
X_API_KEY: string;
|
|
99
99
|
}>;
|
|
100
100
|
}
|