▾
ESM
import "@arcgis/ai-components/components/arcgis-assistant-chat-entry";- Inheritance
- ArcgisAssistantChatEntry→
HTMLElement
The Assistant Chat Entry component provides prompt input for a custom assistant interface, with submit and cancel actions, keyboard submission, and input history navigation. It also supports custom entry actions through slots and optional voice input.
Use this component to collect user input as part of a composed assistant experience. Your application handles its submit and cancel events and connects them to the assistant or agent workflow; the component does not invoke agents itself.
Properties
| Property | Attribute | Type |
|---|---|---|
| awaiting-response | ||
| disabled | ||
| entry-placeholder | ||
| input-value | ||
| keyboard-shortcuts-disabled | ||
| | ||
| read-only | ||
| status | "error" | "ready" | "working" | undefined | |
| voice-input-enabled |
keyboardShortcutsDisabled
Property
- Type
- boolean
- Attribute
- keyboard-shortcuts-disabled
- Default value
- false
messages
Property
- Type
- Collection<ChatMessage>
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
| setFocus(): Promise<void> | |
| submitMessage(): Promise<void> |
componentOnReady
inherited Method
- Signature
-
componentOnReady (): Promise<this>
Creates a promise that resolves once the component is fully loaded.
- Returns
- Promise<this>
- Example
- const arcgisAssistantChatEntry = document.createElement("arcgis-assistant-chat-entry");document.body.append(arcgisAssistantChatEntry);await arcgisAssistantChatEntry.componentOnReady();console.log("arcgis-assistant-chat-entry is ready to go!");
Events
| Name | Type |
|---|---|
Slots
| Name | Description |
|---|---|
| Slot for adding actions to the start of the entry area. | |
| Slot for adding actions to the end of the entry area. |