llama-stack-client 0.1.7 → 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.
Files changed (94) hide show
  1. package/core.js.map +1 -1
  2. package/core.mjs.map +1 -1
  3. package/index.d.mts +6 -5
  4. package/index.d.ts +6 -5
  5. package/index.d.ts.map +1 -1
  6. package/index.js +1 -3
  7. package/index.js.map +1 -1
  8. package/index.mjs +1 -3
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/pagination.d.ts +19 -0
  12. package/pagination.d.ts.map +1 -0
  13. package/pagination.js +40 -0
  14. package/pagination.js.map +1 -0
  15. package/pagination.mjs +36 -0
  16. package/pagination.mjs.map +1 -0
  17. package/resources/benchmarks.d.ts +1 -1
  18. package/resources/benchmarks.d.ts.map +1 -1
  19. package/resources/datasets.d.ts +190 -16
  20. package/resources/datasets.d.ts.map +1 -1
  21. package/resources/datasets.js +11 -5
  22. package/resources/datasets.js.map +1 -1
  23. package/resources/datasets.mjs +11 -5
  24. package/resources/datasets.mjs.map +1 -1
  25. package/resources/eval/eval.d.ts +3 -2
  26. package/resources/eval/eval.d.ts.map +1 -1
  27. package/resources/eval/eval.js.map +1 -1
  28. package/resources/eval/eval.mjs.map +1 -1
  29. package/resources/eval/index.d.ts +1 -1
  30. package/resources/eval/index.d.ts.map +1 -1
  31. package/resources/eval/index.js.map +1 -1
  32. package/resources/eval/index.mjs.map +1 -1
  33. package/resources/eval/jobs.d.ts +1 -5
  34. package/resources/eval/jobs.d.ts.map +1 -1
  35. package/resources/eval/jobs.js.map +1 -1
  36. package/resources/eval/jobs.mjs.map +1 -1
  37. package/resources/index.d.ts +1 -2
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +1 -3
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +0 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/models.d.ts +1 -1
  44. package/resources/models.d.ts.map +1 -1
  45. package/resources/post-training/job.d.ts +2 -2
  46. package/resources/post-training/job.d.ts.map +1 -1
  47. package/resources/post-training/job.js.map +1 -1
  48. package/resources/post-training/job.mjs.map +1 -1
  49. package/resources/scoring-functions.d.ts +4 -4
  50. package/resources/scoring-functions.d.ts.map +1 -1
  51. package/resources/shared.d.ts +15 -2
  52. package/resources/shared.d.ts.map +1 -1
  53. package/resources/shields.d.ts +1 -1
  54. package/resources/shields.d.ts.map +1 -1
  55. package/resources/tool-runtime/tool-runtime.d.ts +1 -1
  56. package/resources/tool-runtime/tool-runtime.d.ts.map +1 -1
  57. package/resources/vector-dbs.d.ts +1 -1
  58. package/resources/vector-dbs.d.ts.map +1 -1
  59. package/resources/vector-dbs.js.map +1 -1
  60. package/resources/vector-dbs.mjs.map +1 -1
  61. package/resources.d.ts +2 -0
  62. package/resources.d.ts.map +1 -0
  63. package/resources.js +18 -0
  64. package/resources.js.map +1 -0
  65. package/resources.mjs +2 -0
  66. package/resources.mjs.map +1 -0
  67. package/src/core.ts +1 -1
  68. package/src/index.ts +14 -15
  69. package/src/pagination.ts +62 -0
  70. package/src/resources/benchmarks.ts +1 -1
  71. package/src/resources/datasets.ts +240 -29
  72. package/src/resources/eval/eval.ts +4 -2
  73. package/src/resources/eval/index.ts +1 -1
  74. package/src/resources/eval/jobs.ts +1 -11
  75. package/src/resources/index.ts +3 -6
  76. package/src/resources/models.ts +1 -1
  77. package/src/resources/post-training/job.ts +2 -5
  78. package/src/resources/scoring-functions.ts +10 -4
  79. package/src/resources/shared.ts +25 -9
  80. package/src/resources/shields.ts +1 -1
  81. package/src/resources/tool-runtime/tool-runtime.ts +1 -1
  82. package/src/resources/vector-dbs.ts +1 -4
  83. package/src/resources.ts +1 -0
  84. package/src/version.ts +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. package/version.mjs +1 -1
  88. package/resources/datasetio.d.ts +0 -52
  89. package/resources/datasetio.d.ts.map +0 -1
  90. package/resources/datasetio.js +0 -22
  91. package/resources/datasetio.js.map +0 -1
  92. package/resources/datasetio.mjs +0 -18
  93. package/resources/datasetio.mjs.map +0 -1
  94. package/src/resources/datasetio.ts +0 -80
