Annotation Interface SupervisorRequest
Marks a method as a definition of the request that will be sent to the supervisor.
Example:
public interface SupervisorStoryCreator {
@SupervisorAgent(outputKey = "story",
subAgents = { CreativeWriter.class, StyleReviewLoopAgent.class })
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";
}
}