Branching
Decide which rollout states are eligible for another continuation. Implement BranchPoints.eligible(state) or use one of the supplied rules. Search priorities rank the eligible states; checkpoint storage is configured separately.
BranchPoints
Section titled “BranchPoints”Choose which completed states search may continue from. Implement eligible(); the agent calls it after every decision.
Definition
BranchPoints.eligible
Section titled “BranchPoints.eligible”Whether search may continue from this state.
EveryDecision
Section titled “EveryDecision”Make each decision boundary available for branching. Use it to assign credit to individual task decisions.
Pass it as Agent(branch_points=checkpoints, ...) so search can revisit intermediate decisions as well as the root.
Definition
EveryDecision.eligible
Section titled “EveryDecision.eligible”SparseCheckpoints
Section titled “SparseCheckpoints”Make the root and committed compaction or context-change boundaries available for branching. A segment can then span several task decisions.
Pass it as Agent(branch_points=checkpoints, ...). Ordinary task turns remain in the same segment until the next selected context boundary.
Definition