semantic-kernel
semantic-kernel copied to clipboard
.Net: Access to Chat history in semantic kernel function
Discussed in https://github.com/microsoft/semantic-kernel/discussions/7186
Originally posted by JP-droidic July 10, 2024 Hi all
is it possible to access/retrieve chat history in autocalled SK function?
This works in python but not .Net
More information about this task:
- The functionality is not supported in Python yet.
- Could be implemented in different ways (e.g. by adding
ChatHistorytoKernelArguments, by extendingInvokeAsyncmethods with newChatHistoryparameter etc.) - ADR is required to investigate and find the best possible approach.
- The solution could potentially solve the problem with lack of
ChatHistoryinKernelobject, which can remove a need to useIChatCompletionServicedirectly for most cases.
Is there any update on this work @markwallace-microsoft? This would be a great feature to have.
@gdodd1977 We will try to get this done during our current sprint which starts today