Record Class SyncRules.Family

java.lang.Object
java.lang.Record
com.axelor.ai.provider.sync.SyncRules.Family
Record Components:
match - regex the whole model id must match — gpt-.*, not gpt-. A literal dot needs escaping (gpt-5[.]5); YAML rejects \. as an invalid escape, so a character class is the safe way to write one.
exclude - regexes suppressing ids this family would otherwise take
keep - how many of the newest matching ids to take; null means all, which is what a local provider like Ollama wants
defaults - values applied only when a model is first created — see SyncRules.DEFAULTABLE
Enclosing class:
SyncRules

public static record SyncRules.Family(String match, List<String> exclude, Integer keep, Map<String,Object> defaults) extends Record
  • Constructor Details

    • Family

      public Family(String match, List<String> exclude, Integer keep, Map<String,Object> defaults)
      Creates an instance of a Family record class.
      Parameters:
      match - the value for the match record component
      exclude - the value for the exclude record component
      keep - the value for the keep record component
      defaults - the value for the defaults record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • match

      public String match()
      Returns the value of the match record component.
      Returns:
      the value of the match record component
    • exclude

      public List<String> exclude()
      Returns the value of the exclude record component.
      Returns:
      the value of the exclude record component
    • keep

      public Integer keep()
      Returns the value of the keep record component.
      Returns:
      the value of the keep record component
    • defaults

      public Map<String,Object> defaults()
      Returns the value of the defaults record component.
      Returns:
      the value of the defaults record component