Skip to content

Commit

Permalink
[TS] type as string
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Sep 19, 2024
1 parent e8ce685 commit 960bab2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export interface TracerSession {
// The ID of the project (alias for session)
id: string;
// The start time of the project
start_time: number;
start_time: string;
// The end time of the project
end_time?: number;
end_time?: string;
// A description of the project
description?: string;
// The name of the project
Expand All @@ -33,7 +33,7 @@ export interface TracerSessionResult extends TracerSession {
// The total number of completion tokens consumed in the session.
completion_tokens?: number;
// The start time of the last run in the session.
last_run_start_time?: number;
last_run_start_time?: string;
// Feedback stats for the session.
feedback_stats?: Record<string, unknown>;
// Facets for the runs in the session.
Expand Down Expand Up @@ -75,13 +75,13 @@ export interface BaseRun {
name: string;

/** The epoch time at which the run started, if available. */
start_time?: number;
start_time?: string;

/** Specifies the type of run (tool, chain, llm, etc.). */
run_type: string;

/** The epoch time at which the run ended, if applicable. */
end_time?: number;
end_time?: string;

/** Any additional metadata or settings for the run. */
extra?: KVMap;
Expand Down Expand Up @@ -199,7 +199,7 @@ export interface RunCreate extends BaseRun {

export interface RunUpdate {
id?: string;
end_time?: number;
end_time?: string;
extra?: KVMap;
tags?: string[];
error?: string;
Expand Down Expand Up @@ -272,7 +272,7 @@ export interface Dataset extends BaseDataset {
modified_at: string;
example_count?: number;
session_count?: number;
last_session_start_time?: number;
last_session_start_time?: string;
}
export interface DatasetShareSchema {
dataset_id: string;
Expand Down

0 comments on commit 960bab2

Please sign in to comment.