Package com.axelor.ai.provider.sync
Class RuleEngine
java.lang.Object
com.axelor.ai.provider.sync.RuleEngine
Resolves a provider's full model list down to the few the rules ask for.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA vendor model paired with the family that claimed it. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RuleEngine.Match> select(SyncRules rules, List<VendorModel> models) Selects the models the rules want, in the order they were selected.
-
Method Details
-
select
Selects the models the rules want, in the order they were selected.Families are tried in order and the first one whose regex accepts an id owns it, so a broad
gpt-.*placed aftergpt-.*-minicannot swallow the narrower tier. Ownership is independent ofkeep: a family claims every id it matches, andkeeponly limits how many of them are synced.
-