Package com.axelor.ai.db
Class AiTool
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.ai.db.AiTool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanVerb for the approval button, e.g.getAttrs()getCode()getId()getName()getType()Only System tools are held to data access rules.inthashCode()voidsetActionLabel(String actionLabel) voidsetActionModel(String actionModel) voidsetActionName(String actionName) voidvoidvoidsetDescription(String description) voidsetHttpBody(String httpBody) voidsetHttpHeaders(String httpHeaders) voidsetHttpMethod(AiToolHttpMethod httpMethod) voidsetHttpUrl(String httpUrl) voidvoidsetInputSchema(String inputSchema) voidsetIsEnabled(Boolean isEnabled) voidsetMcpServer(AiMcpServer mcpServer) voidsetMcpToolName(String mcpToolName) voidvoidsetRequiresApproval(Boolean requiresApproval) voidvoidsetSecrets(String secrets) voidsetSystemTool(String systemTool) voidsetType(AiToolType 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
-
AiTool
public AiTool() -
AiTool
-
-
Method Details
-
getId
-
setId
-
getCode
-
setCode
-
getName
-
setName
-
getDescription
-
setDescription
-
getType
Only System tools are held to data access rules. Script, Action, HTTP and MCP tools return what their author wrote — any data, to any model the conversation uses.- Returns:
- the property value
-
setType
-
getInputSchema
-
setInputSchema
-
getIsEnabled
-
setIsEnabled
-
getRequiresApproval
-
setRequiresApproval
-
getActionLabel
Verb for the approval button, e.g. 'Change price'; falls back to Allow.- Returns:
- the property value
-
setActionLabel
-
getScript
-
setScript
-
getHttpUrl
-
setHttpUrl
-
getHttpMethod
-
setHttpMethod
-
getHttpHeaders
-
setHttpHeaders
-
getHttpBody
-
setHttpBody
-
getActionName
-
setActionName
-
getActionModel
-
setActionModel
-
getSystemTool
-
setSystemTool
-
getMcpServer
-
setMcpServer
-
getMcpToolName
-
setMcpToolName
-
getSecrets
-
setSecrets
-
getAttrs
-
setAttrs
-
equals
-
hashCode
public int hashCode() -
toString
-