Skip to content

Commit

Permalink
Export
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Sep 13, 2024
1 parent 4b284de commit 6531e28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/testing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export {
type EvaluationOverrideComment,
type EvaluationOverrideField,
type ScoreChoice,
type HumanReviewField,
type HumanReviewFieldContentType,
} from './models';
export { gridSearchAsyncLocalStorage } from '../asyncLocalStorage';
export {
Expand Down
8 changes: 7 additions & 1 deletion src/testing/models.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ArbitraryProperties } from '../types';
import { HumanReviewFieldContentType } from '../util';

export interface Threshold {
lt?: number;
Expand Down Expand Up @@ -88,6 +87,13 @@ export abstract class BaseEvaluator<TestCaseType, OutputType>
}): Evaluation | Promise<Evaluation>;
}

export enum HumanReviewFieldContentType {
TEXT = 'text',
LINK = 'link',
HTML = 'html',
MARKDOWN = 'markdown',
}

export interface HumanReviewField {
name: string;
value: string;
Expand Down
7 changes: 0 additions & 7 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ export enum ThirdPartyEnvVar {
GITHUB_TOKEN = 'GITHUB_TOKEN',
}

export enum HumanReviewFieldContentType {
TEXT = 'text',
LINK = 'link',
HTML = 'html',
MARKDOWN = 'markdown',
}

export const readEnv = (key: string): string | undefined => {
return process.env[key];
};
Expand Down

0 comments on commit 6531e28

Please sign in to comment.