fix for code not rendered in your-initial-prompt

This commit is contained in:
David Grieve
2024-03-27 14:04:21 -04:00
parent ef59595f18
commit 9133b57b48
@@ -48,16 +48,15 @@ public class Prompts {
What is the intent of this request? %s
""".formatted(request);
/*
* // Uncomment this block to make this example interactive
* // <InitialPrompt>
* System.out.println("Your request: ");
* String request = new Scanner(System.in).nextLine();
* String prompt = """
* What is the intent of this request? %s
* You can choose between SendEmail, SendMessage, CompleteTask, CreateDocument.
* """.formatted(request);
* // </InitialPrompt>
/* Uncomment this block to make this example interactive
// <InitialPrompt>
System.out.println("Your request: ");
String request = new Scanner(System.in).nextLine();
String prompt = """
What is the intent of this request? %s
You can choose between SendEmail, SendMessage, CompleteTask, CreateDocument.
""".formatted(request);
// </InitialPrompt>
*/
System.out.println("0.0 Initial prompt");
@@ -248,4 +247,4 @@ public class Prompts {
result = kernel.invokePromptAsync(prompt).block().getResult();
System.out.println(result);
}
}
}