StoredMessageWithSimilarity
Defined in: src/lib/db/chat/types.ts:137
Extends
Properties
chunks?
optionalchunks:MessageChunk[]
Defined in: src/lib/db/chat/types.ts:104
Chunks of this message with individual embeddings for fine-grained search
Inherited from
content
content:
string
Defined in: src/lib/db/chat/types.ts:93
Inherited from
conversationId
conversationId:
string
Defined in: src/lib/db/chat/types.ts:91
Inherited from
createdAt
createdAt:
Date
Defined in: src/lib/db/chat/types.ts:99
Inherited from
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/db/chat/types.ts:102
Inherited from
error?
optionalerror:string
Defined in: src/lib/db/chat/types.ts:110
If set, indicates the message failed with this error
Inherited from
fileIds?
optionalfileIds:string[]
Defined in: src/lib/db/chat/types.ts:98
Array of media_id references for direct lookup in media table
Inherited from
files?
optionalfiles:FileMetadata[]
Defined in: src/lib/db/chat/types.ts:96
Deprecated
Use fileIds with media table instead
Inherited from
messageId
messageId:
number
Defined in: src/lib/db/chat/types.ts:90
Inherited from
model?
optionalmodel:string
Defined in: src/lib/db/chat/types.ts:94
Inherited from
parentMessageId?
optionalparentMessageId:string
Defined in: src/lib/db/chat/types.ts:115
Parent message ID for branching (edit/regenerate). Null for root messages.
Inherited from
responseDuration?
optionalresponseDuration:number
Defined in: src/lib/db/chat/types.ts:107
Inherited from
StoredMessage.responseDuration
role
role:
ChatRole
Defined in: src/lib/db/chat/types.ts:92
Inherited from
similarity
similarity:
number
Defined in: src/lib/db/chat/types.ts:138
sources?
optionalsources:SearchSource[]
Defined in: src/lib/db/chat/types.ts:106
Inherited from
thinking?
optionalthinking:string
Defined in: src/lib/db/chat/types.ts:113
Reasoning/thinking content from models that support extended thinking
Inherited from
thoughtProcess?
optionalthoughtProcess:ActivityPhase[]
Defined in: src/lib/db/chat/types.ts:111
Inherited from
uniqueId
uniqueId:
string
Defined in: src/lib/db/chat/types.ts:89
Inherited from
updatedAt
updatedAt:
Date
Defined in: src/lib/db/chat/types.ts:100
Inherited from
usage?
optionalusage:StoredChatCompletionUsage
Defined in: src/lib/db/chat/types.ts:105
Inherited from
vector?
optionalvector:number[]
Defined in: src/lib/db/chat/types.ts:101
Inherited from
wasStopped?
optionalwasStopped:boolean
Defined in: src/lib/db/chat/types.ts:108
Inherited from