Class DecideProductGroupsTool

All Implemented Interfaces:
GuardedExecution, Identifiable, Job<ProductGroups>, Tool<ProductNames, ProductGroups>

public class DecideProductGroupsTool extends AbstractTool<ProductNames, ProductGroups>
The grouping tier of the pricing demo on a decision model: the same names in, the same groups out as CanonicalizeProductsTool. Two decisions. The first is one verdict per pair of names, "do these two mean the same product", the shape a decision model is best at; every pair the model says yes to joins their groups. The second, for each group of more than one name, is a choice of the name that is the product's proper name, without a brand in front, a descriptor behind or a size. The model writes no name: every group is made of the names the documents used.
Since:
0.1 (2026-09-25)
Author:
Andrey Santrosyan