Skip to content

Commit 4524c3b

Browse files
author
Andrei Bratu
committed
flow decorator upserts two versions
1 parent c20d79f commit 4524c3b

20 files changed

Lines changed: 2043 additions & 567 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ jobs:
3333
- name: Compile
3434
run: yarn && yarn test
3535
env:
36-
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
37-
ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_KEY }}
38-
COHERE_KEY: ${{ secrets.COHERE_KEY }}
36+
HUMANLOOP_API_KEY: ${{ secrets.HUMANLOOP_API_KEY }}
37+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
3938

4039
publish:
4140
needs: [compile, test]

jest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export default {
33
preset: "ts-jest",
44
testEnvironment: "node",
55
moduleNameMapper: {
6-
"(.+)\.js$": "$1",
6+
"^(?!.*node_modules)(.+)\\.js$": "$1",
77
},
88
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "humanloop",
3-
"version": "0.8.21",
3+
"version": "0.8.21-beta1",
44
"private": false,
55
"repository": "https://github.com/humanloop/humanloop-node",
66
"main": "./index.js",

src/api/resources/agents/client/Client.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export class Agents {
7676
headers: {
7777
"X-Fern-Language": "JavaScript",
7878
"X-Fern-SDK-Name": "humanloop",
79-
"X-Fern-SDK-Version": "0.8.21",
80-
"User-Agent": "humanloop/0.8.21",
79+
"X-Fern-SDK-Version": "0.8.21-beta1",
80+
"User-Agent": "humanloop/0.8.21-beta1",
8181
"X-Fern-Runtime": core.RUNTIME.type,
8282
"X-Fern-Runtime-Version": core.RUNTIME.version,
8383
...(await this._getCustomAuthorizationHeaders()),
@@ -168,8 +168,8 @@ export class Agents {
168168
headers: {
169169
"X-Fern-Language": "JavaScript",
170170
"X-Fern-SDK-Name": "humanloop",
171-
"X-Fern-SDK-Version": "0.8.21",
172-
"User-Agent": "humanloop/0.8.21",
171+
"X-Fern-SDK-Version": "0.8.21-beta1",
172+
"User-Agent": "humanloop/0.8.21-beta1",
173173
"X-Fern-Runtime": core.RUNTIME.type,
174174
"X-Fern-Runtime-Version": core.RUNTIME.version,
175175
...(await this._getCustomAuthorizationHeaders()),
@@ -268,8 +268,8 @@ export class Agents {
268268
headers: {
269269
"X-Fern-Language": "JavaScript",
270270
"X-Fern-SDK-Name": "humanloop",
271-
"X-Fern-SDK-Version": "0.8.21",
272-
"User-Agent": "humanloop/0.8.21",
271+
"X-Fern-SDK-Version": "0.8.21-beta1",
272+
"User-Agent": "humanloop/0.8.21-beta1",
273273
"X-Fern-Runtime": core.RUNTIME.type,
274274
"X-Fern-Runtime-Version": core.RUNTIME.version,
275275
...(await this._getCustomAuthorizationHeaders()),
@@ -389,8 +389,8 @@ export class Agents {
389389
headers: {
390390
"X-Fern-Language": "JavaScript",
391391
"X-Fern-SDK-Name": "humanloop",
392-
"X-Fern-SDK-Version": "0.8.21",
393-
"User-Agent": "humanloop/0.8.21",
392+
"X-Fern-SDK-Version": "0.8.21-beta1",
393+
"User-Agent": "humanloop/0.8.21-beta1",
394394
"X-Fern-Runtime": core.RUNTIME.type,
395395
"X-Fern-Runtime-Version": core.RUNTIME.version,
396396
...(await this._getCustomAuthorizationHeaders()),
@@ -478,8 +478,8 @@ export class Agents {
478478
headers: {
479479
"X-Fern-Language": "JavaScript",
480480
"X-Fern-SDK-Name": "humanloop",
481-
"X-Fern-SDK-Version": "0.8.21",
482-
"User-Agent": "humanloop/0.8.21",
481+
"X-Fern-SDK-Version": "0.8.21-beta1",
482+
"User-Agent": "humanloop/0.8.21-beta1",
483483
"X-Fern-Runtime": core.RUNTIME.type,
484484
"X-Fern-Runtime-Version": core.RUNTIME.version,
485485
...(await this._getCustomAuthorizationHeaders()),
@@ -590,8 +590,8 @@ export class Agents {
590590
headers: {
591591
"X-Fern-Language": "JavaScript",
592592
"X-Fern-SDK-Name": "humanloop",
593-
"X-Fern-SDK-Version": "0.8.21",
594-
"User-Agent": "humanloop/0.8.21",
593+
"X-Fern-SDK-Version": "0.8.21-beta1",
594+
"User-Agent": "humanloop/0.8.21-beta1",
595595
"X-Fern-Runtime": core.RUNTIME.type,
596596
"X-Fern-Runtime-Version": core.RUNTIME.version,
597597
...(await this._getCustomAuthorizationHeaders()),
@@ -706,8 +706,8 @@ export class Agents {
706706
headers: {
707707
"X-Fern-Language": "JavaScript",
708708
"X-Fern-SDK-Name": "humanloop",
709-
"X-Fern-SDK-Version": "0.8.21",
710-
"User-Agent": "humanloop/0.8.21",
709+
"X-Fern-SDK-Version": "0.8.21-beta1",
710+
"User-Agent": "humanloop/0.8.21-beta1",
711711
"X-Fern-Runtime": core.RUNTIME.type,
712712
"X-Fern-Runtime-Version": core.RUNTIME.version,
713713
...(await this._getCustomAuthorizationHeaders()),
@@ -800,8 +800,8 @@ export class Agents {
800800
headers: {
801801
"X-Fern-Language": "JavaScript",
802802
"X-Fern-SDK-Name": "humanloop",
803-
"X-Fern-SDK-Version": "0.8.21",
804-
"User-Agent": "humanloop/0.8.21",
803+
"X-Fern-SDK-Version": "0.8.21-beta1",
804+
"User-Agent": "humanloop/0.8.21-beta1",
805805
"X-Fern-Runtime": core.RUNTIME.type,
806806
"X-Fern-Runtime-Version": core.RUNTIME.version,
807807
...(await this._getCustomAuthorizationHeaders()),
@@ -887,8 +887,8 @@ export class Agents {
887887
headers: {
888888
"X-Fern-Language": "JavaScript",
889889
"X-Fern-SDK-Name": "humanloop",
890-
"X-Fern-SDK-Version": "0.8.21",
891-
"User-Agent": "humanloop/0.8.21",
890+
"X-Fern-SDK-Version": "0.8.21-beta1",
891+
"User-Agent": "humanloop/0.8.21-beta1",
892892
"X-Fern-Runtime": core.RUNTIME.type,
893893
"X-Fern-Runtime-Version": core.RUNTIME.version,
894894
...(await this._getCustomAuthorizationHeaders()),
@@ -971,8 +971,8 @@ export class Agents {
971971
headers: {
972972
"X-Fern-Language": "JavaScript",
973973
"X-Fern-SDK-Name": "humanloop",
974-
"X-Fern-SDK-Version": "0.8.21",
975-
"User-Agent": "humanloop/0.8.21",
974+
"X-Fern-SDK-Version": "0.8.21-beta1",
975+
"User-Agent": "humanloop/0.8.21-beta1",
976976
"X-Fern-Runtime": core.RUNTIME.type,
977977
"X-Fern-Runtime-Version": core.RUNTIME.version,
978978
...(await this._getCustomAuthorizationHeaders()),
@@ -1073,8 +1073,8 @@ export class Agents {
10731073
headers: {
10741074
"X-Fern-Language": "JavaScript",
10751075
"X-Fern-SDK-Name": "humanloop",
1076-
"X-Fern-SDK-Version": "0.8.21",
1077-
"User-Agent": "humanloop/0.8.21",
1076+
"X-Fern-SDK-Version": "0.8.21-beta1",
1077+
"User-Agent": "humanloop/0.8.21-beta1",
10781078
"X-Fern-Runtime": core.RUNTIME.type,
10791079
"X-Fern-Runtime-Version": core.RUNTIME.version,
10801080
...(await this._getCustomAuthorizationHeaders()),
@@ -1155,8 +1155,8 @@ export class Agents {
11551155
headers: {
11561156
"X-Fern-Language": "JavaScript",
11571157
"X-Fern-SDK-Name": "humanloop",
1158-
"X-Fern-SDK-Version": "0.8.21",
1159-
"User-Agent": "humanloop/0.8.21",
1158+
"X-Fern-SDK-Version": "0.8.21-beta1",
1159+
"User-Agent": "humanloop/0.8.21-beta1",
11601160
"X-Fern-Runtime": core.RUNTIME.type,
11611161
"X-Fern-Runtime-Version": core.RUNTIME.version,
11621162
...(await this._getCustomAuthorizationHeaders()),
@@ -1235,8 +1235,8 @@ export class Agents {
12351235
headers: {
12361236
"X-Fern-Language": "JavaScript",
12371237
"X-Fern-SDK-Name": "humanloop",
1238-
"X-Fern-SDK-Version": "0.8.21",
1239-
"User-Agent": "humanloop/0.8.21",
1238+
"X-Fern-SDK-Version": "0.8.21-beta1",
1239+
"User-Agent": "humanloop/0.8.21-beta1",
12401240
"X-Fern-Runtime": core.RUNTIME.type,
12411241
"X-Fern-Runtime-Version": core.RUNTIME.version,
12421242
...(await this._getCustomAuthorizationHeaders()),
@@ -1328,8 +1328,8 @@ export class Agents {
13281328
headers: {
13291329
"X-Fern-Language": "JavaScript",
13301330
"X-Fern-SDK-Name": "humanloop",
1331-
"X-Fern-SDK-Version": "0.8.21",
1332-
"User-Agent": "humanloop/0.8.21",
1331+
"X-Fern-SDK-Version": "0.8.21-beta1",
1332+
"User-Agent": "humanloop/0.8.21-beta1",
13331333
"X-Fern-Runtime": core.RUNTIME.type,
13341334
"X-Fern-Runtime-Version": core.RUNTIME.version,
13351335
...(await this._getCustomAuthorizationHeaders()),
@@ -1425,8 +1425,8 @@ export class Agents {
14251425
headers: {
14261426
"X-Fern-Language": "JavaScript",
14271427
"X-Fern-SDK-Name": "humanloop",
1428-
"X-Fern-SDK-Version": "0.8.21",
1429-
"User-Agent": "humanloop/0.8.21",
1428+
"X-Fern-SDK-Version": "0.8.21-beta1",
1429+
"User-Agent": "humanloop/0.8.21-beta1",
14301430
"X-Fern-Runtime": core.RUNTIME.type,
14311431
"X-Fern-Runtime-Version": core.RUNTIME.version,
14321432
...(await this._getCustomAuthorizationHeaders()),
@@ -1517,8 +1517,8 @@ export class Agents {
15171517
headers: {
15181518
"X-Fern-Language": "JavaScript",
15191519
"X-Fern-SDK-Name": "humanloop",
1520-
"X-Fern-SDK-Version": "0.8.21",
1521-
"User-Agent": "humanloop/0.8.21",
1520+
"X-Fern-SDK-Version": "0.8.21-beta1",
1521+
"User-Agent": "humanloop/0.8.21-beta1",
15221522
"X-Fern-Runtime": core.RUNTIME.type,
15231523
"X-Fern-Runtime-Version": core.RUNTIME.version,
15241524
...(await this._getCustomAuthorizationHeaders()),
@@ -1597,8 +1597,8 @@ export class Agents {
15971597
headers: {
15981598
"X-Fern-Language": "JavaScript",
15991599
"X-Fern-SDK-Name": "humanloop",
1600-
"X-Fern-SDK-Version": "0.8.21",
1601-
"User-Agent": "humanloop/0.8.21",
1600+
"X-Fern-SDK-Version": "0.8.21-beta1",
1601+
"User-Agent": "humanloop/0.8.21-beta1",
16021602
"X-Fern-Runtime": core.RUNTIME.type,
16031603
"X-Fern-Runtime-Version": core.RUNTIME.version,
16041604
...(await this._getCustomAuthorizationHeaders()),
@@ -1686,8 +1686,8 @@ export class Agents {
16861686
headers: {
16871687
"X-Fern-Language": "JavaScript",
16881688
"X-Fern-SDK-Name": "humanloop",
1689-
"X-Fern-SDK-Version": "0.8.21",
1690-
"User-Agent": "humanloop/0.8.21",
1689+
"X-Fern-SDK-Version": "0.8.21-beta1",
1690+
"User-Agent": "humanloop/0.8.21-beta1",
16911691
"X-Fern-Runtime": core.RUNTIME.type,
16921692
"X-Fern-Runtime-Version": core.RUNTIME.version,
16931693
...(await this._getCustomAuthorizationHeaders()),
@@ -1769,7 +1769,7 @@ export class Agents {
17691769
id: string,
17701770
request: Humanloop.SerializeAgentsIdSerializeGetRequest = {},
17711771
requestOptions?: Agents.RequestOptions,
1772-
): Promise<void> {
1772+
): Promise<unknown> {
17731773
const { versionId, environment } = request;
17741774
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
17751775
if (versionId != null) {
@@ -1791,8 +1791,8 @@ export class Agents {
17911791
headers: {
17921792
"X-Fern-Language": "JavaScript",
17931793
"X-Fern-SDK-Name": "humanloop",
1794-
"X-Fern-SDK-Version": "0.8.21",
1795-
"User-Agent": "humanloop/0.8.21",
1794+
"X-Fern-SDK-Version": "0.8.21-beta1",
1795+
"User-Agent": "humanloop/0.8.21-beta1",
17961796
"X-Fern-Runtime": core.RUNTIME.type,
17971797
"X-Fern-Runtime-Version": core.RUNTIME.version,
17981798
...(await this._getCustomAuthorizationHeaders()),
@@ -1806,7 +1806,7 @@ export class Agents {
18061806
abortSignal: requestOptions?.abortSignal,
18071807
});
18081808
if (_response.ok) {
1809-
return;
1809+
return _response.body;
18101810
}
18111811

18121812
if (_response.error.reason === "status-code") {
@@ -1875,8 +1875,8 @@ export class Agents {
18751875
headers: {
18761876
"X-Fern-Language": "JavaScript",
18771877
"X-Fern-SDK-Name": "humanloop",
1878-
"X-Fern-SDK-Version": "0.8.21",
1879-
"User-Agent": "humanloop/0.8.21",
1878+
"X-Fern-SDK-Version": "0.8.21-beta1",
1879+
"User-Agent": "humanloop/0.8.21-beta1",
18801880
"X-Fern-Runtime": core.RUNTIME.type,
18811881
"X-Fern-Runtime-Version": core.RUNTIME.version,
18821882
...(await this._getCustomAuthorizationHeaders()),

0 commit comments

Comments
 (0)