refactor(message): remove deprecated properties from message types

- Commented out `modelId` and `knowledgeBaseIds` properties in `BaseBlock` and `MainTextBlock` interfaces, marking them as dead code for future removal in v2.
- This change helps to clean up the codebase and prepare for upcoming version updates.
This commit is contained in:
fullex 2025-12-31 21:44:15 +08:00
parent b156ee68e0
commit 68f9add566

View File

@ -58,7 +58,7 @@ export interface BaseBlock {
type: BlockType
createdAt: number // timestamp
updatedAt?: number
modelId?: string
// modelId?: string // v1's dead code, will be removed in v2
metadata?: Record<string, unknown>
error?: SerializedErrorData
}
@ -84,7 +84,7 @@ export interface UnknownBlock extends BaseBlock {
export interface MainTextBlock extends BaseBlock {
type: BlockType.MAIN_TEXT
content: string
knowledgeBaseIds?: string[]
//knowledgeBaseIds?: string[] // v1's dead code, will be removed in v2
citationReferences?: {
citationBlockId?: string
citationBlockSource?: string