selectBranch

The checkpoints a branch shows, oldest first. branch is the fork choices joined with >, as in a node's path. At a fork the branch does not name, the newest continuation is followed.

import { selectBranch } from '@threadplane/langgraph';

Declaration · overload 1

export declare function selectBranch(tree: LangGraphBranchTree, branch?: string): readonly LangGraphCheckpoint[];

Parameters

tree · required
LangGraphBranchTree
branch · optional
string

Returns

readonly LangGraphCheckpoint[]