ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-feedback";
Inheritance
ArcgisAssistantMessageFeedback→HTMLElement

The Assistant Message Feedback component collects a thumbs-up or thumbs-down rating for an assistant response. Use it to let users mark a response as helpful or not helpful; each selection emits an update for the associated message.

Properties

PropertyAttributeType
feedback-enabled

feedbackEnabled

Property
Type
boolean
Attribute
feedback-enabled
Default value
false

message

Property
Type
AssistantMessage | undefined

Methods

MethodSignature
inherited
componentOnReady(): Promise<this>

componentOnReady

inherited Method
Signature
componentOnReady (): Promise<this>

Creates a promise that resolves once the component is fully loaded.

Returns
Promise<this>
Example
const arcgisAssistantMessageFeedback = document.createElement("arcgis-assistant-message-feedback");
document.body.append(arcgisAssistantMessageFeedback);
await arcgisAssistantMessageFeedback.componentOnReady();
console.log("arcgis-assistant-message-feedback is ready to go!");

Events

arcgisFeedback

Event
arcgisFeedback: CustomEvent<AssistantMessage>
bubbles composed cancelable