From 9133b57b48d573f529afd23826aba10fc48d2235 Mon Sep 17 00:00:00 2001 From: David Grieve Date: Wed, 27 Mar 2024 14:04:21 -0400 Subject: [PATCH] fix for code not rendered in your-initial-prompt --- .../documentationexamples/Prompts.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java b/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java index 70e5ad0eb6..8b6349436a 100644 --- a/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java +++ b/java/samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/documentationexamples/Prompts.java @@ -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 - * // - * 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); - * // + /* Uncomment this block to make this example interactive + // + 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); + // */ System.out.println("0.0 Initial prompt"); @@ -248,4 +247,4 @@ public class Prompts { result = kernel.invokePromptAsync(prompt).block().getResult(); System.out.println(result); } -} \ No newline at end of file +}