▾
ESM
import "@arcgis/ai-components/components/arcgis-assistant-interrupt";- Inheritance
- ArcgisAssistantInterrupt→
HTMLElement
The Assistant Interrupt component presents a request for user input when an agent pauses for confirmation, clarification, or additional information. It supports yes/no responses, single or multiple selections, and text input.
Use this component to display human-in-the-loop prompts as part of a custom assistant interface. Your application supplies the prompt and handles the component's submit and cancel events to continue or cancel the appropriate workflow; the component does not manage agent execution itself.
Properties
showOtherOption
Property
- Type
- boolean
Shows the built-in Other option for single-select and multi-select prompts. Defaults to false.
- Attribute
- show-other-option
- Default value
- false
Methods
| Method | Signature |
|---|---|
| inherited | componentOnReady(): Promise<this> |
| setFocus(): 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 arcgisAssistantInterrupt = document.createElement("arcgis-assistant-interrupt");document.body.append(arcgisAssistantInterrupt);await arcgisAssistantInterrupt.componentOnReady();console.log("arcgis-assistant-interrupt is ready to go!");
Events
| Name | Type |
|---|---|
| CustomEvent<string[] | boolean | string> |
arcgisSubmit
Event
arcgisSubmit: CustomEvent<string[] | boolean | string>