Theia API Documentation v1.65.0
    Preparing search index...
    interface ChatService {
        onSessionEvent: Event<
            ActiveSessionChangedEvent
            | SessionCreatedEvent
            | SessionDeletedEvent,
        >;
        cancelRequest(sessionId: string, requestId: string): Promise<void>;
        createSession(
            location?: ChatAgentLocation,
            options?: SessionOptions,
            pinnedAgent?: ChatAgent,
        ): ChatSession;
        deleteChangeSet(sessionId: string): void;
        deleteChangeSetElement(sessionId: string, uri: URI): void;
        deleteSession(sessionId: string): void;
        getActiveSession(): undefined | ChatSession;
        getAgent(
            parsedRequest: ParsedChatRequest,
            session: ChatSession,
        ): undefined | ChatAgent;
        getSession(id: string): undefined | ChatSession;
        getSessions(): ChatSession[];
        sendRequest(
            sessionId: string,
            request: ChatRequest,
        ): Promise<undefined | ChatRequestInvocation>;
        setActiveSession(sessionId: string, options?: SessionOptions): void;
    }

    Implemented by

    Index

    Properties

    onSessionEvent: Event<
        ActiveSessionChangedEvent
        | SessionCreatedEvent
        | SessionDeletedEvent,
    >

    Methods