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

PropertyAttributeType
message
options
show-other-option
type
"boolean-choice" | "multi-select" | "single-select" | "text-input"

message

Property
Type
string | undefined
Attribute
message

options

Property
Type
string[] | undefined
Attribute
options

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

type

Property
Type
"boolean-choice" | "multi-select" | "single-select" | "text-input"
Attribute
type

Methods

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

setFocus

Method
Signature
setFocus (): Promise<void>

Moves focus to the first response control.

Returns
Promise<void>

Events

arcgisCancel

Event
arcgisCancel: CustomEvent<void>
bubbles composed cancelable

arcgisSubmit

Event
arcgisSubmit: CustomEvent<string[] | boolean | string>
bubbles composed cancelable