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

The Assistant Message Text component renders assistant message text from Markdown content or sanitized HTML parts. Use this component to display assistant text in a custom assistant interface.

Properties

PropertyAttributeType
content
parts

content

Property
Type
string | undefined
Attribute
content

parts

Property
Type
string[] | undefined
Attribute
parts

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