类 DefaultPlanToHint

java.lang.Object
io.agentscope.core.plan.hint.DefaultPlanToHint
所有已实现的接口:
PlanToHint

public class DefaultPlanToHint extends Object implements PlanToHint
Default implementation of PlanToHint that generates contextual hints based on plan state.

Provides prompt templates and logic for generating hints at different stages of plan execution.

The generator provides hints for five scenarios:

  • No Plan: Guides agent to create a plan for complex tasks
  • At the Beginning: All subtasks are TODO
  • Subtask In Progress: One subtask is actively being executed
  • No Subtask In Progress: Some tasks done, but none currently in progress
  • At the End: All subtasks are done or abandoned
  • 构造器详细资料

    • DefaultPlanToHint

      public DefaultPlanToHint()
  • 方法详细资料

    • generateHint

      public String generateHint(Plan plan, PlanNotebook planNotebook)
      Generates a contextual hint message based on the current plan state.

      The hint guides the agent through different stages of plan execution:

      • No plan exists - prompts to create a plan for complex tasks
      • All subtasks TODO - guides starting the first subtask
      • Subtask in progress - provides execution options
      • No subtask in progress - guides selecting next subtask
      • All subtasks complete - prompts to finish the plan
      指定者:
      generateHint 在接口中 PlanToHint
      参数:
      plan - The current plan, or null if no plan exists
      planNotebook - related planNoteBook configuration
      返回:
      A formatted hint message wrapped in system-hint tags, or null if no hint is applicable