Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions packages/global/core/evaluation/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import type {
EvaluationItemSchemaType,
EvaluationDisplayType,
EvaluationItemDisplayType,
EvaluationDataItemType
EvaluationDataItemType,
EvaluationStatistics
} from './type';

// ===== Common Types =====
Expand Down Expand Up @@ -51,7 +52,6 @@ export type EvaluationStatsResponse = {
evaluating: number;
queuing: number;
error: number;
avgScore?: number;
};

// Export Evaluation Items
Expand Down Expand Up @@ -112,12 +112,7 @@ export type DataItemGroupedItem = {
dataItemId: string;
dataItem: EvaluationDataItemType;
items: EvaluationItemDisplayType[];
summary: {
totalItems: number;
completedItems: number;
errorItems: number;
avgScore?: number;
};
statistics?: EvaluationStatistics;
};
export type DataItemListResponse = PaginationResponse<DataItemGroupedItem>;

Expand Down
2 changes: 1 addition & 1 deletion packages/global/core/evaluation/type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export type EvaluationDisplayType = Pick<
| 'statistics'
> & {
_id: string;
avgScore?: number;
datasetName?: string;
target: EvalTarget; // Complete target object with extended config
metricNames: string[];
Expand All @@ -161,6 +160,7 @@ export interface CreateEvaluationParams {
datasetId: string;
target: EvalTarget; // Only supports workflow type target configuration
evaluators: EvaluatorSchema[]; // Replace metricIds with evaluators
autoStart?: boolean; // Whether to automatically start the evaluation task after creation (default: true)
}

// Queue job data types
Expand Down
Loading
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.