Annotation Interface HumanInTheLoopResponseSupplier
Marks a method as a supplier of response for human-in-the-loop agent.
The annotated method must be static, with no arguments, and return a String response.
Example:
public interface AudienceRetriever {
@HumanInTheLoop(description = "Generate a story based on the given topic", outputName = "audience", async = true)
static void request(@V("topic") String topic) {
request.set("Which audience for topic " + topic + "?");
}
@HumanInTheLoopResponseSupplier
static String response() {
return System.console().readLine();
}
}