Package com.axelor.ai.provider.sync
Record Class ModelCandidate
java.lang.Object
java.lang.Record
com.axelor.ai.provider.sync.ModelCandidate
public record ModelCandidate(String modelId, String name, AiModelType type, boolean supportsTools, boolean supportsVision, Integer maxInputTokens, Integer embeddingDimensions)
extends Record
A selected model with its values resolved, used only when creating one.
Carries the fields that describe the model itself. The deployment settings a family may also
declare (reasoningEffort, rateLimit, …) are written straight from the rules, so
they are deliberately absent here. Null token limits mean unknown, not zero.
-
Constructor Summary
ConstructorsConstructorDescriptionModelCandidate(String modelId, String name, AiModelType type, boolean supportsTools, boolean supportsVision, Integer maxInputTokens, Integer embeddingDimensions) Creates an instance of aModelCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theembeddingDimensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxInputTokensrecord component.modelId()Returns the value of themodelIdrecord component.name()Returns the value of thenamerecord component.booleanReturns the value of thesupportsToolsrecord component.booleanReturns the value of thesupportsVisionrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ModelCandidate
public ModelCandidate(String modelId, String name, AiModelType type, boolean supportsTools, boolean supportsVision, Integer maxInputTokens, Integer embeddingDimensions) Creates an instance of aModelCandidaterecord class.- Parameters:
modelId- the value for themodelIdrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentsupportsTools- the value for thesupportsToolsrecord componentsupportsVision- the value for thesupportsVisionrecord componentmaxInputTokens- the value for themaxInputTokensrecord componentembeddingDimensions- the value for theembeddingDimensionsrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
supportsTools
public boolean supportsTools()Returns the value of thesupportsToolsrecord component.- Returns:
- the value of the
supportsToolsrecord component
-
supportsVision
public boolean supportsVision()Returns the value of thesupportsVisionrecord component.- Returns:
- the value of the
supportsVisionrecord component
-
maxInputTokens
Returns the value of themaxInputTokensrecord component.- Returns:
- the value of the
maxInputTokensrecord component
-
embeddingDimensions
Returns the value of theembeddingDimensionsrecord component.- Returns:
- the value of the
embeddingDimensionsrecord component
-