Theia API Documentation v1.65.0
    Preparing search index...

    A chat participant can be invoked by the user in a chat session, using the @ prefix. When it is invoked, it handles the chat request and is solely responsible for providing a response to the user. A ChatParticipant is created using chat.createChatParticipant.

    interface ChatParticipant {
        followupProvider?: ChatFollowupProvider;
        iconPath?: IconPath;
        id: string;
        onDidReceiveFeedback: Event<ChatResultFeedback>;
        requestHandler: ChatRequestHandler;
        dispose(): void;
    }
    Index

    Properties

    followupProvider?: ChatFollowupProvider

    This provider will be called once after each request to retrieve suggested followup questions.

    iconPath?: IconPath

    An icon for the participant shown in UI.

    id: string

    A unique ID for this participant.

    onDidReceiveFeedback: Event<ChatResultFeedback>

    An event that fires whenever feedback for a result is received, e.g. when a user up- or down-votes a result.

    The passed result is guaranteed to be the same instance that was previously returned from this chat participant.

    requestHandler: ChatRequestHandler

    The handler for requests to this participant.

    Methods