类 AgentSkillPromptProvider
java.lang.Object
io.agentscope.core.skill.AgentSkillPromptProvider
Generates skill system prompts for agents to understand available skills.
This provider creates system prompts containing information about available skills that the LLM can dynamically load and use.
Usage example:
AgentSkillPromptProvider provider = new AgentSkillPromptProvider(registry);
String prompt = provider.getSkillSystemPrompt();
-
字段概要
字段 -
构造器概要
构造器构造器说明AgentSkillPromptProvider(io.agentscope.core.skill.SkillRegistry registry) Creates a skill prompt provider.AgentSkillPromptProvider(io.agentscope.core.skill.SkillRegistry registry, String instruction, String template) Creates a skill prompt provider with custom instruction and template. -
方法概要
-
字段详细资料
-
构造器详细资料
-
AgentSkillPromptProvider
public AgentSkillPromptProvider(io.agentscope.core.skill.SkillRegistry registry) Creates a skill prompt provider.- 参数:
registry- The skill registry containing registered skills
-
AgentSkillPromptProvider
public AgentSkillPromptProvider(io.agentscope.core.skill.SkillRegistry registry, String instruction, String template) Creates a skill prompt provider with custom instruction and template.- 参数:
registry- The skill registry containing registered skillsinstruction- Custom instruction header (null or blank uses default)template- Custom skill template (null or blank uses default)
-
-
方法详细资料
-
getSkillSystemPrompt
Gets the skill system prompt for the agent.Generates a system prompt containing all registered skills.
- 返回:
- The skill system prompt, or empty string if no skills exist
-