mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
fix for code not rendered in your-initial-prompt
This commit is contained in:
+10
-11
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user