API reference: @salmonui/chat/conversation
ConversationItemActionEventinterface
import type { ConversationItemActionEvent } from '@salmonui/chat/conversation';interface ConversationItemActionEvent {
readonly action: string;
readonly message: ConversationMessage;
readonly feedback?: 'positive' | 'negative' | undefined;
preventDefault(): void;
readonly defaultPrevented: boolean;
}
| Name | Signature | Description |
|---|---|---|
action | readonly action: string; | A built-in action ( |
message | readonly message: ConversationMessage; | |
feedbackoptional | readonly feedback?: 'positive' | 'negative' | undefined; |
|
preventDefault | preventDefault(): void; | Cancels the built-in follow-up of a built-in action. |
defaultPrevented | readonly defaultPrevented: boolean; |