@@ -1,22 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Datasetio = void 0;
5
- const resource_1 = require("../resource.js");
6
- class Datasetio extends resource_1.APIResource {
7
- appendRows(body, options) {
8
- return this._client.post('/v1/datasetio/rows', {
9
- body,
10
- ...options,
11
- headers: { Accept: '*/*', ...options?.headers },
12
- });
13
- }
14
- /**
15
- * Get a paginated list of rows from a dataset.
16
- */
17
- getRowsPaginated(query, options) {
18
- return this._client.get('/v1/datasetio/rows', { query, ...options });
19
- }
20
- }
21
- exports.Datasetio = Datasetio;
22
- //# sourceMappingURL=datasetio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datasetio.js","sourceRoot":"","sources":["../src/resources/datasetio.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,SAAU,SAAQ,sBAAW;IACxC,UAAU,CAAC,IAA+B,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,gBAAgB,CACd,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAlBD,8BAkBC"}
@@ -1,18 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- export class Datasetio extends APIResource {
4
- appendRows(body, options) {
5
- return this._client.post('/v1/datasetio/rows', {
6
- body,
7
- ...options,
8
- headers: { Accept: '*/*', ...options?.headers },
9
- });
10
- }
11
- /**
12
- * Get a paginated list of rows from a dataset.
13
- */
14
- getRowsPaginated(query, options) {
15
- return this._client.get('/v1/datasetio/rows', { query, ...options });
16
- }
17
- }
18
- //# sourceMappingURL=datasetio.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datasetio.mjs","sourceRoot":"","sources":["../src/resources/datasetio.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC,UAAU,CAAC,IAA+B,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,gBAAgB,CACd,KAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -1,80 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../resource';
4
- import * as Core from '../core';
5
-
6
- export class Datasetio extends APIResource {
7
- appendRows(body: DatasetioAppendRowsParams, options?: Core.RequestOptions): Core.APIPromise<void> {
8
- return this._client.post('/v1/datasetio/rows', {
9
- body,
10
- ...options,
11
- headers: { Accept: '*/*', ...options?.headers },
12
- });
13
- }
14
-
15
- /**
16
- * Get a paginated list of rows from a dataset.
17
- */
18
- getRowsPaginated(
19
- query: DatasetioGetRowsPaginatedParams,
20
- options?: Core.RequestOptions,
21
- ): Core.APIPromise<PaginatedRowsResult> {
22
- return this._client.get('/v1/datasetio/rows', { query, ...options });
23
- }
24
- }
25
-
26
- /**
27
- * A paginated list of rows from a dataset.
28
- */
29
- export interface PaginatedRowsResult {
30
- /**
31
- * The rows in the current page.
32
- */
33
- rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
34
-
35
- /**
36
- * The total number of rows in the dataset.
37
- */
38
- total_count: number;
39
-
40
- /**
41
- * The token to get the next page of rows.
42
- */
43
- next_page_token?: string;
44
- }
45
-
46
- export interface DatasetioAppendRowsParams {
47
- dataset_id: string;
48
-
49
- rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
50
- }
51
-
52
- export interface DatasetioGetRowsPaginatedParams {
53
- /**
54
- * The ID of the dataset to get the rows from.
55
- */
56
- dataset_id: string;
57
-
58
- /**
59
- * The number of rows to get per page.
60
- */
61
- rows_in_page: number;
62
-
63
- /**
64
- * (Optional) A condition to filter the rows by.
65
- */
66
- filter_condition?: string;
67
-
68
- /**
69
- * The token to get the next page of rows.
70
- */
71
- page_token?: string;
72
- }
73
-
74
- export declare namespace Datasetio {
75
- export {
76
- type PaginatedRowsResult as PaginatedRowsResult,
77
- type DatasetioAppendRowsParams as DatasetioAppendRowsParams,
78
- type DatasetioGetRowsPaginatedParams as DatasetioGetRowsPaginatedParams,
79
- };
80
- }