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

Renders a single assistant response message shell. Pass one assistant message object and let it host body and footer actions. Offers a reusable assistant-message layout with icon, content, and footer slot regions.

Properties

PropertyAttributeType
assistant-avatar-enabled
copy-enabled
feedback-enabled
footer-disabled
log-enabled
read-aloud-enabled

assistantAvatarEnabled

Property
Type
boolean
Attribute
assistant-avatar-enabled
Default value
false

copyEnabled

Property
Type
boolean
Attribute
copy-enabled
Default value
false

feedbackEnabled

Property
Type
boolean
Attribute
feedback-enabled
Default value
false

footerDisabled

Property
Type
boolean
Attribute
footer-disabled
Default value
false

logEnabled

Property
Type
boolean
Attribute
log-enabled
Default value
false

message

Property
Type
AssistantMessage | undefined

readAloudEnabled

Property
Type
boolean
Attribute
read-aloud-enabled
Default value
false

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 arcgisAssistantMessage = document.createElement("arcgis-assistant-message");
document.body.append(arcgisAssistantMessage);
await arcgisAssistantMessage.componentOnReady();
console.log("arcgis-assistant-message is ready to go!");