Skip to Content
Anuma SDKReactInternalFunctionsupdateMessageFeedbackOp

updateMessageFeedbackOp

updateMessageFeedbackOp(ctx: StorageOperationsContext, uniqueId: string, feedback: MessageFeedback): Promise<StoredMessage | null>

Defined in: src/lib/db/chat/operations.ts:554 

Update the feedback (like/dislike) for a message. Each regenerated response can have its own independent feedback.

Parameters

ParameterTypeDescription

ctx

StorageOperationsContext

Storage operations context

uniqueId

string

The unique ID of the message to update

feedback

MessageFeedback

‘like’, ‘dislike’, or null to clear feedback

Returns

Promise<StoredMessage | null>

The updated message or null if not found

Last updated on