openlayer 0.4.0 → 0.7.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 +35 -0
- package/README.md +6 -6
- package/index.d.mts +5 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/lib/core/openai-monitor.d.ts +3 -0
- 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 +2 -1
- package/resources/index.d.ts +2 -1
- 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 +1 -1
- package/resources/inference-pipelines/data.js +1 -1
- package/resources/inference-pipelines/data.mjs +1 -1
- package/resources/inference-pipelines/index.d.ts +1 -1
- 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 +161 -0
- package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.js +22 -0
- package/resources/inference-pipelines/inference-pipelines.js.map +1 -1
- package/resources/inference-pipelines/inference-pipelines.mjs +22 -0
- package/resources/inference-pipelines/inference-pipelines.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 +34 -0
- package/resources/storage/presigned-url.d.ts.map +1 -0
- package/resources/storage/presigned-url.js +18 -0
- package/resources/storage/presigned-url.js.map +1 -0
- package/resources/storage/presigned-url.mjs +14 -0
- package/resources/storage/presigned-url.mjs.map +1 -0
- package/resources/storage/storage.d.ts +11 -0
- package/resources/storage/storage.d.ts.map +1 -0
- package/resources/storage/storage.js +40 -0
- package/resources/storage/storage.js.map +1 -0
- package/resources/storage/storage.mjs +13 -0
- package/resources/storage/storage.mjs.map +1 -0
- package/src/index.ts +6 -0
- package/src/lib/core/openai-monitor.ts +7 -1
- 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/index.ts +7 -1
- package/src/resources/inference-pipelines/data.ts +1 -1
- package/src/resources/inference-pipelines/index.ts +6 -1
- package/src/resources/inference-pipelines/inference-pipelines.ts +227 -0
- package/src/resources/storage/index.ts +4 -0
- package/src/resources/storage/presigned-url.ts +47 -0
- package/src/resources/storage/storage.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/src/lib/.keep +0 -4
|
@@ -1,6 +1,9 @@
|
|
|
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';
|
|
6
|
+
import * as InferencePipelinesAPI from './inference-pipelines';
|
|
4
7
|
import * as DataAPI from './data';
|
|
5
8
|
import * as RowsAPI from './rows';
|
|
6
9
|
import * as TestResultsAPI from './test-results';
|
|
@@ -9,9 +12,233 @@ export class InferencePipelines extends APIResource {
|
|
|
9
12
|
data: DataAPI.Data = new DataAPI.Data(this._client);
|
|
10
13
|
rows: RowsAPI.Rows = new RowsAPI.Rows(this._client);
|
|
11
14
|
testResults: TestResultsAPI.TestResults = new TestResultsAPI.TestResults(this._client);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve inference pipeline.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(
|
|
20
|
+
inferencePipelineId: string,
|
|
21
|
+
options?: Core.RequestOptions,
|
|
22
|
+
): Core.APIPromise<InferencePipelineRetrieveResponse> {
|
|
23
|
+
return this._client.get(`/inference-pipelines/${inferencePipelineId}`, options);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Update inference pipeline.
|
|
28
|
+
*/
|
|
29
|
+
update(
|
|
30
|
+
inferencePipelineId: string,
|
|
31
|
+
body?: InferencePipelineUpdateParams,
|
|
32
|
+
options?: Core.RequestOptions,
|
|
33
|
+
): Core.APIPromise<InferencePipelineUpdateResponse>;
|
|
34
|
+
update(
|
|
35
|
+
inferencePipelineId: string,
|
|
36
|
+
options?: Core.RequestOptions,
|
|
37
|
+
): Core.APIPromise<InferencePipelineUpdateResponse>;
|
|
38
|
+
update(
|
|
39
|
+
inferencePipelineId: string,
|
|
40
|
+
body: InferencePipelineUpdateParams | Core.RequestOptions = {},
|
|
41
|
+
options?: Core.RequestOptions,
|
|
42
|
+
): Core.APIPromise<InferencePipelineUpdateResponse> {
|
|
43
|
+
if (isRequestOptions(body)) {
|
|
44
|
+
return this.update(inferencePipelineId, {}, body);
|
|
45
|
+
}
|
|
46
|
+
return this._client.put(`/inference-pipelines/${inferencePipelineId}`, { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Delete inference pipeline.
|
|
51
|
+
*/
|
|
52
|
+
delete(inferencePipelineId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
53
|
+
return this._client.delete(`/inference-pipelines/${inferencePipelineId}`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface InferencePipelineRetrieveResponse {
|
|
61
|
+
/**
|
|
62
|
+
* The inference pipeline id.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The creation date.
|
|
68
|
+
*/
|
|
69
|
+
dateCreated: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The last test evaluation date.
|
|
73
|
+
*/
|
|
74
|
+
dateLastEvaluated: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The last data sample received date.
|
|
78
|
+
*/
|
|
79
|
+
dateLastSampleReceived: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The next test evaluation date.
|
|
83
|
+
*/
|
|
84
|
+
dateOfNextEvaluation: string | null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The last updated date.
|
|
88
|
+
*/
|
|
89
|
+
dateUpdated: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The inference pipeline description.
|
|
93
|
+
*/
|
|
94
|
+
description: string | null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The number of tests failing.
|
|
98
|
+
*/
|
|
99
|
+
failingGoalCount: number;
|
|
100
|
+
|
|
101
|
+
links: InferencePipelineRetrieveResponse.Links;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The inference pipeline name.
|
|
105
|
+
*/
|
|
106
|
+
name: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The number of tests passing.
|
|
110
|
+
*/
|
|
111
|
+
passingGoalCount: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The project id.
|
|
115
|
+
*/
|
|
116
|
+
projectId: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The status of test evaluation for the inference pipeline.
|
|
120
|
+
*/
|
|
121
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The status message of test evaluation for the inference pipeline.
|
|
125
|
+
*/
|
|
126
|
+
statusMessage: string | null;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The total number of tests.
|
|
130
|
+
*/
|
|
131
|
+
totalGoalCount: number;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export namespace InferencePipelineRetrieveResponse {
|
|
135
|
+
export interface Links {
|
|
136
|
+
app: string;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface InferencePipelineUpdateResponse {
|
|
141
|
+
/**
|
|
142
|
+
* The inference pipeline id.
|
|
143
|
+
*/
|
|
144
|
+
id: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The creation date.
|
|
148
|
+
*/
|
|
149
|
+
dateCreated: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The last test evaluation date.
|
|
153
|
+
*/
|
|
154
|
+
dateLastEvaluated: string | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The last data sample received date.
|
|
158
|
+
*/
|
|
159
|
+
dateLastSampleReceived: string | null;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The next test evaluation date.
|
|
163
|
+
*/
|
|
164
|
+
dateOfNextEvaluation: string | null;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The last updated date.
|
|
168
|
+
*/
|
|
169
|
+
dateUpdated: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The inference pipeline description.
|
|
173
|
+
*/
|
|
174
|
+
description: string | null;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The number of tests failing.
|
|
178
|
+
*/
|
|
179
|
+
failingGoalCount: number;
|
|
180
|
+
|
|
181
|
+
links: InferencePipelineUpdateResponse.Links;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The inference pipeline name.
|
|
185
|
+
*/
|
|
186
|
+
name: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The number of tests passing.
|
|
190
|
+
*/
|
|
191
|
+
passingGoalCount: number;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The project id.
|
|
195
|
+
*/
|
|
196
|
+
projectId: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The status of test evaluation for the inference pipeline.
|
|
200
|
+
*/
|
|
201
|
+
status: 'queued' | 'running' | 'paused' | 'failed' | 'completed' | 'unknown';
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The status message of test evaluation for the inference pipeline.
|
|
205
|
+
*/
|
|
206
|
+
statusMessage: string | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The total number of tests.
|
|
210
|
+
*/
|
|
211
|
+
totalGoalCount: number;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export namespace InferencePipelineUpdateResponse {
|
|
215
|
+
export interface Links {
|
|
216
|
+
app: string;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface InferencePipelineUpdateParams {
|
|
221
|
+
/**
|
|
222
|
+
* The inference pipeline description.
|
|
223
|
+
*/
|
|
224
|
+
description?: string | null;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The inference pipeline name.
|
|
228
|
+
*/
|
|
229
|
+
name?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The storage uri of your reference dataset. We recommend using the Python SDK or
|
|
233
|
+
* the UI to handle your reference dataset updates.
|
|
234
|
+
*/
|
|
235
|
+
referenceDatasetUri?: string | null;
|
|
12
236
|
}
|
|
13
237
|
|
|
14
238
|
export namespace InferencePipelines {
|
|
239
|
+
export import InferencePipelineRetrieveResponse = InferencePipelinesAPI.InferencePipelineRetrieveResponse;
|
|
240
|
+
export import InferencePipelineUpdateResponse = InferencePipelinesAPI.InferencePipelineUpdateResponse;
|
|
241
|
+
export import InferencePipelineUpdateParams = InferencePipelinesAPI.InferencePipelineUpdateParams;
|
|
15
242
|
export import Data = DataAPI.Data;
|
|
16
243
|
export import DataStreamResponse = DataAPI.DataStreamResponse;
|
|
17
244
|
export import DataStreamParams = DataAPI.DataStreamParams;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import * as PresignedURLAPI from './presigned-url';
|
|
6
|
+
|
|
7
|
+
export class PresignedURL extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a presigned url to post storage artifacts.
|
|
10
|
+
*/
|
|
11
|
+
create(
|
|
12
|
+
params: PresignedURLCreateParams,
|
|
13
|
+
options?: Core.RequestOptions,
|
|
14
|
+
): Core.APIPromise<PresignedURLCreateResponse> {
|
|
15
|
+
const { objectName } = params;
|
|
16
|
+
return this._client.post('/storage/presigned-url', { query: { objectName }, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface PresignedURLCreateResponse {
|
|
21
|
+
/**
|
|
22
|
+
* The storage URI to send back to the backend after the upload was completed.
|
|
23
|
+
*/
|
|
24
|
+
storageUri: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The presigned url.
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Fields to include in the body of the upload. Only needed by s3.
|
|
33
|
+
*/
|
|
34
|
+
fields?: unknown;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface PresignedURLCreateParams {
|
|
38
|
+
/**
|
|
39
|
+
* The name of the object.
|
|
40
|
+
*/
|
|
41
|
+
objectName: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export namespace PresignedURL {
|
|
45
|
+
export import PresignedURLCreateResponse = PresignedURLAPI.PresignedURLCreateResponse;
|
|
46
|
+
export import PresignedURLCreateParams = PresignedURLAPI.PresignedURLCreateParams;
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as PresignedURLAPI from './presigned-url';
|
|
5
|
+
|
|
6
|
+
export class Storage extends APIResource {
|
|
7
|
+
presignedURL: PresignedURLAPI.PresignedURL = new PresignedURLAPI.PresignedURL(this._client);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Storage {
|
|
11
|
+
export import PresignedURL = PresignedURLAPI.PresignedURL;
|
|
12
|
+
export import PresignedURLCreateResponse = PresignedURLAPI.PresignedURLCreateResponse;
|
|
13
|
+
export import PresignedURLCreateParams = PresignedURLAPI.PresignedURLCreateParams;
|
|
14
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.7.0";
|
|
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
|
+
export const VERSION = '0.7.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/src/lib/.keep
DELETED