/** * @module purpose-classifier * @description SEI-01 — Classifies user input into one of 8 purpose classes * using keyword matching with confidence scoring. * * Purpose classes represent the high-level intent of a session entry, * enabling the intake gate to route to the appropriate specialist agent. */ /** The 8 purpose classes for session intake classification */ export type PurposeClass = "discovery" | "brainstorming" | "research" | "planning" | "implementation" | "gatekeeping" | "tdd" | "course-correction"; /** Ordered list of all valid purpose classes */ export declare const PURPOSE_CLASSES: readonly PurposeClass[]; /** Result of purpose classification */ export interface ClassificationResult { /** The top-scoring purpose class */ purpose: PurposeClass; /** Confidence score between 0 and 1 */ confidence: number; /** Alternative purpose classes sorted by descending confidence */ alternatives: PurposeClass[]; } /** * Classifies user input into a purpose class using keyword matching. * * @param input - The raw user input string to classify * @returns ClassificationResult with top purpose, confidence, and alternatives * * @example * ```typescript * const result = classifyPurpose("implement the caching layer") * // { purpose: "implementation", confidence: 0.85, alternatives: ["planning", "tdd"] } * ``` */ export declare function classifyPurpose(input: string): ClassificationResult; //# sourceMappingURL=purpose-classifier.d.ts.map