llm-guard
Version:
A TypeScript library for validating and securing LLM prompts
9 lines (8 loc) • 313 B
TypeScript
import { GuardConfig, GuardResponse, BatchGuardResponse } from './types';
export declare class LLMGuard {
private guards;
constructor(config?: GuardConfig);
validate(prompt: string): Promise<GuardResponse>;
validateBatch(prompts: string[]): Promise<BatchGuardResponse>;
}
export * from './types';