@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
10 lines • 501 B
TypeScript
import type { ScoringHookInput } from '../evals/index.js';
import type { Handler } from './mitt.js';
export declare enum AvailableHooks {
ON_EVALUATION = "onEvaluation",
ON_GENERATION = "onGeneration",
ON_SCORER_RUN = "onScorerRun"
}
export declare function registerHook(hook: AvailableHooks.ON_SCORER_RUN, action: Handler<ScoringHookInput>): void;
export declare function executeHook(hook: AvailableHooks.ON_SCORER_RUN, action: ScoringHookInput): void;
//# sourceMappingURL=index.d.ts.map