Skip to Content

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?

optional embeddingModel: string

Defined in: src/lib/db/chat/types.ts:247 


error?

optional error: string

Defined in: src/lib/db/chat/types.ts:250 

If set, indicates the message failed with this error


fileIds?

optional fileIds: string[]

Defined in: src/lib/db/chat/types.ts:242 

Array of media_id references for direct lookup in media table


files?

optional files: FileMetadata[]

Defined in: src/lib/db/chat/types.ts:240 

Deprecated

Use fileIds with media table instead


imageModel?

optional imageModel: string

Defined in: src/lib/db/chat/types.ts:238 

Image generation model used for this message


model?

optional model: string

Defined in: src/lib/db/chat/types.ts:236 


parentMessageId?

optional parentMessageId: string

Defined in: src/lib/db/chat/types.ts:255 

Parent message ID for branching (edit/regenerate).


responseDuration?

optional responseDuration: number

Defined in: src/lib/db/chat/types.ts:245 


role

role: ChatRole

Defined in: src/lib/db/chat/types.ts:234 


sources?

optional sources: SearchSource[]

Defined in: src/lib/db/chat/types.ts:244 


thinking?

optional thinking: string

Defined in: src/lib/db/chat/types.ts:253 

Reasoning/thinking content from models that support extended thinking


thoughtProcess?

optional thoughtProcess: ActivityPhase[]

Defined in: src/lib/db/chat/types.ts:251 


toolCallEvents?

optional toolCallEvents: LlmapiToolCallEvent[]

Defined in: src/lib/db/chat/types.ts:257 

Tool call events from the backend response (for reconstructing tool call history)


usage?

optional usage: StoredChatCompletionUsage

Defined in: src/lib/db/chat/types.ts:243 


vector?

optional vector: number[]

Defined in: src/lib/db/chat/types.ts:246 


wasStopped?

optional wasStopped: boolean

Defined in: src/lib/db/chat/types.ts:248 

Last updated on