Class AiTool


@Entity public class AiTool extends AuditableModel
  • Constructor Details

    • AiTool

      public AiTool()
    • AiTool

      public AiTool(String code, String name)
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in class Model
    • setId

      public void setId(Long id)
      Specified by:
      setId in class Model
    • getCode

      public String getCode()
    • setCode

      public void setCode(String code)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getType

      public AiToolType 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

      public void setType(AiToolType type)
    • getInputSchema

      public String getInputSchema()
    • setInputSchema

      public void setInputSchema(String inputSchema)
    • getIsEnabled

      public Boolean getIsEnabled()
    • setIsEnabled

      public void setIsEnabled(Boolean isEnabled)
    • getRequiresApproval

      public Boolean getRequiresApproval()
    • setRequiresApproval

      public void setRequiresApproval(Boolean requiresApproval)
    • getActionLabel

      public String getActionLabel()
      Verb for the approval button, e.g. 'Change price'; falls back to Allow.
      Returns:
      the property value
    • setActionLabel

      public void setActionLabel(String actionLabel)
    • getScript

      public String getScript()
    • setScript

      public void setScript(String script)
    • getHttpUrl

      public String getHttpUrl()
    • setHttpUrl

      public void setHttpUrl(String httpUrl)
    • getHttpMethod

      public AiToolHttpMethod getHttpMethod()
    • setHttpMethod

      public void setHttpMethod(AiToolHttpMethod httpMethod)
    • getHttpHeaders

      public String getHttpHeaders()
    • setHttpHeaders

      public void setHttpHeaders(String httpHeaders)
    • getHttpBody

      public String getHttpBody()
    • setHttpBody

      public void setHttpBody(String httpBody)
    • getActionName

      public String getActionName()
    • setActionName

      public void setActionName(String actionName)
    • getActionModel

      public String getActionModel()
    • setActionModel

      public void setActionModel(String actionModel)
    • getSystemTool

      public String getSystemTool()
    • setSystemTool

      public void setSystemTool(String systemTool)
    • getMcpServer

      public AiMcpServer getMcpServer()
    • setMcpServer

      public void setMcpServer(AiMcpServer mcpServer)
    • getMcpToolName

      public String getMcpToolName()
    • setMcpToolName

      public void setMcpToolName(String mcpToolName)
    • getSecrets

      public String getSecrets()
    • setSecrets

      public void setSecrets(String secrets)
    • getAttrs

      public String getAttrs()
    • setAttrs

      public void setAttrs(String attrs)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object