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

    Interface ChatRequestHierarchy<TRequest>

    A model that contains information about a chat request that may branch off.

    The hierarchy of requests is represented by a tree structure.

    • The root of the tree is the initial request
    • Within each branch, the requests are stored in a list. Those requests are the alternatives to the original request. Each of those items can have a next branch, which is the next request in the hierarchy.
    interface ChatRequestHierarchy<
        TRequest extends ChatRequestModel = ChatRequestModel,
    > {
        branch: ChatHierarchyBranch<TRequest>;
        onDidChange: Event<ChangeActiveBranchEvent<TRequest>>;
        activeBranches(): ChatHierarchyBranch<TRequest>[];
        activeRequests(): TRequest[];
        append(request: TRequest): ChatHierarchyBranch<TRequest>;
        dispose(): void;
        findBranch(requestId: string): undefined | ChatHierarchyBranch<TRequest>;
        findRequest(requestId: string): undefined | TRequest;
        notifyChange(event: ChangeActiveBranchEvent<TRequest>): void;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    Methods

    • Dispose this object.

      Returns void