| 66 | } |
| 67 | |
| 68 | export interface ChatMessage { |
| 69 | id: string |
| 70 | role: 'user' | 'assistant' | 'system' |
| 71 | content: string |
| 72 | reasoning_content?: string |
| 73 | attachments?: FileAttachment[] |
| 74 | createdAt: number |
| 75 | updatedAt?: number |
| 76 | |
| 77 | parentMessageId?: string |
| 78 | branchIndex?: number |
| 79 | |
| 80 | modelId?: string // LLM 模型ID |
| 81 | modelConfigId?: string // 模型配置ID |
| 82 | |
| 83 | starred?: boolean // 是否星标 |
| 84 | collapsed?: boolean // 是否折叠 |
| 85 | |
| 86 | hasError?: boolean // 标记消息生成时是否发生错误 |
| 87 | isStreaming?: boolean |
| 88 | |
| 89 | /** 自定义消息标题 */ |
| 90 | title?: string |
| 91 | } |
| 92 | |
| 93 | export interface Topic { |
| 94 | id: string |
nothing calls this directly
no outgoing calls
no test coverage detected