Skip to Content
Anuma SDKReactInternalInterfacesStoredMessageWithSimilarity

StoredMessageWithSimilarity

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

Extends

Properties

anuma?

optional anuma: AnumaTurn

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

Anuma 1:1 turn fields; only vault chat backends store them.

Inherited from

StoredMessage.anuma


chunks?

optional chunks: MessageChunk[]

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

Chunks of this message with individual embeddings for fine-grained search

Inherited from

StoredMessage.chunks


content

content: string

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

Inherited from

StoredMessage.content


conversationId

conversationId: string

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

Inherited from

StoredMessage.conversationId


createdAt

createdAt: Date

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

Inherited from

StoredMessage.createdAt


decryptionStatus?

optional decryptionStatus: "key_missing" | "auth_mismatch" | "invalid_payload"

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

Set when content could not be decrypted on read (#561). The content field still holds the original ciphertext — never a [Decryption Failed] placeholder — so a later unlock can recover.

  • key_missing: no key for this field’s enc:vN: version in the store
  • auth_mismatch: a key was present but AES-GCM auth failed (wrong key)
  • invalid_payload: malformed ciphertext envelope

Inherited from

StoredMessage.decryptionStatus


embeddingModel?

optional embeddingModel: string

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

Inherited from

StoredMessage.embeddingModel


error?

optional error: string

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

If set, indicates the message failed with this error

Inherited from

StoredMessage.error


feedback?

optional feedback: MessageFeedback

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

User feedback: ‘like’, ‘dislike’, or null for no feedback

Inherited from

StoredMessage.feedback


fileIds?

optional fileIds: string[]

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

Array of media_id references for direct lookup in media table

Inherited from

StoredMessage.fileIds


files?

optional files: FileMetadata[]

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

Deprecated

Use fileIds with media table instead

Inherited from

StoredMessage.files


imageModel?

optional imageModel: string

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

Image generation model used for this message (e.g., “nano-banana-flash”)

Inherited from

StoredMessage.imageModel


messageId

messageId: number

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

Inherited from

StoredMessage.messageId


model?

optional model: string

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

Inherited from

StoredMessage.model


origin?

optional origin: MessageOrigin

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

Provenance for synthetic rows; undefined for typed messages and pre-v44 rows

Inherited from

StoredMessage.origin


parentMessageId?

optional parentMessageId: string

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

Parent message ID for branching (edit/regenerate). Null for root messages.

Inherited from

StoredMessage.parentMessageId


responseDuration?

optional responseDuration: number

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

Inherited from

StoredMessage.responseDuration


role

role: ChatRole

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

Inherited from

StoredMessage.role


similarity

similarity: number

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


sources?

optional sources: SearchSource[]

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

Inherited from

StoredMessage.sources


thinking?

optional thinking: string

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

Reasoning/thinking content from models that support extended thinking

Inherited from

StoredMessage.thinking


thoughtProcess?

optional thoughtProcess: ActivityPhase[]

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

Inherited from

StoredMessage.thoughtProcess


toolCallEvents?

optional toolCallEvents: LlmapiToolCallEvent[]

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

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

Inherited from

StoredMessage.toolCallEvents


uniqueId

uniqueId: string

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

Inherited from

StoredMessage.uniqueId


updatedAt

updatedAt: Date

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

Inherited from

StoredMessage.updatedAt


usage?

optional usage: StoredChatCompletionUsage

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

Inherited from

StoredMessage.usage


vaultAttachments?

optional vaultAttachments: VaultAttachmentRef[]

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

Inherited from

StoredMessage.vaultAttachments


vector?

optional vector: number[]

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

Inherited from

StoredMessage.vector


wasStopped?

optional wasStopped: boolean

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

Inherited from

StoredMessage.wasStopped

Last updated on