CreateMessageOptions
Defined in: src/lib/db/chat/types.ts:257
Properties
content
content:
string
Defined in: src/lib/db/chat/types.ts:260
conversationId
conversationId:
string
Defined in: src/lib/db/chat/types.ts:258
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/db/chat/types.ts:272
error?
optionalerror:string
Defined in: src/lib/db/chat/types.ts:275
If set, indicates the message failed with this error
fileIds?
optionalfileIds:string[]
Defined in: src/lib/db/chat/types.ts:267
Array of media_id references for direct lookup in media table
files?
optionalfiles:FileMetadata[]
Defined in: src/lib/db/chat/types.ts:265
Deprecated
Use fileIds with media table instead
imageModel?
optionalimageModel:string
Defined in: src/lib/db/chat/types.ts:263
Image generation model used for this message
model?
optionalmodel:string
Defined in: src/lib/db/chat/types.ts:261
parentMessageId?
optionalparentMessageId:string
Defined in: src/lib/db/chat/types.ts:280
Parent message ID for branching (edit/regenerate).
responseDuration?
optionalresponseDuration:number
Defined in: src/lib/db/chat/types.ts:270
role
role:
ChatRole
Defined in: src/lib/db/chat/types.ts:259
sources?
optionalsources:SearchSource[]
Defined in: src/lib/db/chat/types.ts:269
thinking?
optionalthinking:string
Defined in: src/lib/db/chat/types.ts:278
Reasoning/thinking content from models that support extended thinking
thoughtProcess?
optionalthoughtProcess:ActivityPhase[]
Defined in: src/lib/db/chat/types.ts:276
toolCallEvents?
optionaltoolCallEvents:LlmapiToolCallEvent[]
Defined in: src/lib/db/chat/types.ts:282
Tool call events from the backend response (for reconstructing tool call history)
uniqueId?
optionaluniqueId:string
Defined in: src/lib/db/chat/types.ts:290
Optional pre-generated unique ID for this message. When provided, used as the WatermelonDB record ID instead of auto-generating one. Consumers can pre-allocate this ID before streaming starts so the in-flight placeholder and the eventually-persisted message share the same React key, eliminating the unmount/remount flash when streaming completes.
usage?
optionalusage:StoredChatCompletionUsage
Defined in: src/lib/db/chat/types.ts:268
vector?
optionalvector:number[]
Defined in: src/lib/db/chat/types.ts:271
wasStopped?
optionalwasStopped:boolean
Defined in: src/lib/db/chat/types.ts:273