export type KnowledgeSource = { title: string; slug: string; excerpt: string };

export type AiAnswerInput = {
  question: string;
  sources: KnowledgeSource[];
};

export interface AiProvider {
  answer(input: AiAnswerInput): Promise<string>;
}

export class AiConfigurationError extends Error {}
export class AiProviderError extends Error {}
