import { z } from "zod"; import type { Policy } from "../policy/types.js"; import type { NormalizedConversation } from "../ingestion/types.js"; export declare const MetricScoresSchema: z.ZodObject<{ successScore: z.ZodNumber; aiRelevancy: z.ZodNumber; sentiment: z.ZodNumber; hallucinationScore: z.ZodNumber; repetitionScore: z.ZodNumber; consistencyScore: z.ZodNumber; naturalLanguageScore: z.ZodNumber; contextRetentionScore: z.ZodNumber; verbosityScore: z.ZodNumber; taskCompletion: z.ZodNumber; clarity: z.ZodNumber; truncationScore: z.ZodNumber; }, "strip", z.ZodTypeAny, { successScore: number; aiRelevancy: number; sentiment: number; hallucinationScore: number; repetitionScore: number; consistencyScore: number; naturalLanguageScore: number; contextRetentionScore: number; verbosityScore: number; taskCompletion: number; clarity: number; truncationScore: number; }, { successScore: number; aiRelevancy: number; sentiment: number; hallucinationScore: number; repetitionScore: number; consistencyScore: number; naturalLanguageScore: number; contextRetentionScore: number; verbosityScore: number; taskCompletion: number; clarity: number; truncationScore: number; }>; export type MetricScores = z.infer; export declare const METRIC_NAMES: (keyof MetricScores)[]; export declare const FailureTypeSchema: z.ZodEnum<["prompt_issue", "orchestration_issue", "model_limitation", "retrieval_rag_issue"]>; export type FailureType = z.infer; export declare const VerdictSchema: z.ZodEnum<["pass", "fail", "not_applicable"]>; export type Verdict = z.infer; export declare const PolicyResultSchema: z.ZodObject<{ policyId: z.ZodString; verdict: z.ZodEnum<["pass", "fail", "not_applicable"]>; passed: z.ZodBoolean; evidence: z.ZodString; failingTurns: z.ZodOptional>; failureType: z.ZodOptional>>; failureSubtype: z.ZodOptional>; }, "strip", z.ZodTypeAny, { policyId: string; verdict: "pass" | "fail" | "not_applicable"; passed: boolean; evidence: string; failingTurns?: number[] | undefined; failureType?: "prompt_issue" | "orchestration_issue" | "model_limitation" | "retrieval_rag_issue" | null | undefined; failureSubtype?: string | null | undefined; }, { policyId: string; verdict: "pass" | "fail" | "not_applicable"; passed: boolean; evidence: string; failingTurns?: number[] | undefined; failureType?: "prompt_issue" | "orchestration_issue" | "model_limitation" | "retrieval_rag_issue" | null | undefined; failureSubtype?: string | null | undefined; }>; export type PolicyResult = z.infer; export interface Diagnosis { rootCauseTurn: number; rootCauseAgent: string | null; shortSummary: string; summary: string; impact: string; cascadeChain: string[]; fix: string; severity: "critical" | "major" | "minor"; confidence: "high" | "medium" | "low"; failureType: FailureType; failureSubtype: string; blastRadius: string[]; turnDescriptions?: Record; } export interface ConversationResult { id: string; metrics: MetricScores; policyResults: PolicyResult[]; diagnosis?: Diagnosis; messages: NormalizedConversation["messages"]; } export interface FailurePattern { type: FailureType; count: number; criticalCount: number; subtypes: Array<{ name: string; count: number; percentage: number; }>; } export interface AgentSummary { name: string; conversationCount: number; policiesEvaluated: number; compliance: number; topFailingPolicies: Array<{ id: string; name: string; complianceRate: number; }>; } export interface Report { agentTriageVersion: string; llmProvider: string; llmModel: string; policiesHash: string; agent: { name: string; promptPath: string; promptContent?: string; }; agents: AgentSummary[]; generatedAt: string; runDuration: number; totalConversations: number; policies: Array; conversations: ConversationResult[]; failurePatterns: { byType: FailurePattern[]; topRecommendations: Array<{ title: string; description: string; targetFailureTypes: string[]; targetSubtypes: string[]; affectedConversations: number; confidence: string; howToApply?: string; }>; totalFailures: number; }; metricSummary: Record; overallCompliance: number; cost: { totalTokens: number; estimatedCost: number; }; } //# sourceMappingURL=types.d.ts.map