vellum-ai 0.3.20 → 0.3.21
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.js +9 -9
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.js +2 -2
- package/api/types/FulfilledPromptExecutionMeta.d.ts +1 -0
- package/api/types/MlModelUsage.d.ts +10 -0
- package/api/types/MlModelUsage.js +5 -0
- package/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +2 -0
- package/api/types/PromptExecutionMeta.d.ts +1 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.js +9 -9
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
- package/dist/api/types/FulfilledPromptExecutionMeta.d.ts +1 -0
- package/dist/api/types/MlModelUsage.d.ts +10 -0
- package/dist/api/types/MlModelUsage.js +5 -0
- package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +2 -0
- package/dist/api/types/PromptExecutionMeta.d.ts +1 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/FulfilledPromptExecutionMeta.d.ts +2 -0
- package/dist/serialization/types/FulfilledPromptExecutionMeta.js +2 -0
- package/dist/serialization/types/MlModelUsage.d.ts +16 -0
- package/dist/serialization/types/MlModelUsage.js +37 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +1 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +1 -0
- package/dist/serialization/types/PromptExecutionMeta.d.ts +2 -0
- package/dist/serialization/types/PromptExecutionMeta.js +2 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/package.json +1 -1
- package/serialization/types/FulfilledPromptExecutionMeta.d.ts +2 -0
- package/serialization/types/FulfilledPromptExecutionMeta.js +2 -0
- package/serialization/types/MlModelUsage.d.ts +16 -0
- package/serialization/types/MlModelUsage.js +37 -0
- package/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +1 -0
- package/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +1 -0
- package/serialization/types/PromptExecutionMeta.d.ts +2 -0
- package/serialization/types/PromptExecutionMeta.js +2 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
|
@@ -75,7 +75,7 @@ class DocumentIndexes {
|
|
|
75
75
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
76
76
|
.default, "v1/document-indexes"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -143,7 +143,7 @@ class DocumentIndexes {
|
|
|
143
143
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
144
144
|
.default, "v1/document-indexes"),
|
|
145
145
|
method: "POST",
|
|
146
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
146
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
149
149
|
unrecognizedObjectKeys: "strip",
|
|
@@ -193,7 +193,7 @@ class DocumentIndexes {
|
|
|
193
193
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
194
194
|
.default, `v1/document-indexes/${id}`),
|
|
195
195
|
method: "GET",
|
|
196
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
196
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
199
199
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -242,7 +242,7 @@ class DocumentIndexes {
|
|
|
242
242
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
243
243
|
.default, `v1/document-indexes/${id}`),
|
|
244
244
|
method: "PUT",
|
|
245
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
245
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
246
246
|
contentType: "application/json",
|
|
247
247
|
body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
248
248
|
unrecognizedObjectKeys: "strip",
|
|
@@ -292,7 +292,7 @@ class DocumentIndexes {
|
|
|
292
292
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
293
293
|
.default, `v1/document-indexes/${id}`),
|
|
294
294
|
method: "DELETE",
|
|
295
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
295
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
296
296
|
contentType: "application/json",
|
|
297
297
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
298
298
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -334,7 +334,7 @@ class DocumentIndexes {
|
|
|
334
334
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
335
335
|
.default, `v1/document-indexes/${id}`),
|
|
336
336
|
method: "PATCH",
|
|
337
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
337
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
338
338
|
contentType: "application/json",
|
|
339
339
|
body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
340
340
|
unrecognizedObjectKeys: "strip",
|
|
@@ -77,7 +77,7 @@ class Documents {
|
|
|
77
77
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
78
78
|
.default, "v1/documents"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
queryParameters: _queryParams,
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -119,7 +119,7 @@ class Documents {
|
|
|
119
119
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
120
120
|
.default, `v1/documents/${id}`),
|
|
121
121
|
method: "DELETE",
|
|
122
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
122
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
123
123
|
contentType: "application/json",
|
|
124
124
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
125
125
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -161,7 +161,7 @@ class Documents {
|
|
|
161
161
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
162
162
|
.default, `v1/documents/${id}`),
|
|
163
163
|
method: "PATCH",
|
|
164
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
164
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
167
167
|
unrecognizedObjectKeys: "strip",
|
|
@@ -240,7 +240,7 @@ class Documents {
|
|
|
240
240
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
241
241
|
.documents, "v1/upload-document"),
|
|
242
242
|
method: "POST",
|
|
243
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
243
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
244
244
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
245
245
|
body: _request,
|
|
246
246
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -65,7 +65,7 @@ class FolderEntities {
|
|
|
65
65
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
66
66
|
.default, `v1/folders/${folderId}/add-entity`),
|
|
67
67
|
method: "POST",
|
|
68
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
68
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -61,7 +61,7 @@ class ModelVersions {
|
|
|
61
61
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
62
62
|
.default, `v1/model-versions/${id}`),
|
|
63
63
|
method: "GET",
|
|
64
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
64
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
65
65
|
contentType: "application/json",
|
|
66
66
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
67
67
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -92,7 +92,7 @@ class RegisteredPrompts {
|
|
|
92
92
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
93
93
|
.default, "v1/registered-prompts/register"),
|
|
94
94
|
method: "POST",
|
|
95
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
95
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
98
98
|
unrecognizedObjectKeys: "strip",
|
|
@@ -78,7 +78,7 @@ class Sandboxes {
|
|
|
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/sandboxes/${id}/scenarios`),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
84
84
|
unrecognizedObjectKeys: "strip",
|
|
@@ -128,7 +128,7 @@ class Sandboxes {
|
|
|
128
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
129
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
130
130
|
method: "DELETE",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
134
134
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -58,7 +58,7 @@ class TestSuiteRuns {
|
|
|
58
58
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
59
|
.default, "v1/test-suite-runs"),
|
|
60
60
|
method: "POST",
|
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
62
|
contentType: "application/json",
|
|
63
63
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -106,7 +106,7 @@ class TestSuiteRuns {
|
|
|
106
106
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
107
107
|
.default, `v1/test-suite-runs/${id}`),
|
|
108
108
|
method: "GET",
|
|
109
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
109
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
112
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -155,7 +155,7 @@ class TestSuiteRuns {
|
|
|
155
155
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
156
156
|
.default, `v1/test-suite-runs/${id}/executions`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
158
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class TestSuites {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -126,7 +126,7 @@ class TestSuites {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
128
128
|
method: "POST",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
132
132
|
unrecognizedObjectKeys: "strip",
|
|
@@ -176,7 +176,7 @@ class TestSuites {
|
|
|
176
176
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
177
177
|
.default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
|
|
178
178
|
method: "DELETE",
|
|
179
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
179
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
182
182
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -69,7 +69,7 @@ class WorkflowDeployments {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, "v1/workflow-deployments"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkflowDeployments {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workflow-deployments/${id}`),
|
|
119
119
|
method: "GET",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -12,4 +12,6 @@ export interface PromptDeploymentExpandMetaRequestRequest {
|
|
|
12
12
|
promptVersionId?: boolean;
|
|
13
13
|
/** If enabled, the response will include the reason provided by the model for why the execution finished. */
|
|
14
14
|
finishReason?: boolean;
|
|
15
|
+
/** If enabled, the response will include model host usage tracking. This may increase latency for some model hosts. */
|
|
16
|
+
usage?: boolean;
|
|
15
17
|
}
|
|
@@ -6,6 +6,7 @@ import * as Vellum from "..";
|
|
|
6
6
|
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
7
7
|
*/
|
|
8
8
|
export interface PromptExecutionMeta {
|
|
9
|
+
usage?: Vellum.MlModelUsage;
|
|
9
10
|
modelName?: string;
|
|
10
11
|
latency?: number;
|
|
11
12
|
deploymentReleaseTag?: string;
|
|
@@ -94,6 +94,7 @@ export * from "./JsonEnum";
|
|
|
94
94
|
export * from "./JsonVariableValue";
|
|
95
95
|
export * from "./LogicalOperator";
|
|
96
96
|
export * from "./LogprobsEnum";
|
|
97
|
+
export * from "./MlModelUsage";
|
|
97
98
|
export * from "./MetadataFilterConfigRequest";
|
|
98
99
|
export * from "./MetadataFilterRuleCombinator";
|
|
99
100
|
export * from "./MetadataFilterRuleRequest";
|
package/dist/api/types/index.js
CHANGED
|
@@ -110,6 +110,7 @@ __exportStar(require("./JsonEnum"), exports);
|
|
|
110
110
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
111
111
|
__exportStar(require("./LogicalOperator"), exports);
|
|
112
112
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
113
|
+
__exportStar(require("./MlModelUsage"), exports);
|
|
113
114
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
114
115
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
115
116
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
@@ -5,10 +5,12 @@ import * as serializers from "..";
|
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FinishReasonEnum } from "./FinishReasonEnum";
|
|
8
|
+
import { MlModelUsage } from "./MlModelUsage";
|
|
8
9
|
export declare const FulfilledPromptExecutionMeta: core.serialization.ObjectSchema<serializers.FulfilledPromptExecutionMeta.Raw, Vellum.FulfilledPromptExecutionMeta>;
|
|
9
10
|
export declare namespace FulfilledPromptExecutionMeta {
|
|
10
11
|
interface Raw {
|
|
11
12
|
latency?: number | null;
|
|
12
13
|
finish_reason?: FinishReasonEnum.Raw | null;
|
|
14
|
+
usage?: MlModelUsage.Raw | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -29,7 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.FulfilledPromptExecutionMeta = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const FinishReasonEnum_1 = require("./FinishReasonEnum");
|
|
32
|
+
const MlModelUsage_1 = require("./MlModelUsage");
|
|
32
33
|
exports.FulfilledPromptExecutionMeta = core.serialization.object({
|
|
33
34
|
latency: core.serialization.number().optional(),
|
|
34
35
|
finishReason: core.serialization.property("finish_reason", FinishReasonEnum_1.FinishReasonEnum.optional()),
|
|
36
|
+
usage: MlModelUsage_1.MlModelUsage.optional(),
|
|
35
37
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const MlModelUsage: core.serialization.ObjectSchema<serializers.MlModelUsage.Raw, Vellum.MlModelUsage>;
|
|
8
|
+
export declare namespace MlModelUsage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_token_count?: number | null;
|
|
11
|
+
input_token_count?: number | null;
|
|
12
|
+
input_char_count?: number | null;
|
|
13
|
+
output_char_count?: number | null;
|
|
14
|
+
compute_nanos?: number | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.MlModelUsage = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.MlModelUsage = core.serialization.object({
|
|
32
|
+
outputTokenCount: core.serialization.property("output_token_count", core.serialization.number().optional()),
|
|
33
|
+
inputTokenCount: core.serialization.property("input_token_count", core.serialization.number().optional()),
|
|
34
|
+
inputCharCount: core.serialization.property("input_char_count", core.serialization.number().optional()),
|
|
35
|
+
outputCharCount: core.serialization.property("output_char_count", core.serialization.number().optional()),
|
|
36
|
+
computeNanos: core.serialization.property("compute_nanos", core.serialization.number().optional()),
|
|
37
|
+
});
|
|
@@ -34,4 +34,5 @@ exports.PromptDeploymentExpandMetaRequestRequest = core.serialization.object({
|
|
|
34
34
|
deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.boolean().optional()),
|
|
35
35
|
promptVersionId: core.serialization.property("prompt_version_id", core.serialization.boolean().optional()),
|
|
36
36
|
finishReason: core.serialization.property("finish_reason", core.serialization.boolean().optional()),
|
|
37
|
+
usage: core.serialization.boolean().optional(),
|
|
37
38
|
});
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { MlModelUsage } from "./MlModelUsage";
|
|
7
8
|
import { FinishReasonEnum } from "./FinishReasonEnum";
|
|
8
9
|
export declare const PromptExecutionMeta: core.serialization.ObjectSchema<serializers.PromptExecutionMeta.Raw, Vellum.PromptExecutionMeta>;
|
|
9
10
|
export declare namespace PromptExecutionMeta {
|
|
10
11
|
interface Raw {
|
|
12
|
+
usage?: MlModelUsage.Raw | null;
|
|
11
13
|
model_name?: string | null;
|
|
12
14
|
latency?: number | null;
|
|
13
15
|
deployment_release_tag?: string | null;
|
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.PromptExecutionMeta = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const MlModelUsage_1 = require("./MlModelUsage");
|
|
31
32
|
const FinishReasonEnum_1 = require("./FinishReasonEnum");
|
|
32
33
|
exports.PromptExecutionMeta = core.serialization.object({
|
|
34
|
+
usage: MlModelUsage_1.MlModelUsage.optional(),
|
|
33
35
|
modelName: core.serialization.property("model_name", core.serialization.string().optional()),
|
|
34
36
|
latency: core.serialization.number().optional(),
|
|
35
37
|
deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.string().optional()),
|
|
@@ -94,6 +94,7 @@ export * from "./JsonEnum";
|
|
|
94
94
|
export * from "./JsonVariableValue";
|
|
95
95
|
export * from "./LogicalOperator";
|
|
96
96
|
export * from "./LogprobsEnum";
|
|
97
|
+
export * from "./MlModelUsage";
|
|
97
98
|
export * from "./MetadataFilterConfigRequest";
|
|
98
99
|
export * from "./MetadataFilterRuleCombinator";
|
|
99
100
|
export * from "./MetadataFilterRuleRequest";
|
|
@@ -110,6 +110,7 @@ __exportStar(require("./JsonEnum"), exports);
|
|
|
110
110
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
111
111
|
__exportStar(require("./LogicalOperator"), exports);
|
|
112
112
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
113
|
+
__exportStar(require("./MlModelUsage"), exports);
|
|
113
114
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
114
115
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
115
116
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
package/package.json
CHANGED
|
@@ -5,10 +5,12 @@ import * as serializers from "..";
|
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FinishReasonEnum } from "./FinishReasonEnum";
|
|
8
|
+
import { MlModelUsage } from "./MlModelUsage";
|
|
8
9
|
export declare const FulfilledPromptExecutionMeta: core.serialization.ObjectSchema<serializers.FulfilledPromptExecutionMeta.Raw, Vellum.FulfilledPromptExecutionMeta>;
|
|
9
10
|
export declare namespace FulfilledPromptExecutionMeta {
|
|
10
11
|
interface Raw {
|
|
11
12
|
latency?: number | null;
|
|
12
13
|
finish_reason?: FinishReasonEnum.Raw | null;
|
|
14
|
+
usage?: MlModelUsage.Raw | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -29,7 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.FulfilledPromptExecutionMeta = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const FinishReasonEnum_1 = require("./FinishReasonEnum");
|
|
32
|
+
const MlModelUsage_1 = require("./MlModelUsage");
|
|
32
33
|
exports.FulfilledPromptExecutionMeta = core.serialization.object({
|
|
33
34
|
latency: core.serialization.number().optional(),
|
|
34
35
|
finishReason: core.serialization.property("finish_reason", FinishReasonEnum_1.FinishReasonEnum.optional()),
|
|
36
|
+
usage: MlModelUsage_1.MlModelUsage.optional(),
|
|
35
37
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const MlModelUsage: core.serialization.ObjectSchema<serializers.MlModelUsage.Raw, Vellum.MlModelUsage>;
|
|
8
|
+
export declare namespace MlModelUsage {
|
|
9
|
+
interface Raw {
|
|
10
|
+
output_token_count?: number | null;
|
|
11
|
+
input_token_count?: number | null;
|
|
12
|
+
input_char_count?: number | null;
|
|
13
|
+
output_char_count?: number | null;
|
|
14
|
+
compute_nanos?: number | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.MlModelUsage = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.MlModelUsage = core.serialization.object({
|
|
32
|
+
outputTokenCount: core.serialization.property("output_token_count", core.serialization.number().optional()),
|
|
33
|
+
inputTokenCount: core.serialization.property("input_token_count", core.serialization.number().optional()),
|
|
34
|
+
inputCharCount: core.serialization.property("input_char_count", core.serialization.number().optional()),
|
|
35
|
+
outputCharCount: core.serialization.property("output_char_count", core.serialization.number().optional()),
|
|
36
|
+
computeNanos: core.serialization.property("compute_nanos", core.serialization.number().optional()),
|
|
37
|
+
});
|
|
@@ -34,4 +34,5 @@ exports.PromptDeploymentExpandMetaRequestRequest = core.serialization.object({
|
|
|
34
34
|
deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.boolean().optional()),
|
|
35
35
|
promptVersionId: core.serialization.property("prompt_version_id", core.serialization.boolean().optional()),
|
|
36
36
|
finishReason: core.serialization.property("finish_reason", core.serialization.boolean().optional()),
|
|
37
|
+
usage: core.serialization.boolean().optional(),
|
|
37
38
|
});
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as serializers from "..";
|
|
5
5
|
import * as Vellum from "../../api";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { MlModelUsage } from "./MlModelUsage";
|
|
7
8
|
import { FinishReasonEnum } from "./FinishReasonEnum";
|
|
8
9
|
export declare const PromptExecutionMeta: core.serialization.ObjectSchema<serializers.PromptExecutionMeta.Raw, Vellum.PromptExecutionMeta>;
|
|
9
10
|
export declare namespace PromptExecutionMeta {
|
|
10
11
|
interface Raw {
|
|
12
|
+
usage?: MlModelUsage.Raw | null;
|
|
11
13
|
model_name?: string | null;
|
|
12
14
|
latency?: number | null;
|
|
13
15
|
deployment_release_tag?: string | null;
|
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.PromptExecutionMeta = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const MlModelUsage_1 = require("./MlModelUsage");
|
|
31
32
|
const FinishReasonEnum_1 = require("./FinishReasonEnum");
|
|
32
33
|
exports.PromptExecutionMeta = core.serialization.object({
|
|
34
|
+
usage: MlModelUsage_1.MlModelUsage.optional(),
|
|
33
35
|
modelName: core.serialization.property("model_name", core.serialization.string().optional()),
|
|
34
36
|
latency: core.serialization.number().optional(),
|
|
35
37
|
deploymentReleaseTag: core.serialization.property("deployment_release_tag", core.serialization.string().optional()),
|
|
@@ -94,6 +94,7 @@ export * from "./JsonEnum";
|
|
|
94
94
|
export * from "./JsonVariableValue";
|
|
95
95
|
export * from "./LogicalOperator";
|
|
96
96
|
export * from "./LogprobsEnum";
|
|
97
|
+
export * from "./MlModelUsage";
|
|
97
98
|
export * from "./MetadataFilterConfigRequest";
|
|
98
99
|
export * from "./MetadataFilterRuleCombinator";
|
|
99
100
|
export * from "./MetadataFilterRuleRequest";
|
|
@@ -110,6 +110,7 @@ __exportStar(require("./JsonEnum"), exports);
|
|
|
110
110
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
111
111
|
__exportStar(require("./LogicalOperator"), exports);
|
|
112
112
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
113
|
+
__exportStar(require("./MlModelUsage"), exports);
|
|
113
114
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
114
115
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
115
116
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|