import { SmrtCollection, SmrtObject } from '@happyvertical/smrt-core'; import { SupportAiRunOutcome, SupportAiRunPhase } from '../types.js'; export declare class SupportAiRun extends SmrtObject { tenantId: string | null; caseId: string; /** Inbound interaction that triggered this run, when applicable. */ interactionId: string | null; phase: SupportAiRunPhase; outcome: SupportAiRunOutcome; /** * Model-reported confidence in [0, 1] for answer/classify/resolve phases; * null when the phase has no confidence semantics (e.g. acknowledge). */ confidence: number | null; /** Classification output JSON: severity, category, sentiment, sensitive. */ classification: string; /** Outbound interaction holding the posted/drafted response, if any. */ responseInteractionId: string | null; /** Knowledge sources consulted (JSON array of `{kind, ref, label?}`). */ knowledgeRefs: string; /** Tool calls attempted during troubleshooting (JSON array). */ toolCalls: string; /** Error detail when `outcome === 'failed'`. */ error: string; /** Correlation id tying this run to AI-call telemetry / feedback signals. */ correlationId: string; /** Model identifier used, when known. */ model: string; startedAt: Date; completedAt: Date | null; metadata: string; getClassification(): Record; setClassification(value: Record): void; getKnowledgeRefs(): Array>; setKnowledgeRefs(refs: Array>): void; getToolCalls(): Array>; setToolCalls(calls: Array>): void; } export declare class SupportAiRunCollection extends SmrtCollection { static readonly _itemClass: typeof SupportAiRun; /** All AI runs for a case, oldest first. */ forCase(caseId: string): Promise; } export default SupportAiRun; //# sourceMappingURL=support-ai-run.d.ts.map