Files

31 lines
570 B
TypeScript
Raw Permalink Normal View History

export type MessageRole = "user" | "assistant";
export interface ChatMessage {
id: string;
role: MessageRole;
content: string;
timestamp: Date;
}
export interface PlaygroundSettings {
model: string;
responseMode: string;
temperature: number;
memoryEnabled: boolean;
}
export interface SendMessageOptions {
settings?: PlaygroundSettings;
signal?: AbortSignal;
}
export interface InteractionLog {
id: string;
userMessage: string;
assistantMessage: string;
model: string;
responseMode: string;
timestamp: string;
durationMs: number;
}