Class DefaultFileSystemSkill

java.lang.Object
dev.langchain4j.skills.AbstractSkill
dev.langchain4j.skills.DefaultFileSystemSkill
All Implemented Interfaces:
FileSystemSkill, Skill

@Experimental public class DefaultFileSystemSkill extends AbstractSkill implements FileSystemSkill
  • Constructor Details

  • Method Details

    • basePath

      public Path basePath()
      Description copied from interface: FileSystemSkill
      Returns the base directory of this skill on the file system. This directory is expected to contain a SKILL.md file and optionally additional resource files.
      Specified by:
      basePath in interface FileSystemSkill
    • equals

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

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

      public String toString()
      Overrides:
      toString in class AbstractSkill
    • toBuilder

      public DefaultFileSystemSkill.Builder toBuilder()
      Returns a new builder pre-populated with the values from this skill. Useful for creating a modified copy, e.g. adding tools to a filesystem-loaded skill:
      FileSystemSkill skillWithTools = skill.toBuilder().tools(new MyTools()).build();
      
    • builder

      public static DefaultFileSystemSkill.Builder builder()