Skip to content

Commit

Permalink
Release 0.8.0-beta10
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 2, 2024
1 parent cd0ffdb commit 2377e40
Show file tree
Hide file tree
Showing 75 changed files with 730 additions and 347 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "humanloop",
"version": "0.8.0-beta9",
"version": "0.8.0-beta10",
"private": false,
"repository": "https://github.com/humanloop/humanloop-node-beta",
"main": "./index.js",
Expand Down
79 changes: 72 additions & 7 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ await client.tools.log({
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">list</a>({ ...params }) -> core.Page<Humanloop.ToolResponse></code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">list</a>({ ...params }) -> core.Page<Humanloop.ToolResponse | undefined></code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1198,7 +1198,7 @@ await client.tools.list({
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">upsert</a>({ ...params }) -> Humanloop.ToolResponse</code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">upsert</a>({ ...params }) -> Humanloop.ToolResponse | undefined</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1286,7 +1286,7 @@ await client.tools.upsert({
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">get</a>(id, { ...params }) -> Humanloop.ToolResponse</code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">get</a>(id, { ...params }) -> Humanloop.ToolResponse | undefined</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1423,7 +1423,7 @@ await client.tools.delete("tl_789ghi");
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">move</a>(id, { ...params }) -> Humanloop.ToolResponse</code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">move</a>(id, { ...params }) -> Humanloop.ToolResponse | undefined</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1569,7 +1569,7 @@ await client.tools.listVersions("tl_789ghi", {
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">commit</a>(id, versionId, { ...params }) -> Humanloop.ToolResponse</code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">commit</a>(id, versionId, { ...params }) -> Humanloop.ToolResponse | undefined</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1652,7 +1652,7 @@ await client.tools.commit("tl_789ghi", "tv_012jkl", {
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">updateMonitoring</a>(id, { ...params }) -> Humanloop.ToolResponse</code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">updateMonitoring</a>(id, { ...params }) -> Humanloop.ToolResponse | undefined</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -1732,7 +1732,7 @@ await client.tools.updateMonitoring("tl_789ghi", {
</dl>
</details>

<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">setDeployment</a>(id, environmentId, { ...params }) -> Humanloop.ToolResponse</code></summary>
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">setDeployment</a>(id, environmentId, { ...params }) -> Humanloop.ToolResponse | undefined</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -2873,6 +2873,71 @@ await client.datasets.listEnvironments("id");
</dl>
</details>

## Files

<details><summary><code>client.files.<a href="/src/api/resources/files/client/Client.ts">list</a>({ ...params }) -> Humanloop.PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponse</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Get a paginated list of files.

</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.files.list();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `Humanloop.FilesListRequest`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `Files.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

## Evaluations

<details><summary><code>client.evaluations.<a href="/src/api/resources/evaluations/client/Client.ts">list</a>({ ...params }) -> core.Page<Humanloop.EvaluationResponse></code></summary>
Expand Down
7 changes: 7 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as core from "./core";
import { Prompts } from "./api/resources/prompts/client/Client";
import { Tools } from "./api/resources/tools/client/Client";
import { Datasets } from "./api/resources/datasets/client/Client";
import { Files } from "./api/resources/files/client/Client";
import { Evaluations } from "./api/resources/evaluations/client/Client";
import { Evaluators } from "./api/resources/evaluators/client/Client";
import { Logs } from "./api/resources/logs/client/Client";
Expand Down Expand Up @@ -50,6 +51,12 @@ export class HumanloopClient {
return (this._datasets ??= new Datasets(this._options));
}

protected _files: Files | undefined;

public get files(): Files {
return (this._files ??= new Files(this._options));
}

protected _evaluations: Evaluations | undefined;

public get evaluations(): Evaluations {
Expand Down
48 changes: 24 additions & 24 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.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -259,8 +259,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"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 Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -448,8 +448,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -525,8 +525,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -628,8 +628,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -729,8 +729,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -819,8 +819,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -927,8 +927,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1022,8 +1022,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1108,8 +1108,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -1183,8 +1183,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
2 changes: 2 additions & 0 deletions src/api/resources/datasets/client/requests/DatasetsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export interface DatasetsRequest {
* If `"add"` or `"remove"`, one of the `version_id` or `environment` query parameters may be provided.
*/
action?: Humanloop.UpdateDatesetAction;
/** Additional fields to describe the Dataset. Helpful to separate Dataset versions from each other with details on how they were created or used. */
attributes?: Record<string, unknown>;
/** Message describing the changes made. If provided, a committed version of the Dataset is created. Otherwise, an uncommitted version is created. */
commitMessage?: string;
}
32 changes: 16 additions & 16 deletions src/api/resources/evaluations/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -198,8 +198,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -277,8 +277,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -358,8 +358,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -450,8 +450,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -539,8 +539,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -624,8 +624,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down Expand Up @@ -720,8 +720,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.0-beta9",
"User-Agent": "humanloop/0.8.0-beta9",
"X-Fern-SDK-Version": "0.8.0-beta10",
"User-Agent": "humanloop/0.8.0-beta10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
Expand Down
Loading

0 comments on commit 2377e40

Please sign in to comment.