Skip to content

Commit

Permalink
Merge pull request #7 from parea-ai/export-new-types
Browse files Browse the repository at this point in the history
fix(exports): export new types from index
  • Loading branch information
jalexanderII authored Jan 29, 2024
2 parents 7d3b202 + f09d829 commit c0770ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/experiment/experiment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function calculateAvgStdForExperiment(experimentStats: ExperimentStatsSchema): {
return result;
}

export async function experiment(
async function experiment(
name: string,
data: Iterable<Record<string, any>>,
func: (...args: any[]) => Promise<any>,
Expand Down
14 changes: 13 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export { Parea } from './client';

export { pareaLogger } from './parea_logger';

export { genTraceId, toDateTimeString } from './helpers';
export { genTraceId, toDateTimeString, asyncPool } from './helpers';

export { Experiment } from './experiment/experiment';

export {
Role,
Expand All @@ -21,6 +23,16 @@ export {
UseDeployedPromptResponse,
FeedbackRequest,
TraceLogInputs,
Log,
TraceLog,
TraceLogTreeSchema,
NamedEvaluationScore,
TraceOptions,
UpdateLog,
CreateExperimentRequest,
ExperimentSchema,
EvaluationScoreSchema,
TraceStatsSchema,
ExperimentStatsSchema,
DataItem,
} from './types';

0 comments on commit c0770ac

Please sign in to comment.