vellum-ai 0.8.7 → 0.8.9
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 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.9", "User-Agent": "vellum-ai/0.8.9", "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;
|
|
@@ -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/dist/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);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { UnitEnum } from "./UnitEnum";
|
|
8
|
+
export declare const Price: core.serialization.ObjectSchema<serializers.Price.Raw, Vellum.Price>;
|
|
9
|
+
export declare namespace Price {
|
|
10
|
+
interface Raw {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: UnitEnum.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Price = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const UnitEnum_1 = require("./UnitEnum");
|
|
32
|
+
exports.Price = core.serialization.object({
|
|
33
|
+
value: core.serialization.number(),
|
|
34
|
+
unit: UnitEnum_1.UnitEnum,
|
|
35
|
+
});
|
|
@@ -9,6 +9,7 @@ export declare namespace PromptDeploymentExpandMetaRequest {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
model_name?: boolean | null;
|
|
11
11
|
usage?: boolean | null;
|
|
12
|
+
cost?: boolean | null;
|
|
12
13
|
finish_reason?: boolean | null;
|
|
13
14
|
latency?: boolean | null;
|
|
14
15
|
deployment_release_tag?: boolean | null;
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.PromptDeploymentExpandMetaRequest = core.serialization.object({
|
|
32
32
|
modelName: core.serialization.property("model_name", core.serialization.boolean().optional()),
|
|
33
33
|
usage: core.serialization.boolean().optional(),
|
|
34
|
+
cost: core.serialization.boolean().optional(),
|
|
34
35
|
finishReason: core.serialization.property("finish_reason", core.serialization.boolean().optional()),
|
|
35
36
|
latency: core.serialization.boolean().optional(),
|
|
36
37
|
deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.boolean().optional()),
|
|
@@ -6,6 +6,7 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FinishReasonEnum } from "./FinishReasonEnum";
|
|
8
8
|
import { MlModelUsage } from "./MlModelUsage";
|
|
9
|
+
import { Price } from "./Price";
|
|
9
10
|
export declare const PromptExecutionMeta: core.serialization.ObjectSchema<serializers.PromptExecutionMeta.Raw, Vellum.PromptExecutionMeta>;
|
|
10
11
|
export declare namespace PromptExecutionMeta {
|
|
11
12
|
interface Raw {
|
|
@@ -15,5 +16,6 @@ export declare namespace PromptExecutionMeta {
|
|
|
15
16
|
prompt_version_id?: string | null;
|
|
16
17
|
finish_reason?: FinishReasonEnum.Raw | null;
|
|
17
18
|
usage?: MlModelUsage.Raw | null;
|
|
19
|
+
cost?: Price.Raw | null;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -30,6 +30,7 @@ exports.PromptExecutionMeta = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const FinishReasonEnum_1 = require("./FinishReasonEnum");
|
|
32
32
|
const MlModelUsage_1 = require("./MlModelUsage");
|
|
33
|
+
const Price_1 = require("./Price");
|
|
33
34
|
exports.PromptExecutionMeta = core.serialization.object({
|
|
34
35
|
modelName: core.serialization.property("model_name", core.serialization.string().optional()),
|
|
35
36
|
latency: core.serialization.number().optional(),
|
|
@@ -37,4 +38,5 @@ exports.PromptExecutionMeta = core.serialization.object({
|
|
|
37
38
|
promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
|
|
38
39
|
finishReason: core.serialization.property("finish_reason", FinishReasonEnum_1.FinishReasonEnum.optional()),
|
|
39
40
|
usage: MlModelUsage_1.MlModelUsage.optional(),
|
|
41
|
+
cost: Price_1.Price.optional(),
|
|
40
42
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestSuiteRunMetricJsonOutput: core.serialization.ObjectSchema<serializers.TestSuiteRunMetricJsonOutput.Raw, Vellum.TestSuiteRunMetricJsonOutput>;
|
|
8
|
+
export declare namespace TestSuiteRunMetricJsonOutput {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: unknown;
|
|
11
|
+
type: "JSON";
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestSuiteRunMetricJsonOutput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TestSuiteRunMetricJsonOutput = core.serialization.object({
|
|
32
|
+
value: core.serialization.unknown(),
|
|
33
|
+
type: core.serialization.stringLiteral("JSON"),
|
|
34
|
+
name: core.serialization.string(),
|
|
35
|
+
});
|
|
@@ -6,8 +6,9 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { TestSuiteRunMetricStringOutput } from "./TestSuiteRunMetricStringOutput";
|
|
8
8
|
import { TestSuiteRunMetricNumberOutput } from "./TestSuiteRunMetricNumberOutput";
|
|
9
|
+
import { TestSuiteRunMetricJsonOutput } from "./TestSuiteRunMetricJsonOutput";
|
|
9
10
|
import { TestSuiteRunMetricErrorOutput } from "./TestSuiteRunMetricErrorOutput";
|
|
10
11
|
export declare const TestSuiteRunMetricOutput: core.serialization.Schema<serializers.TestSuiteRunMetricOutput.Raw, Vellum.TestSuiteRunMetricOutput>;
|
|
11
12
|
export declare namespace TestSuiteRunMetricOutput {
|
|
12
|
-
type Raw = TestSuiteRunMetricStringOutput.Raw | TestSuiteRunMetricNumberOutput.Raw | TestSuiteRunMetricErrorOutput.Raw;
|
|
13
|
+
type Raw = TestSuiteRunMetricStringOutput.Raw | TestSuiteRunMetricNumberOutput.Raw | TestSuiteRunMetricJsonOutput.Raw | TestSuiteRunMetricErrorOutput.Raw;
|
|
13
14
|
}
|
|
@@ -30,9 +30,11 @@ exports.TestSuiteRunMetricOutput = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const TestSuiteRunMetricStringOutput_1 = require("./TestSuiteRunMetricStringOutput");
|
|
32
32
|
const TestSuiteRunMetricNumberOutput_1 = require("./TestSuiteRunMetricNumberOutput");
|
|
33
|
+
const TestSuiteRunMetricJsonOutput_1 = require("./TestSuiteRunMetricJsonOutput");
|
|
33
34
|
const TestSuiteRunMetricErrorOutput_1 = require("./TestSuiteRunMetricErrorOutput");
|
|
34
35
|
exports.TestSuiteRunMetricOutput = core.serialization.undiscriminatedUnion([
|
|
35
36
|
TestSuiteRunMetricStringOutput_1.TestSuiteRunMetricStringOutput,
|
|
36
37
|
TestSuiteRunMetricNumberOutput_1.TestSuiteRunMetricNumberOutput,
|
|
38
|
+
TestSuiteRunMetricJsonOutput_1.TestSuiteRunMetricJsonOutput,
|
|
37
39
|
TestSuiteRunMetricErrorOutput_1.TestSuiteRunMetricErrorOutput,
|
|
38
40
|
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const UnitEnum: core.serialization.Schema<serializers.UnitEnum.Raw, Vellum.UnitEnum>;
|
|
8
|
+
export declare namespace UnitEnum {
|
|
9
|
+
type Raw = "USD";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UnitEnum = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.UnitEnum = core.serialization.stringLiteral("USD");
|
|
@@ -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";
|
|
@@ -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/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { UnitEnum } from "./UnitEnum";
|
|
8
|
+
export declare const Price: core.serialization.ObjectSchema<serializers.Price.Raw, Vellum.Price>;
|
|
9
|
+
export declare namespace Price {
|
|
10
|
+
interface Raw {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: UnitEnum.Raw;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Price = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const UnitEnum_1 = require("./UnitEnum");
|
|
32
|
+
exports.Price = core.serialization.object({
|
|
33
|
+
value: core.serialization.number(),
|
|
34
|
+
unit: UnitEnum_1.UnitEnum,
|
|
35
|
+
});
|
|
@@ -9,6 +9,7 @@ export declare namespace PromptDeploymentExpandMetaRequest {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
model_name?: boolean | null;
|
|
11
11
|
usage?: boolean | null;
|
|
12
|
+
cost?: boolean | null;
|
|
12
13
|
finish_reason?: boolean | null;
|
|
13
14
|
latency?: boolean | null;
|
|
14
15
|
deployment_release_tag?: boolean | null;
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.PromptDeploymentExpandMetaRequest = core.serialization.object({
|
|
32
32
|
modelName: core.serialization.property("model_name", core.serialization.boolean().optional()),
|
|
33
33
|
usage: core.serialization.boolean().optional(),
|
|
34
|
+
cost: core.serialization.boolean().optional(),
|
|
34
35
|
finishReason: core.serialization.property("finish_reason", core.serialization.boolean().optional()),
|
|
35
36
|
latency: core.serialization.boolean().optional(),
|
|
36
37
|
deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.boolean().optional()),
|
|
@@ -6,6 +6,7 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FinishReasonEnum } from "./FinishReasonEnum";
|
|
8
8
|
import { MlModelUsage } from "./MlModelUsage";
|
|
9
|
+
import { Price } from "./Price";
|
|
9
10
|
export declare const PromptExecutionMeta: core.serialization.ObjectSchema<serializers.PromptExecutionMeta.Raw, Vellum.PromptExecutionMeta>;
|
|
10
11
|
export declare namespace PromptExecutionMeta {
|
|
11
12
|
interface Raw {
|
|
@@ -15,5 +16,6 @@ export declare namespace PromptExecutionMeta {
|
|
|
15
16
|
prompt_version_id?: string | null;
|
|
16
17
|
finish_reason?: FinishReasonEnum.Raw | null;
|
|
17
18
|
usage?: MlModelUsage.Raw | null;
|
|
19
|
+
cost?: Price.Raw | null;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -30,6 +30,7 @@ exports.PromptExecutionMeta = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const FinishReasonEnum_1 = require("./FinishReasonEnum");
|
|
32
32
|
const MlModelUsage_1 = require("./MlModelUsage");
|
|
33
|
+
const Price_1 = require("./Price");
|
|
33
34
|
exports.PromptExecutionMeta = core.serialization.object({
|
|
34
35
|
modelName: core.serialization.property("model_name", core.serialization.string().optional()),
|
|
35
36
|
latency: core.serialization.number().optional(),
|
|
@@ -37,4 +38,5 @@ exports.PromptExecutionMeta = core.serialization.object({
|
|
|
37
38
|
promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
|
|
38
39
|
finishReason: core.serialization.property("finish_reason", FinishReasonEnum_1.FinishReasonEnum.optional()),
|
|
39
40
|
usage: MlModelUsage_1.MlModelUsage.optional(),
|
|
41
|
+
cost: Price_1.Price.optional(),
|
|
40
42
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TestSuiteRunMetricJsonOutput: core.serialization.ObjectSchema<serializers.TestSuiteRunMetricJsonOutput.Raw, Vellum.TestSuiteRunMetricJsonOutput>;
|
|
8
|
+
export declare namespace TestSuiteRunMetricJsonOutput {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: unknown;
|
|
11
|
+
type: "JSON";
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TestSuiteRunMetricJsonOutput = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.TestSuiteRunMetricJsonOutput = core.serialization.object({
|
|
32
|
+
value: core.serialization.unknown(),
|
|
33
|
+
type: core.serialization.stringLiteral("JSON"),
|
|
34
|
+
name: core.serialization.string(),
|
|
35
|
+
});
|
|
@@ -6,8 +6,9 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { TestSuiteRunMetricStringOutput } from "./TestSuiteRunMetricStringOutput";
|
|
8
8
|
import { TestSuiteRunMetricNumberOutput } from "./TestSuiteRunMetricNumberOutput";
|
|
9
|
+
import { TestSuiteRunMetricJsonOutput } from "./TestSuiteRunMetricJsonOutput";
|
|
9
10
|
import { TestSuiteRunMetricErrorOutput } from "./TestSuiteRunMetricErrorOutput";
|
|
10
11
|
export declare const TestSuiteRunMetricOutput: core.serialization.Schema<serializers.TestSuiteRunMetricOutput.Raw, Vellum.TestSuiteRunMetricOutput>;
|
|
11
12
|
export declare namespace TestSuiteRunMetricOutput {
|
|
12
|
-
type Raw = TestSuiteRunMetricStringOutput.Raw | TestSuiteRunMetricNumberOutput.Raw | TestSuiteRunMetricErrorOutput.Raw;
|
|
13
|
+
type Raw = TestSuiteRunMetricStringOutput.Raw | TestSuiteRunMetricNumberOutput.Raw | TestSuiteRunMetricJsonOutput.Raw | TestSuiteRunMetricErrorOutput.Raw;
|
|
13
14
|
}
|
|
@@ -30,9 +30,11 @@ exports.TestSuiteRunMetricOutput = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const TestSuiteRunMetricStringOutput_1 = require("./TestSuiteRunMetricStringOutput");
|
|
32
32
|
const TestSuiteRunMetricNumberOutput_1 = require("./TestSuiteRunMetricNumberOutput");
|
|
33
|
+
const TestSuiteRunMetricJsonOutput_1 = require("./TestSuiteRunMetricJsonOutput");
|
|
33
34
|
const TestSuiteRunMetricErrorOutput_1 = require("./TestSuiteRunMetricErrorOutput");
|
|
34
35
|
exports.TestSuiteRunMetricOutput = core.serialization.undiscriminatedUnion([
|
|
35
36
|
TestSuiteRunMetricStringOutput_1.TestSuiteRunMetricStringOutput,
|
|
36
37
|
TestSuiteRunMetricNumberOutput_1.TestSuiteRunMetricNumberOutput,
|
|
38
|
+
TestSuiteRunMetricJsonOutput_1.TestSuiteRunMetricJsonOutput,
|
|
37
39
|
TestSuiteRunMetricErrorOutput_1.TestSuiteRunMetricErrorOutput,
|
|
38
40
|
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const UnitEnum: core.serialization.Schema<serializers.UnitEnum.Raw, Vellum.UnitEnum>;
|
|
8
|
+
export declare namespace UnitEnum {
|
|
9
|
+
type Raw = "USD";
|
|
10
|
+
}
|