Class SkillsConfiguration
java.lang.Object
io.micronaut.langchain4j.skills.SkillsConfiguration
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String@Nullable PathgetName()voidsetClasspath(@Nullable String classpath) The classpath directory that contains the skill directories, for exampleskills.voidsetDirectory(@Nullable Path directory) The file system directory that contains the skill directories.
-
Field Details
-
PREFIX
-
-
Constructor Details
-
SkillsConfiguration
- Parameters:
name- The name of the skills bean
-
-
Method Details
-
getName
- Returns:
- The name of the skills bean
-
getClasspath
- Returns:
- The classpath directory that contains the skill directories
-
setClasspath
The classpath directory that contains the skill directories, for exampleskills.- Parameters:
classpath- The classpath directory
-
getDirectory
- Returns:
- The file system directory that contains the skill directories
-
setDirectory
The file system directory that contains the skill directories.- Parameters:
directory- The directory
-