Type Alias QualityScoringFn
QualityScoringFn: (
runtimeStageId: string,
context: {
duration?: number;
keysRead: string[];
keysWritten: string[];
stageId: string;
stageName: string;
},
) => { factors?: string[]; score: number }
Type Declaration
-
- (
runtimeStageId: string,
context: {
duration?: number;
keysRead: string[];
keysWritten: string[];
stageId: string;
stageName: string;
},
): { factors?: string[]; score: number }
-
Parameters
- runtimeStageId: string
- context: {
duration?: number;
keysRead: string[];
keysWritten: string[];
stageId: string;
stageName: string;
}
Returns { factors?: string[]; score: number }
Scoring function called at the end of each stage. Receives the runtimeStageId, stage event, and a summary of reads/writes. Return a score (0.0–1.0) and optional factors explaining the score.