StoredMessageWithSimilarity
Defined in: src/lib/db/chat/types.ts:202
Extends
Properties
chunks?
optionalchunks:MessageChunk[]
Defined in: src/lib/db/chat/types.ts:138
Chunks of this message with individual embeddings for fine-grained search
Inherited from
content
content:
string
Defined in: src/lib/db/chat/types.ts:125
Inherited from
conversationId
conversationId:
string
Defined in: src/lib/db/chat/types.ts:123
Inherited from
createdAt
createdAt:
Date
Defined in: src/lib/db/chat/types.ts:133
Inherited from
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/db/chat/types.ts:136
Inherited from
error?
optionalerror:string
Defined in: src/lib/db/chat/types.ts:144
If set, indicates the message failed with this error
Inherited from
feedback?
optionalfeedback:MessageFeedback
Defined in: src/lib/db/chat/types.ts:151
User feedback: ‘like’, ‘dislike’, or null for no feedback
Inherited from
fileIds?
optionalfileIds:string[]
Defined in: src/lib/db/chat/types.ts:132
Array of media_id references for direct lookup in media table
Inherited from
files?
optionalfiles:FileMetadata[]
Defined in: src/lib/db/chat/types.ts:130
Deprecated
Use fileIds with media table instead
Inherited from
imageModel?
optionalimageModel:string
Defined in: src/lib/db/chat/types.ts:128
Image generation model used for this message (e.g., “nano-banana-flash”)
Inherited from
messageId
messageId:
number
Defined in: src/lib/db/chat/types.ts:122
Inherited from
model?
optionalmodel:string
Defined in: src/lib/db/chat/types.ts:126
Inherited from
parentMessageId?
optionalparentMessageId:string
Defined in: src/lib/db/chat/types.ts:149
Parent message ID for branching (edit/regenerate). Null for root messages.
Inherited from
responseDuration?
optionalresponseDuration:number
Defined in: src/lib/db/chat/types.ts:141
Inherited from
StoredMessage.responseDuration
role
role:
ChatRole
Defined in: src/lib/db/chat/types.ts:124
Inherited from
similarity
similarity:
number
Defined in: src/lib/db/chat/types.ts:203
sources?
optionalsources:SearchSource[]
Defined in: src/lib/db/chat/types.ts:140
Inherited from
thinking?
optionalthinking:string
Defined in: src/lib/db/chat/types.ts:147
Reasoning/thinking content from models that support extended thinking
Inherited from
thoughtProcess?
optionalthoughtProcess:ActivityPhase[]
Defined in: src/lib/db/chat/types.ts:145
Inherited from
toolCallEvents?
optionaltoolCallEvents:LlmapiToolCallEvent[]
Defined in: src/lib/db/chat/types.ts:153
Tool call events from the backend response (for reconstructing tool call history)
Inherited from
uniqueId
uniqueId:
string
Defined in: src/lib/db/chat/types.ts:121
Inherited from
updatedAt
updatedAt:
Date
Defined in: src/lib/db/chat/types.ts:134
Inherited from
usage?
optionalusage:StoredChatCompletionUsage
Defined in: src/lib/db/chat/types.ts:139
Inherited from
vector?
optionalvector:number[]
Defined in: src/lib/db/chat/types.ts:135
Inherited from
wasStopped?
optionalwasStopped:boolean
Defined in: src/lib/db/chat/types.ts:142
Inherited from