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
|
@@ -29,17 +29,7 @@ export class Jobs extends APIResource {
|
|
|
29
29
|
/**
|
|
30
30
|
* Get the status of a job.
|
|
31
31
|
*/
|
|
32
|
-
status(
|
|
33
|
-
benchmarkId: string,
|
|
34
|
-
jobId: string,
|
|
35
|
-
options?: Core.RequestOptions,
|
|
36
|
-
): Core.APIPromise<JobStatusResponse | null> {
|
|
32
|
+
status(benchmarkId: string, jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvalAPI.Job> {
|
|
37
33
|
return this._client.get(`/v1/eval/benchmarks/${benchmarkId}/jobs/${jobId}`, options);
|
|
38
34
|
}
|
|
39
35
|
}
|
|
40
|
-
|
|
41
|
-
export type JobStatusResponse = 'completed' | 'in_progress' | 'failed' | 'scheduled' | null;
|
|
42
|
-
|
|
43
|
-
export declare namespace Jobs {
|
|
44
|
-
export { type JobStatusResponse as JobStatusResponse };
|
|
45
|
-
}
|
package/src/resources/index.ts
CHANGED
|
@@ -24,17 +24,14 @@ export {
|
|
|
24
24
|
type BenchmarkListResponse,
|
|
25
25
|
type BenchmarkRegisterParams,
|
|
26
26
|
} from './benchmarks';
|
|
27
|
-
export {
|
|
28
|
-
Datasetio,
|
|
29
|
-
type PaginatedRowsResult,
|
|
30
|
-
type DatasetioAppendRowsParams,
|
|
31
|
-
type DatasetioGetRowsPaginatedParams,
|
|
32
|
-
} from './datasetio';
|
|
33
27
|
export {
|
|
34
28
|
Datasets,
|
|
35
29
|
type ListDatasetsResponse,
|
|
36
30
|
type DatasetRetrieveResponse,
|
|
37
31
|
type DatasetListResponse,
|
|
32
|
+
type DatasetIterrowsResponse,
|
|
33
|
+
type DatasetRegisterResponse,
|
|
34
|
+
type DatasetIterrowsParams,
|
|
38
35
|
type DatasetRegisterParams,
|
|
39
36
|
} from './datasets';
|
|
40
37
|
export {
|
|
@@ -113,19 +113,9 @@ export namespace ChatCompletionResponseStreamChunk {
|
|
|
113
113
|
export interface Metric {
|
|
114
114
|
metric: string;
|
|
115
115
|
|
|
116
|
-
span_id: string;
|
|
117
|
-
|
|
118
|
-
timestamp: string;
|
|
119
|
-
|
|
120
|
-
trace_id: string;
|
|
121
|
-
|
|
122
|
-
type: 'metric';
|
|
123
|
-
|
|
124
|
-
unit: string;
|
|
125
|
-
|
|
126
116
|
value: number;
|
|
127
117
|
|
|
128
|
-
|
|
118
|
+
unit?: string;
|
|
129
119
|
}
|
|
130
120
|
}
|
|
131
121
|
|
|
@@ -147,6 +137,18 @@ export interface CompletionResponse {
|
|
|
147
137
|
* Optional log probabilities for generated tokens
|
|
148
138
|
*/
|
|
149
139
|
logprobs?: Array<TokenLogProbs>;
|
|
140
|
+
|
|
141
|
+
metrics?: Array<CompletionResponse.Metric>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export namespace CompletionResponse {
|
|
145
|
+
export interface Metric {
|
|
146
|
+
metric: string;
|
|
147
|
+
|
|
148
|
+
value: number;
|
|
149
|
+
|
|
150
|
+
unit?: string;
|
|
151
|
+
}
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
/**
|
package/src/resources/inspect.ts
CHANGED
package/src/resources/models.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { APIResource } from '../resource';
|
|
|
4
4
|
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Models extends APIResource {
|
|
7
|
-
retrieve(modelId: string, options?: Core.RequestOptions): Core.APIPromise<Model
|
|
7
|
+
retrieve(modelId: string, options?: Core.RequestOptions): Core.APIPromise<Model> {
|
|
8
8
|
return this._client.get(`/v1/models/${modelId}`, options);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -16,10 +16,7 @@ export class Job extends APIResource {
|
|
|
16
16
|
)._thenUnwrap((obj) => obj.data);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
artifacts(
|
|
20
|
-
query: JobArtifactsParams,
|
|
21
|
-
options?: Core.RequestOptions,
|
|
22
|
-
): Core.APIPromise<JobArtifactsResponse | null> {
|
|
19
|
+
artifacts(query: JobArtifactsParams, options?: Core.RequestOptions): Core.APIPromise<JobArtifactsResponse> {
|
|
23
20
|
return this._client.get('/v1/post-training/job/artifacts', { query, ...options });
|
|
24
21
|
}
|
|
25
22
|
|
|
@@ -31,7 +28,7 @@ export class Job extends APIResource {
|
|
|
31
28
|
});
|
|
32
29
|
}
|
|
33
30
|
|
|
34
|
-
status(query: JobStatusParams, options?: Core.RequestOptions): Core.APIPromise<JobStatusResponse
|
|
31
|
+
status(query: JobStatusParams, options?: Core.RequestOptions): Core.APIPromise<JobStatusResponse> {
|
|
35
32
|
return this._client.get('/v1/post-training/job/status', { query, ...options });
|
|
36
33
|
}
|
|
37
34
|
}
|
|
@@ -5,9 +5,13 @@ import * as Core from '../core';
|
|
|
5
5
|
import * as InspectAPI from './inspect';
|
|
6
6
|
|
|
7
7
|
export class Providers extends APIResource {
|
|
8
|
+
retrieve(providerId: string, options?: Core.RequestOptions): Core.APIPromise<InspectAPI.ProviderInfo> {
|
|
9
|
+
return this._client.get(`/v1/providers/${providerId}`, options);
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
list(options?: Core.RequestOptions): Core.APIPromise<ProviderListResponse> {
|
|
9
13
|
return (
|
|
10
|
-
this._client.get('/v1/
|
|
14
|
+
this._client.get('/v1/providers', options) as Core.APIPromise<{ data: ProviderListResponse }>
|
|
11
15
|
)._thenUnwrap((obj) => obj.data);
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -5,7 +5,7 @@ import * as Core from '../core';
|
|
|
5
5
|
import * as Shared from './shared';
|
|
6
6
|
|
|
7
7
|
export class ScoringFunctions extends APIResource {
|
|
8
|
-
retrieve(scoringFnId: string, options?: Core.RequestOptions): Core.APIPromise<ScoringFn
|
|
8
|
+
retrieve(scoringFnId: string, options?: Core.RequestOptions): Core.APIPromise<ScoringFn> {
|
|
9
9
|
return this._client.get(`/v1/scoring-functions/${scoringFnId}`, options);
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -59,7 +59,9 @@ export namespace ScoringFnParams {
|
|
|
59
59
|
|
|
60
60
|
type: 'llm_as_judge';
|
|
61
61
|
|
|
62
|
-
aggregation_functions?: Array<
|
|
62
|
+
aggregation_functions?: Array<
|
|
63
|
+
'average' | 'weighted_average' | 'median' | 'categorical_count' | 'accuracy'
|
|
64
|
+
>;
|
|
63
65
|
|
|
64
66
|
judge_score_regexes?: Array<string>;
|
|
65
67
|
|
|
@@ -69,7 +71,9 @@ export namespace ScoringFnParams {
|
|
|
69
71
|
export interface RegexParserScoringFnParams {
|
|
70
72
|
type: 'regex_parser';
|
|
71
73
|
|
|
72
|
-
aggregation_functions?: Array<
|
|
74
|
+
aggregation_functions?: Array<
|
|
75
|
+
'average' | 'weighted_average' | 'median' | 'categorical_count' | 'accuracy'
|
|
76
|
+
>;
|
|
73
77
|
|
|
74
78
|
parsing_regexes?: Array<string>;
|
|
75
79
|
}
|
|
@@ -77,7 +81,9 @@ export namespace ScoringFnParams {
|
|
|
77
81
|
export interface BasicScoringFnParams {
|
|
78
82
|
type: 'basic';
|
|
79
83
|
|
|
80
|
-
aggregation_functions?: Array<
|
|
84
|
+
aggregation_functions?: Array<
|
|
85
|
+
'average' | 'weighted_average' | 'median' | 'categorical_count' | 'accuracy'
|
|
86
|
+
>;
|
|
81
87
|
}
|
|
82
88
|
}
|
|
83
89
|
|
package/src/resources/shared.ts
CHANGED
|
@@ -110,19 +110,9 @@ export namespace ChatCompletionResponse {
|
|
|
110
110
|
export interface Metric {
|
|
111
111
|
metric: string;
|
|
112
112
|
|
|
113
|
-
span_id: string;
|
|
114
|
-
|
|
115
|
-
timestamp: string;
|
|
116
|
-
|
|
117
|
-
trace_id: string;
|
|
118
|
-
|
|
119
|
-
type: 'metric';
|
|
120
|
-
|
|
121
|
-
unit: string;
|
|
122
|
-
|
|
123
113
|
value: number;
|
|
124
114
|
|
|
125
|
-
|
|
115
|
+
unit?: string;
|
|
126
116
|
}
|
|
127
117
|
}
|
|
128
118
|
|
|
@@ -180,9 +170,12 @@ export namespace ContentDelta {
|
|
|
180
170
|
}
|
|
181
171
|
}
|
|
182
172
|
|
|
173
|
+
/**
|
|
174
|
+
* A document to be used for document ingestion in the RAG Tool.
|
|
175
|
+
*/
|
|
183
176
|
export interface Document {
|
|
184
177
|
/**
|
|
185
|
-
*
|
|
178
|
+
* The content of the document.
|
|
186
179
|
*/
|
|
187
180
|
content:
|
|
188
181
|
| string
|
|
@@ -191,10 +184,19 @@ export interface Document {
|
|
|
191
184
|
| Array<InterleavedContentItem>
|
|
192
185
|
| Document.URL;
|
|
193
186
|
|
|
187
|
+
/**
|
|
188
|
+
* The unique identifier for the document.
|
|
189
|
+
*/
|
|
194
190
|
document_id: string;
|
|
195
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Additional metadata for the document.
|
|
194
|
+
*/
|
|
196
195
|
metadata: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
197
196
|
|
|
197
|
+
/**
|
|
198
|
+
* The MIME type of the document.
|
|
199
|
+
*/
|
|
198
200
|
mime_type?: string;
|
|
199
201
|
}
|
|
200
202
|
|
|
@@ -618,19 +620,23 @@ export interface SystemMessage {
|
|
|
618
620
|
}
|
|
619
621
|
|
|
620
622
|
export interface ToolCall {
|
|
621
|
-
arguments:
|
|
622
|
-
string,
|
|
623
|
+
arguments:
|
|
623
624
|
| string
|
|
624
|
-
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
625
|
+
| Record<
|
|
626
|
+
string,
|
|
627
|
+
| string
|
|
628
|
+
| number
|
|
629
|
+
| boolean
|
|
630
|
+
| Array<string | number | boolean | null>
|
|
631
|
+
| Record<string, string | number | boolean | null>
|
|
632
|
+
| null
|
|
633
|
+
>;
|
|
630
634
|
|
|
631
635
|
call_id: string;
|
|
632
636
|
|
|
633
637
|
tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
|
|
638
|
+
|
|
639
|
+
arguments_json?: string;
|
|
634
640
|
}
|
|
635
641
|
|
|
636
642
|
export type ToolCallOrString = string | ToolCall;
|
|
@@ -663,11 +669,6 @@ export interface ToolResponseMessage {
|
|
|
663
669
|
* Must be "tool" to identify this as a tool response
|
|
664
670
|
*/
|
|
665
671
|
role: 'tool';
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* Name of the tool that was called
|
|
669
|
-
*/
|
|
670
|
-
tool_name: 'brave_search' | 'wolfram_alpha' | 'photogen' | 'code_interpreter' | (string & {});
|
|
671
672
|
}
|
|
672
673
|
|
|
673
674
|
/**
|
package/src/resources/shields.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { APIResource } from '../resource';
|
|
|
4
4
|
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Shields extends APIResource {
|
|
7
|
-
retrieve(identifier: string, options?: Core.RequestOptions): Core.APIPromise<Shield
|
|
7
|
+
retrieve(identifier: string, options?: Core.RequestOptions): Core.APIPromise<Shield> {
|
|
8
8
|
return this._client.get(`/v1/shields/${identifier}`, options);
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -4,10 +4,7 @@ import { APIResource } from '../resource';
|
|
|
4
4
|
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class VectorDBs extends APIResource {
|
|
7
|
-
retrieve(
|
|
8
|
-
vectorDBId: string,
|
|
9
|
-
options?: Core.RequestOptions,
|
|
10
|
-
): Core.APIPromise<VectorDBRetrieveResponse | null> {
|
|
7
|
+
retrieve(vectorDBId: string, options?: Core.RequestOptions): Core.APIPromise<VectorDBRetrieveResponse> {
|
|
11
8
|
return this._client.get(`/v1/vector-dbs/${vectorDBId}`, options);
|
|
12
9
|
}
|
|
13
10
|
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.8';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.8";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.
|
|
1
|
+
export const VERSION = '0.1.8';
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/resources/datasetio.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Datasetio extends APIResource {
|
|
4
|
-
appendRows(body: DatasetioAppendRowsParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
5
|
-
/**
|
|
6
|
-
* Get a paginated list of rows from a dataset.
|
|
7
|
-
*/
|
|
8
|
-
getRowsPaginated(query: DatasetioGetRowsPaginatedParams, options?: Core.RequestOptions): Core.APIPromise<PaginatedRowsResult>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A paginated list of rows from a dataset.
|
|
12
|
-
*/
|
|
13
|
-
export interface PaginatedRowsResult {
|
|
14
|
-
/**
|
|
15
|
-
* The rows in the current page.
|
|
16
|
-
*/
|
|
17
|
-
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
18
|
-
/**
|
|
19
|
-
* The total number of rows in the dataset.
|
|
20
|
-
*/
|
|
21
|
-
total_count: number;
|
|
22
|
-
/**
|
|
23
|
-
* The token to get the next page of rows.
|
|
24
|
-
*/
|
|
25
|
-
next_page_token?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface DatasetioAppendRowsParams {
|
|
28
|
-
dataset_id: string;
|
|
29
|
-
rows: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
30
|
-
}
|
|
31
|
-
export interface DatasetioGetRowsPaginatedParams {
|
|
32
|
-
/**
|
|
33
|
-
* The ID of the dataset to get the rows from.
|
|
34
|
-
*/
|
|
35
|
-
dataset_id: string;
|
|
36
|
-
/**
|
|
37
|
-
* The number of rows to get per page.
|
|
38
|
-
*/
|
|
39
|
-
rows_in_page: number;
|
|
40
|
-
/**
|
|
41
|
-
* (Optional) A condition to filter the rows by.
|
|
42
|
-
*/
|
|
43
|
-
filter_condition?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The token to get the next page of rows.
|
|
46
|
-
*/
|
|
47
|
-
page_token?: string;
|
|
48
|
-
}
|
|
49
|
-
export declare namespace Datasetio {
|
|
50
|
-
export { type PaginatedRowsResult as PaginatedRowsResult, type DatasetioAppendRowsParams as DatasetioAppendRowsParams, type DatasetioGetRowsPaginatedParams as DatasetioGetRowsPaginatedParams, };
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=datasetio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datasetio.d.ts","sourceRoot":"","sources":["../src/resources/datasetio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,SAAU,SAAQ,WAAW;IACxC,UAAU,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQjG;;OAEG;IACH,gBAAgB,CACd,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAGxC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;IAEzF;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;CAC1F;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
package/resources/datasetio.js
DELETED
|
@@ -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"}
|
package/resources/datasetio.mjs
DELETED
|
@@ -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,21 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
import * as BenchmarksAPI from "./benchmarks.js";
|
|
4
|
-
export declare class EvalTasks extends APIResource {
|
|
5
|
-
retrieve(evalTaskId: string, options?: Core.RequestOptions): Core.APIPromise<BenchmarksAPI.Benchmark | null>;
|
|
6
|
-
list(options?: Core.RequestOptions): Core.APIPromise<BenchmarksAPI.BenchmarkListResponse>;
|
|
7
|
-
register(body: EvalTaskRegisterParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
8
|
-
}
|
|
9
|
-
export type EvalTaskListResponse = Array<BenchmarksAPI.Benchmark>;
|
|
10
|
-
export interface EvalTaskRegisterParams {
|
|
11
|
-
dataset_id: string;
|
|
12
|
-
eval_task_id: string;
|
|
13
|
-
scoring_functions: Array<string>;
|
|
14
|
-
metadata?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
15
|
-
provider_benchmark_id?: string;
|
|
16
|
-
provider_id?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare namespace EvalTasks {
|
|
19
|
-
export { type EvalTaskListResponse as EvalTaskListResponse, type EvalTaskRegisterParams as EvalTaskRegisterParams, };
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=eval-tasks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eval-tasks.d.ts","sourceRoot":"","sources":["../src/resources/eval-tasks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAE9C,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC;IAIlD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,CAAC;IAQzF,QAAQ,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAElE,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,MAAM,CAAC;IAErB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;IAEvF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/eval-tasks.js
DELETED
|
@@ -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.EvalTasks = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
class EvalTasks extends resource_1.APIResource {
|
|
7
|
-
retrieve(evalTaskId, options) {
|
|
8
|
-
return this._client.get(`/v1/eval-tasks/${evalTaskId}`, options);
|
|
9
|
-
}
|
|
10
|
-
list(options) {
|
|
11
|
-
return this._client.get('/v1/eval-tasks', options)._thenUnwrap((obj) => obj.data);
|
|
12
|
-
}
|
|
13
|
-
register(body, options) {
|
|
14
|
-
return this._client.post('/v1/eval-tasks', {
|
|
15
|
-
body,
|
|
16
|
-
...options,
|
|
17
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.EvalTasks = EvalTasks;
|
|
22
|
-
//# sourceMappingURL=eval-tasks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eval-tasks.js","sourceRoot":"","sources":["../src/resources/eval-tasks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,SAAU,SAAQ,sBAAW;IACxC,QAAQ,CACN,UAAkB,EAClB,OAA6B;QAE7B,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,CAG3C,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,IAA4B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,8BAuBC"}
|
package/resources/eval-tasks.mjs
DELETED
|
@@ -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 EvalTasks extends APIResource {
|
|
4
|
-
retrieve(evalTaskId, options) {
|
|
5
|
-
return this._client.get(`/v1/eval-tasks/${evalTaskId}`, options);
|
|
6
|
-
}
|
|
7
|
-
list(options) {
|
|
8
|
-
return this._client.get('/v1/eval-tasks', options)._thenUnwrap((obj) => obj.data);
|
|
9
|
-
}
|
|
10
|
-
register(body, options) {
|
|
11
|
-
return this._client.post('/v1/eval-tasks', {
|
|
12
|
-
body,
|
|
13
|
-
...options,
|
|
14
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=eval-tasks.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eval-tasks.mjs","sourceRoot":"","sources":["../src/resources/eval-tasks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC,QAAQ,CACN,UAAkB,EAClB,OAA6B;QAE7B,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,CAG3C,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,IAA4B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,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
|
-
}
|