Skip to Content
SdkReactInternalInterfacesCreateMessageOptions

CreateMessageOptions

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

Properties

content

content: string

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


conversationId

conversationId: string

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


embeddingModel?

optional embeddingModel: string

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


error?

optional error: string

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

If set, indicates the message failed with this error


fileIds?

optional fileIds: string[]

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

Array of media_id references for direct lookup in media table


files?

optional files: FileMetadata[]

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

Deprecated

Use fileIds with media table instead


model?

optional model: string

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


parentMessageId?

optional parentMessageId: string

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

Parent message ID for branching (edit/regenerate).


responseDuration?

optional responseDuration: number

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


role

role: ChatRole

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


sources?

optional sources: SearchSource[]

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


thinking?

optional thinking: string

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

Reasoning/thinking content from models that support extended thinking


thoughtProcess?

optional thoughtProcess: ActivityPhase[]

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


usage?

optional usage: StoredChatCompletionUsage

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


vector?

optional vector: number[]

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


wasStopped?

optional wasStopped: boolean

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

Last updated on