Should I go with InvokeAsync as much as possible? #6538
-
Hi, still very new to this and I think some of the abstraction is puzzling me. For example, I can execute chat completion in several ways:
So initially, I was trying to use kernel.InvokeAsync, as it seemed like a most generic way and at least in some tutorials that was the way, as it supports plugin conventions.
Hence it seems that if I need to attach chat history, I need to go with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, as of today, you'll need to use the underlying service to do anything with the chat history object. This is currently flagged as a gap that we'd like to solve this summer. Our goal is to provide helpers within prompt templates that allow you to write prompts with chat history objects. Once that's available, you'll be able to use |
Beta Was this translation helpful? Give feedback.
Yes, as of today, you'll need to use the underlying service to do anything with the chat history object. This is currently flagged as a gap that we'd like to solve this summer. Our goal is to provide helpers within prompt templates that allow you to write prompts with chat history objects. Once that's available, you'll be able to use
InvokePromptAsync
. We should have an initial proposal out in a few weeks.