.Net: New Feature: Add Kernel invoke function which takes KernelContent
Support the following scenarios:
- Kernel.InvokeAsync(ChatHistory) and Kernel.InvokeAsync(List<ChatHistory>)
- Kernel.InvokeAsync(KernelContent)
- Also streaming variants
@markwallace-microsoft on the discord channel I've asked before why I can't use Kernel.InvokeAsync with history and I was told Kernel.InvokeAsync is only for one shot calls.
For me it is not clear when to use Kernel.InvokeAsync and when to use kernel.GetRequiredService<IChatCompletionService>();
Now, when this feature will be implementend the diference is even more vague. Can you provide me some more insights regarding the differences?
This issue is stale because it has been open for 90 days with no activity.
@Expecho The current Kernel.InvokeAsync takes a prompt, this prompt can represent a chat history in XML format. We've heard from developers that they want to be able to use ChatHistory directly, but currently the only way to do this is using the IChatCompletionService directly which is causing confusing. The purpose of this task is to simplify things so Kernel.InvokeAsync can be used all of the time.
This issue is stale because it has been open for 90 days with no activity.