CreateMessageOptions
Defined in: src/lib/db/chat/types.ts:232
Properties
content
content:
string
Defined in: src/lib/db/chat/types.ts:235
conversationId
conversationId:
string
Defined in: src/lib/db/chat/types.ts:233
embeddingModel?
optionalembeddingModel:string
Defined in: src/lib/db/chat/types.ts:247
error?
optionalerror:string
Defined in: src/lib/db/chat/types.ts:250
If set, indicates the message failed with this error
fileIds?
optionalfileIds:string[]
Defined in: src/lib/db/chat/types.ts:242
Array of media_id references for direct lookup in media table
files?
optionalfiles:FileMetadata[]
Defined in: src/lib/db/chat/types.ts:240
Deprecated
Use fileIds with media table instead
imageModel?
optionalimageModel:string
Defined in: src/lib/db/chat/types.ts:238
Image generation model used for this message
model?
optionalmodel:string
Defined in: src/lib/db/chat/types.ts:236
parentMessageId?
optionalparentMessageId:string
Defined in: src/lib/db/chat/types.ts:255
Parent message ID for branching (edit/regenerate).
responseDuration?
optionalresponseDuration:number
Defined in: src/lib/db/chat/types.ts:245
role
role:
ChatRole
Defined in: src/lib/db/chat/types.ts:234
sources?
optionalsources:SearchSource[]
Defined in: src/lib/db/chat/types.ts:244
thinking?
optionalthinking:string
Defined in: src/lib/db/chat/types.ts:253
Reasoning/thinking content from models that support extended thinking
thoughtProcess?
optionalthoughtProcess:ActivityPhase[]
Defined in: src/lib/db/chat/types.ts:251
toolCallEvents?
optionaltoolCallEvents:LlmapiToolCallEvent[]
Defined in: src/lib/db/chat/types.ts:257
Tool call events from the backend response (for reconstructing tool call history)
usage?
optionalusage:StoredChatCompletionUsage
Defined in: src/lib/db/chat/types.ts:243
vector?
optionalvector:number[]
Defined in: src/lib/db/chat/types.ts:246
wasStopped?
optionalwasStopped:boolean
Defined in: src/lib/db/chat/types.ts:248