Agent Armor API Reference
    Preparing search index...

    Interface ScanResult

    The result of scanning one piece of content for agent traps.

    interface ScanResult {
        clean: boolean;
        durationMs: number;
        riskLevel: RiskLevel;
        sanitized: string;
        stats: {
            detectorsRun: number;
            highestSeverity: Severity | null;
            threatsFound: number;
        };
        threats: Threat[];
    }
    Index
    clean: boolean

    Whether any threats were found

    durationMs: number

    Time taken in milliseconds

    riskLevel: RiskLevel

    Single roll-up risk assessment derived from the dominant threat. none when clean is true. Lets integrators decide with one comparison (if (result.riskLevel === 'critical') block()).

    sanitized: string

    Sanitized version of the content with threats neutralized

    stats: {
        detectorsRun: number;
        highestSeverity: Severity | null;
        threatsFound: number;
    }

    Summary stats

    threats: Threat[]

    All detected threats, sorted by severity desc