Class SkillsConfiguration

java.lang.Object
io.micronaut.langchain4j.skills.SkillsConfiguration

@EachProperty("langchain4j.skills") public final class SkillsConfiguration extends Object
Configures a set of Agent Skills, exposed as a LangChain4j Skills bean named after the configuration, and offered to the AI services that select it with AiService.skills().

Each skill is a directory with a SKILL.md file, loaded from the classpath and/or the file system. Requires dev.langchain4j:langchain4j-skills on the classpath.

Since:
2.4.0
  • Field Details

  • Constructor Details

    • SkillsConfiguration

      public SkillsConfiguration(@Parameter String name)
      Parameters:
      name - The name of the skills bean
  • Method Details

    • getName

      public String getName()
      Returns:
      The name of the skills bean
    • getClasspath

      public @Nullable String getClasspath()
      Returns:
      The classpath directory that contains the skill directories
    • setClasspath

      public void setClasspath(@Nullable String classpath)
      The classpath directory that contains the skill directories, for example skills.
      Parameters:
      classpath - The classpath directory
    • getDirectory

      public @Nullable Path getDirectory()
      Returns:
      The file system directory that contains the skill directories
    • setDirectory

      public void setDirectory(@Nullable Path directory)
      The file system directory that contains the skill directories.
      Parameters:
      directory - The directory