22 lines
434 B
TypeScript
22 lines
434 B
TypeScript
import {
|
|
CalendarEvent,
|
|
ChatMessage,
|
|
ProposedEventChange,
|
|
} from "@caldav/shared";
|
|
|
|
export interface AIContext {
|
|
userId: string;
|
|
conversationHistory: ChatMessage[];
|
|
existingEvents: CalendarEvent[];
|
|
currentDate: Date;
|
|
}
|
|
|
|
export interface AIResponse {
|
|
content: string;
|
|
proposedChange?: ProposedEventChange;
|
|
}
|
|
|
|
export interface AIProvider {
|
|
processMessage(message: string, context: AIContext): Promise<AIResponse>;
|
|
}
|