Annotation Interface PlannerSupplier
Marks a method as a supplier of the planner for a planner based agent.
Example:
public interface PlannerBasedStoryCreator {
@PlannerAgent(
outputKey = "story",
subAgents = { CreativeWriter.class, AudienceEditor.class, StyleEditor.class })
String write(@V("topic") String topic, @V("style") String style, @V("audience") String audience);
@PlannerSupplier
static Planner planner() {
return new SequentialPlanner();
}
}