diff --git a/package.json b/package.json
index 982cd52..1be7d3a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "humanloop",
- "version": "0.8.0-beta16",
+ "version": "0.8.0",
"private": false,
"repository": "https://github.com/humanloop/humanloop-node-beta",
"main": "./index.js",
diff --git a/reference.md b/reference.md
index c1991b0..bb5060f 100644
--- a/reference.md
+++ b/reference.md
@@ -309,8 +309,7 @@ await client.prompts.callStream({
startTime: "2024-01-15T09:30:00Z",
endTime: "2024-01-15T09:30:00Z",
sourceDatapointId: "string",
- traceId: "string",
- traceParentLogId: "string",
+ traceParentId: "string",
batches: ["string"],
user: "string",
promptsCallStreamRequestEnvironment: "string",
@@ -2617,7 +2616,7 @@ await client.datasets.delete("id");
-
-Update the Dataset with the given ID.
+Move the Dataset to a different path or change the name.
@@ -4231,7 +4230,7 @@ await client.flows.move("id");
-
-Get a list of all Flows.
+Get a list of Flows.
@@ -4286,6 +4285,27 @@ await client.flows.list();
-
+#### 📝 Description
+
+
+-
+
+
+-
+
+Create or update a Flow.
+
+Flows can also be identified by the `ID` or their `path`.
+
+If you provide a commit message, then the new version will be committed;
+otherwise it will be uncommitted. If you try to commit an already committed version,
+an exception will be raised.
+
+
+
+
+
+
#### 🔌 Usage
@@ -4346,7 +4366,10 @@ await client.flows.upsert({
-
-Log a Flow Trace.
+Log to a Flow.
+
+You can use query parameters `version_id`, or `environment`, to target
+an existing version of the Flow. Otherwise, the default deployed version will be chosen.
@@ -4397,10 +4420,28 @@ await client.flows.log();
-client.flows.updateTrace(traceId, { ...params }) -> Humanloop.FlowLogResponse
+client.flows.updateLog(logId, { ...params }) -> Humanloop.FlowLogResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
-
+Update the status, inputs, output of a Flow Log.
+
+Marking a Flow Log as complete will trigger any monitoring Evaluators to run.
+Inputs and output (or error) must be provided in order to mark it as complete.
+
+
+
+
+
+
#### 🔌 Usage
@@ -4410,8 +4451,8 @@ await client.flows.log();
-
```typescript
-await client.flows.updateTrace("trace_id", {
- status: Humanloop.TraceStatus.Complete,
+await client.flows.updateLog("log_id", {
+ traceStatus: Humanloop.TraceStatus.Complete,
});
```
@@ -4428,7 +4469,7 @@ await client.flows.updateTrace("trace_id", {
-
-**traceId:** `string` — Unique identifier for Trace.
+**logId:** `string` — Unique identifier of the Flow Log.
@@ -5760,197 +5801,3 @@ await client.logs.get("prv_Wu6zx1lAWJRqOyL8nWuZk");
-
-## Sessions
-
-client.sessions.get(id) -> Humanloop.SessionResponse
-
--
-
-#### 📝 Description
-
-
--
-
-
--
-
-Retrieve the Session with the given ID.
-
-
-
-
-
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```typescript
-await client.sessions.get("sesh_123abc");
-```
-
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**id:** `string` — Unique identifier for Session.
-
-
-
-
-
--
-
-**requestOptions:** `Sessions.RequestOptions`
-
-
-
-
-
-
-
-
-
-
-client.sessions.delete(id) -> void
-
--
-
-#### 📝 Description
-
-
--
-
-
--
-
-Delete the Session with the given ID.
-
-
-
-
-
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```typescript
-await client.sessions.delete("sesh_123abc");
-```
-
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**id:** `string` — Unique identifier for Session.
-
-
-
-
-
--
-
-**requestOptions:** `Sessions.RequestOptions`
-
-
-
-
-
-
-
-
-
-
-client.sessions.list({ ...params }) -> core.Page
-
--
-
-#### 📝 Description
-
-
--
-
-
--
-
-Get a list of Sessions.
-
-
-
-
-
-
-#### 🔌 Usage
-
-
--
-
-
--
-
-```typescript
-await client.sessions.list({
- size: 1,
- fileId: "pr_123abc",
-});
-```
-
-
-
-
-
-
-#### ⚙️ Parameters
-
-
--
-
-
--
-
-**request:** `Humanloop.ListSessionsGetRequest`
-
-
-
-
-
--
-
-**requestOptions:** `Sessions.RequestOptions`
-
-
-
-
-
-
-
-
-
diff --git a/src/Client.ts b/src/Client.ts
index 36c257a..5d90508 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -12,7 +12,6 @@ import { Flows } from "./api/resources/flows/client/Client";
import { Files } from "./api/resources/files/client/Client";
import { Evaluations } from "./api/resources/evaluations/client/Client";
import { Logs } from "./api/resources/logs/client/Client";
-import { Sessions } from "./api/resources/sessions/client/Client";
export declare namespace HumanloopClient {
interface Options {
@@ -81,10 +80,4 @@ export class HumanloopClient {
public get logs(): Logs {
return (this._logs ??= new Logs(this._options));
}
-
- protected _sessions: Sessions | undefined;
-
- public get sessions(): Sessions {
- return (this._sessions ??= new Sessions(this._options));
- }
}
diff --git a/src/api/resources/datasets/client/Client.ts b/src/api/resources/datasets/client/Client.ts
index ff10244..0bed4a7 100644
--- a/src/api/resources/datasets/client/Client.ts
+++ b/src/api/resources/datasets/client/Client.ts
@@ -100,8 +100,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -259,8 +259,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -369,8 +369,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -448,8 +448,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -500,7 +500,7 @@ export class Datasets {
}
/**
- * Update the Dataset with the given ID.
+ * Move the Dataset to a different path or change the name.
*
* @param {string} id - Unique identifier for Dataset.
* @param {Humanloop.UpdateDatasetRequest} request
@@ -525,8 +525,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -628,8 +628,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -729,8 +729,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -819,8 +819,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -927,8 +927,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1022,8 +1022,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1108,8 +1108,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1183,8 +1183,8 @@ export class Datasets {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/evaluations/client/Client.ts b/src/api/resources/evaluations/client/Client.ts
index 1dd5ca9..66de662 100644
--- a/src/api/resources/evaluations/client/Client.ts
+++ b/src/api/resources/evaluations/client/Client.ts
@@ -84,8 +84,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -198,8 +198,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -277,8 +277,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -358,8 +358,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -450,8 +450,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -539,8 +539,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -624,8 +624,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -720,8 +720,8 @@ export class Evaluations {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/evaluators/client/Client.ts b/src/api/resources/evaluators/client/Client.ts
index 9f12229..10ff2bb 100644
--- a/src/api/resources/evaluators/client/Client.ts
+++ b/src/api/resources/evaluators/client/Client.ts
@@ -78,8 +78,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -184,8 +184,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -281,8 +281,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -360,8 +360,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -439,8 +439,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -533,8 +533,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -623,8 +623,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -717,8 +717,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -804,8 +804,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -879,8 +879,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -974,8 +974,8 @@ export class Evaluators {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts b/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts
index c10e765..caf8985 100644
--- a/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts
+++ b/src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts
@@ -51,10 +51,8 @@ export interface CreateEvaluatorLogRequest {
parentId: string;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts
index 83f17de..aa39b2c 100644
--- a/src/api/resources/files/client/Client.ts
+++ b/src/api/resources/files/client/Client.ts
@@ -87,8 +87,8 @@ export class Files {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/flows/client/Client.ts b/src/api/resources/flows/client/Client.ts
index a0c40cc..bf73392 100644
--- a/src/api/resources/flows/client/Client.ts
+++ b/src/api/resources/flows/client/Client.ts
@@ -68,8 +68,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -147,8 +147,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -224,8 +224,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -283,7 +283,7 @@ export class Flows {
}
/**
- * Get a list of all Flows.
+ * Get a list of Flows.
*
* @param {Humanloop.ListFlowsGetRequest} request
* @param {Flows.RequestOptions} requestOptions - Request-specific configuration.
@@ -332,8 +332,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -391,6 +391,14 @@ export class Flows {
}
/**
+ * Create or update a Flow.
+ *
+ * Flows can also be identified by the `ID` or their `path`.
+ *
+ * If you provide a commit message, then the new version will be committed;
+ * otherwise it will be uncommitted. If you try to commit an already committed version,
+ * an exception will be raised.
+ *
* @param {Humanloop.FlowRequest} request
* @param {Flows.RequestOptions} requestOptions - Request-specific configuration.
*
@@ -416,8 +424,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -475,7 +483,10 @@ export class Flows {
}
/**
- * Log a Flow Trace.
+ * Log to a Flow.
+ *
+ * You can use query parameters `version_id`, or `environment`, to target
+ * an existing version of the Flow. Otherwise, the default deployed version will be chosen.
*
* @param {Humanloop.FlowLogRequest} request
* @param {Flows.RequestOptions} requestOptions - Request-specific configuration.
@@ -508,8 +519,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -568,33 +579,38 @@ export class Flows {
}
/**
- * @param {string} traceId - Unique identifier for Trace.
+ * Update the status, inputs, output of a Flow Log.
+ *
+ * Marking a Flow Log as complete will trigger any monitoring Evaluators to run.
+ * Inputs and output (or error) must be provided in order to mark it as complete.
+ *
+ * @param {string} logId - Unique identifier of the Flow Log.
* @param {Humanloop.UpdateTraceRequest} request
* @param {Flows.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Humanloop.UnprocessableEntityError}
*
* @example
- * await client.flows.updateTrace("trace_id", {
- * status: Humanloop.TraceStatus.Complete
+ * await client.flows.updateLog("log_id", {
+ * traceStatus: Humanloop.TraceStatus.Complete
* })
*/
- public async updateTrace(
- traceId: string,
+ public async updateLog(
+ logId: string,
request: Humanloop.UpdateTraceRequest,
requestOptions?: Flows.RequestOptions
): Promise {
const _response = await (this._options.fetcher ?? core.fetcher)({
url: urlJoin(
(await core.Supplier.get(this._options.environment)) ?? environments.HumanloopEnvironment.Default,
- `flows/log/${encodeURIComponent(traceId)}`
+ `flows/logs/${encodeURIComponent(logId)}`
),
method: "PATCH",
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -687,8 +703,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -777,8 +793,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -871,8 +887,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -958,8 +974,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1033,8 +1049,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1119,8 +1135,8 @@ export class Flows {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/flows/client/requests/FlowLogRequest.ts b/src/api/resources/flows/client/requests/FlowLogRequest.ts
index 4cbfbbd..dc13a48 100644
--- a/src/api/resources/flows/client/requests/FlowLogRequest.ts
+++ b/src/api/resources/flows/client/requests/FlowLogRequest.ts
@@ -49,10 +49,8 @@ export interface FlowLogRequest {
metadata?: Record;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** ID of the Trace. If not provided, one will be assigned. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
@@ -61,6 +59,8 @@ export interface FlowLogRequest {
flowLogRequestEnvironment?: string;
/** Whether the request/response payloads will be stored on Humanloop. */
save?: boolean;
+ /** ID of the Trace. If not provided, one will be assigned. */
+ traceId?: string;
/** Flow used to generate the Trace. */
flow?: Humanloop.FlowKernelRequest;
/** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. If you do not intend to add more Logs to the Trace after creation, set this to `complete`. */
diff --git a/src/api/resources/flows/client/requests/UpdateTraceRequest.ts b/src/api/resources/flows/client/requests/UpdateTraceRequest.ts
index 8530634..58f47bb 100644
--- a/src/api/resources/flows/client/requests/UpdateTraceRequest.ts
+++ b/src/api/resources/flows/client/requests/UpdateTraceRequest.ts
@@ -7,14 +7,16 @@ import * as Humanloop from "../../../../index";
/**
* @example
* {
- * status: Humanloop.TraceStatus.Complete
+ * traceStatus: Humanloop.TraceStatus.Complete
* }
*/
export interface UpdateTraceRequest {
/** The inputs passed to the Flow Log. */
inputs?: Record;
- /** The output of the Flow Log. */
+ /** The output of the Flow Log. Provide None to unset existing `output` value. Provide either this or `error`. */
output?: string;
- /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. */
- status: Humanloop.TraceStatus;
+ /** The error message of the Flow Log. Provide None to unset existing `error` value. Provide either this or `output`. */
+ error?: string;
+ /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on completed Traces. */
+ traceStatus: Humanloop.TraceStatus;
}
diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts
index 70a8919..efa3161 100644
--- a/src/api/resources/index.ts
+++ b/src/api/resources/index.ts
@@ -8,7 +8,6 @@ export * as flows from "./flows";
export * as files from "./files";
export * as evaluations from "./evaluations";
export * as logs from "./logs";
-export * as sessions from "./sessions";
export * from "./prompts/client/requests";
export * from "./tools/client/requests";
export * from "./datasets/client/requests";
@@ -17,4 +16,3 @@ export * from "./flows/client/requests";
export * from "./files/client/requests";
export * from "./evaluations/client/requests";
export * from "./logs/client/requests";
-export * from "./sessions/client/requests";
diff --git a/src/api/resources/logs/client/Client.ts b/src/api/resources/logs/client/Client.ts
index 0ac4f36..5cd7eb8 100644
--- a/src/api/resources/logs/client/Client.ts
+++ b/src/api/resources/logs/client/Client.ts
@@ -119,8 +119,8 @@ export class Logs {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -222,8 +222,8 @@ export class Logs {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -295,8 +295,8 @@ export class Logs {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/prompts/client/Client.ts b/src/api/resources/prompts/client/Client.ts
index 2f3833d..7a0da43 100644
--- a/src/api/resources/prompts/client/Client.ts
+++ b/src/api/resources/prompts/client/Client.ts
@@ -123,8 +123,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -212,8 +212,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -307,8 +307,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -485,8 +485,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -596,8 +596,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -711,8 +711,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -808,8 +808,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -887,8 +887,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -966,8 +966,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1062,8 +1062,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1152,8 +1152,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1243,8 +1243,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1339,8 +1339,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1426,8 +1426,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1501,8 +1501,8 @@ export class Prompts {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/prompts/client/requests/PromptLogRequest.ts b/src/api/resources/prompts/client/requests/PromptLogRequest.ts
index 9493066..70134a4 100644
--- a/src/api/resources/prompts/client/requests/PromptLogRequest.ts
+++ b/src/api/resources/prompts/client/requests/PromptLogRequest.ts
@@ -100,10 +100,8 @@ export interface PromptLogRequest {
metadata?: Record;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
diff --git a/src/api/resources/prompts/client/requests/PromptsCallRequest.ts b/src/api/resources/prompts/client/requests/PromptsCallRequest.ts
index 06c2d4d..9c2cf9f 100644
--- a/src/api/resources/prompts/client/requests/PromptsCallRequest.ts
+++ b/src/api/resources/prompts/client/requests/PromptsCallRequest.ts
@@ -105,10 +105,8 @@ export interface PromptsCallRequest {
endTime?: Date;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
diff --git a/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts b/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts
index f89d12c..06041cb 100644
--- a/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts
+++ b/src/api/resources/prompts/client/requests/PromptsCallStreamRequest.ts
@@ -84,8 +84,7 @@ import * as Humanloop from "../../../../index";
* startTime: "2024-01-15T09:30:00Z",
* endTime: "2024-01-15T09:30:00Z",
* sourceDatapointId: "string",
- * traceId: "string",
- * traceParentLogId: "string",
+ * traceParentId: "string",
* batches: ["string"],
* user: "string",
* promptsCallStreamRequestEnvironment: "string",
@@ -143,10 +142,8 @@ export interface PromptsCallStreamRequest {
endTime?: Date;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
diff --git a/src/api/resources/sessions/client/Client.ts b/src/api/resources/sessions/client/Client.ts
deleted file mode 100644
index 0f11b7b..0000000
--- a/src/api/resources/sessions/client/Client.ts
+++ /dev/null
@@ -1,309 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as environments from "../../../../environments";
-import * as core from "../../../../core";
-import * as Humanloop from "../../../index";
-import urlJoin from "url-join";
-import * as serializers from "../../../../serialization/index";
-import * as errors from "../../../../errors/index";
-
-export declare namespace Sessions {
- interface Options {
- environment?: core.Supplier;
- apiKey: core.Supplier;
- fetcher?: core.FetchFunction;
- }
-
- interface RequestOptions {
- /** The maximum time to wait for a response in seconds. */
- timeoutInSeconds?: number;
- /** The number of times to retry the request. Defaults to 2. */
- maxRetries?: number;
- /** A hook to abort the request. */
- abortSignal?: AbortSignal;
- }
-}
-
-/**
- * Sessions are groups of Logs that track sequences of LLM actions.
- *
- * Sessions enable you to trace through related Logs across different Files. For
- * example, a Session can contain a Prompt Log recording an LLM generation, a Tool
- * Log recording a retrieval step, and Evaluator Logs measuring the quality of the
- * generated text.
- *
- * Logs within a Session may be nested within each other. When Evaluators are run
- * for monitoring, the Evaluator Logs are added to the Session that the evaluated
- * Log is in, nested within the evaluated Log.
- *
- *
- */
-export class Sessions {
- constructor(protected readonly _options: Sessions.Options) {}
-
- /**
- * Retrieve the Session with the given ID.
- *
- * @param {string} id - Unique identifier for Session.
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
- *
- * @throws {@link Humanloop.UnprocessableEntityError}
- *
- * @example
- * await client.sessions.get("sesh_123abc")
- */
- public async get(id: string, requestOptions?: Sessions.RequestOptions): Promise {
- const _response = await (this._options.fetcher ?? core.fetcher)({
- url: urlJoin(
- (await core.Supplier.get(this._options.environment)) ?? environments.HumanloopEnvironment.Default,
- `sessions/${encodeURIComponent(id)}`
- ),
- method: "GET",
- headers: {
- "X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
- "X-Fern-Runtime": core.RUNTIME.type,
- "X-Fern-Runtime-Version": core.RUNTIME.version,
- ...(await this._getCustomAuthorizationHeaders()),
- },
- contentType: "application/json",
- requestType: "json",
- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
- maxRetries: requestOptions?.maxRetries,
- abortSignal: requestOptions?.abortSignal,
- });
- if (_response.ok) {
- return serializers.SessionResponse.parseOrThrow(_response.body, {
- unrecognizedObjectKeys: "passthrough",
- allowUnrecognizedUnionMembers: true,
- allowUnrecognizedEnumValues: true,
- skipValidation: true,
- breadcrumbsPrefix: ["response"],
- });
- }
-
- if (_response.error.reason === "status-code") {
- switch (_response.error.statusCode) {
- case 422:
- throw new Humanloop.UnprocessableEntityError(
- serializers.HttpValidationError.parseOrThrow(_response.error.body, {
- unrecognizedObjectKeys: "passthrough",
- allowUnrecognizedUnionMembers: true,
- allowUnrecognizedEnumValues: true,
- skipValidation: true,
- breadcrumbsPrefix: ["response"],
- })
- );
- default:
- throw new errors.HumanloopError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- });
- }
- }
-
- switch (_response.error.reason) {
- case "non-json":
- throw new errors.HumanloopError({
- statusCode: _response.error.statusCode,
- body: _response.error.rawBody,
- });
- case "timeout":
- throw new errors.HumanloopTimeoutError();
- case "unknown":
- throw new errors.HumanloopError({
- message: _response.error.errorMessage,
- });
- }
- }
-
- /**
- * Delete the Session with the given ID.
- *
- * @param {string} id - Unique identifier for Session.
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
- *
- * @throws {@link Humanloop.UnprocessableEntityError}
- *
- * @example
- * await client.sessions.delete("sesh_123abc")
- */
- public async delete(id: string, requestOptions?: Sessions.RequestOptions): Promise {
- const _response = await (this._options.fetcher ?? core.fetcher)({
- url: urlJoin(
- (await core.Supplier.get(this._options.environment)) ?? environments.HumanloopEnvironment.Default,
- `sessions/${encodeURIComponent(id)}`
- ),
- method: "DELETE",
- headers: {
- "X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
- "X-Fern-Runtime": core.RUNTIME.type,
- "X-Fern-Runtime-Version": core.RUNTIME.version,
- ...(await this._getCustomAuthorizationHeaders()),
- },
- contentType: "application/json",
- requestType: "json",
- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
- maxRetries: requestOptions?.maxRetries,
- abortSignal: requestOptions?.abortSignal,
- });
- if (_response.ok) {
- return;
- }
-
- if (_response.error.reason === "status-code") {
- switch (_response.error.statusCode) {
- case 422:
- throw new Humanloop.UnprocessableEntityError(
- serializers.HttpValidationError.parseOrThrow(_response.error.body, {
- unrecognizedObjectKeys: "passthrough",
- allowUnrecognizedUnionMembers: true,
- allowUnrecognizedEnumValues: true,
- skipValidation: true,
- breadcrumbsPrefix: ["response"],
- })
- );
- default:
- throw new errors.HumanloopError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- });
- }
- }
-
- switch (_response.error.reason) {
- case "non-json":
- throw new errors.HumanloopError({
- statusCode: _response.error.statusCode,
- body: _response.error.rawBody,
- });
- case "timeout":
- throw new errors.HumanloopTimeoutError();
- case "unknown":
- throw new errors.HumanloopError({
- message: _response.error.errorMessage,
- });
- }
- }
-
- /**
- * Get a list of Sessions.
- *
- * @param {Humanloop.ListSessionsGetRequest} request
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
- *
- * @throws {@link Humanloop.UnprocessableEntityError}
- *
- * @example
- * await client.sessions.list({
- * size: 1,
- * fileId: "pr_123abc"
- * })
- */
- public async list(
- request: Humanloop.ListSessionsGetRequest = {},
- requestOptions?: Sessions.RequestOptions
- ): Promise> {
- const list = async (request: Humanloop.ListSessionsGetRequest): Promise => {
- const { fileId, versionId, page, size } = request;
- const _queryParams: Record = {};
- if (fileId != null) {
- _queryParams["file_id"] = fileId;
- }
- if (versionId != null) {
- _queryParams["version_id"] = versionId;
- }
- if (page != null) {
- _queryParams["page"] = page.toString();
- }
- if (size != null) {
- _queryParams["size"] = size.toString();
- }
- const _response = await (this._options.fetcher ?? core.fetcher)({
- url: urlJoin(
- (await core.Supplier.get(this._options.environment)) ?? environments.HumanloopEnvironment.Default,
- "sessions"
- ),
- method: "GET",
- headers: {
- "X-Fern-Language": "JavaScript",
- "X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
- "X-Fern-Runtime": core.RUNTIME.type,
- "X-Fern-Runtime-Version": core.RUNTIME.version,
- ...(await this._getCustomAuthorizationHeaders()),
- },
- contentType: "application/json",
- queryParameters: _queryParams,
- requestType: "json",
- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
- maxRetries: requestOptions?.maxRetries,
- abortSignal: requestOptions?.abortSignal,
- });
- if (_response.ok) {
- return serializers.PaginatedSessionResponse.parseOrThrow(_response.body, {
- unrecognizedObjectKeys: "passthrough",
- allowUnrecognizedUnionMembers: true,
- allowUnrecognizedEnumValues: true,
- skipValidation: true,
- breadcrumbsPrefix: ["response"],
- });
- }
- if (_response.error.reason === "status-code") {
- switch (_response.error.statusCode) {
- case 422:
- throw new Humanloop.UnprocessableEntityError(
- serializers.HttpValidationError.parseOrThrow(_response.error.body, {
- unrecognizedObjectKeys: "passthrough",
- allowUnrecognizedUnionMembers: true,
- allowUnrecognizedEnumValues: true,
- skipValidation: true,
- breadcrumbsPrefix: ["response"],
- })
- );
- default:
- throw new errors.HumanloopError({
- statusCode: _response.error.statusCode,
- body: _response.error.body,
- });
- }
- }
- switch (_response.error.reason) {
- case "non-json":
- throw new errors.HumanloopError({
- statusCode: _response.error.statusCode,
- body: _response.error.rawBody,
- });
- case "timeout":
- throw new errors.HumanloopTimeoutError();
- case "unknown":
- throw new errors.HumanloopError({
- message: _response.error.errorMessage,
- });
- }
- };
- let _offset = request?.page != null ? request?.page : 1;
- return new core.Pageable({
- response: await list(request),
- hasNextPage: (response) => (response?.records ?? []).length > 0,
- getItems: (response) => response?.records ?? [],
- loadPage: (_response) => {
- _offset += 1;
- return list(core.setObjectProperty(request, "page", _offset));
- },
- });
- }
-
- protected async _getCustomAuthorizationHeaders() {
- const apiKeyValue = (await core.Supplier.get(this._options.apiKey)) ?? process?.env["HUMANLOOP_API_KEY"];
- return { "X-API-KEY": apiKeyValue };
- }
-}
diff --git a/src/api/resources/sessions/client/index.ts b/src/api/resources/sessions/client/index.ts
deleted file mode 100644
index 415726b..0000000
--- a/src/api/resources/sessions/client/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./requests";
diff --git a/src/api/resources/sessions/client/requests/ListSessionsGetRequest.ts b/src/api/resources/sessions/client/requests/ListSessionsGetRequest.ts
deleted file mode 100644
index f31742e..0000000
--- a/src/api/resources/sessions/client/requests/ListSessionsGetRequest.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-/**
- * @example
- * {
- * size: 1,
- * fileId: "pr_123abc"
- * }
- */
-export interface ListSessionsGetRequest {
- /**
- * Unique identifier for File to return Sessions for. Sessions that contain any Logs associated to this File will be returned.
- */
- fileId?: string;
- /**
- * Unique identifier for Version to return Sessions for. Sessions that contain any Logs associated to this Version will be returned.
- */
- versionId?: string;
- /**
- * Page number for pagination.
- */
- page?: number;
- /**
- * Page size for pagination. Number of Sessions to fetch.
- */
- size?: number;
-}
diff --git a/src/api/resources/sessions/client/requests/index.ts b/src/api/resources/sessions/client/requests/index.ts
deleted file mode 100644
index fb6cab9..0000000
--- a/src/api/resources/sessions/client/requests/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { type ListSessionsGetRequest } from "./ListSessionsGetRequest";
diff --git a/src/api/resources/sessions/index.ts b/src/api/resources/sessions/index.ts
deleted file mode 100644
index 5ec7692..0000000
--- a/src/api/resources/sessions/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./client";
diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts
index bac0a4b..177c9d4 100644
--- a/src/api/resources/tools/client/Client.ts
+++ b/src/api/resources/tools/client/Client.ts
@@ -99,8 +99,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -188,8 +188,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -293,8 +293,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -412,8 +412,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -509,8 +509,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -588,8 +588,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -667,8 +667,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -763,8 +763,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -853,8 +853,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -944,8 +944,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1040,8 +1040,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1127,8 +1127,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
@@ -1202,8 +1202,8 @@ export class Tools {
headers: {
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "humanloop",
- "X-Fern-SDK-Version": "0.8.0-beta16",
- "User-Agent": "humanloop/0.8.0-beta16",
+ "X-Fern-SDK-Version": "0.8.0",
+ "User-Agent": "humanloop/0.8.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...(await this._getCustomAuthorizationHeaders()),
diff --git a/src/api/resources/tools/client/requests/ToolLogRequest.ts b/src/api/resources/tools/client/requests/ToolLogRequest.ts
index 948a236..0aa2f45 100644
--- a/src/api/resources/tools/client/requests/ToolLogRequest.ts
+++ b/src/api/resources/tools/client/requests/ToolLogRequest.ts
@@ -75,10 +75,8 @@ export interface ToolLogRequest {
metadata?: Record;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
diff --git a/src/api/types/EvaluatorLogResponse.ts b/src/api/types/EvaluatorLogResponse.ts
index 4c6396d..8cc38aa 100644
--- a/src/api/types/EvaluatorLogResponse.ts
+++ b/src/api/types/EvaluatorLogResponse.ts
@@ -36,10 +36,8 @@ export interface EvaluatorLogResponse {
parentId?: string;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
@@ -56,8 +54,8 @@ export interface EvaluatorLogResponse {
evaluatorLogs: Humanloop.EvaluatorLogResponse[];
/** Identifier for the Flow that the Trace belongs to. */
traceFlowId?: string;
- /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. */
- traceStatus?: Humanloop.TraceStatus;
+ /** Identifier for the Trace that the Log belongs to. */
+ traceId?: string;
/** Logs nested under this Log in the Trace. */
traceChildren?: Humanloop.LogResponse[];
/** Evaluator used to generate the judgment. */
diff --git a/src/api/types/FlowLogResponse.ts b/src/api/types/FlowLogResponse.ts
index de4e159..f16576b 100644
--- a/src/api/types/FlowLogResponse.ts
+++ b/src/api/types/FlowLogResponse.ts
@@ -26,7 +26,7 @@ export interface FlowLogResponse {
providerRequest?: Record;
/** Raw response received the provider. */
providerResponse?: Record;
- /** The inputs passed to the Trace. */
+ /** The inputs passed to the Flow Log. */
inputs?: Record;
/** Identifies where the model was called from. */
source?: string;
@@ -34,10 +34,8 @@ export interface FlowLogResponse {
metadata?: Record;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
@@ -52,10 +50,12 @@ export interface FlowLogResponse {
evaluatorLogs: Humanloop.EvaluatorLogResponse[];
/** Identifier for the Flow that the Trace belongs to. */
traceFlowId?: string;
- /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. */
- traceStatus?: Humanloop.TraceStatus;
+ /** Identifier for the Trace that the Log belongs to. */
+ traceId?: string;
/** Logs nested under this Log in the Trace. */
traceChildren?: Humanloop.LogResponse[];
/** Flow used to generate the Log. */
flow: Humanloop.FlowResponse;
+ /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on completed Traces. */
+ traceStatus?: Humanloop.TraceStatus;
}
diff --git a/src/api/types/PaginatedSessionResponse.ts b/src/api/types/PaginatedSessionResponse.ts
index ca683de..8f7fa8a 100644
--- a/src/api/types/PaginatedSessionResponse.ts
+++ b/src/api/types/PaginatedSessionResponse.ts
@@ -2,11 +2,4 @@
* This file was auto-generated by Fern from our API Definition.
*/
-import * as Humanloop from "../index";
-
-export interface PaginatedSessionResponse {
- records: Humanloop.SessionResponse[];
- page: number;
- size: number;
- total: number;
-}
+export type PaginatedSessionResponse = unknown;
diff --git a/src/api/types/PromptCallResponse.ts b/src/api/types/PromptCallResponse.ts
index ec74ccd..e061f16 100644
--- a/src/api/types/PromptCallResponse.ts
+++ b/src/api/types/PromptCallResponse.ts
@@ -8,6 +8,10 @@ import * as Humanloop from "../index";
* Response model for a Prompt call with potentially multiple log samples.
*/
export interface PromptCallResponse {
+ /** When the logged event started. */
+ startTime?: Date;
+ /** When the logged event ended. */
+ endTime?: Date;
/** The messages passed to the to provider chat endpoint. */
messages?: Humanloop.ChatMessage[];
/**
@@ -27,16 +31,10 @@ export interface PromptCallResponse {
source?: string;
/** Any additional metadata to record. */
metadata?: Record;
- /** When the logged event started. */
- startTime?: Date;
- /** When the logged event ended. */
- endTime?: Date;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
@@ -47,6 +45,8 @@ export interface PromptCallResponse {
save?: boolean;
/** ID of the log. */
id: string;
+ /** ID of the Trace containing the Prompt Call Log. */
+ traceId?: string;
/** The logs generated by the Prompt call. */
logs: Humanloop.PromptCallLogResponse[];
}
diff --git a/src/api/types/PromptLogResponse.ts b/src/api/types/PromptLogResponse.ts
index 225e65a..383fd15 100644
--- a/src/api/types/PromptLogResponse.ts
+++ b/src/api/types/PromptLogResponse.ts
@@ -59,10 +59,8 @@ export interface PromptLogResponse {
metadata?: Record;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
@@ -77,8 +75,8 @@ export interface PromptLogResponse {
evaluatorLogs: Humanloop.EvaluatorLogResponse[];
/** Identifier for the Flow that the Trace belongs to. */
traceFlowId?: string;
- /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. */
- traceStatus?: Humanloop.TraceStatus;
+ /** Identifier for the Trace that the Log belongs to. */
+ traceId?: string;
/** Logs nested under this Log in the Trace. */
traceChildren?: Humanloop.LogResponse[];
}
diff --git a/src/api/types/SessionEventResponse.ts b/src/api/types/SessionEventResponse.ts
deleted file mode 100644
index 5ba4413..0000000
--- a/src/api/types/SessionEventResponse.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as Humanloop from "../index";
-
-export interface SessionEventResponse {
- log: Humanloop.LogResponse;
- children: Humanloop.SessionEventResponse[];
-}
diff --git a/src/api/types/SessionResponse.ts b/src/api/types/SessionResponse.ts
deleted file mode 100644
index e453f20..0000000
--- a/src/api/types/SessionResponse.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as Humanloop from "../index";
-
-export interface SessionResponse {
- /** Unique identifier for the Session. */
- id: string;
- createdAt: Date;
- updatedAt: Date;
- /** Inputs for the first datapoint in the session. */
- firstInputs?: Record;
- /** Output for the last datapoint in the session. */
- lastOutput?: string;
- /** Number of logs associated to this session. */
- logsCount: number;
- /** List of events associated with this Session. */
- events: Humanloop.SessionEventResponse[];
-}
diff --git a/src/api/types/ToolLogResponse.ts b/src/api/types/ToolLogResponse.ts
index 103969a..5981694 100644
--- a/src/api/types/ToolLogResponse.ts
+++ b/src/api/types/ToolLogResponse.ts
@@ -34,10 +34,8 @@ export interface ToolLogResponse {
metadata?: Record;
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
sourceDatapointId?: string;
- /** Identifier of the Flow Log to which the Log will be associated. Multiple Logs can be associated by passing the same trace_id in subsequent log requests. Use the Flow File log endpoint to create the Trace first. */
- traceId?: string;
- /** Log under which this Log should be nested. Leave field blank if the Log should be nested directly under root Trace Log. Parent Log should already be added to the Trace. */
- traceParentLogId?: string;
+ /** The ID of the parent Log to nest this Log under in a Trace. */
+ traceParentId?: string;
/** Array of Batch Ids that this log is part of. Batches are used to group Logs together for offline Evaluations */
batches?: string[];
/** End-user ID related to the Log. */
@@ -52,8 +50,8 @@ export interface ToolLogResponse {
evaluatorLogs: Humanloop.EvaluatorLogResponse[];
/** Identifier for the Flow that the Trace belongs to. */
traceFlowId?: string;
- /** Status of the Trace. When a Trace is marked as `complete`, no more Logs can be added to it. Monitoring Evaluators will only run on `complete` Traces. */
- traceStatus?: Humanloop.TraceStatus;
+ /** Identifier for the Trace that the Log belongs to. */
+ traceId?: string;
/** Logs nested under this Log in the Trace. */
traceChildren?: Humanloop.LogResponse[];
/** Tool used to generate the Log. */
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index f477e29..56831d5 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -79,7 +79,6 @@ export * from "./PaginatedDataEvaluatorResponse";
export * from "./PaginatedDataFlowResponse";
export * from "./PaginatedDataLogResponse";
export * from "./PaginatedDataPromptResponse";
-export * from "./PaginatedSessionResponse";
export * from "./PaginatedDataToolResponse";
export * from "./PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponseFlowResponseRecordsItem";
export * from "./PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponseFlowResponse";
@@ -101,8 +100,6 @@ export * from "./ProviderApiKeys";
export * from "./ResponseFormatType";
export * from "./ResponseFormat";
export * from "./SelectEvaluatorStatsResponse";
-export * from "./SessionEventResponse";
-export * from "./SessionResponse";
export * from "./SortOrder";
export * from "./TextChatContent";
export * from "./TextEvaluatorStatsResponse";
@@ -135,6 +132,7 @@ export * from "./AgentConfigResponse";
export * from "./EvaluatorConfigResponse";
export * from "./UpdateEvaluationStatusRequest";
export * from "./PaginatedPromptLogResponse";
+export * from "./PaginatedSessionResponse";
export * from "./ConfigToolResponse";
export * from "./FeedbackType";
export * from "./BaseModelsUserResponse";
diff --git a/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts b/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts
index f5c056b..0a44a7d 100644
--- a/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts
+++ b/src/serialization/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts
@@ -34,8 +34,7 @@ export const CreateEvaluatorLogRequest: core.serialization.Schema<
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
parentId: core.serialization.property("parent_id", core.serialization.string()),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
createEvaluatorLogRequestEnvironment: core.serialization.property(
@@ -65,8 +64,7 @@ export declare namespace CreateEvaluatorLogRequest {
metadata?: Record | null;
parent_id: string;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
diff --git a/src/serialization/resources/flows/client/requests/FlowLogRequest.ts b/src/serialization/resources/flows/client/requests/FlowLogRequest.ts
index 2fb33d1..bfc82e2 100644
--- a/src/serialization/resources/flows/client/requests/FlowLogRequest.ts
+++ b/src/serialization/resources/flows/client/requests/FlowLogRequest.ts
@@ -34,12 +34,12 @@ export const FlowLogRequest: core.serialization.Schema<
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
flowLogRequestEnvironment: core.serialization.property("environment", core.serialization.string().optional()),
save: core.serialization.boolean().optional(),
+ traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
flow: FlowKernelRequest.optional(),
traceStatus: core.serialization.property("trace_status", TraceStatus.optional()),
});
@@ -62,12 +62,12 @@ export declare namespace FlowLogRequest {
source?: string | null;
metadata?: Record | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
save?: boolean | null;
+ trace_id?: string | null;
flow?: FlowKernelRequest.Raw | null;
trace_status?: TraceStatus.Raw | null;
}
diff --git a/src/serialization/resources/flows/client/requests/UpdateTraceRequest.ts b/src/serialization/resources/flows/client/requests/UpdateTraceRequest.ts
index 6069b9d..4e7ea34 100644
--- a/src/serialization/resources/flows/client/requests/UpdateTraceRequest.ts
+++ b/src/serialization/resources/flows/client/requests/UpdateTraceRequest.ts
@@ -13,13 +13,15 @@ export const UpdateTraceRequest: core.serialization.Schema<
> = core.serialization.object({
inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
output: core.serialization.string().optional(),
- status: TraceStatus,
+ error: core.serialization.string().optional(),
+ traceStatus: core.serialization.property("trace_status", TraceStatus),
});
export declare namespace UpdateTraceRequest {
interface Raw {
inputs?: Record | null;
output?: string | null;
- status: TraceStatus.Raw;
+ error?: string | null;
+ trace_status: TraceStatus.Raw;
}
}
diff --git a/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts b/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts
index 110366b..a1475fe 100644
--- a/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts
+++ b/src/serialization/resources/prompts/client/requests/PromptLogRequest.ts
@@ -44,8 +44,7 @@ export const PromptLogRequest: core.serialization.Schema<
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
promptLogRequestEnvironment: core.serialization.property("environment", core.serialization.string().optional()),
@@ -79,8 +78,7 @@ export declare namespace PromptLogRequest {
source?: string | null;
metadata?: Record | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
diff --git a/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts b/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts
index a7e7f92..8d8fade 100644
--- a/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts
+++ b/src/serialization/resources/prompts/client/requests/PromptsCallRequest.ts
@@ -25,8 +25,7 @@ export const PromptsCallRequest: core.serialization.Schema<
startTime: core.serialization.property("start_time", core.serialization.date().optional()),
endTime: core.serialization.property("end_time", core.serialization.date().optional()),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
promptsCallRequestEnvironment: core.serialization.property("environment", core.serialization.string().optional()),
@@ -51,8 +50,7 @@ export declare namespace PromptsCallRequest {
start_time?: string | null;
end_time?: string | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
diff --git a/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts b/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts
index e016630..11e8fc2 100644
--- a/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts
+++ b/src/serialization/resources/prompts/client/requests/PromptsCallStreamRequest.ts
@@ -25,8 +25,7 @@ export const PromptsCallStreamRequest: core.serialization.Schema<
startTime: core.serialization.property("start_time", core.serialization.date().optional()),
endTime: core.serialization.property("end_time", core.serialization.date().optional()),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
promptsCallStreamRequestEnvironment: core.serialization.property(
@@ -54,8 +53,7 @@ export declare namespace PromptsCallStreamRequest {
start_time?: string | null;
end_time?: string | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
diff --git a/src/serialization/resources/tools/client/requests/ToolLogRequest.ts b/src/serialization/resources/tools/client/requests/ToolLogRequest.ts
index ab041b4..c2224a1 100644
--- a/src/serialization/resources/tools/client/requests/ToolLogRequest.ts
+++ b/src/serialization/resources/tools/client/requests/ToolLogRequest.ts
@@ -32,8 +32,7 @@ export const ToolLogRequest: core.serialization.Schema<
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
toolLogRequestEnvironment: core.serialization.property("environment", core.serialization.string().optional()),
@@ -58,8 +57,7 @@ export declare namespace ToolLogRequest {
source?: string | null;
metadata?: Record | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
diff --git a/src/serialization/types/EvaluatorLogResponse.ts b/src/serialization/types/EvaluatorLogResponse.ts
index d7ecd54..27135a4 100644
--- a/src/serialization/types/EvaluatorLogResponse.ts
+++ b/src/serialization/types/EvaluatorLogResponse.ts
@@ -6,7 +6,6 @@ import * as serializers from "../index";
import * as Humanloop from "../../api/index";
import * as core from "../../core";
import { EvaluatorLogResponseJudgment } from "./EvaluatorLogResponseJudgment";
-import { TraceStatus } from "./TraceStatus";
export const EvaluatorLogResponse: core.serialization.ObjectSchema<
serializers.EvaluatorLogResponse.Raw,
@@ -32,8 +31,7 @@ export const EvaluatorLogResponse: core.serialization.ObjectSchema<
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
parentId: core.serialization.property("parent_id", core.serialization.string().optional()),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
environment: core.serialization.string().optional(),
@@ -45,7 +43,7 @@ export const EvaluatorLogResponse: core.serialization.ObjectSchema<
core.serialization.list(core.serialization.lazyObject(() => serializers.EvaluatorLogResponse))
),
traceFlowId: core.serialization.property("trace_flow_id", core.serialization.string().optional()),
- traceStatus: core.serialization.property("trace_status", TraceStatus.optional()),
+ traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
traceChildren: core.serialization.property(
"trace_children",
core.serialization.list(core.serialization.lazy(() => serializers.LogResponse)).optional()
@@ -70,8 +68,7 @@ export declare namespace EvaluatorLogResponse {
metadata?: Record | null;
parent_id?: string | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
@@ -80,7 +77,7 @@ export declare namespace EvaluatorLogResponse {
id: string;
evaluator_logs: serializers.EvaluatorLogResponse.Raw[];
trace_flow_id?: string | null;
- trace_status?: TraceStatus.Raw | null;
+ trace_id?: string | null;
trace_children?: serializers.LogResponse.Raw[] | null;
evaluator: serializers.EvaluatorResponse.Raw;
parent?: serializers.LogResponse.Raw | null;
diff --git a/src/serialization/types/FlowLogResponse.ts b/src/serialization/types/FlowLogResponse.ts
index 3e7bcc7..b470dc0 100644
--- a/src/serialization/types/FlowLogResponse.ts
+++ b/src/serialization/types/FlowLogResponse.ts
@@ -30,8 +30,7 @@ export const FlowLogResponse: core.serialization.ObjectSchema<
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
environment: core.serialization.string().optional(),
@@ -42,12 +41,13 @@ export const FlowLogResponse: core.serialization.ObjectSchema<
core.serialization.list(core.serialization.lazyObject(() => serializers.EvaluatorLogResponse))
),
traceFlowId: core.serialization.property("trace_flow_id", core.serialization.string().optional()),
- traceStatus: core.serialization.property("trace_status", TraceStatus.optional()),
+ traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
traceChildren: core.serialization.property(
"trace_children",
core.serialization.list(core.serialization.lazy(() => serializers.LogResponse)).optional()
),
flow: core.serialization.lazyObject(() => serializers.FlowResponse),
+ traceStatus: core.serialization.property("trace_status", TraceStatus.optional()),
});
export declare namespace FlowLogResponse {
@@ -65,8 +65,7 @@ export declare namespace FlowLogResponse {
source?: string | null;
metadata?: Record | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
@@ -74,8 +73,9 @@ export declare namespace FlowLogResponse {
id: string;
evaluator_logs: serializers.EvaluatorLogResponse.Raw[];
trace_flow_id?: string | null;
- trace_status?: TraceStatus.Raw | null;
+ trace_id?: string | null;
trace_children?: serializers.LogResponse.Raw[] | null;
flow: serializers.FlowResponse.Raw;
+ trace_status?: TraceStatus.Raw | null;
}
}
diff --git a/src/serialization/types/PaginatedSessionResponse.ts b/src/serialization/types/PaginatedSessionResponse.ts
index ac819a0..ecb5a8c 100644
--- a/src/serialization/types/PaginatedSessionResponse.ts
+++ b/src/serialization/types/PaginatedSessionResponse.ts
@@ -5,23 +5,12 @@
import * as serializers from "../index";
import * as Humanloop from "../../api/index";
import * as core from "../../core";
-import { SessionResponse } from "./SessionResponse";
-export const PaginatedSessionResponse: core.serialization.ObjectSchema<
+export const PaginatedSessionResponse: core.serialization.Schema<
serializers.PaginatedSessionResponse.Raw,
Humanloop.PaginatedSessionResponse
-> = core.serialization.object({
- records: core.serialization.list(SessionResponse),
- page: core.serialization.number(),
- size: core.serialization.number(),
- total: core.serialization.number(),
-});
+> = core.serialization.unknown();
export declare namespace PaginatedSessionResponse {
- interface Raw {
- records: SessionResponse.Raw[];
- page: number;
- size: number;
- total: number;
- }
+ type Raw = unknown;
}
diff --git a/src/serialization/types/PromptCallResponse.ts b/src/serialization/types/PromptCallResponse.ts
index acf3653..2e19223 100644
--- a/src/serialization/types/PromptCallResponse.ts
+++ b/src/serialization/types/PromptCallResponse.ts
@@ -13,43 +13,43 @@ export const PromptCallResponse: core.serialization.ObjectSchema<
serializers.PromptCallResponse.Raw,
Humanloop.PromptCallResponse
> = core.serialization.object({
+ startTime: core.serialization.property("start_time", core.serialization.date().optional()),
+ endTime: core.serialization.property("end_time", core.serialization.date().optional()),
messages: core.serialization.list(ChatMessage).optional(),
toolChoice: core.serialization.property("tool_choice", PromptCallResponseToolChoice.optional()),
prompt: core.serialization.lazyObject(() => serializers.PromptResponse),
inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
- startTime: core.serialization.property("start_time", core.serialization.date().optional()),
- endTime: core.serialization.property("end_time", core.serialization.date().optional()),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
environment: core.serialization.string().optional(),
save: core.serialization.boolean().optional(),
id: core.serialization.string(),
+ traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
logs: core.serialization.list(PromptCallLogResponse),
});
export declare namespace PromptCallResponse {
interface Raw {
+ start_time?: string | null;
+ end_time?: string | null;
messages?: ChatMessage.Raw[] | null;
tool_choice?: PromptCallResponseToolChoice.Raw | null;
prompt: serializers.PromptResponse.Raw;
inputs?: Record | null;
source?: string | null;
metadata?: Record | null;
- start_time?: string | null;
- end_time?: string | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
save?: boolean | null;
id: string;
+ trace_id?: string | null;
logs: PromptCallLogResponse.Raw[];
}
}
diff --git a/src/serialization/types/PromptLogResponse.ts b/src/serialization/types/PromptLogResponse.ts
index fd30f1a..ddacbb8 100644
--- a/src/serialization/types/PromptLogResponse.ts
+++ b/src/serialization/types/PromptLogResponse.ts
@@ -7,7 +7,6 @@ import * as Humanloop from "../../api/index";
import * as core from "../../core";
import { ChatMessage } from "./ChatMessage";
import { PromptLogResponseToolChoice } from "./PromptLogResponseToolChoice";
-import { TraceStatus } from "./TraceStatus";
export const PromptLogResponse: core.serialization.ObjectSchema<
serializers.PromptLogResponse.Raw,
@@ -41,8 +40,7 @@ export const PromptLogResponse: core.serialization.ObjectSchema<
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
environment: core.serialization.string().optional(),
@@ -53,7 +51,7 @@ export const PromptLogResponse: core.serialization.ObjectSchema<
core.serialization.list(core.serialization.lazyObject(() => serializers.EvaluatorLogResponse))
),
traceFlowId: core.serialization.property("trace_flow_id", core.serialization.string().optional()),
- traceStatus: core.serialization.property("trace_status", TraceStatus.optional()),
+ traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
traceChildren: core.serialization.property(
"trace_children",
core.serialization.list(core.serialization.lazy(() => serializers.LogResponse)).optional()
@@ -84,8 +82,7 @@ export declare namespace PromptLogResponse {
source?: string | null;
metadata?: Record | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
@@ -93,7 +90,7 @@ export declare namespace PromptLogResponse {
id: string;
evaluator_logs: serializers.EvaluatorLogResponse.Raw[];
trace_flow_id?: string | null;
- trace_status?: TraceStatus.Raw | null;
+ trace_id?: string | null;
trace_children?: serializers.LogResponse.Raw[] | null;
}
}
diff --git a/src/serialization/types/SessionEventResponse.ts b/src/serialization/types/SessionEventResponse.ts
deleted file mode 100644
index dd29c68..0000000
--- a/src/serialization/types/SessionEventResponse.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as serializers from "../index";
-import * as Humanloop from "../../api/index";
-import * as core from "../../core";
-
-export const SessionEventResponse: core.serialization.ObjectSchema<
- serializers.SessionEventResponse.Raw,
- Humanloop.SessionEventResponse
-> = core.serialization.object({
- log: core.serialization.lazy(() => serializers.LogResponse),
- children: core.serialization.list(core.serialization.lazyObject(() => serializers.SessionEventResponse)),
-});
-
-export declare namespace SessionEventResponse {
- interface Raw {
- log: serializers.LogResponse.Raw;
- children: serializers.SessionEventResponse.Raw[];
- }
-}
diff --git a/src/serialization/types/SessionResponse.ts b/src/serialization/types/SessionResponse.ts
deleted file mode 100644
index 3cd3ef2..0000000
--- a/src/serialization/types/SessionResponse.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as serializers from "../index";
-import * as Humanloop from "../../api/index";
-import * as core from "../../core";
-
-export const SessionResponse: core.serialization.ObjectSchema<
- serializers.SessionResponse.Raw,
- Humanloop.SessionResponse
-> = core.serialization.object({
- id: core.serialization.string(),
- createdAt: core.serialization.property("created_at", core.serialization.date()),
- updatedAt: core.serialization.property("updated_at", core.serialization.date()),
- firstInputs: core.serialization.property(
- "first_inputs",
- core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()
- ),
- lastOutput: core.serialization.property("last_output", core.serialization.string().optional()),
- logsCount: core.serialization.property("logs_count", core.serialization.number()),
- events: core.serialization.list(core.serialization.lazyObject(() => serializers.SessionEventResponse)),
-});
-
-export declare namespace SessionResponse {
- interface Raw {
- id: string;
- created_at: string;
- updated_at: string;
- first_inputs?: Record | null;
- last_output?: string | null;
- logs_count: number;
- events: serializers.SessionEventResponse.Raw[];
- }
-}
diff --git a/src/serialization/types/ToolLogResponse.ts b/src/serialization/types/ToolLogResponse.ts
index 51a94a6..8b5c697 100644
--- a/src/serialization/types/ToolLogResponse.ts
+++ b/src/serialization/types/ToolLogResponse.ts
@@ -5,7 +5,6 @@
import * as serializers from "../index";
import * as Humanloop from "../../api/index";
import * as core from "../../core";
-import { TraceStatus } from "./TraceStatus";
import { ToolResponse } from "./ToolResponse";
export const ToolLogResponse: core.serialization.ObjectSchema<
@@ -31,8 +30,7 @@ export const ToolLogResponse: core.serialization.ObjectSchema<
source: core.serialization.string().optional(),
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
sourceDatapointId: core.serialization.property("source_datapoint_id", core.serialization.string().optional()),
- traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
- traceParentLogId: core.serialization.property("trace_parent_log_id", core.serialization.string().optional()),
+ traceParentId: core.serialization.property("trace_parent_id", core.serialization.string().optional()),
batches: core.serialization.list(core.serialization.string()).optional(),
user: core.serialization.string().optional(),
environment: core.serialization.string().optional(),
@@ -43,7 +41,7 @@ export const ToolLogResponse: core.serialization.ObjectSchema<
core.serialization.list(core.serialization.lazyObject(() => serializers.EvaluatorLogResponse))
),
traceFlowId: core.serialization.property("trace_flow_id", core.serialization.string().optional()),
- traceStatus: core.serialization.property("trace_status", TraceStatus.optional()),
+ traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
traceChildren: core.serialization.property(
"trace_children",
core.serialization.list(core.serialization.lazy(() => serializers.LogResponse)).optional()
@@ -66,8 +64,7 @@ export declare namespace ToolLogResponse {
source?: string | null;
metadata?: Record | null;
source_datapoint_id?: string | null;
- trace_id?: string | null;
- trace_parent_log_id?: string | null;
+ trace_parent_id?: string | null;
batches?: string[] | null;
user?: string | null;
environment?: string | null;
@@ -75,7 +72,7 @@ export declare namespace ToolLogResponse {
id: string;
evaluator_logs: serializers.EvaluatorLogResponse.Raw[];
trace_flow_id?: string | null;
- trace_status?: TraceStatus.Raw | null;
+ trace_id?: string | null;
trace_children?: serializers.LogResponse.Raw[] | null;
tool?: ToolResponse.Raw;
}
diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts
index f477e29..56831d5 100644
--- a/src/serialization/types/index.ts
+++ b/src/serialization/types/index.ts
@@ -79,7 +79,6 @@ export * from "./PaginatedDataEvaluatorResponse";
export * from "./PaginatedDataFlowResponse";
export * from "./PaginatedDataLogResponse";
export * from "./PaginatedDataPromptResponse";
-export * from "./PaginatedSessionResponse";
export * from "./PaginatedDataToolResponse";
export * from "./PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponseFlowResponseRecordsItem";
export * from "./PaginatedDataUnionPromptResponseToolResponseDatasetResponseEvaluatorResponseFlowResponse";
@@ -101,8 +100,6 @@ export * from "./ProviderApiKeys";
export * from "./ResponseFormatType";
export * from "./ResponseFormat";
export * from "./SelectEvaluatorStatsResponse";
-export * from "./SessionEventResponse";
-export * from "./SessionResponse";
export * from "./SortOrder";
export * from "./TextChatContent";
export * from "./TextEvaluatorStatsResponse";
@@ -135,6 +132,7 @@ export * from "./AgentConfigResponse";
export * from "./EvaluatorConfigResponse";
export * from "./UpdateEvaluationStatusRequest";
export * from "./PaginatedPromptLogResponse";
+export * from "./PaginatedSessionResponse";
export * from "./ConfigToolResponse";
export * from "./FeedbackType";
export * from "./BaseModelsUserResponse";
diff --git a/yarn.lock b/yarn.lock
index 216daca..7bb23f5 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1109,9 +1109,9 @@ camelcase@^6.2.0:
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
caniuse-lite@^1.0.30001646:
- version "1.0.30001662"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001662.tgz#3574b22dfec54a3f3b6787331da1040fe8e763ec"
- integrity sha512-sgMUVwLmGseH8ZIrm1d51UbrhqMCH3jvS7gF/M6byuHOnKyLOBL7W8yz5V02OHwgLGA36o/AFhWzzh4uc5aqTA==
+ version "1.0.30001663"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001663.tgz#1529a723505e429fdfd49532e9fc42273ba7fed7"
+ integrity sha512-o9C3X27GLKbLeTYZ6HBOLU1tsAcBZsLis28wrVzddShCS16RujjHp9GDHKZqrB3meE0YjhawvMFsGb/igqiPzA==
chalk@^2.4.2:
version "2.4.2"
@@ -1322,9 +1322,9 @@ domexception@^4.0.0:
webidl-conversions "^7.0.0"
electron-to-chromium@^1.5.4:
- version "1.5.25"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.25.tgz#492ade1cde401332b9b75aa0c55fd5e1550ca66c"
- integrity sha512-kMb204zvK3PsSlgvvwzI3wBIcAw15tRkYk+NQdsjdDtcQWTp2RABbMQ9rUBy8KNEOM+/E6ep+XC3AykiWZld4g==
+ version "1.5.27"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.27.tgz#5203ce5d6054857d84ba84d3681cbe59132ade78"
+ integrity sha512-o37j1vZqCoEgBuWWXLHQgTN/KDKe7zwpiY5CPeq2RvUqOyJw9xnrULzZAEVQ5p4h+zjMk7hgtOoPdnLxr7m/jw==
emittery@^0.13.1:
version "0.13.1"