agsamantha/node_modules/langchain/dist/experimental/masking/transformer.d.ts
2024-10-02 15:15:21 -05:00

7 lines
345 B
TypeScript

/**
* Abstract class representing a transformer used for masking and rehydrating messages.
*/
export declare abstract class MaskingTransformer {
abstract transform(message: string, state?: Map<string, string>): Promise<[string, Map<string, string>]>;
abstract rehydrate(message: string, state: Map<string, string>): Promise<string>;
}