/** * Individual course recommendation with reasoning. */ export type CourseRecommendation = { /** * The ID of the recommended course */ course_id: string; /** * The title of the recommended course */ course_title: string; /** * AI-generated explanation for why this course is recommended */ reason: string; /** * Course domain/subject area */ domain?: string | null; /** * Course difficulty level */ difficulty_level?: string | null; /** * Estimated hours to complete */ estimated_hours?: number | null; /** * AI confidence in this recommendation (0-1) */ confidence_score?: number | null; /** * Platform/tenant key this course belongs to (extracted from course_id or metadata) */ platform_key?: string | null; /** * Course description (priority: description > short_description > overview with HTML stripped) */ description?: string | null; /** * Course short description from edx_data */ short_description?: string | null; /** * Full edx_data from CourseInfo model (includes all edX metadata) */ edx_data?: Record | null; };