llama-stack-client 0.1.6 → 0.1.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/core.js +2 -1
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +6 -5
- package/index.d.ts +6 -5
- package/index.d.ts.map +1 -1
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/index.mjs +1 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +19 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +40 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +36 -0
- package/pagination.mjs.map +1 -0
- package/resources/agents/turn.d.ts +2 -3
- package/resources/agents/turn.d.ts.map +1 -1
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +19 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/benchmarks.d.ts +1 -1
- package/resources/benchmarks.d.ts.map +1 -1
- package/resources/datasets.d.ts +190 -16
- package/resources/datasets.d.ts.map +1 -1
- package/resources/datasets.js +11 -5
- package/resources/datasets.js.map +1 -1
- package/resources/datasets.mjs +11 -5
- package/resources/datasets.mjs.map +1 -1
- package/resources/eval/eval.d.ts +3 -2
- package/resources/eval/eval.d.ts.map +1 -1
- package/resources/eval/eval.js.map +1 -1
- package/resources/eval/eval.mjs.map +1 -1
- package/resources/eval/index.d.ts +1 -1
- package/resources/eval/index.d.ts.map +1 -1
- package/resources/eval/index.js.map +1 -1
- package/resources/eval/index.mjs.map +1 -1
- package/resources/eval/jobs.d.ts +1 -5
- package/resources/eval/jobs.d.ts.map +1 -1
- package/resources/eval/jobs.js.map +1 -1
- package/resources/eval/jobs.mjs.map +1 -1
- package/resources/eval.d.ts +2 -0
- package/resources/eval.d.ts.map +1 -0
- package/resources/eval.js +19 -0
- package/resources/eval.js.map +1 -0
- package/resources/eval.mjs +3 -0
- package/resources/eval.mjs.map +1 -0
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference.d.ts +9 -6
- package/resources/inference.d.ts.map +1 -1
- package/resources/inspect.d.ts +1 -0
- package/resources/inspect.d.ts.map +1 -1
- package/resources/models.d.ts +1 -1
- package/resources/models.d.ts.map +1 -1
- package/resources/post-training/job.d.ts +2 -2
- package/resources/post-training/job.d.ts.map +1 -1
- package/resources/post-training/job.js.map +1 -1
- package/resources/post-training/job.mjs.map +1 -1
- package/resources/post-training.d.ts +2 -0
- package/resources/post-training.d.ts.map +1 -0
- package/resources/post-training.js +19 -0
- package/resources/post-training.js.map +1 -0
- package/resources/post-training.mjs +3 -0
- package/resources/post-training.mjs.map +1 -0
- package/resources/providers.d.ts +1 -0
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +4 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +4 -1
- package/resources/providers.mjs.map +1 -1
- package/resources/scoring-functions.d.ts +4 -4
- package/resources/scoring-functions.d.ts.map +1 -1
- package/resources/shared.d.ts +16 -12
- package/resources/shared.d.ts.map +1 -1
- package/resources/shields.d.ts +1 -1
- package/resources/shields.d.ts.map +1 -1
- package/resources/tool-runtime/tool-runtime.d.ts +1 -1
- package/resources/tool-runtime/tool-runtime.d.ts.map +1 -1
- package/resources/tool-runtime.d.ts +2 -0
- package/resources/tool-runtime.d.ts.map +1 -0
- package/resources/tool-runtime.js +19 -0
- package/resources/tool-runtime.js.map +1 -0
- package/resources/tool-runtime.mjs +3 -0
- package/resources/tool-runtime.mjs.map +1 -0
- package/resources/vector-dbs.d.ts +1 -1
- package/resources/vector-dbs.d.ts.map +1 -1
- package/resources/vector-dbs.js.map +1 -1
- package/resources/vector-dbs.mjs.map +1 -1
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/core.ts +3 -3
- package/src/index.ts +14 -15
- package/src/pagination.ts +62 -0
- package/src/resources/agents/turn.ts +2 -3
- package/src/resources/agents.ts +3 -0
- package/src/resources/benchmarks.ts +1 -1
- package/src/resources/datasets.ts +240 -29
- package/src/resources/eval/eval.ts +4 -2
- package/src/resources/eval/index.ts +1 -1
- package/src/resources/eval/jobs.ts +1 -11
- package/src/resources/eval.ts +3 -0
- package/src/resources/index.ts +3 -6
- package/src/resources/inference.ts +13 -11
- package/src/resources/inspect.ts +2 -0
- package/src/resources/models.ts +1 -1
- package/src/resources/post-training/job.ts +2 -5
- package/src/resources/post-training.ts +3 -0
- package/src/resources/providers.ts +5 -1
- package/src/resources/scoring-functions.ts +10 -4
- package/src/resources/shared.ts +26 -25
- package/src/resources/shields.ts +1 -1
- package/src/resources/tool-runtime/tool-runtime.ts +1 -1
- package/src/resources/tool-runtime.ts +3 -0
- package/src/resources/vector-dbs.ts +1 -4
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/datasetio.d.ts +0 -52
- package/resources/datasetio.d.ts.map +0 -1
- package/resources/datasetio.js +0 -22
- package/resources/datasetio.js.map +0 -1
- package/resources/datasetio.mjs +0 -18
- package/resources/datasetio.mjs.map +0 -1
- package/resources/eval-tasks.d.ts +0 -21
- package/resources/eval-tasks.d.ts.map +0 -1
- package/resources/eval-tasks.js +0 -22
- package/resources/eval-tasks.js.map +0 -1
- package/resources/eval-tasks.mjs +0 -18
- package/resources/eval-tasks.mjs.map +0 -1
- package/src/resources/datasetio.ts +0 -80
- package/src/resources/eval-tasks.ts +0 -53
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./tool-runtime/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=tool-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-runtime.js","sourceRoot":"","sources":["../src/resources/tool-runtime.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,0DAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-runtime.mjs","sourceRoot":"","sources":["../src/resources/tool-runtime.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
export declare class VectorDBs extends APIResource {
|
|
4
|
-
retrieve(vectorDBId: string, options?: Core.RequestOptions): Core.APIPromise<VectorDBRetrieveResponse
|
|
4
|
+
retrieve(vectorDBId: string, options?: Core.RequestOptions): Core.APIPromise<VectorDBRetrieveResponse>;
|
|
5
5
|
list(options?: Core.RequestOptions): Core.APIPromise<VectorDBListResponse>;
|
|
6
6
|
register(body: VectorDBRegisterParams, options?: Core.RequestOptions): Core.APIPromise<VectorDBRegisterResponse>;
|
|
7
7
|
unregister(vectorDBId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-dbs.d.ts","sourceRoot":"","sources":["../src/resources/vector-dbs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,
|
|
1
|
+
{"version":3,"file":"vector-dbs.d.ts","sourceRoot":"","sources":["../src/resources/vector-dbs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAItG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAM1E,QAAQ,CACN,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAI5C,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAMrF;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,eAAe,EAAE,MAAM,CAAC;IAExB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,oBAAoB,EAAE,MAAM,CAAC;IAE7B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAC,wBAAwB,CAAC,CAAC;AAExF,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,wBAAwB;QACvC,mBAAmB,EAAE,MAAM,CAAC;QAE5B,eAAe,EAAE,MAAM,CAAC;QAExB,UAAU,EAAE,MAAM,CAAC;QAEnB,WAAW,EAAE,MAAM,CAAC;QAEpB,oBAAoB,EAAE,MAAM,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,eAAe,EAAE,MAAM,CAAC;IAExB,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,oBAAoB,EAAE,MAAM,CAAC;IAE7B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;IAExB,YAAY,EAAE,MAAM,CAAC;IAErB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-dbs.js","sourceRoot":"","sources":["../src/resources/vector-dbs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,SAAU,SAAQ,sBAAW;IACxC,QAAQ,
|
|
1
|
+
{"version":3,"file":"vector-dbs.js","sourceRoot":"","sources":["../src/resources/vector-dbs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,SAAU,SAAQ,sBAAW;IACxC,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAC3C,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CACN,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,UAAU,CAAC,UAAkB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,UAAU,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,8BAwBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector-dbs.mjs","sourceRoot":"","sources":["../src/resources/vector-dbs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC,QAAQ,
|
|
1
|
+
{"version":3,"file":"vector-dbs.mjs","sourceRoot":"","sources":["../src/resources/vector-dbs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAC3C,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CACN,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,UAAU,CAAC,UAAkB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,UAAU,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/resources.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
18
|
+
//# sourceMappingURL=resources.js.map
|
package/resources.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAkC"}
|
package/resources.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/src/core.ts
CHANGED
|
@@ -62,8 +62,8 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
const contentType = response.headers.get('content-type');
|
|
65
|
-
const
|
|
66
|
-
|
|
65
|
+
const mediaType = contentType?.split(';')[0]?.trim();
|
|
66
|
+
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
|
|
67
67
|
if (isJSON) {
|
|
68
68
|
const json = await response.json();
|
|
69
69
|
|
|
@@ -409,7 +409,7 @@ export abstract class APIClient {
|
|
|
409
409
|
!headers ? {}
|
|
410
410
|
: Symbol.iterator in headers ?
|
|
411
411
|
Object.fromEntries(Array.from(headers as Iterable<string[]>).map((header) => [...header]))
|
|
412
|
-
: { ...headers }
|
|
412
|
+
: { ...(headers as any as Record<string, string>) }
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { type Agent } from './_shims/index';
|
|
|
4
4
|
import * as qs from './internal/qs';
|
|
5
5
|
import * as Core from './core';
|
|
6
6
|
import * as Errors from './error';
|
|
7
|
+
import * as Pagination from './pagination';
|
|
8
|
+
import { type DatasetsIterrowsParams, DatasetsIterrowsResponse } from './pagination';
|
|
7
9
|
import * as Uploads from './uploads';
|
|
8
10
|
import * as API from './resources/index';
|
|
9
11
|
import {
|
|
@@ -20,14 +22,11 @@ import {
|
|
|
20
22
|
ListBenchmarksResponse,
|
|
21
23
|
} from './resources/benchmarks';
|
|
22
24
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
DatasetioGetRowsPaginatedParams,
|
|
26
|
-
PaginatedRowsResult,
|
|
27
|
-
} from './resources/datasetio';
|
|
28
|
-
import {
|
|
25
|
+
DatasetIterrowsParams,
|
|
26
|
+
DatasetIterrowsResponse,
|
|
29
27
|
DatasetListResponse,
|
|
30
28
|
DatasetRegisterParams,
|
|
29
|
+
DatasetRegisterResponse,
|
|
31
30
|
DatasetRetrieveResponse,
|
|
32
31
|
Datasets,
|
|
33
32
|
ListDatasetsResponse,
|
|
@@ -286,7 +285,6 @@ export class LlamaStackClient extends Core.APIClient {
|
|
|
286
285
|
shields: API.Shields = new API.Shields(this);
|
|
287
286
|
syntheticDataGeneration: API.SyntheticDataGeneration = new API.SyntheticDataGeneration(this);
|
|
288
287
|
telemetry: API.Telemetry = new API.Telemetry(this);
|
|
289
|
-
datasetio: API.Datasetio = new API.Datasetio(this);
|
|
290
288
|
scoring: API.Scoring = new API.Scoring(this);
|
|
291
289
|
scoringFunctions: API.ScoringFunctions = new API.ScoringFunctions(this);
|
|
292
290
|
benchmarks: API.Benchmarks = new API.Benchmarks(this);
|
|
@@ -353,13 +351,18 @@ LlamaStackClient.Safety = Safety;
|
|
|
353
351
|
LlamaStackClient.Shields = Shields;
|
|
354
352
|
LlamaStackClient.SyntheticDataGeneration = SyntheticDataGeneration;
|
|
355
353
|
LlamaStackClient.Telemetry = Telemetry;
|
|
356
|
-
LlamaStackClient.Datasetio = Datasetio;
|
|
357
354
|
LlamaStackClient.Scoring = Scoring;
|
|
358
355
|
LlamaStackClient.ScoringFunctions = ScoringFunctions;
|
|
359
356
|
LlamaStackClient.Benchmarks = Benchmarks;
|
|
360
357
|
export declare namespace LlamaStackClient {
|
|
361
358
|
export type RequestOptions = Core.RequestOptions;
|
|
362
359
|
|
|
360
|
+
export import DatasetsIterrows = Pagination.DatasetsIterrows;
|
|
361
|
+
export {
|
|
362
|
+
type DatasetsIterrowsParams as DatasetsIterrowsParams,
|
|
363
|
+
type DatasetsIterrowsResponse as DatasetsIterrowsResponse,
|
|
364
|
+
};
|
|
365
|
+
|
|
363
366
|
export {
|
|
364
367
|
Toolgroups as Toolgroups,
|
|
365
368
|
type ListToolGroupsResponse as ListToolGroupsResponse,
|
|
@@ -407,6 +410,9 @@ export declare namespace LlamaStackClient {
|
|
|
407
410
|
type ListDatasetsResponse as ListDatasetsResponse,
|
|
408
411
|
type DatasetRetrieveResponse as DatasetRetrieveResponse,
|
|
409
412
|
type DatasetListResponse as DatasetListResponse,
|
|
413
|
+
type DatasetIterrowsResponse as DatasetIterrowsResponse,
|
|
414
|
+
type DatasetRegisterResponse as DatasetRegisterResponse,
|
|
415
|
+
type DatasetIterrowsParams as DatasetIterrowsParams,
|
|
410
416
|
type DatasetRegisterParams as DatasetRegisterParams,
|
|
411
417
|
};
|
|
412
418
|
|
|
@@ -528,13 +534,6 @@ export declare namespace LlamaStackClient {
|
|
|
528
534
|
type TelemetrySaveSpansToDatasetParams as TelemetrySaveSpansToDatasetParams,
|
|
529
535
|
};
|
|
530
536
|
|
|
531
|
-
export {
|
|
532
|
-
Datasetio as Datasetio,
|
|
533
|
-
type PaginatedRowsResult as PaginatedRowsResult,
|
|
534
|
-
type DatasetioAppendRowsParams as DatasetioAppendRowsParams,
|
|
535
|
-
type DatasetioGetRowsPaginatedParams as DatasetioGetRowsPaginatedParams,
|
|
536
|
-
};
|
|
537
|
-
|
|
538
537
|
export {
|
|
539
538
|
Scoring as Scoring,
|
|
540
539
|
type ScoringScoreResponse as ScoringScoreResponse,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
|
|
4
|
+
|
|
5
|
+
export interface DatasetsIterrowsResponse<Item> {
|
|
6
|
+
data: Array<Item>;
|
|
7
|
+
|
|
8
|
+
next_index: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DatasetsIterrowsParams {
|
|
12
|
+
dataset_id?: string;
|
|
13
|
+
|
|
14
|
+
start_index?: number;
|
|
15
|
+
|
|
16
|
+
limit?: number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class DatasetsIterrows<Item> extends AbstractPage<Item> implements DatasetsIterrowsResponse<Item> {
|
|
20
|
+
data: Array<Item>;
|
|
21
|
+
|
|
22
|
+
next_index: number;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
client: APIClient,
|
|
26
|
+
response: Response,
|
|
27
|
+
body: DatasetsIterrowsResponse<Item>,
|
|
28
|
+
options: FinalRequestOptions,
|
|
29
|
+
) {
|
|
30
|
+
super(client, response, body, options);
|
|
31
|
+
|
|
32
|
+
this.data = body.data || [];
|
|
33
|
+
this.next_index = body.next_index || 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getPaginatedItems(): Item[] {
|
|
37
|
+
return this.data ?? [];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @deprecated Please use `nextPageInfo()` instead
|
|
41
|
+
nextPageParams(): Partial<DatasetsIterrowsParams> | null {
|
|
42
|
+
const info = this.nextPageInfo();
|
|
43
|
+
if (!info) return null;
|
|
44
|
+
if ('params' in info) return info.params;
|
|
45
|
+
const params = Object.fromEntries(info.url.searchParams);
|
|
46
|
+
if (!Object.keys(params).length) return null;
|
|
47
|
+
return params;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
nextPageInfo(): PageInfo | null {
|
|
51
|
+
const cursor = this.next_index;
|
|
52
|
+
if (!cursor) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
params: {
|
|
58
|
+
start_index: cursor,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -482,10 +482,9 @@ export type TurnResumeParams = TurnResumeParamsNonStreaming | TurnResumeParamsSt
|
|
|
482
482
|
|
|
483
483
|
export interface TurnResumeParamsBase {
|
|
484
484
|
/**
|
|
485
|
-
* The tool call responses to resume the turn with.
|
|
486
|
-
* be deprecated. Use ToolResponse.
|
|
485
|
+
* The tool call responses to resume the turn with.
|
|
487
486
|
*/
|
|
488
|
-
tool_responses: Array<AgentsAPI.ToolResponse
|
|
487
|
+
tool_responses: Array<AgentsAPI.ToolResponse>;
|
|
489
488
|
|
|
490
489
|
/**
|
|
491
490
|
* Whether to stream the response.
|
|
@@ -4,7 +4,7 @@ import { APIResource } from '../resource';
|
|
|
4
4
|
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Benchmarks extends APIResource {
|
|
7
|
-
retrieve(benchmarkId: string, options?: Core.RequestOptions): Core.APIPromise<Benchmark
|
|
7
|
+
retrieve(benchmarkId: string, options?: Core.RequestOptions): Core.APIPromise<Benchmark> {
|
|
8
8
|
return this._client.get(`/v1/eval/benchmarks/${benchmarkId}`, options);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
4
5
|
import * as Core from '../core';
|
|
5
|
-
import * as Shared from './shared';
|
|
6
6
|
|
|
7
7
|
export class Datasets extends APIResource {
|
|
8
|
-
retrieve(
|
|
9
|
-
datasetId: string,
|
|
10
|
-
options?: Core.RequestOptions,
|
|
11
|
-
): Core.APIPromise<DatasetRetrieveResponse | null> {
|
|
8
|
+
retrieve(datasetId: string, options?: Core.RequestOptions): Core.APIPromise<DatasetRetrieveResponse> {
|
|
12
9
|
return this._client.get(`/v1/datasets/${datasetId}`, options);
|
|
13
10
|
}
|
|
14
11
|
|
|
@@ -18,12 +15,34 @@ export class Datasets extends APIResource {
|
|
|
18
15
|
)._thenUnwrap((obj) => obj.data);
|
|
19
16
|
}
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Get a paginated list of rows from a dataset. Uses cursor-based pagination.
|
|
20
|
+
*/
|
|
21
|
+
iterrows(
|
|
22
|
+
datasetId: string,
|
|
23
|
+
query?: DatasetIterrowsParams,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): Core.APIPromise<DatasetIterrowsResponse>;
|
|
26
|
+
iterrows(datasetId: string, options?: Core.RequestOptions): Core.APIPromise<DatasetIterrowsResponse>;
|
|
27
|
+
iterrows(
|
|
28
|
+
datasetId: string,
|
|
29
|
+
query: DatasetIterrowsParams | Core.RequestOptions = {},
|
|
30
|
+
options?: Core.RequestOptions,
|
|
31
|
+
): Core.APIPromise<DatasetIterrowsResponse> {
|
|
32
|
+
if (isRequestOptions(query)) {
|
|
33
|
+
return this.iterrows(datasetId, {}, query);
|
|
34
|
+
}
|
|
35
|
+
return this._client.get(`/v1/datasetio/iterrows/${datasetId}`, { query, ...options });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Register a new dataset.
|
|
40
|
+
*/
|
|
41
|
+
register(
|
|
42
|
+
body: DatasetRegisterParams,
|
|
43
|
+
options?: Core.RequestOptions,
|
|
44
|
+
): Core.APIPromise<DatasetRegisterResponse> {
|
|
45
|
+
return this._client.post('/v1/datasets', { body, ...options });
|
|
27
46
|
}
|
|
28
47
|
|
|
29
48
|
unregister(datasetId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
@@ -39,8 +58,6 @@ export interface ListDatasetsResponse {
|
|
|
39
58
|
}
|
|
40
59
|
|
|
41
60
|
export interface DatasetRetrieveResponse {
|
|
42
|
-
dataset_schema: Record<string, Shared.ParamType>;
|
|
43
|
-
|
|
44
61
|
identifier: string;
|
|
45
62
|
|
|
46
63
|
metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
@@ -49,23 +66,53 @@ export interface DatasetRetrieveResponse {
|
|
|
49
66
|
|
|
50
67
|
provider_resource_id: string;
|
|
51
68
|
|
|
52
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Purpose of the dataset. Each purpose has a required input data schema.
|
|
71
|
+
*/
|
|
72
|
+
purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* A dataset that can be obtained from a URI.
|
|
76
|
+
*/
|
|
77
|
+
source: DatasetRetrieveResponse.UriDataSource | DatasetRetrieveResponse.RowsDataSource;
|
|
53
78
|
|
|
54
|
-
|
|
79
|
+
type: 'dataset';
|
|
55
80
|
}
|
|
56
81
|
|
|
57
82
|
export namespace DatasetRetrieveResponse {
|
|
58
|
-
|
|
83
|
+
/**
|
|
84
|
+
* A dataset that can be obtained from a URI.
|
|
85
|
+
*/
|
|
86
|
+
export interface UriDataSource {
|
|
87
|
+
type: 'uri';
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The dataset can be obtained from a URI. E.g. -
|
|
91
|
+
* "https://mywebsite.com/mydata.jsonl" - "lsfs://mydata.jsonl" -
|
|
92
|
+
* "data:csv;base64,{base64_content}"
|
|
93
|
+
*/
|
|
59
94
|
uri: string;
|
|
60
95
|
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A dataset stored in rows.
|
|
99
|
+
*/
|
|
100
|
+
export interface RowsDataSource {
|
|
101
|
+
/**
|
|
102
|
+
* The dataset is stored in rows. E.g. - [ {"messages": [{"role": "user",
|
|
103
|
+
* "content": "Hello, world!"}, {"role": "assistant", "content": "Hello, world!"}]}
|
|
104
|
+
* ]
|
|
105
|
+
*/
|
|
106
|
+
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
107
|
+
|
|
108
|
+
type: 'rows';
|
|
109
|
+
}
|
|
61
110
|
}
|
|
62
111
|
|
|
63
112
|
export type DatasetListResponse = Array<DatasetListResponse.DatasetListResponseItem>;
|
|
64
113
|
|
|
65
114
|
export namespace DatasetListResponse {
|
|
66
115
|
export interface DatasetListResponseItem {
|
|
67
|
-
dataset_schema: Record<string, Shared.ParamType>;
|
|
68
|
-
|
|
69
116
|
identifier: string;
|
|
70
117
|
|
|
71
118
|
metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
@@ -74,36 +121,197 @@ export namespace DatasetListResponse {
|
|
|
74
121
|
|
|
75
122
|
provider_resource_id: string;
|
|
76
123
|
|
|
77
|
-
|
|
124
|
+
/**
|
|
125
|
+
* Purpose of the dataset. Each purpose has a required input data schema.
|
|
126
|
+
*/
|
|
127
|
+
purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* A dataset that can be obtained from a URI.
|
|
131
|
+
*/
|
|
132
|
+
source: DatasetListResponseItem.UriDataSource | DatasetListResponseItem.RowsDataSource;
|
|
78
133
|
|
|
79
|
-
|
|
134
|
+
type: 'dataset';
|
|
80
135
|
}
|
|
81
136
|
|
|
82
137
|
export namespace DatasetListResponseItem {
|
|
83
|
-
|
|
138
|
+
/**
|
|
139
|
+
* A dataset that can be obtained from a URI.
|
|
140
|
+
*/
|
|
141
|
+
export interface UriDataSource {
|
|
142
|
+
type: 'uri';
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The dataset can be obtained from a URI. E.g. -
|
|
146
|
+
* "https://mywebsite.com/mydata.jsonl" - "lsfs://mydata.jsonl" -
|
|
147
|
+
* "data:csv;base64,{base64_content}"
|
|
148
|
+
*/
|
|
84
149
|
uri: string;
|
|
85
150
|
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* A dataset stored in rows.
|
|
154
|
+
*/
|
|
155
|
+
export interface RowsDataSource {
|
|
156
|
+
/**
|
|
157
|
+
* The dataset is stored in rows. E.g. - [ {"messages": [{"role": "user",
|
|
158
|
+
* "content": "Hello, world!"}, {"role": "assistant", "content": "Hello, world!"}]}
|
|
159
|
+
* ]
|
|
160
|
+
*/
|
|
161
|
+
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
162
|
+
|
|
163
|
+
type: 'rows';
|
|
164
|
+
}
|
|
86
165
|
}
|
|
87
166
|
}
|
|
88
167
|
|
|
89
|
-
|
|
90
|
-
|
|
168
|
+
/**
|
|
169
|
+
* A paginated list of rows from a dataset.
|
|
170
|
+
*/
|
|
171
|
+
export interface DatasetIterrowsResponse {
|
|
172
|
+
/**
|
|
173
|
+
* The rows in the current page.
|
|
174
|
+
*/
|
|
175
|
+
data: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Index into dataset for the first row in the next page. None if there are no more
|
|
179
|
+
* rows.
|
|
180
|
+
*/
|
|
181
|
+
next_start_index?: number;
|
|
182
|
+
}
|
|
91
183
|
|
|
92
|
-
|
|
184
|
+
export interface DatasetRegisterResponse {
|
|
185
|
+
identifier: string;
|
|
93
186
|
|
|
94
|
-
|
|
187
|
+
metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
95
188
|
|
|
96
|
-
|
|
189
|
+
provider_id: string;
|
|
190
|
+
|
|
191
|
+
provider_resource_id: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Purpose of the dataset. Each purpose has a required input data schema.
|
|
195
|
+
*/
|
|
196
|
+
purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
|
|
97
197
|
|
|
98
|
-
|
|
198
|
+
/**
|
|
199
|
+
* A dataset that can be obtained from a URI.
|
|
200
|
+
*/
|
|
201
|
+
source: DatasetRegisterResponse.UriDataSource | DatasetRegisterResponse.RowsDataSource;
|
|
99
202
|
|
|
100
|
-
|
|
203
|
+
type: 'dataset';
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export namespace DatasetRegisterResponse {
|
|
207
|
+
/**
|
|
208
|
+
* A dataset that can be obtained from a URI.
|
|
209
|
+
*/
|
|
210
|
+
export interface UriDataSource {
|
|
211
|
+
type: 'uri';
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The dataset can be obtained from a URI. E.g. -
|
|
215
|
+
* "https://mywebsite.com/mydata.jsonl" - "lsfs://mydata.jsonl" -
|
|
216
|
+
* "data:csv;base64,{base64_content}"
|
|
217
|
+
*/
|
|
218
|
+
uri: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* A dataset stored in rows.
|
|
223
|
+
*/
|
|
224
|
+
export interface RowsDataSource {
|
|
225
|
+
/**
|
|
226
|
+
* The dataset is stored in rows. E.g. - [ {"messages": [{"role": "user",
|
|
227
|
+
* "content": "Hello, world!"}, {"role": "assistant", "content": "Hello, world!"}]}
|
|
228
|
+
* ]
|
|
229
|
+
*/
|
|
230
|
+
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
231
|
+
|
|
232
|
+
type: 'rows';
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface DatasetIterrowsParams {
|
|
237
|
+
/**
|
|
238
|
+
* The number of rows to get.
|
|
239
|
+
*/
|
|
240
|
+
limit?: number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Index into dataset for the first row to get. Get all rows if None.
|
|
244
|
+
*/
|
|
245
|
+
start_index?: number;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface DatasetRegisterParams {
|
|
249
|
+
/**
|
|
250
|
+
* The purpose of the dataset. One of - "post-training/messages": The dataset
|
|
251
|
+
* contains a messages column with list of messages for post-training. {
|
|
252
|
+
* "messages": [ {"role": "user", "content": "Hello, world!"}, {"role":
|
|
253
|
+
* "assistant", "content": "Hello, world!"}, ] } - "eval/question-answer": The
|
|
254
|
+
* dataset contains a question column and an answer column for evaluation. {
|
|
255
|
+
* "question": "What is the capital of France?", "answer": "Paris" } -
|
|
256
|
+
* "eval/messages-answer": The dataset contains a messages column with list of
|
|
257
|
+
* messages and an answer column for evaluation. { "messages": [ {"role": "user",
|
|
258
|
+
* "content": "Hello, my name is John Doe."}, {"role": "assistant", "content":
|
|
259
|
+
* "Hello, John Doe. How can I help you today?"}, {"role": "user", "content":
|
|
260
|
+
* "What's my name?"}, ], "answer": "John Doe" }
|
|
261
|
+
*/
|
|
262
|
+
purpose: 'post-training/messages' | 'eval/question-answer' | 'eval/messages-answer';
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The data source of the dataset. Ensure that the data source schema is compatible
|
|
266
|
+
* with the purpose of the dataset. Examples: - { "type": "uri", "uri":
|
|
267
|
+
* "https://mywebsite.com/mydata.jsonl" } - { "type": "uri", "uri":
|
|
268
|
+
* "lsfs://mydata.jsonl" } - { "type": "uri", "uri":
|
|
269
|
+
* "data:csv;base64,{base64_content}" } - { "type": "uri", "uri":
|
|
270
|
+
* "huggingface://llamastack/simpleqa?split=train" } - { "type": "rows", "rows": [
|
|
271
|
+
* { "messages": [ {"role": "user", "content": "Hello, world!"}, {"role":
|
|
272
|
+
* "assistant", "content": "Hello, world!"}, ] } ] }
|
|
273
|
+
*/
|
|
274
|
+
source: DatasetRegisterParams.UriDataSource | DatasetRegisterParams.RowsDataSource;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* The ID of the dataset. If not provided, an ID will be generated.
|
|
278
|
+
*/
|
|
279
|
+
dataset_id?: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The metadata for the dataset. - E.g. {"description": "My dataset"}
|
|
283
|
+
*/
|
|
284
|
+
metadata?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
101
285
|
}
|
|
102
286
|
|
|
103
287
|
export namespace DatasetRegisterParams {
|
|
104
|
-
|
|
288
|
+
/**
|
|
289
|
+
* A dataset that can be obtained from a URI.
|
|
290
|
+
*/
|
|
291
|
+
export interface UriDataSource {
|
|
292
|
+
type: 'uri';
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* The dataset can be obtained from a URI. E.g. -
|
|
296
|
+
* "https://mywebsite.com/mydata.jsonl" - "lsfs://mydata.jsonl" -
|
|
297
|
+
* "data:csv;base64,{base64_content}"
|
|
298
|
+
*/
|
|
105
299
|
uri: string;
|
|
106
300
|
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* A dataset stored in rows.
|
|
304
|
+
*/
|
|
305
|
+
export interface RowsDataSource {
|
|
306
|
+
/**
|
|
307
|
+
* The dataset is stored in rows. E.g. - [ {"messages": [{"role": "user",
|
|
308
|
+
* "content": "Hello, world!"}, {"role": "assistant", "content": "Hello, world!"}]}
|
|
309
|
+
* ]
|
|
310
|
+
*/
|
|
311
|
+
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
312
|
+
|
|
313
|
+
type: 'rows';
|
|
314
|
+
}
|
|
107
315
|
}
|
|
108
316
|
|
|
109
317
|
export declare namespace Datasets {
|
|
@@ -111,6 +319,9 @@ export declare namespace Datasets {
|
|
|
111
319
|
type ListDatasetsResponse as ListDatasetsResponse,
|
|
112
320
|
type DatasetRetrieveResponse as DatasetRetrieveResponse,
|
|
113
321
|
type DatasetListResponse as DatasetListResponse,
|
|
322
|
+
type DatasetIterrowsResponse as DatasetIterrowsResponse,
|
|
323
|
+
type DatasetRegisterResponse as DatasetRegisterResponse,
|
|
324
|
+
type DatasetIterrowsParams as DatasetIterrowsParams,
|
|
114
325
|
type DatasetRegisterParams as DatasetRegisterParams,
|
|
115
326
|
};
|
|
116
327
|
}
|
|
@@ -5,7 +5,7 @@ import * as Core from '../../core';
|
|
|
5
5
|
import * as ScoringFunctionsAPI from '../scoring-functions';
|
|
6
6
|
import * as Shared from '../shared';
|
|
7
7
|
import * as JobsAPI from './jobs';
|
|
8
|
-
import {
|
|
8
|
+
import { Jobs } from './jobs';
|
|
9
9
|
|
|
10
10
|
export class Eval extends APIResource {
|
|
11
11
|
jobs: JobsAPI.Jobs = new JobsAPI.Jobs(this._client);
|
|
@@ -131,6 +131,8 @@ export interface EvaluateResponse {
|
|
|
131
131
|
|
|
132
132
|
export interface Job {
|
|
133
133
|
job_id: string;
|
|
134
|
+
|
|
135
|
+
status: 'completed' | 'in_progress' | 'failed' | 'scheduled';
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
export interface EvalEvaluateRowsParams {
|
|
@@ -195,5 +197,5 @@ export declare namespace Eval {
|
|
|
195
197
|
type EvalRunEvalAlphaParams as EvalRunEvalAlphaParams,
|
|
196
198
|
};
|
|
197
199
|
|
|
198
|
-
export { Jobs as Jobs
|
|
200
|
+
export { Jobs as Jobs };
|
|
199
201
|
}
|