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

    A command chat response content represents a command that is offered to the user for execution. It either refers to an already registered Theia command or provides a custom callback. If both are given, the custom callback will be preferred.

    interface CommandChatResponseContent {
        arguments?: unknown[];
        command?: Command;
        customCallback?: CustomCallback;
        kind: "command";
        asDisplayString?(): undefined | string;
        asString?(): undefined | string;
        merge?(nextChatResponseContent: ChatResponseContent): boolean;
        toLanguageModelMessage?(): LanguageModelMessage | LanguageModelMessage[];
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    arguments?: unknown[]
    command?: Command
    customCallback?: CustomCallback
    kind: "command"

    Methods

    • Represents the content as a string. Returns undefined if the content is purely informational and/or visual and should not be included in the overall representation of the response.

      Returns undefined | string