@openguardrails/moltguard
Version:
AI agent security plugin for OpenClaw: prompt injection detection, PII sanitization, and monitoring dashboard
23 lines • 946 B
TypeScript
/**
* Agent Runner - Multi-backend analysis
*
* Supports two detection backends:
* 1. Dashboard (preferred) - Routes through local/remote dashboard → core
* 2. OpenGuardrails API (fallback) - Direct API call
*
* Content is always sanitized locally before being sent to any API.
*/
import type { AnalysisTarget, AnalysisVerdict, Logger, OpenGuardrailsApiResponse } from "./types.js";
export type RunnerConfig = {
apiKey: string;
timeoutMs: number;
autoRegister: boolean;
coreUrl: string;
/** Dashboard URL - when set, uses dashboard for detection */
dashboardUrl?: string;
/** Dashboard session token */
dashboardSessionToken?: string;
};
export declare function mapApiResponseToVerdict(apiResponse: OpenGuardrailsApiResponse): AnalysisVerdict;
export declare function runGuardAgent(target: AnalysisTarget, config: RunnerConfig, log: Logger): Promise<AnalysisVerdict>;
//# sourceMappingURL=runner.d.ts.map