Annotation Interface SupervisorRequest
Marks a method as a definition of the request that will be sent to the supervisor.
Example:
public interface SupervisorStoryCreator {
@SupervisorAgent(outputName = "story", subAgents = {
@SubAgent(type = CreativeWriter.class, outputName = "story"),
@SubAgent(type = StyleReviewLoopAgent.class, outputName = "story")
})
String write(@V("topic") String topic, @V("style") String style);
@SupervisorRequest
static String request(@V("topic") String topic, @V("style") String style) {
return "Write a story about " + topic + " in " + style + " style";
}
}