Angular Common Types - Response

An object returned by the sendRequest function.

import { Response } from "devextreme/common/ai-integration"
Type:

Object

abort

A function that cancels the request.

Type:

Function

promise

A promise that resolves with the final AI-generated text.

Type:

Promise<String> (jQuery or native)