Class Skills

java.lang.Object
mindsdb.services.Skills

public class Skills extends Object
The Skills class provides methods for managing skills.
  • Constructor Details

    • Skills

      public Skills(Project project, RestAPI api)
      Constructs a new Skills instance with the specified project and API.
      Parameters:
      project - The project associated with the skills.
      api - The API instance used to interact with the backend.
  • Method Details

    • list

      public List<Skill> list()
      List all skills in the project.
      Returns:
      List of skills.
    • get

      public Skill get(String name)
      Get a skill by name.
      Parameters:
      name - The name of the skill.
      Returns:
      The skill with the specified name.
    • create

      public Skill create(String name, String type, com.google.gson.JsonObject params)
      Create a new skill with the specified name, type, and parameters.
      Parameters:
      name - The name of the skill.
      type - The type of the skill.
      params - The parameters of the skill.
      Returns:
      The created skill.
    • create

      public Skill create(String name, String type, Map<String,Object> params)
      Create a new skill with the specified name, type, and parameters.
      Parameters:
      name - The name of the skill.
      type - The type of the skill.
      params - The parameters of the skill.
      Returns:
      The created skill.
    • update

      public Skill update(String name, Skill updateSkill)
      Update a skill with the specified name and updated skill.
      Parameters:
      name - The name of the skill.
      updateSkill - The updated skill.
      Returns:
      The updated skill.
    • drop

      public void drop(String name)
      Drop a skill with the specified name.
      Parameters:
      name - The name of the skill.