Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added index.ts
Empty file.
60 changes: 30 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "humanloop",
"version": "0.8.15",
"version": "0.8.16",
"private": false,
"repository": "https://github.com/humanloop/humanloop-node",
"main": "./index.js",
Expand All @@ -12,54 +12,54 @@
"test": "jest"
},
"dependencies": {
"url-join": "4.0.1",
"form-data": "^4.0.0",
"formdata-node": "^6.0.3",
"node-fetch": "2.7.0",
"qs": "6.11.2",
"readable-stream": "^4.5.2",
"form-data-encoder": "^4.0.2",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/auto-instrumentations-node": "0.53.0",
"@opentelemetry/sdk-metrics": "1.28.0",
"@opentelemetry/sdk-node": "0.55.0",
"@opentelemetry/sdk-trace-node": "1.28.0",
"@traceloop/ai-semantic-conventions": "0.11.6",
"@traceloop/instrumentation-anthropic": "0.11.1",
"@traceloop/instrumentation-cohere": "0.11.1",
"@traceloop/instrumentation-openai": "0.11.3",
"@traceloop/ai-semantic-conventions": "0.11.6",
"nanoid": "5.0.9",
"cli-progress": "^3.12.0",
"form-data": "^4.0.0",
"form-data-encoder": "^4.0.2",
"formdata-node": "^6.0.3",
"lodash": "4.17.21",
"nanoid": "5.0.9",
"node-fetch": "2.7.0",
"qs": "6.11.2",
"readable-stream": "^4.5.2",
"stable-hash": "0.0.4",
"url-join": "4.0.1"
"stable-hash": "0.0.4"
},
"devDependencies": {
"@anthropic-ai/sdk": "^0.32.1",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/preset-env": "^7.26.0",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/cli-progress": "^3.11.6",
"@types/jest": "29.5.5",
"@types/lodash": "4.14.74",
"@types/node": "17.0.33",
"@types/node-fetch": "2.6.9",
"@types/url-join": "4.0.1",
"@types/qs": "6.9.8",
"@types/node-fetch": "2.6.9",
"@types/readable-stream": "^4.0.15",
"@types/url-join": "4.0.1",
"babel-jest": "^29.7.0",
"cohere-ai": "^7.15.0",
"dotenv": "^16.4.6",
"fetch-mock-jest": "^1.5.1",
"webpack": "^5.94.0",
"ts-loader": "^9.3.1",
"jest": "29.7.0",
"@types/jest": "29.5.5",
"ts-jest": "29.1.1",
"jest-environment-jsdom": "29.7.0",
"jsonschema": "^1.4.1",
"openai": "^4.74.0",
"@types/node": "17.0.33",
"prettier": "^3.4.2",
"ts-jest": "29.1.1",
"ts-loader": "^9.3.1",
"typescript": "4.6.4",
"webpack": "^5.94.0"
"openai": "^4.74.0",
"@anthropic-ai/sdk": "^0.32.1",
"cohere-ai": "^7.15.0",
"dotenv": "^16.4.6",
"jsonschema": "^1.4.1",
"@types/cli-progress": "^3.11.6",
"babel-jest": "^29.7.0",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/preset-env": "^7.26.0",
"@types/lodash": "4.14.74",
"@trivago/prettier-plugin-sort-imports": "4.3.0"
},
"browser": {
"fs": false,
Expand Down
6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prompts

<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">log</a>({ ...params }) -> Humanloop.CreatePromptLogResponse</code></summary>
<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">log</a>({ ...params }) -> unknown</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -4312,7 +4312,7 @@ await client.flows.log({
"Patient with a history of diabetes and hypertension presents with chest pain and shortness of breath.",
},
output: "The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
traceStatus: "incomplete",
logStatus: "incomplete",
startTime: "2024-07-08T22:40:35",
endTime: "2024-07-08T22:40:39",
});
Expand Down Expand Up @@ -4748,7 +4748,7 @@ await client.flows.updateLog("medqa_experiment_0001", {
"Patient with a history of diabetes and normal tension presents with chest pain and shortness of breath.",
},
output: "The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
traceStatus: "complete",
logStatus: "complete",
});
```

Expand Down
52 changes: 26 additions & 26 deletions src/api/resources/datasets/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -263,8 +263,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -373,8 +373,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -452,8 +452,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -529,8 +529,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -632,8 +632,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -737,8 +737,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -827,8 +827,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -911,8 +911,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1012,8 +1012,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1107,8 +1107,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1193,8 +1193,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1268,8 +1268,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/directories/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class Directories {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -130,8 +130,8 @@ export class Directories {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -212,8 +212,8 @@ export class Directories {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -292,8 +292,8 @@ export class Directories {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -369,8 +369,8 @@ export class Directories {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.14b1",
"User-Agent": "humanloop/0.8.14b1",
"X-Fern-SDK-Version": "0.8.16",
"User-Agent": "humanloop/0.8.16",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
Loading
Loading