Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Interface MonitorSession

    interface MonitorSession {
        agentId: string;
        config: {
            alertSeverities: ("critical" | "warning" | "info")[];
            anomalySensitivity: number;
            detectPromptInjection: boolean;
            detectToolApiChanges: boolean;
            intervalSeconds: number;
            maxEventsPerTick: number;
            retentionDays: number;
            schemaVersion: 1;
            trackContextPollution: boolean;
            trustDriftThreshold: number;
            webhookUrls: string[];
        };
        lastPollutionScore: number;
        lastTickTs: number;
        maxTicks: number;
        sessionId: string;
        startedTs: number;
        tickCount: number;
        ticks: MonitorTickResult[];
        toolHashes: Map<string, string>;
    }
    Index
    agentId: string
    config: {
        alertSeverities: ("critical" | "warning" | "info")[];
        anomalySensitivity: number;
        detectPromptInjection: boolean;
        detectToolApiChanges: boolean;
        intervalSeconds: number;
        maxEventsPerTick: number;
        retentionDays: number;
        schemaVersion: 1;
        trackContextPollution: boolean;
        trustDriftThreshold: number;
        webhookUrls: string[];
    }

    Type Declaration

    • alertSeverities: ("critical" | "warning" | "info")[]

      Alert on these severity levels

    • anomalySensitivity: number

      Anomaly detection sensitivity (0-1, higher = more sensitive)

    • detectPromptInjection: boolean

      Enable prompt injection detection

    • detectToolApiChanges: boolean

      Enable tool API change detection

    • intervalSeconds: number

      Polling interval in seconds (minimum 30)

    • maxEventsPerTick: number

      Maximum events to analyze per tick

    • retentionDays: number

      Time-series retention in days

    • schemaVersion: 1
    • trackContextPollution: boolean

      Enable context pollution tracking

    • trustDriftThreshold: number

      Trust drift threshold (points out of 100)

    • webhookUrls: string[]

      Webhook URLs for alerts

    lastPollutionScore: number
    lastTickTs: number
    maxTicks: number

    Max stored ticks for in-memory history

    sessionId: string
    startedTs: number
    tickCount: number
    toolHashes: Map<string, string>