openlayer 0.4.0 → 0.8.0
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/CHANGELOG.md +78 -0
- package/README.md +56 -46
- package/_shims/node-runtime.d.ts.map +1 -1
- package/_shims/node-runtime.js +2 -3
- package/_shims/node-runtime.js.map +1 -1
- package/_shims/node-runtime.mjs +1 -1
- package/_shims/node-runtime.mjs.map +1 -1
- package/_shims/node-types.d.ts +1 -1
- package/core.d.ts +9 -6
- package/core.d.ts.map +1 -1
- package/core.js +31 -9
- package/core.js.map +1 -1
- package/core.mjs +28 -7
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -1
- package/error.d.ts.map +1 -1
- package/error.js +1 -1
- package/error.js.map +1 -1
- package/error.mjs +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +15 -13
- package/index.d.ts +15 -13
- package/index.d.ts.map +1 -1
- package/index.js +29 -10
- package/index.js.map +1 -1
- package/index.mjs +13 -9
- package/index.mjs.map +1 -1
- package/lib/core/openai-monitor.d.ts +6 -3
- package/lib/core/openai-monitor.d.ts.map +1 -1
- package/lib/core/openai-monitor.js +7 -1
- package/lib/core/openai-monitor.js.map +1 -1
- package/lib/core/openai-monitor.mjs +4 -1
- package/lib/core/openai-monitor.mjs.map +1 -1
- package/lib/integrations/langchainCallback.d.ts +33 -0
- package/lib/integrations/langchainCallback.d.ts.map +1 -0
- package/lib/integrations/langchainCallback.js +114 -0
- package/lib/integrations/langchainCallback.js.map +1 -0
- package/lib/integrations/langchainCallback.mjs +110 -0
- package/lib/integrations/langchainCallback.mjs.map +1 -0
- package/lib/integrations/openAiTracer.d.ts +3 -0
- package/lib/integrations/openAiTracer.d.ts.map +1 -0
- package/lib/integrations/openAiTracer.js +125 -0
- package/lib/integrations/openAiTracer.js.map +1 -0
- package/lib/integrations/openAiTracer.mjs +121 -0
- package/lib/integrations/openAiTracer.mjs.map +1 -0
- package/lib/tracing/enums.d.ts +5 -0
- package/lib/tracing/enums.d.ts.map +1 -0
- package/lib/tracing/enums.js +9 -0
- package/lib/tracing/enums.js.map +1 -0
- package/lib/tracing/enums.mjs +6 -0
- package/lib/tracing/enums.mjs.map +1 -0
- package/lib/tracing/steps.d.ts +57 -0
- package/lib/tracing/steps.d.ts.map +1 -0
- package/lib/tracing/steps.js +84 -0
- package/lib/tracing/steps.js.map +1 -0
- package/lib/tracing/steps.mjs +78 -0
- package/lib/tracing/steps.mjs.map +1 -0
- package/lib/tracing/tracer.d.ts +18 -0
- package/lib/tracing/tracer.d.ts.map +1 -0
- package/lib/tracing/tracer.js +155 -0
- package/lib/tracing/tracer.js.map +1 -0
- package/lib/tracing/tracer.mjs +148 -0
- package/lib/tracing/tracer.mjs.map +1 -0
- package/lib/tracing/traces.d.ts +9 -0
- package/lib/tracing/traces.d.ts.map +1 -0
- package/lib/tracing/traces.js +17 -0
- package/lib/tracing/traces.js.map +1 -0
- package/lib/tracing/traces.mjs +13 -0
- package/lib/tracing/traces.mjs.map +1 -0
- package/package.json +4 -3
- package/resources/commits/commits.d.ts +2 -3
- package/resources/commits/commits.d.ts.map +1 -1
- package/resources/commits/commits.js +2 -3
- package/resources/commits/commits.js.map +1 -1
- package/resources/commits/commits.mjs +2 -3
- package/resources/commits/commits.mjs.map +1 -1
- package/resources/commits/index.d.ts +1 -1
- package/resources/commits/index.d.ts.map +1 -1
- package/resources/commits/index.js.map +1 -1
- package/resources/commits/index.mjs.map +1 -1
- package/resources/commits/test-results.d.ts +1 -22
- package/resources/commits/test-results.d.ts.map +1 -1
- package/resources/commits/test-results.js +0 -2
- package/resources/commits/test-results.js.map +1 -1
- package/resources/commits/test-results.mjs +0 -2
- package/resources/commits/test-results.mjs.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference-pipelines/data.d.ts +2 -4
- package/resources/inference-pipelines/data.d.ts.map +1 -1
- package/resources/inference-pipelines/data.js +1 -3
- package/resources/inference-pipelines/data.js.map +1 -1
- package/resources/inference-pipelines/data.mjs +1 -3
- package/resources/inference-pipelines/data.mjs.map +1 -1
- package/resources/inference-pipelines/index.d.ts +4 -4
- package/resources/inference-pipelines/index.d.ts.map +1 -1
- package/resources/inference-pipelines/index.js.map +1 -1
- package/resources/inference-pipelines/index.mjs +1 -1
- package/resources/inference-pipelines/index.mjs.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.d.ts +164 -9
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +28 -5
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +28 -5
- package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -1
- package/resources/inference-pipelines/rows.d.ts +1 -3
- package/resources/inference-pipelines/rows.d.ts.map +1 -1
- package/resources/inference-pipelines/rows.js +0 -2
- package/resources/inference-pipelines/rows.js.map +1 -1
- package/resources/inference-pipelines/rows.mjs +0 -2
- package/resources/inference-pipelines/rows.mjs.map +1 -1
- package/resources/inference-pipelines/test-results.d.ts +1 -22
- package/resources/inference-pipelines/test-results.d.ts.map +1 -1
- package/resources/inference-pipelines/test-results.js +0 -2
- package/resources/inference-pipelines/test-results.js.map +1 -1
- package/resources/inference-pipelines/test-results.mjs +0 -2
- package/resources/inference-pipelines/test-results.mjs.map +1 -1
- package/resources/projects/commits.d.ts +150 -16
- package/resources/projects/commits.d.ts.map +1 -1
- package/resources/projects/commits.js +6 -2
- package/resources/projects/commits.js.map +1 -1
- package/resources/projects/commits.mjs +6 -2
- package/resources/projects/commits.mjs.map +1 -1
- package/resources/projects/index.d.ts +3 -3
- package/resources/projects/index.d.ts.map +1 -1
- package/resources/projects/index.js.map +1 -1
- package/resources/projects/index.mjs +1 -1
- package/resources/projects/index.mjs.map +1 -1
- package/resources/projects/inference-pipelines.d.ts +1 -24
- package/resources/projects/inference-pipelines.d.ts.map +1 -1
- package/resources/projects/inference-pipelines.js +0 -2
- package/resources/projects/inference-pipelines.js.map +1 -1
- package/resources/projects/inference-pipelines.mjs +0 -2
- package/resources/projects/inference-pipelines.mjs.map +1 -1
- package/resources/projects/projects.d.ts +5 -32
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +4 -4
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +4 -4
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/storage/index.d.ts +3 -0
- package/resources/storage/index.d.ts.map +1 -0
- package/resources/storage/index.js +9 -0
- package/resources/storage/index.js.map +1 -0
- package/resources/storage/index.mjs +4 -0
- package/resources/storage/index.mjs.map +1 -0
- package/resources/storage/presigned-url.d.ts +32 -0
- package/resources/storage/presigned-url.d.ts.map +1 -0
- package/resources/storage/presigned-url.js +16 -0
- package/resources/storage/presigned-url.js.map +1 -0
- package/resources/storage/presigned-url.mjs +12 -0
- package/resources/storage/presigned-url.mjs.map +1 -0
- package/resources/storage/storage.d.ts +10 -0
- package/resources/storage/storage.d.ts.map +1 -0
- package/resources/storage/storage.js +39 -0
- package/resources/storage/storage.js.map +1 -0
- package/resources/storage/storage.mjs +12 -0
- package/resources/storage/storage.mjs.map +1 -0
- package/shims/node.d.ts +1 -0
- package/shims/node.d.ts.map +1 -1
- package/src/_shims/node-runtime.ts +1 -3
- package/src/_shims/node-types.d.ts +1 -1
- package/src/core.ts +44 -13
- package/src/error.ts +3 -3
- package/src/index.ts +49 -21
- package/src/lib/core/openai-monitor.ts +10 -4
- package/src/lib/index.d.ts +1 -0
- package/src/lib/integrations/langchainCallback.ts +141 -0
- package/src/lib/integrations/openAiTracer.ts +137 -0
- package/src/lib/tracing/enums.ts +4 -0
- package/src/lib/tracing/index.d.ts +1 -0
- package/src/lib/tracing/steps.ts +118 -0
- package/src/lib/tracing/tracer.ts +204 -0
- package/src/lib/tracing/traces.ts +19 -0
- package/src/resources/commits/commits.ts +9 -4
- package/src/resources/commits/index.ts +1 -1
- package/src/resources/commits/test-results.ts +5 -28
- package/src/resources/index.ts +11 -5
- package/src/resources/inference-pipelines/data.ts +3 -5
- package/src/resources/inference-pipelines/index.ts +9 -4
- package/src/resources/inference-pipelines/inference-pipelines.ts +254 -10
- package/src/resources/inference-pipelines/rows.ts +2 -4
- package/src/resources/inference-pipelines/test-results.ts +5 -28
- package/src/resources/projects/commits.ts +192 -17
- package/src/resources/projects/index.ts +15 -9
- package/src/resources/projects/inference-pipelines.ts +7 -30
- package/src/resources/projects/projects.ts +40 -38
- package/src/resources/storage/index.ts +8 -0
- package/src/resources/storage/presigned-url.ts +48 -0
- package/src/resources/storage/storage.ts +19 -0
- package/src/uploads.ts +11 -4
- package/src/version.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +10 -4
- package/uploads.js.map +1 -1
- package/uploads.mjs +10 -4
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/src/lib/.keep +0 -4
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
-
import * as TestResultsAPI from './test-results';
|
|
7
6
|
|
|
8
7
|
export class TestResults extends APIResource {
|
|
9
8
|
/**
|
|
@@ -28,34 +27,10 @@ export class TestResults extends APIResource {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export interface TestResultListResponse {
|
|
31
|
-
_meta: TestResultListResponse._Meta;
|
|
32
|
-
|
|
33
30
|
items: Array<TestResultListResponse.Item>;
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
export namespace TestResultListResponse {
|
|
37
|
-
export interface _Meta {
|
|
38
|
-
/**
|
|
39
|
-
* The current page.
|
|
40
|
-
*/
|
|
41
|
-
page: number;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The number of items per page.
|
|
45
|
-
*/
|
|
46
|
-
perPage: number;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The total number of items.
|
|
50
|
-
*/
|
|
51
|
-
totalItems: number;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The total number of pages.
|
|
55
|
-
*/
|
|
56
|
-
totalPages: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
34
|
export interface Item {
|
|
60
35
|
/**
|
|
61
36
|
* Project version (commit) id.
|
|
@@ -278,7 +253,9 @@ export interface TestResultListParams {
|
|
|
278
253
|
type?: 'integrity' | 'consistency' | 'performance' | 'fairness' | 'robustness';
|
|
279
254
|
}
|
|
280
255
|
|
|
281
|
-
export namespace TestResults {
|
|
282
|
-
export
|
|
283
|
-
|
|
256
|
+
export declare namespace TestResults {
|
|
257
|
+
export {
|
|
258
|
+
type TestResultListResponse as TestResultListResponse,
|
|
259
|
+
type TestResultListParams as TestResultListParams,
|
|
260
|
+
};
|
|
284
261
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Commits } from './commits/commits';
|
|
4
|
-
export { InferencePipelines } from './inference-pipelines/inference-pipelines';
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
InferencePipelines,
|
|
6
|
+
type InferencePipelineRetrieveResponse,
|
|
7
|
+
type InferencePipelineUpdateResponse,
|
|
8
|
+
type InferencePipelineUpdateParams,
|
|
9
|
+
} from './inference-pipelines/inference-pipelines';
|
|
10
|
+
export {
|
|
10
11
|
Projects,
|
|
12
|
+
type ProjectCreateResponse,
|
|
13
|
+
type ProjectListResponse,
|
|
14
|
+
type ProjectCreateParams,
|
|
15
|
+
type ProjectListParams,
|
|
11
16
|
} from './projects/projects';
|
|
17
|
+
export { Storage } from './storage/storage';
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as DataAPI from './data';
|
|
6
5
|
|
|
7
6
|
export class Data extends APIResource {
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
8
|
+
* Publish an inference data point to an inference pipeline.
|
|
10
9
|
*/
|
|
11
10
|
stream(
|
|
12
11
|
inferencePipelineId: string,
|
|
@@ -279,7 +278,6 @@ export namespace DataStreamParams {
|
|
|
279
278
|
}
|
|
280
279
|
}
|
|
281
280
|
|
|
282
|
-
export namespace Data {
|
|
283
|
-
export
|
|
284
|
-
export import DataStreamParams = DataAPI.DataStreamParams;
|
|
281
|
+
export declare namespace Data {
|
|
282
|
+
export { type DataStreamResponse as DataStreamResponse, type DataStreamParams as DataStreamParams };
|
|
285
283
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { DataStreamResponse, DataStreamParams
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export { Data, type DataStreamResponse, type DataStreamParams } from './data';
|
|
4
|
+
export {
|
|
5
|
+
InferencePipelines,
|
|
6
|
+
type InferencePipelineRetrieveResponse,
|
|
7
|
+
type InferencePipelineUpdateResponse,
|
|
8
|
+
type InferencePipelineUpdateParams,
|
|
9
|
+
} from './inference-pipelines';
|
|
10
|
+
export { Rows, type RowUpdateResponse, type RowUpdateParams } from './rows';
|
|
11
|
+
export { TestResults, type TestResultListResponse, type TestResultListParams } from './test-results';
|
|
@@ -1,24 +1,268 @@
|
|
|
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';
|
|
5
|
+
import * as Core from '../../core';
|
|
4
6
|
import * as DataAPI from './data';
|
|
7
|
+
import { Data, DataStreamParams, DataStreamResponse } from './data';
|
|
5
8
|
import * as RowsAPI from './rows';
|
|
9
|
+
import { RowUpdateParams, RowUpdateResponse, Rows } from './rows';
|
|
6
10
|
import * as TestResultsAPI from './test-results';
|
|
11
|
+
import { TestResultListParams, TestResultListResponse, TestResults } from './test-results';
|
|
7
12
|
|
|
8
13
|
export class InferencePipelines extends APIResource {
|
|
9
14
|
data: DataAPI.Data = new DataAPI.Data(this._client);
|
|
10
15
|
rows: RowsAPI.Rows = new RowsAPI.Rows(this._client);
|
|
11
16
|
testResults: TestResultsAPI.TestResults = new TestResultsAPI.TestResults(this._client);
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve inference pipeline.
|
|
20
|
+
*/
|
|
21
|
+
retrieve(
|
|
22
|
+
inferencePipelineId: string,
|
|
23
|
+
options?: Core.RequestOptions,
|
|
24
|
+
): Core.APIPromise<InferencePipelineRetrieveResponse> {
|
|
25
|
+
return this._client.get(`/inference-pipelines/${inferencePipelineId}`, options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Update inference pipeline.
|
|
30
|
+
*/
|
|
31
|
+
update(
|
|
32
|
+
inferencePipelineId: string,
|
|
33
|
+
body?: InferencePipelineUpdateParams,
|
|
34
|
+
options?: Core.RequestOptions,
|
|
35
|
+
): Core.APIPromise<InferencePipelineUpdateResponse>;
|
|
36
|
+
update(
|
|
37
|
+
inferencePipelineId: string,
|
|
38
|
+
options?: Core.RequestOptions,
|
|
39
|
+
): Core.APIPromise<InferencePipelineUpdateResponse>;
|
|
40
|
+
update(
|
|
41
|
+
inferencePipelineId: string,
|
|
42
|
+
body: InferencePipelineUpdateParams | Core.RequestOptions = {},
|
|
43
|
+
options?: Core.RequestOptions,
|
|
44
|
+
): Core.APIPromise<InferencePipelineUpdateResponse> {
|
|
45
|
+
if (isRequestOptions(body)) {
|
|
46
|
+
return this.update(inferencePipelineId, {}, body);
|
|
47
|
+
}
|
|
48
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}`, { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Delete inference pipeline.
|
|
53
|
+
*/
|
|
54
|
+
delete(inferencePipelineId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
55
|
+
return this._client.delete(`/inference-pipelines/${inferencePipelineId}`, {
|
|
56
|
+
...options,
|
|
57
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface InferencePipelineRetrieveResponse {
|
|
63
|
+
/**
|
|
64
|
+
* The inference pipeline id.
|
|
65
|
+
*/
|
|
66
|
+
id: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The creation date.
|
|
70
|
+
*/
|
|
71
|
+
dateCreated: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The last test evaluation date.
|
|
75
|
+
*/
|
|
76
|
+
dateLastEvaluated: string | null;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The last data sample received date.
|
|
80
|
+
*/
|
|
81
|
+
dateLastSampleReceived: string | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The next test evaluation date.
|
|
85
|
+
*/
|
|
86
|
+
dateOfNextEvaluation: string | null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The last updated date.
|
|
90
|
+
*/
|
|
91
|
+
dateUpdated: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The inference pipeline description.
|
|
95
|
+
*/
|
|
96
|
+
description: string | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The number of tests failing.
|
|
100
|
+
*/
|
|
101
|
+
failingGoalCount: number;
|
|
102
|
+
|
|
103
|
+
links: InferencePipelineRetrieveResponse.Links;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The inference pipeline name.
|
|
107
|
+
*/
|
|
108
|
+
name: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The number of tests passing.
|
|
112
|
+
*/
|
|
113
|
+
passingGoalCount: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The project id.
|
|
117
|
+
*/
|
|
118
|
+
projectId: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The status of test evaluation for the inference pipeline.
|
|
122
|
+
*/
|
|
123
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The status message of test evaluation for the inference pipeline.
|
|
127
|
+
*/
|
|
128
|
+
statusMessage: string | null;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The total number of tests.
|
|
132
|
+
*/
|
|
133
|
+
totalGoalCount: number;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export namespace InferencePipelineRetrieveResponse {
|
|
137
|
+
export interface Links {
|
|
138
|
+
app: string;
|
|
139
|
+
}
|
|
12
140
|
}
|
|
13
141
|
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
142
|
+
export interface InferencePipelineUpdateResponse {
|
|
143
|
+
/**
|
|
144
|
+
* The inference pipeline id.
|
|
145
|
+
*/
|
|
146
|
+
id: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The creation date.
|
|
150
|
+
*/
|
|
151
|
+
dateCreated: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The last test evaluation date.
|
|
155
|
+
*/
|
|
156
|
+
dateLastEvaluated: string | null;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The last data sample received date.
|
|
160
|
+
*/
|
|
161
|
+
dateLastSampleReceived: string | null;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The next test evaluation date.
|
|
165
|
+
*/
|
|
166
|
+
dateOfNextEvaluation: string | null;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The last updated date.
|
|
170
|
+
*/
|
|
171
|
+
dateUpdated: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The inference pipeline description.
|
|
175
|
+
*/
|
|
176
|
+
description: string | null;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The number of tests failing.
|
|
180
|
+
*/
|
|
181
|
+
failingGoalCount: number;
|
|
182
|
+
|
|
183
|
+
links: InferencePipelineUpdateResponse.Links;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The inference pipeline name.
|
|
187
|
+
*/
|
|
188
|
+
name: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The number of tests passing.
|
|
192
|
+
*/
|
|
193
|
+
passingGoalCount: number;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The project id.
|
|
197
|
+
*/
|
|
198
|
+
projectId: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The status of test evaluation for the inference pipeline.
|
|
202
|
+
*/
|
|
203
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The status message of test evaluation for the inference pipeline.
|
|
207
|
+
*/
|
|
208
|
+
statusMessage: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The total number of tests.
|
|
212
|
+
*/
|
|
213
|
+
totalGoalCount: number;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export namespace InferencePipelineUpdateResponse {
|
|
217
|
+
export interface Links {
|
|
218
|
+
app: string;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface InferencePipelineUpdateParams {
|
|
223
|
+
/**
|
|
224
|
+
* The inference pipeline description.
|
|
225
|
+
*/
|
|
226
|
+
description?: string | null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* The inference pipeline name.
|
|
230
|
+
*/
|
|
231
|
+
name?: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The storage uri of your reference dataset. We recommend using the Python SDK or
|
|
235
|
+
* the UI to handle your reference dataset updates.
|
|
236
|
+
*/
|
|
237
|
+
referenceDatasetUri?: string | null;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
InferencePipelines.Data = Data;
|
|
241
|
+
InferencePipelines.Rows = Rows;
|
|
242
|
+
InferencePipelines.TestResults = TestResults;
|
|
243
|
+
|
|
244
|
+
export declare namespace InferencePipelines {
|
|
245
|
+
export {
|
|
246
|
+
type InferencePipelineRetrieveResponse as InferencePipelineRetrieveResponse,
|
|
247
|
+
type InferencePipelineUpdateResponse as InferencePipelineUpdateResponse,
|
|
248
|
+
type InferencePipelineUpdateParams as InferencePipelineUpdateParams,
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export {
|
|
252
|
+
Data as Data,
|
|
253
|
+
type DataStreamResponse as DataStreamResponse,
|
|
254
|
+
type DataStreamParams as DataStreamParams,
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export {
|
|
258
|
+
Rows as Rows,
|
|
259
|
+
type RowUpdateResponse as RowUpdateResponse,
|
|
260
|
+
type RowUpdateParams as RowUpdateParams,
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export {
|
|
264
|
+
TestResults as TestResults,
|
|
265
|
+
type TestResultListResponse as TestResultListResponse,
|
|
266
|
+
type TestResultListParams as TestResultListParams,
|
|
267
|
+
};
|
|
24
268
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as RowsAPI from './rows';
|
|
6
5
|
|
|
7
6
|
export class Rows extends APIResource {
|
|
8
7
|
/**
|
|
@@ -75,7 +74,6 @@ export namespace RowUpdateParams {
|
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
export namespace Rows {
|
|
79
|
-
export
|
|
80
|
-
export import RowUpdateParams = RowsAPI.RowUpdateParams;
|
|
77
|
+
export declare namespace Rows {
|
|
78
|
+
export { type RowUpdateResponse as RowUpdateResponse, type RowUpdateParams as RowUpdateParams };
|
|
81
79
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
-
import * as TestResultsAPI from './test-results';
|
|
7
6
|
|
|
8
7
|
export class TestResults extends APIResource {
|
|
9
8
|
/**
|
|
@@ -28,34 +27,10 @@ export class TestResults extends APIResource {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
export interface TestResultListResponse {
|
|
31
|
-
_meta: TestResultListResponse._Meta;
|
|
32
|
-
|
|
33
30
|
items: Array<TestResultListResponse.Item>;
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
export namespace TestResultListResponse {
|
|
37
|
-
export interface _Meta {
|
|
38
|
-
/**
|
|
39
|
-
* The current page.
|
|
40
|
-
*/
|
|
41
|
-
page: number;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The number of items per page.
|
|
45
|
-
*/
|
|
46
|
-
perPage: number;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The total number of items.
|
|
50
|
-
*/
|
|
51
|
-
totalItems: number;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The total number of pages.
|
|
55
|
-
*/
|
|
56
|
-
totalPages: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
34
|
export interface Item {
|
|
60
35
|
/**
|
|
61
36
|
* Project version (commit) id.
|
|
@@ -273,7 +248,9 @@ export interface TestResultListParams {
|
|
|
273
248
|
type?: 'integrity' | 'consistency' | 'performance' | 'fairness' | 'robustness';
|
|
274
249
|
}
|
|
275
250
|
|
|
276
|
-
export namespace TestResults {
|
|
277
|
-
export
|
|
278
|
-
|
|
251
|
+
export declare namespace TestResults {
|
|
252
|
+
export {
|
|
253
|
+
type TestResultListResponse as TestResultListResponse,
|
|
254
|
+
type TestResultListParams as TestResultListParams,
|
|
255
|
+
};
|
|
279
256
|
}
|