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

The Assistant Message component renders one assistant response with icon, content, and footer areas. Use this component to compose a response and provide custom content for individual blocks through its arcgisSlottableRequest event.

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>

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!");

Events

arcgisSlottableRequest

Event
arcgisSlottableRequest: CustomEvent<AssistantSlottableRequestDetail>

Emitted when a block's custom content request is added, updated, or removed. Removed requests have data set to undefined.

bubbles composed cancelable