openlayer 0.20.0 → 0.20.2
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 +17 -0
- package/LICENSE +1 -1
- package/README.md +54 -23
- package/package.json +4 -4
- package/resources/inference-pipelines/rows.d.mts +4 -1
- package/resources/inference-pipelines/rows.d.mts.map +1 -1
- package/resources/inference-pipelines/rows.d.ts +4 -1
- package/resources/inference-pipelines/rows.d.ts.map +1 -1
- package/resources/inference-pipelines/rows.js +4 -1
- package/resources/inference-pipelines/rows.js.map +1 -1
- package/resources/inference-pipelines/rows.mjs +4 -1
- package/resources/inference-pipelines/rows.mjs.map +1 -1
- package/src/resources/inference-pipelines/rows.ts +4 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.2 (2026-01-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.20.1...v0.20.2](https://github.com/openlayer-ai/openlayer-ts/compare/v0.20.1...v0.20.2)
|
|
6
|
+
|
|
7
|
+
### Chores
|
|
8
|
+
|
|
9
|
+
* break long lines in snippets into multiline ([4c24061](https://github.com/openlayer-ai/openlayer-ts/commit/4c240611be2fe2745735b9724c879491da7c785c))
|
|
10
|
+
|
|
11
|
+
## 0.20.1 (2026-01-06)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.20.0...v0.20.1](https://github.com/openlayer-ai/openlayer-ts/compare/v0.20.0...v0.20.1)
|
|
14
|
+
|
|
15
|
+
### Chores
|
|
16
|
+
|
|
17
|
+
* **closes OPEN-8613:** https://github.com/openlayer-ai/openlayer-ts/security/dependabot/31 ([7d92610](https://github.com/openlayer-ai/openlayer-ts/commit/7d92610c4aa163a5567fa48c20a66e5a00dc42f3))
|
|
18
|
+
* **internal:** codegen related update ([7c3c9f9](https://github.com/openlayer-ai/openlayer-ts/commit/7c3c9f9f6ff1eb8f87d2ec3a450fef53522a735e))
|
|
19
|
+
|
|
3
20
|
## 0.20.0 (2025-12-17)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v0.19.0...v0.20.0](https://github.com/openlayer-ai/openlayer-ts/compare/v0.19.0...v0.20.0)
|
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 Openlayer
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -26,24 +26,27 @@ const client = new Openlayer({
|
|
|
26
26
|
apiKey: process.env['OPENLAYER_API_KEY'], // This is the default and can be omitted
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
const response = await client.inferencePipelines.data.stream(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
user_query: 'what is the meaning of life?',
|
|
40
|
-
output: '42',
|
|
41
|
-
tokens: 7,
|
|
42
|
-
cost: 0.02,
|
|
43
|
-
timestamp: 1610000000,
|
|
29
|
+
const response = await client.inferencePipelines.data.stream(
|
|
30
|
+
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
31
|
+
{
|
|
32
|
+
config: {
|
|
33
|
+
inputVariableNames: ['user_query'],
|
|
34
|
+
outputColumnName: 'output',
|
|
35
|
+
numOfTokenColumnName: 'tokens',
|
|
36
|
+
costColumnName: 'cost',
|
|
37
|
+
timestampColumnName: 'timestamp',
|
|
44
38
|
},
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
rows: [
|
|
40
|
+
{
|
|
41
|
+
user_query: 'what is the meaning of life?',
|
|
42
|
+
output: '42',
|
|
43
|
+
tokens: 7,
|
|
44
|
+
cost: 0.02,
|
|
45
|
+
timestamp: 1610000000,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
);
|
|
47
50
|
|
|
48
51
|
console.log(response.success);
|
|
49
52
|
```
|
|
@@ -78,10 +81,8 @@ const params: Openlayer.InferencePipelines.DataStreamParams = {
|
|
|
78
81
|
},
|
|
79
82
|
],
|
|
80
83
|
};
|
|
81
|
-
const response: Openlayer.InferencePipelines.DataStreamResponse =
|
|
82
|
-
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
83
|
-
params,
|
|
84
|
-
);
|
|
84
|
+
const response: Openlayer.InferencePipelines.DataStreamResponse =
|
|
85
|
+
await client.inferencePipelines.data.stream('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', params);
|
|
85
86
|
```
|
|
86
87
|
|
|
87
88
|
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
@@ -153,7 +154,22 @@ const client = new Openlayer({
|
|
|
153
154
|
});
|
|
154
155
|
|
|
155
156
|
// Or, configure per-request:
|
|
156
|
-
await client.inferencePipelines.data.stream('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
|
|
157
|
+
await client.inferencePipelines.data.stream('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
|
|
158
|
+
config: {
|
|
159
|
+
inputVariableNames: ['user_query'],
|
|
160
|
+
outputColumnName: 'output',
|
|
161
|
+
numOfTokenColumnName: 'tokens',
|
|
162
|
+
costColumnName: 'cost',
|
|
163
|
+
timestampColumnName: 'timestamp',
|
|
164
|
+
},
|
|
165
|
+
rows: [{
|
|
166
|
+
user_query: 'what is the meaning of life?',
|
|
167
|
+
output: '42',
|
|
168
|
+
tokens: 7,
|
|
169
|
+
cost: 0.02,
|
|
170
|
+
timestamp: 1610000000,
|
|
171
|
+
}],
|
|
172
|
+
}, {
|
|
157
173
|
maxRetries: 5,
|
|
158
174
|
});
|
|
159
175
|
```
|
|
@@ -170,7 +186,22 @@ const client = new Openlayer({
|
|
|
170
186
|
});
|
|
171
187
|
|
|
172
188
|
// Override per-request:
|
|
173
|
-
await client.inferencePipelines.data.stream('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
|
|
189
|
+
await client.inferencePipelines.data.stream('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
|
|
190
|
+
config: {
|
|
191
|
+
inputVariableNames: ['user_query'],
|
|
192
|
+
outputColumnName: 'output',
|
|
193
|
+
numOfTokenColumnName: 'tokens',
|
|
194
|
+
costColumnName: 'cost',
|
|
195
|
+
timestampColumnName: 'timestamp',
|
|
196
|
+
},
|
|
197
|
+
rows: [{
|
|
198
|
+
user_query: 'what is the meaning of life?',
|
|
199
|
+
output: '42',
|
|
200
|
+
tokens: 7,
|
|
201
|
+
cost: 0.02,
|
|
202
|
+
timestamp: 1610000000,
|
|
203
|
+
}],
|
|
204
|
+
}, {
|
|
174
205
|
timeout: 5 * 1000,
|
|
175
206
|
});
|
|
176
207
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openlayer",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"description": "The official TypeScript library for the Openlayer API",
|
|
5
5
|
"author": "Openlayer <support@openlayer.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/client-bedrock-agent-runtime": "^3.862.0",
|
|
29
|
-
"@langchain/community": "^0.3.
|
|
30
|
-
"@langchain/core": "^0.3.
|
|
31
|
-
"@langchain/langgraph": "^0.4.
|
|
29
|
+
"@langchain/community": "^0.3.59",
|
|
30
|
+
"@langchain/core": "^0.3.80",
|
|
31
|
+
"@langchain/langgraph": "^0.4.9",
|
|
32
32
|
"commander": "^12.1.0",
|
|
33
33
|
"openai": "^4.49.0",
|
|
34
34
|
"performance-now": "^2.1.0",
|
|
@@ -9,7 +9,10 @@ export declare class Rows extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const row = await client.inferencePipelines.rows.update(
|
|
11
11
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
12
|
-
* {
|
|
12
|
+
* {
|
|
13
|
+
* inferenceId: 'inferenceId',
|
|
14
|
+
* row: {},
|
|
15
|
+
* },
|
|
13
16
|
* );
|
|
14
17
|
* ```
|
|
15
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.d.mts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"rows.d.mts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAQjC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,MAAM;QACrB;;WAEG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAExC;;;;WAIG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -9,7 +9,10 @@ export declare class Rows extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const row = await client.inferencePipelines.rows.update(
|
|
11
11
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
12
|
-
* {
|
|
12
|
+
* {
|
|
13
|
+
* inferenceId: 'inferenceId',
|
|
14
|
+
* row: {},
|
|
15
|
+
* },
|
|
13
16
|
* );
|
|
14
17
|
* ```
|
|
15
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,mBAAmB,EAAE,MAAM,EAC3B,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAQjC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,MAAM;QACrB;;WAEG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAExC;;;;WAIG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtC;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -12,7 +12,10 @@ class Rows extends resource_1.APIResource {
|
|
|
12
12
|
* ```ts
|
|
13
13
|
* const row = await client.inferencePipelines.rows.update(
|
|
14
14
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
-
* {
|
|
15
|
+
* {
|
|
16
|
+
* inferenceId: 'inferenceId',
|
|
17
|
+
* row: {},
|
|
18
|
+
* },
|
|
16
19
|
* );
|
|
17
20
|
* ```
|
|
18
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC
|
|
1
|
+
{"version":3,"file":"rows.js","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,mBAA2B,EAC3B,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,mBAAmB,OAAO,EAAE;YAC9E,KAAK,EAAE,EAAE,WAAW,EAAE;YACtB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA3BD,oBA2BC"}
|
|
@@ -9,7 +9,10 @@ export class Rows extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const row = await client.inferencePipelines.rows.update(
|
|
11
11
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
12
|
-
* {
|
|
12
|
+
* {
|
|
13
|
+
* inferenceId: 'inferenceId',
|
|
14
|
+
* row: {},
|
|
15
|
+
* },
|
|
13
16
|
* );
|
|
14
17
|
* ```
|
|
15
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"rows.mjs","sourceRoot":"","sources":["../../src/resources/inference-pipelines/rows.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,mBAA2B,EAC3B,MAAuB,EACvB,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,mBAAmB,OAAO,EAAE;YAC9E,KAAK,EAAE,EAAE,WAAW,EAAE;YACtB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -13,7 +13,10 @@ export class Rows extends APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const row = await client.inferencePipelines.rows.update(
|
|
15
15
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
16
|
-
* {
|
|
16
|
+
* {
|
|
17
|
+
* inferenceId: 'inferenceId',
|
|
18
|
+
* row: {},
|
|
19
|
+
* },
|
|
17
20
|
* );
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.20.
|
|
1
|
+
export const VERSION = '0.20.2'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.20.
|
|
1
|
+
export declare const VERSION = "0.20.2";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.20.
|
|
1
|
+
export declare const VERSION = "0.20.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.20.
|
|
1
|
+
export const VERSION = '0.20.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|