Interface MessageRequest<TInputType>

This is the main interface that represents a request from a user sent to a back-end.

interface MessageRequest<TInputType extends BaseMessageInput = MessageInput> {
    context?: MessageContext;
    history?: MessageHistory;
    id?: string;
    input: TInputType;
}

Type Parameters

Properties

context?: MessageContext

Optional context which is added from external resources.

history?: MessageHistory

The history information to store as part of this request. This includes extra information that was provided to the user that was used in making the request.

id?: string

The unique identifier for this request object. This value may be assigned by the client when a request is made but will be assigned by the service if one is not provided.

input: TInputType

The input data to the back-end to make in this request.

MMNEPVFCICPMFPCPTTAAATR