Package com.axelor.ai.db
Class AiModel
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.ai.db.AiModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the givenAiAgentitem to theagentscollection.voidClear theagentscollection.booleangetAttrs()OpenAI only.getCode()getId()getName()getType()OpenAI only.inthashCode()voidremoveAgent(AiAgent item) Remove the givenAiAgentitem from theagentscollection.voidvoidvoidsetBackgroundServiceTier(AiServiceTier backgroundServiceTier) voidvoidsetEmbeddingDimensions(Integer embeddingDimensions) voidvoidsetIsDefault(Boolean isDefault) voidsetIsEnabled(Boolean isEnabled) voidsetIsInternal(Boolean isInternal) voidsetMaxInputTokens(Integer maxInputTokens) voidsetMaxOutputTokens(Integer maxOutputTokens) voidsetModelId(String modelId) voidvoidsetProvider(AiProvider provider) voidsetRateLimit(Integer rateLimit) voidsetReasoningEffort(String reasoningEffort) voidsetSortOrder(Integer sortOrder) voidsetSupportsReasoning(Boolean supportsReasoning) voidsetSupportsTools(Boolean supportsTools) voidsetSupportsVision(Boolean supportsVision) voidsetTemperature(BigDecimal temperature) voidsetTimeoutMs(Integer timeoutMs) voidsetType(AiModelType type) voidsetUseResponsesApi(Boolean useResponsesApi) toString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods inherited from class com.axelor.db.Model
getArchived, getCid, getImportId, getVersion, isSelected, setArchived, setCid, setImportId, setSelected, setVersion
-
Constructor Details
-
AiModel
public AiModel() -
AiModel
-
-
Method Details
-
getId
-
setId
-
getCode
-
setCode
-
getName
-
setName
-
getSortOrder
-
setSortOrder
-
getModelId
-
setModelId
-
getType
-
setType
-
getSupportsTools
-
setSupportsTools
-
getSupportsReasoning
-
setSupportsReasoning
-
getSupportsVision
-
setSupportsVision
-
getEmbeddingDimensions
-
setEmbeddingDimensions
-
getMaxInputTokens
-
setMaxInputTokens
-
getTemperature
-
setTemperature
-
getMaxOutputTokens
-
setMaxOutputTokens
-
getTimeoutMs
-
setTimeoutMs
-
getReasoningEffort
-
setReasoningEffort
-
getRateLimit
-
setRateLimit
-
getUseResponsesApi
OpenAI only. Sends chat turns to the Responses API rather than Chat Completions, the only way a model can reason and call tools in the same turn.- Returns:
- the property value
-
setUseResponsesApi
-
getBackgroundServiceTier
OpenAI only. The tier for work nobody is waiting on — session notes. Flex costs half and is slower; a refused Flex request is sent again at Standard. Chat replies and workflow agent steps always use Standard.- Returns:
- the property value
-
setBackgroundServiceTier
-
getIsEnabled
-
setIsEnabled
-
getIsDefault
-
setIsDefault
-
getIsInternal
-
setIsInternal
-
getProvider
-
setProvider
-
getAgents
-
setAgents
-
addAgent
Add the givenAiAgentitem to theagentscollection.It sets
item.model = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeAgent
Remove the givenAiAgentitem from theagentscollection.- Parameters:
item- the item to remove
-
clearAgents
public void clearAgents()Clear theagentscollection. -
getAttrs
-
setAttrs
-
equals
-
hashCode
public int hashCode() -
toString
-