Package com.axelor.ai.provider.sync
Record Class VendorModel
java.lang.Object
java.lang.Record
com.axelor.ai.provider.sync.VendorModel
- Record Components:
id- the vendor's model id, stripped of any prefix — this is whatAiModel.modelIdholds and what dedup keys onreleased- when the vendor says it appeared, or null when it does not sayreported- capabilities the vendor reported, under the same normalised keys a family's defaults uses (type,supportsTools,maxInputTokens, …). Empty for providers that return ids only. Translating vendor field names into these keys is the adapter's job, so that everything downstream stays vendor-agnostic.
One model as a provider's list endpoint reported it, normalised by its adapter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.released()Returns the value of thereleasedrecord component.reported()Returns the value of thereportedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
released
Returns the value of thereleasedrecord component.- Returns:
- the value of the
releasedrecord component
-
reported
Returns the value of thereportedrecord component.- Returns:
- the value of the
reportedrecord component
-