18 lines
321 B
TypeScript
18 lines
321 B
TypeScript
export interface ChatMessage {
|
|
id: string
|
|
role: 'system' | 'user' | 'assistant'
|
|
content: string
|
|
timestamp: Date
|
|
isStreaming?: boolean
|
|
thinking?: string
|
|
isThinking?: boolean
|
|
thinkingDuration?: number
|
|
}
|
|
|
|
export interface ChatSession {
|
|
id: string
|
|
title: string
|
|
lastMessage?: string
|
|
timestamp: Date
|
|
}
|