Annotation Interface PlannerSupplier


@Retention(RUNTIME) @Target(METHOD) public @interface PlannerSupplier
Marks a method as a supplier of the planner for a planner based agent.

Example:


    public interface PlannerBasedStoryCreator {

        @PlannerAgent(
                outputKey = "story",
                subAgents = {
                    @SubAgent(type = CreativeWriter.class, outputKey = "story"),
                    @SubAgent(type = AudienceEditor.class, outputKey = "story"),
                    @SubAgent(type = StyleEditor.class, outputKey = "story")
                })
        String write(@V("topic") String topic, @V("style") String style, @V("audience") String audience);

        @PlannerSupplier
        static Planner planner() {
            return new SequentialPlanner();
        }
    }