ESM
import "@arcgis/ai-components/components/arcgis-assistant-message-feedback";
Inheritance
ArcgisAssistantMessageFeedbackHTMLElement

Handles thumbs up or down feedback UI. Use it to capture helpful or not helpful signals per response. Offers feedback toggle behavior and emits feedback updates for the associated assistant 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>
Inherited from: 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