Class RuleEngine

java.lang.Object
com.axelor.ai.provider.sync.RuleEngine

public final class RuleEngine extends Object
Resolves a provider's full model list down to the few the rules ask for.
  • Method Details

    • select

      public static List<RuleEngine.Match> select(SyncRules rules, List<VendorModel> models)
      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 after gpt-.*-mini cannot swallow the narrower tier. Ownership is independent of keep: a family claims every id it matches, and keep only limits how many of them are synced.