Skip to content

Commit 43079d4

Browse files
author
Andrei Bratu
committed
draft
1 parent 601c7f4 commit 43079d4

31 files changed

Lines changed: 635 additions & 1269 deletions

index.ts

Whitespace-only changes.

src/api/resources/evaluators/client/requests/CreateEvaluatorLogRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface CreateEvaluatorLogRequest {
4747
source?: string;
4848
/** Any additional metadata to record. */
4949
metadata?: Record<string, unknown>;
50+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
51+
logStatus?: Humanloop.LogStatus;
5052
/** Identifier of the evaluated Log. The newly created Log will have this one set as parent. */
5153
parentId: string;
5254
/** 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. */

src/api/resources/flows/client/requests/FlowLogRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export interface FlowLogRequest {
7575
source?: string;
7676
/** Any additional metadata to record. */
7777
metadata?: Record<string, unknown>;
78+
/** Status of the Trace. When a Log is updated from `incomplete` to `complete`, it becomes available to Monitoring Evaluators. Flow Logs cannot have an unspecified status: they must start as `incomplete` to allow children to be added. Provide `complete` if you don't intend to add children to the trace. */
79+
logStatus?: Humanloop.LogStatus;
7880
/** 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. */
7981
sourceDatapointId?: string;
8082
/** The ID of the parent Log to nest this Log under in a Trace. */
@@ -89,6 +91,4 @@ export interface FlowLogRequest {
8991
logId?: string;
9092
/** Flow used to generate the Trace. */
9193
flow?: Humanloop.FlowKernelRequest;
92-
/** Status of the Trace. When a Log is updated from `incomplete` to `complete`, it becomes available to Monitoring Evaluators. Flow Logs cannot have an unspecified status: they must start as `incomplete` to allow children to be added. Provide `complete` if you don't intend to add children to the trace. */
93-
logStatus?: Humanloop.LogStatus;
9494
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ export class Prompts {
497497
abortSignal: requestOptions?.abortSignal,
498498
});
499499
if (_response.ok) {
500+
console.log("CALL RESPONSE", JSON.stringify(_response.body, null, 2));
500501
return serializers.PromptCallResponse.parseOrThrow(_response.body, {
501502
unrecognizedObjectKeys: "passthrough",
502503
allowUnrecognizedUnionMembers: true,

src/api/resources/tools/client/requests/ToolLogRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ export interface ToolLogRequest {
7373
source?: string;
7474
/** Any additional metadata to record. */
7575
metadata?: Record<string, unknown>;
76+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
77+
logStatus?: Humanloop.LogStatus;
7678
/** 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. */
7779
sourceDatapointId?: string;
7880
/** The ID of the parent Log to nest this Log under in a Trace. */

src/api/resources/tools/client/requests/ToolLogUpdateRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
import * as Humanloop from "../../../../index";
6+
57
/**
68
* @example
79
* {}
@@ -31,4 +33,6 @@ export interface ToolLogUpdateRequest {
3133
startTime?: Date;
3234
/** When the logged event ended. */
3335
endTime?: Date;
36+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
37+
logStatus?: Humanloop.LogStatus;
3438
}

src/api/types/EvaluatorLogResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export interface EvaluatorLogResponse {
3232
source?: string;
3333
/** Any additional metadata to record. */
3434
metadata?: Record<string, unknown>;
35+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
36+
logStatus?: Humanloop.LogStatus;
3537
/** Identifier of the evaluated Log. The newly created Log will have this one set as parent. */
3638
parentId?: string;
3739
/** 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. */

src/api/types/FlowLogResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface FlowLogResponse {
3636
source?: string;
3737
/** Any additional metadata to record. */
3838
metadata?: Record<string, unknown>;
39+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
40+
logStatus?: Humanloop.LogStatus;
3941
/** 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. */
4042
sourceDatapointId?: string;
4143
/** The ID of the parent Log to nest this Log under in a Trace. */
@@ -62,6 +64,4 @@ export interface FlowLogResponse {
6264
traceChildren?: Humanloop.LogResponse[];
6365
/** Flow used to generate the Log. */
6466
flow: Humanloop.FlowResponse;
65-
/** 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. */
66-
logStatus?: Humanloop.LogStatus;
6767
}

src/api/types/PromptLogResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export interface PromptLogResponse {
5858
source?: string;
5959
/** Any additional metadata to record. */
6060
metadata?: Record<string, unknown>;
61+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
62+
logStatus?: Humanloop.LogStatus;
6163
/** 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. */
6264
sourceDatapointId?: string;
6365
/** The ID of the parent Log to nest this Log under in a Trace. */

src/api/types/ToolLogResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export interface ToolLogResponse {
3232
source?: string;
3333
/** Any additional metadata to record. */
3434
metadata?: Record<string, unknown>;
35+
/** Status of a Log. Set to `incomplete` if you intend to update the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If not provided, observability will pick up the Log as soon as possible; switching from specified to unspecified is undefined behavior. */
36+
logStatus?: Humanloop.LogStatus;
3537
/** 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. */
3638
sourceDatapointId?: string;
3739
/** The ID of the parent Log to nest this Log under in a Trace. */

0 commit comments

Comments
 (0)