semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Access to Chat history in semantic kernel function

Open markwallace-microsoft opened this issue 1 year ago • 1 comments

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?

markwallace-microsoft avatar Jul 15 '24 15:07 markwallace-microsoft

This works in python but not .Net

markwallace-microsoft avatar Jul 15 '24 15:07 markwallace-microsoft

More information about this task:

  • The functionality is not supported in Python yet.
  • Could be implemented in different ways (e.g. by adding ChatHistory to KernelArguments, by extending InvokeAsync methods with new ChatHistory parameter etc.)
  • ADR is required to investigate and find the best possible approach.
  • The solution could potentially solve the problem with lack of ChatHistory in Kernel object, which can remove a need to use IChatCompletionService directly for most cases.

dmytrostruk avatar Jul 24 '24 22:07 dmytrostruk

Is there any update on this work @markwallace-microsoft? This would be a great feature to have.

gdodd1977 avatar Oct 17 '24 15:10 gdodd1977

@gdodd1977 We will try to get this done during our current sprint which starts today

markwallace-microsoft avatar Oct 21 '24 06:10 markwallace-microsoft