Package com.axelor.ai.db
Class AiProvider
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.ai.db.AiProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the givenAiModelitem to themodelscollection.voidClear themodelscollection.booleangetAttrs()getCode()getId()getName()Model sync rules as JSON.getType()inthashCode()voidremoveModel(AiModel item) Remove the givenAiModelitem from themodelscollection.voidvoidvoidsetBaseUrl(String baseUrl) voidvoidvoidsetIsEnabled(Boolean isEnabled) voidsetIsInternal(Boolean isInternal) voidvoidvoidsetSortOrder(Integer sortOrder) voidsetSyncRules(String syncRules) voidsetType(AiProviderType type) 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
-
AiProvider
public AiProvider() -
AiProvider
-
-
Method Details
-
getId
-
setId
-
getCode
-
setCode
-
getName
-
setName
-
getSortOrder
-
setSortOrder
-
getType
-
setType
-
getApiKey
-
setApiKey
-
getBaseUrl
-
setBaseUrl
-
getSyncRules
Model sync rules as JSON. Blank disables syncing for this provider.- Returns:
- the property value
-
setSyncRules
-
getIsEnabled
-
setIsEnabled
-
getIsInternal
-
setIsInternal
-
getModels
-
setModels
-
addModel
Add the givenAiModelitem to themodelscollection.It sets
item.provider = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeModel
Remove the givenAiModelitem from themodelscollection.- Parameters:
item- the item to remove
-
clearModels
public void clearModels()Clear themodelscollection. -
getAttrs
-
setAttrs
-
equals
-
hashCode
public int hashCode() -
toString
-