semantic-kernel
semantic-kernel copied to clipboard
.Net: Decode unicode escapes in TextMemoryPlugin recall
Motivation and Context
TextMemoryPlugin RecallAsync returns encoded data if the data is not English.
Description
I have added a method to decode unicode escape sequences.
Contribution Checklist
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone :smile:
#6593 issue is related
Closing this PR, since this change could be a breaking change for some customers, but I've created a new PR that allows customizing the JsonSerializer behavior to output unescaped characters to begin with.
See #7098