UNPKG

@mastra/core

Version:
15 lines • 849 B
import type { ScoringHookInput } from '../evals/types.js'; import type { Mastra } from '../mastra/index.js'; import type { MastraStorage } from '../storage/index.js'; export declare function createOnScorerHook(mastra: Mastra): (hookData: ScoringHookInput) => Promise<void>; /** Stored in place of hidden values; `input` and `output` are non-nullable score columns. */ export declare const REDACTED_SCORE_VALUE = "[REDACTED]"; export declare function redactScorePayload<T extends Record<string, any>>(payload: T, { hideInput, hideOutput }: { hideInput: boolean; hideOutput: boolean; }): T; /** * @deprecated Legacy scores-store path. New score emission should use `mastra.observability.addScore()`. */ export declare function validateAndSaveScore(storage: MastraStorage, payload: unknown): Promise<void>; //# sourceMappingURL=hooks.d.ts.map