Skip to content

Commit 2df02f9

Browse files
author
Andrei Bratu
committed
more old req res objects
1 parent 295c5bd commit 2df02f9

File tree

22 files changed

+2125
-728
lines changed

22 files changed

+2125
-728
lines changed

.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: 180 additions & 305 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Humanloop from "../../../../index";
6+
7+
/**
8+
* @example
9+
* {
10+
* logId: "log_id",
11+
* messages: [{
12+
* role: "user"
13+
* }]
14+
* }
15+
*/
16+
export interface AgentsContinueCallRequest {
17+
/** This identifies the Agent Log to continue. */
18+
logId: string;
19+
/** The additional messages with which to continue the Agent Log. Often, these should start with the Tool messages with results for the previous Assistant message's tool calls. */
20+
messages: Humanloop.ChatMessage[];
21+
/** API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization. */
22+
providerApiKeys?: Humanloop.ProviderApiKeys;
23+
/** If true, populate `trace_children` for the returned Agent Log. Defaults to false. */
24+
includeTraceChildren?: boolean;
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as Humanloop from "../../../../index";
6+
7+
/**
8+
* @example
9+
* {
10+
* logId: "log_id",
11+
* messages: [{
12+
* role: "user"
13+
* }]
14+
* }
15+
*/
16+
export interface AgentsContinueStreamRequest {
17+
/** This identifies the Agent Log to continue. */
18+
logId: string;
19+
/** The additional messages with which to continue the Agent Log. Often, these should start with the Tool messages with results for the previous Assistant message's tool calls. */
20+
messages: Humanloop.ChatMessage[];
21+
/** API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization. */
22+
providerApiKeys?: Humanloop.ProviderApiKeys;
23+
/** If true, populate `trace_children` for the returned Agent Log. Defaults to false. */
24+
includeTraceChildren?: boolean;
25+
}

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export class Datasets {
107107
headers: {
108108
"X-Fern-Language": "JavaScript",
109109
"X-Fern-SDK-Name": "humanloop",
110-
"X-Fern-SDK-Version": "0.8.21",
111-
"User-Agent": "humanloop/0.8.21",
110+
"X-Fern-SDK-Version": "0.8.21-beta1",
111+
"User-Agent": "humanloop/0.8.21-beta1",
112112
"X-Fern-Runtime": core.RUNTIME.type,
113113
"X-Fern-Runtime-Version": core.RUNTIME.version,
114114
...(await this._getCustomAuthorizationHeaders()),
@@ -275,8 +275,8 @@ export class Datasets {
275275
headers: {
276276
"X-Fern-Language": "JavaScript",
277277
"X-Fern-SDK-Name": "humanloop",
278-
"X-Fern-SDK-Version": "0.8.21",
279-
"User-Agent": "humanloop/0.8.21",
278+
"X-Fern-SDK-Version": "0.8.21-beta1",
279+
"User-Agent": "humanloop/0.8.21-beta1",
280280
"X-Fern-Runtime": core.RUNTIME.type,
281281
"X-Fern-Runtime-Version": core.RUNTIME.version,
282282
...(await this._getCustomAuthorizationHeaders()),
@@ -388,8 +388,8 @@ export class Datasets {
388388
headers: {
389389
"X-Fern-Language": "JavaScript",
390390
"X-Fern-SDK-Name": "humanloop",
391-
"X-Fern-SDK-Version": "0.8.21",
392-
"User-Agent": "humanloop/0.8.21",
391+
"X-Fern-SDK-Version": "0.8.21-beta1",
392+
"User-Agent": "humanloop/0.8.21-beta1",
393393
"X-Fern-Runtime": core.RUNTIME.type,
394394
"X-Fern-Runtime-Version": core.RUNTIME.version,
395395
...(await this._getCustomAuthorizationHeaders()),
@@ -470,8 +470,8 @@ export class Datasets {
470470
headers: {
471471
"X-Fern-Language": "JavaScript",
472472
"X-Fern-SDK-Name": "humanloop",
473-
"X-Fern-SDK-Version": "0.8.21",
474-
"User-Agent": "humanloop/0.8.21",
473+
"X-Fern-SDK-Version": "0.8.21-beta1",
474+
"User-Agent": "humanloop/0.8.21-beta1",
475475
"X-Fern-Runtime": core.RUNTIME.type,
476476
"X-Fern-Runtime-Version": core.RUNTIME.version,
477477
...(await this._getCustomAuthorizationHeaders()),
@@ -550,8 +550,8 @@ export class Datasets {
550550
headers: {
551551
"X-Fern-Language": "JavaScript",
552552
"X-Fern-SDK-Name": "humanloop",
553-
"X-Fern-SDK-Version": "0.8.21",
554-
"User-Agent": "humanloop/0.8.21",
553+
"X-Fern-SDK-Version": "0.8.21-beta1",
554+
"User-Agent": "humanloop/0.8.21-beta1",
555555
"X-Fern-Runtime": core.RUNTIME.type,
556556
"X-Fern-Runtime-Version": core.RUNTIME.version,
557557
...(await this._getCustomAuthorizationHeaders()),
@@ -656,8 +656,8 @@ export class Datasets {
656656
headers: {
657657
"X-Fern-Language": "JavaScript",
658658
"X-Fern-SDK-Name": "humanloop",
659-
"X-Fern-SDK-Version": "0.8.21",
660-
"User-Agent": "humanloop/0.8.21",
659+
"X-Fern-SDK-Version": "0.8.21-beta1",
660+
"User-Agent": "humanloop/0.8.21-beta1",
661661
"X-Fern-Runtime": core.RUNTIME.type,
662662
"X-Fern-Runtime-Version": core.RUNTIME.version,
663663
...(await this._getCustomAuthorizationHeaders()),
@@ -763,8 +763,8 @@ export class Datasets {
763763
headers: {
764764
"X-Fern-Language": "JavaScript",
765765
"X-Fern-SDK-Name": "humanloop",
766-
"X-Fern-SDK-Version": "0.8.21",
767-
"User-Agent": "humanloop/0.8.21",
766+
"X-Fern-SDK-Version": "0.8.21-beta1",
767+
"User-Agent": "humanloop/0.8.21-beta1",
768768
"X-Fern-Runtime": core.RUNTIME.type,
769769
"X-Fern-Runtime-Version": core.RUNTIME.version,
770770
...(await this._getCustomAuthorizationHeaders()),
@@ -850,8 +850,8 @@ export class Datasets {
850850
headers: {
851851
"X-Fern-Language": "JavaScript",
852852
"X-Fern-SDK-Name": "humanloop",
853-
"X-Fern-SDK-Version": "0.8.21",
854-
"User-Agent": "humanloop/0.8.21",
853+
"X-Fern-SDK-Version": "0.8.21-beta1",
854+
"User-Agent": "humanloop/0.8.21-beta1",
855855
"X-Fern-Runtime": core.RUNTIME.type,
856856
"X-Fern-Runtime-Version": core.RUNTIME.version,
857857
...(await this._getCustomAuthorizationHeaders()),
@@ -934,8 +934,8 @@ export class Datasets {
934934
headers: {
935935
"X-Fern-Language": "JavaScript",
936936
"X-Fern-SDK-Name": "humanloop",
937-
"X-Fern-SDK-Version": "0.8.21",
938-
"User-Agent": "humanloop/0.8.21",
937+
"X-Fern-SDK-Version": "0.8.21-beta1",
938+
"User-Agent": "humanloop/0.8.21-beta1",
939939
"X-Fern-Runtime": core.RUNTIME.type,
940940
"X-Fern-Runtime-Version": core.RUNTIME.version,
941941
...(await this._getCustomAuthorizationHeaders()),
@@ -1055,8 +1055,8 @@ export class Datasets {
10551055
headers: {
10561056
"X-Fern-Language": "JavaScript",
10571057
"X-Fern-SDK-Name": "humanloop",
1058-
"X-Fern-SDK-Version": "0.8.21",
1059-
"User-Agent": "humanloop/0.8.21",
1058+
"X-Fern-SDK-Version": "0.8.21-beta1",
1059+
"User-Agent": "humanloop/0.8.21-beta1",
10601060
"X-Fern-Runtime": core.RUNTIME.type,
10611061
"X-Fern-Runtime-Version": core.RUNTIME.version,
10621062
...(await this._getCustomAuthorizationHeaders()),
@@ -1155,8 +1155,8 @@ export class Datasets {
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()),
@@ -1246,8 +1246,8 @@ export class Datasets {
12461246
headers: {
12471247
"X-Fern-Language": "JavaScript",
12481248
"X-Fern-SDK-Name": "humanloop",
1249-
"X-Fern-SDK-Version": "0.8.21",
1250-
"User-Agent": "humanloop/0.8.21",
1249+
"X-Fern-SDK-Version": "0.8.21-beta1",
1250+
"User-Agent": "humanloop/0.8.21-beta1",
12511251
"X-Fern-Runtime": core.RUNTIME.type,
12521252
"X-Fern-Runtime-Version": core.RUNTIME.version,
12531253
...(await this._getCustomAuthorizationHeaders()),
@@ -1326,8 +1326,8 @@ export class Datasets {
13261326
headers: {
13271327
"X-Fern-Language": "JavaScript",
13281328
"X-Fern-SDK-Name": "humanloop",
1329-
"X-Fern-SDK-Version": "0.8.21",
1330-
"User-Agent": "humanloop/0.8.21",
1329+
"X-Fern-SDK-Version": "0.8.21-beta1",
1330+
"User-Agent": "humanloop/0.8.21-beta1",
13311331
"X-Fern-Runtime": core.RUNTIME.type,
13321332
"X-Fern-Runtime-Version": core.RUNTIME.version,
13331333
...(await this._getCustomAuthorizationHeaders()),

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class Directories {
5555
headers: {
5656
"X-Fern-Language": "JavaScript",
5757
"X-Fern-SDK-Name": "humanloop",
58-
"X-Fern-SDK-Version": "0.8.21",
59-
"User-Agent": "humanloop/0.8.21",
58+
"X-Fern-SDK-Version": "0.8.21-beta1",
59+
"User-Agent": "humanloop/0.8.21-beta1",
6060
"X-Fern-Runtime": core.RUNTIME.type,
6161
"X-Fern-Runtime-Version": core.RUNTIME.version,
6262
...(await this._getCustomAuthorizationHeaders()),
@@ -139,8 +139,8 @@ export class Directories {
139139
headers: {
140140
"X-Fern-Language": "JavaScript",
141141
"X-Fern-SDK-Name": "humanloop",
142-
"X-Fern-SDK-Version": "0.8.21",
143-
"User-Agent": "humanloop/0.8.21",
142+
"X-Fern-SDK-Version": "0.8.21-beta1",
143+
"User-Agent": "humanloop/0.8.21-beta1",
144144
"X-Fern-Runtime": core.RUNTIME.type,
145145
"X-Fern-Runtime-Version": core.RUNTIME.version,
146146
...(await this._getCustomAuthorizationHeaders()),
@@ -224,8 +224,8 @@ export class Directories {
224224
headers: {
225225
"X-Fern-Language": "JavaScript",
226226
"X-Fern-SDK-Name": "humanloop",
227-
"X-Fern-SDK-Version": "0.8.21",
228-
"User-Agent": "humanloop/0.8.21",
227+
"X-Fern-SDK-Version": "0.8.21-beta1",
228+
"User-Agent": "humanloop/0.8.21-beta1",
229229
"X-Fern-Runtime": core.RUNTIME.type,
230230
"X-Fern-Runtime-Version": core.RUNTIME.version,
231231
...(await this._getCustomAuthorizationHeaders()),
@@ -307,8 +307,8 @@ export class Directories {
307307
headers: {
308308
"X-Fern-Language": "JavaScript",
309309
"X-Fern-SDK-Name": "humanloop",
310-
"X-Fern-SDK-Version": "0.8.21",
311-
"User-Agent": "humanloop/0.8.21",
310+
"X-Fern-SDK-Version": "0.8.21-beta1",
311+
"User-Agent": "humanloop/0.8.21-beta1",
312312
"X-Fern-Runtime": core.RUNTIME.type,
313313
"X-Fern-Runtime-Version": core.RUNTIME.version,
314314
...(await this._getCustomAuthorizationHeaders()),
@@ -387,8 +387,8 @@ export class Directories {
387387
headers: {
388388
"X-Fern-Language": "JavaScript",
389389
"X-Fern-SDK-Name": "humanloop",
390-
"X-Fern-SDK-Version": "0.8.21",
391-
"User-Agent": "humanloop/0.8.21",
390+
"X-Fern-SDK-Version": "0.8.21-beta1",
391+
"User-Agent": "humanloop/0.8.21-beta1",
392392
"X-Fern-Runtime": core.RUNTIME.type,
393393
"X-Fern-Runtime-Version": core.RUNTIME.version,
394394
...(await this._getCustomAuthorizationHeaders()),

0 commit comments

Comments
 (0)