imMessageId
IM 消息 id 判定:服务端落库 id、智能体流式占位 id、气泡列表 id。
函数
typescript
const AI_STREAM_CHAT_MESSAGE_ID_PREFIX = 'ai_stream_'
function isAiStreamChatMessageId(id: unknown): boolean
function aiStreamChatMessageId(runId: string): string
function isServerPersistedImMessageId(id: string | number): boolean
function toChatMessageListIdFromImRow(m: {
id: string | number
client_message_id?: string | null
}): string