▾
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
| Property | Attribute | Type |
|---|---|---|
| assistant-avatar-enabled | ||
| copy-enabled | ||
| feedback-enabled | ||
| footer-disabled | ||
| log-enabled | ||
| | ||
| read-aloud-enabled |
message
Property
- Type
- AssistantMessage | undefined
Methods
| Method | Signature |
|---|---|
| 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.