mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
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:
+2
-2
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class PromptFunctionConstants {
|
||||
"actionItem": "Record a demo for the new feature",
|
||||
"dueDate": "Friday",
|
||||
"status": "Open",
|
||||
"notes": "
|
||||
"notes": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user