Package com.axelor.ai.governance.access
Record Class Destination
java.lang.Object
java.lang.Record
com.axelor.ai.governance.access.Destination
- Record Components:
model- the model's id, or null when none could be foundprovider- its provider's id, or null when none could be found
Where data the AI reads goes: the model serving the call, and its provider — what a policy lists
to hold data back from it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DestinationNo model found: every policy listing a model or a provider applies, the least favourable destination. -
Constructor Summary
ConstructorsConstructorDescriptionDestination(Long model, Long provider) Creates an instance of aDestinationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static DestinationThe destination of a turn: the model the user chose, else the agent's, else the default.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.static DestinationThe model's destination, orUNKNOWNfor none.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.booleanunknown()Whether no model was found.
-
Field Details
-
UNKNOWN
No model found: every policy listing a model or a provider applies, the least favourable destination.
-
-
Constructor Details
-
Method Details
-
of
The model's destination, orUNKNOWNfor none. -
forTurn
The destination of a turn: the model the user chose, else the agent's, else the default. -
unknown
public boolean unknown()Whether no model was found. -
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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-