.Net: Added an example how to access ChatHistory in SK function#9527
.Net: Added an example how to access ChatHistory in SK function#9527dmytrostruk merged 5 commits intomicrosoft:mainfrom
Conversation
rogerbarreto
left a comment
There was a problem hiding this comment.
Although today being possible to do with current demonstration I would prefer to see this implemented as supported scenario in here:
Where if you add ChatHistory as the argument type of a function it is properly injected in the function.
@rogerbarreto Thanks for feedback! Yes, I agree that such approach would work in the best way for end users, and I've investigated it in more detail. It appeared that in order to support that, we will have to add For example, we will need to update I was also thinking about adding Taking into account that today it's possible to pass Hope that makes sense! |
Motivation and Context
Resolves: #7263
This PR contains an example how to access
ChatHistoryin SK function usingKernel.Dataproperty orKernelArgumentsandIAutoFunctionInvocationFilter.This scenario can be useful with auto function calling, when logic in SK function depends on results from previous messages in the same chat history.
Contribution Checklist