类的使用
io.agentscope.core.skill.AgentSkill.Builder
使用AgentSkill.Builder的程序包
-
io.agentscope.core.skill中AgentSkill.Builder的使用
修饰符和类型方法说明AgentSkill.Builder.addResource(String path, String content) Adds or updates a single resource.static AgentSkill.BuilderAgentSkill.builder()Creates a new builder for creating a skill from scratch.AgentSkill.Builder.clearResources()Clears all resources.AgentSkill.Builder.description(String description) Sets the skill description.Replaces all metadata with a new map.Sets the skill name.AgentSkill.Builder.putMetadata(String key, Object value) Adds or updates a single metadata entry.AgentSkill.Builder.removeMetadata(String key) Removes a metadata entry.AgentSkill.Builder.removeResource(String path) Removes a resource.Replaces all resources with a new map.AgentSkill.Builder.skillContent(String skillContent) Sets the skill content.Sets the source identifier.AgentSkill.toBuilder()Creates a builder initialized with this skill's values.