/** * ThinkHive SDK - Drift API * * Drift detection for monitoring agent behavior changes over time */ /** Options for drift detection */ export interface DetectDriftOptions { startDate?: string; endDate?: string; } /** A drift detection report */ export interface DriftReport { agentId: string; hasDrift: boolean; severity: 'none' | 'low' | 'medium' | 'high'; driftScore: number; dimensions: DriftDimension[]; analyzedFrom: string; analyzedTo: string; traceCount: number; } /** A dimension of drift analysis */ export interface DriftDimension { name: string; baseline: number; current: number; change: number; changePercent: number; isSignificant: boolean; } /** Result of detect-all operation */ export interface DetectAllResult { reports: DriftReport[]; agentsAnalyzed: number; agentsWithDrift: number; } /** * Drift API client for monitoring agent behavior changes */ export declare const drift: { /** * Detect drift for a specific agent * * @param agentId - The agent ID to analyze * @param opts - Date range options * @returns Drift detection report */ detect(agentId: string, opts?: DetectDriftOptions): Promise; /** * Run drift detection across all agents * * @returns Drift reports for all agents */ detectAll(): Promise; }; /** * Check if a drift report indicates drift was detected * * @param report - The drift report to check * @returns Whether drift was detected */ export declare function hasDrift(report: DriftReport): boolean; /** * Get the severity level of a drift report * * @param report - The drift report to check * @returns The drift severity level */ export declare function getDriftSeverity(report: DriftReport): 'none' | 'low' | 'medium' | 'high'; export { drift as default };