MCPcopy Create free account
hub / github.com/experdot/pointer / ChatMessage

Interface ChatMessage

src/renderer/src/types/type.ts:68–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68export 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
93export interface Topic {
94 id: string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected