Skip to Content
Anuma SDKReactInternalInterfacesStoredMessageWithSimilarity

StoredMessageWithSimilarity

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

Extends

Properties

chunks?

optional chunks: MessageChunk[]

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

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:117 

Inherited from

StoredMessage.content


conversationId

conversationId: string

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

Inherited from

StoredMessage.conversationId


createdAt

createdAt: Date

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

Inherited from

StoredMessage.createdAt


embeddingModel?

optional embeddingModel: string

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

Inherited from

StoredMessage.embeddingModel


error?

optional error: string

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

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:143 

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:124 

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:122 

Deprecated

Use fileIds with media table instead

Inherited from

StoredMessage.files


imageModel?

optional imageModel: string

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

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:114 

Inherited from

StoredMessage.messageId


model?

optional model: string

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

Inherited from

StoredMessage.model


parentMessageId?

optional parentMessageId: string

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

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:133 

Inherited from

StoredMessage.responseDuration


role

role: ChatRole

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

Inherited from

StoredMessage.role


similarity

similarity: number

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


sources?

optional sources: SearchSource[]

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

Inherited from

StoredMessage.sources


thinking?

optional thinking: string

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

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:137 

Inherited from

StoredMessage.thoughtProcess


toolCallEvents?

optional toolCallEvents: LlmapiToolCallEvent[]

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

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:113 

Inherited from

StoredMessage.uniqueId


updatedAt

updatedAt: Date

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

Inherited from

StoredMessage.updatedAt


usage?

optional usage: StoredChatCompletionUsage

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

Inherited from

StoredMessage.usage


vector?

optional vector: number[]

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

Inherited from

StoredMessage.vector


wasStopped?

optional wasStopped: boolean

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

Inherited from

StoredMessage.wasStopped

Last updated on