Java: Fix some Doc fixes (#5678)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
This commit is contained in:
John Oliver
2024-03-27 12:56:08 -04:00
committed by GitHub
parent decf756f28
commit ef59595f18
3 changed files with 5 additions and 4 deletions
@@ -59,7 +59,7 @@ public class ConfiguringPrompts {
.build();
// </CreateKernel>
// <CreateFromPrompt
// <CreateFromPrompt>
KernelFunction<String> chat = KernelFunction.<String>createFromPrompt(
PromptTemplateConfig.builder()
.withName("Chat")
@@ -96,6 +96,6 @@ public class ConfiguringPrompts {
})
.build())
.build();
// <CreateFromPrompt
// </CreateFromPrompt>
}
}
@@ -9,6 +9,7 @@ import com.microsoft.semantickernel.Kernel;
import com.microsoft.semantickernel.services.chatcompletion.ChatCompletionService;
public class Prompts {
private static final String CLIENT_KEY = System.getenv("CLIENT_KEY");
private static final String AZURE_CLIENT_KEY = System.getenv("AZURE_CLIENT_KEY");
@@ -48,7 +49,7 @@ public class Prompts {
""".formatted(request);
/*
* Uncomment this block to make this example interactive
* // Uncomment this block to make this example interactive
* // <InitialPrompt>
* System.out.println("Your request: ");
* String request = new Scanner(System.in).nextLine();
@@ -37,7 +37,7 @@ public class PromptFunctionConstants {
"actionItem": "Record a demo for the new feature",
"dueDate": "Friday",
"status": "Open",
"notes": "
"notes": ""
}
]
}