类的使用
io.agentscope.core.skill.AgentSkill
使用AgentSkill的程序包
-
io.agentscope.core.skill中AgentSkill的使用
修饰符和类型方法说明AgentSkill.Builder.build()Builds the AgentSkill instance.Gets a skill by ID (latest version).参数类型为AgentSkill的io.agentscope.core.skill中的方法修饰符和类型方法说明voidSkillBox.registerSkill(AgentSkill skill) Registers an agent skill.SkillBox.SkillRegistration.skill(AgentSkill skill) Set the skill to register. -
io.agentscope.core.skill.repository中AgentSkill的使用
修饰符和类型方法说明Gets a skill by its name.Gets a skill by name.返回变量类型为AgentSkill的类型的io.agentscope.core.skill.repository中的方法修饰符和类型方法说明AgentSkillRepository.getAllSkills()Gets all skills from the repository.ClasspathSkillRepository.getAllSkills()Gets all skills available in the repository.FileSystemSkillRepository.getAllSkills()类型变量类型为AgentSkill的io.agentscope.core.skill.repository中的方法参数修饰符和类型方法说明booleanAgentSkillRepository.save(List<AgentSkill> skills, boolean force) Saves or updates a skill in the repository.booleanClasspathSkillRepository.save(List<AgentSkill> skills, boolean force) booleanFileSystemSkillRepository.save(List<AgentSkill> skills, boolean force) -
io.agentscope.core.skill.util中AgentSkill的使用
修饰符和类型方法说明static AgentSkillSkillUtil.createFrom(String skillMd, Map<String, String> resources) Creates an AgentSkill from markdown with YAML frontmatter.static AgentSkillCreates an AgentSkill from markdown with YAML frontmatter and custom source.static AgentSkillSkillUtil.createFromZip(byte[] zipBytes) Creates an AgentSkill from a skill package zip.static AgentSkillSkillUtil.createFromZip(byte[] zipBytes, String source) Creates an AgentSkill from a skill package zip with custom source.static AgentSkillSkillUtil.createFromZip(byte[] zipBytes, String source, Charset charset) Creates an AgentSkill from a skill package zip with custom source and charset.static AgentSkillSkillUtil.createFromZip(InputStream zipStream) Creates an AgentSkill from a skill package zip input stream.static AgentSkillSkillUtil.createFromZip(InputStream zipStream, String source) Creates an AgentSkill from a skill package zip input stream with custom source.static AgentSkillSkillUtil.createFromZip(InputStream zipStream, String source, Charset charset) Creates an AgentSkill from a skill package zip input stream with custom source and charset.static AgentSkillSkillUtil.createFromZip(Path zipPath) Creates an AgentSkill from a skill package zip file path.static AgentSkillSkillUtil.createFromZip(Path zipPath, String source) Creates an AgentSkill from a skill package zip file path with custom source.static AgentSkillSkillUtil.createFromZip(Path zipPath, String source, Charset charset) Creates an AgentSkill from a skill package zip file path with custom source and charset.static AgentSkillSkillUtil.createFromZip(Path zipPath, Charset charset) Creates an AgentSkill from a skill package zip file path using the given charset.static AgentSkillLoads a skill by name from the given base directory.static AgentSkillSkillFileSystemHelper.loadSkillFromDirectory(Path skillDir, String source) Loads a skill from a specific directory.返回变量类型为AgentSkill的类型的io.agentscope.core.skill.util中的方法修饰符和类型方法说明static List<AgentSkill> SkillFileSystemHelper.getAllSkills(Path baseDir, String source) Retrieves all skills from the base directory.类型变量类型为AgentSkill的io.agentscope.core.skill.util中的方法参数修饰符和类型方法说明static booleanSkillFileSystemHelper.saveSkills(Path baseDir, List<AgentSkill> skills, boolean force) Saves skills to the base directory.