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> {
    branch: ChatHierarchyBranch<TRequest>;
    onDidChange: Event<ChangeActiveBranchEvent<TRequest>>;
    activeBranches(): ChatHierarchyBranch<TRequest>[];
    activeRequests(): TRequest[];
    append(request): ChatHierarchyBranch<TRequest>;
    findBranch(requestId): undefined | ChatHierarchyBranch<TRequest>;
    findRequest(requestId): undefined | TRequest;
    notifyChange(event): void;
}

Type Parameters

Implemented by

Properties

onDidChange: Event<ChangeActiveBranchEvent<TRequest>>

Methods