@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
18 lines • 922 B
TypeScript
import type { PIIDetectorOptions, PIIDetectionResult, PIICategories, PIICategoryScores, PIIDetection } from '../../../processors/processors/pii-detector.js';
import type { MastraMessageV2 } from '../../message-list/index.js';
import type { InputProcessor } from '../index.js';
/**
* Backward-compatible wrapper for PIIDetector that implements the old InputProcessor interface
* @deprecated Use PIIDetector directly instead from @mastra/core/processors
*/
export declare class PIIDetectorInputProcessor implements InputProcessor {
readonly name = "pii-detector";
private processor;
constructor(options: PIIDetectorOptions);
process(args: {
messages: MastraMessageV2[];
abort: (reason?: string) => never;
}): Promise<MastraMessageV2[]>;
}
export type { PIIDetectorOptions, PIIDetectionResult, PIICategories, PIICategoryScores, PIIDetection };
//# sourceMappingURL=pii-detector.d.ts.map