Interface ChatService

interface ChatService {
    onSessionEvent: Event<ActiveSessionChangedEvent | SessionCreatedEvent | SessionDeletedEvent>;
    cancelRequest(sessionId, requestId): Promise<void>;
    createSession(location?, options?, pinnedAgent?): ChatSession;
    deleteChangeSet(sessionId): void;
    deleteChangeSetElement(sessionId, index): void;
    deleteSession(sessionId): void;
    getActiveSession(): undefined | ChatSession;
    getSession(id): undefined | ChatSession;
    getSessions(): ChatSession[];
    sendRequest(sessionId, request): Promise<undefined | ChatRequestInvocation>;
    setActiveSession(sessionId, options?): void;
}

Implemented by

Properties

Methods